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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (510) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/build/index.esm.js +1 -1
  3. package/dist/build/index.esm.js.map +1 -1
  4. package/dist/build/{p-d26ee54b.entry.js → p-036bb6f4.entry.js} +2 -2
  5. package/dist/build/p-0413fcd0.entry.js +2 -0
  6. package/dist/build/p-0413fcd0.entry.js.map +1 -0
  7. package/dist/build/p-0bbd4d1c.entry.js +2 -0
  8. package/dist/build/p-0bbd4d1c.entry.js.map +1 -0
  9. package/dist/build/{p-8b28c5be.entry.js → p-0c040d86.entry.js} +2 -2
  10. package/dist/build/{p-46cf79b4.entry.js → p-0e1935d5.entry.js} +2 -2
  11. package/dist/build/p-14e63599.entry.js +2 -0
  12. package/dist/build/{p-716a92ae.entry.js → p-1b5ec2b1.entry.js} +2 -2
  13. package/dist/{paperless/p-5f54e4b8.entry.js → build/p-1ed4a75e.entry.js} +3 -3
  14. package/dist/build/{p-5f54e4b8.entry.js.map → p-1ed4a75e.entry.js.map} +1 -1
  15. package/dist/{paperless/p-9f191ebc.entry.js → build/p-214a2978.entry.js} +2 -2
  16. package/dist/{paperless/p-e9ddf7b0.entry.js → build/p-2bd123f4.entry.js} +2 -2
  17. package/dist/{paperless/p-8b38f27d.entry.js → build/p-3a428a06.entry.js} +2 -2
  18. package/dist/build/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
  19. package/dist/build/{p-8b3b5d3b.entry.js → p-3e393301.entry.js} +2 -2
  20. package/dist/build/{p-d31d6714.entry.js → p-46362798.entry.js} +2 -2
  21. package/dist/build/{p-1ea8012a.entry.js → p-48efb6e4.entry.js} +2 -2
  22. package/dist/{paperless/p-7ef827d5.entry.js → build/p-50134fa1.entry.js} +2 -2
  23. package/dist/build/{p-b27bbec2.entry.js → p-62843ca0.entry.js} +2 -2
  24. package/dist/build/{p-5c6050aa.entry.js → p-638d2138.entry.js} +2 -2
  25. package/dist/{paperless/p-e102e82d.entry.js → build/p-65d9a61f.entry.js} +2 -2
  26. package/dist/build/p-6d8852ca.entry.js +2 -0
  27. package/dist/build/p-889eb696.js +2 -0
  28. package/dist/build/p-958f3c09.entry.js +2 -0
  29. package/dist/build/p-958f3c09.entry.js.map +1 -0
  30. package/dist/build/{p-2f821184.entry.js → p-a56474ea.entry.js} +2 -2
  31. package/dist/build/{p-68ae68c8.entry.js → p-a5934232.entry.js} +2 -2
  32. package/dist/build/p-af468e9f.entry.js +2 -0
  33. package/dist/build/p-af468e9f.entry.js.map +1 -0
  34. package/dist/build/p-bf261165.entry.js +2 -0
  35. package/dist/{paperless/p-db4ea9ce.entry.js → build/p-c3ba61ac.entry.js} +2 -2
  36. package/dist/build/p-c605a1c1.js +2 -0
  37. package/dist/build/p-c605a1c1.js.map +1 -0
  38. package/dist/build/p-c8e79e30.entry.js +2 -0
  39. package/dist/build/{p-00534c3c.entry.js → p-cc3445fc.entry.js} +2 -2
  40. package/dist/{paperless/p-c6a042f7.entry.js → build/p-cfe6ec9a.entry.js} +2 -2
  41. package/dist/{paperless/p-0ffb8f53.entry.js → build/p-d044f441.entry.js} +2 -2
  42. package/dist/build/p-d63066b0.css +1 -0
  43. package/dist/build/p-d6ca5bce.entry.js +2 -0
  44. package/dist/build/p-d6ca5bce.entry.js.map +1 -0
  45. package/dist/build/{p-117de4a8.entry.js → p-d70b3539.entry.js} +2 -2
  46. package/dist/build/p-d8eb3b7b.entry.js +2 -0
  47. package/dist/build/p-d8eb3b7b.entry.js.map +1 -0
  48. package/dist/build/{p-e9a323f2.entry.js → p-d9d8c17c.entry.js} +2 -2
  49. package/dist/build/{p-57fc0eb5.entry.js → p-d9fae6bd.entry.js} +2 -2
  50. package/dist/build/p-dfce711d.entry.js +2 -0
  51. package/dist/build/p-dfce711d.entry.js.map +1 -0
  52. package/dist/build/p-ea577bae.entry.js +2 -0
  53. package/dist/build/p-ea577bae.entry.js.map +1 -0
  54. package/dist/build/{p-b26d5130.entry.js → p-eec56c71.entry.js} +2 -2
  55. package/dist/build/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
  56. package/dist/build/{p-955d149f.entry.js → p-f40f89a7.entry.js} +2 -2
  57. package/dist/build/{p-c6fa153f.entry.js → p-fd53acd3.entry.js} +2 -2
  58. package/dist/build/paperless.css +1 -1
  59. package/dist/build/paperless.esm.js +1 -1
  60. package/dist/build/paperless.esm.js.map +1 -1
  61. package/dist/cjs/index-3f9bbc0c.js +16 -4
  62. package/dist/cjs/index.cjs.js +2 -1
  63. package/dist/cjs/index.cjs.js.map +1 -1
  64. package/dist/cjs/loader.cjs.js +1 -1
  65. package/dist/cjs/nonce-0feefc04.js +17 -0
  66. package/dist/cjs/nonce-0feefc04.js.map +1 -0
  67. package/dist/cjs/p-accordion.cjs.entry.js +1 -1
  68. package/dist/cjs/p-attachment.cjs.entry.js +4 -4
  69. package/dist/cjs/p-button-group.cjs.entry.js +1 -1
  70. package/dist/cjs/p-button_3.cjs.entry.js +446 -0
  71. package/dist/cjs/p-button_3.cjs.entry.js.map +1 -0
  72. package/dist/cjs/p-calendar.cjs.entry.js +1 -1
  73. package/dist/cjs/p-checkbox_3.cjs.entry.js +444 -0
  74. package/dist/cjs/p-checkbox_3.cjs.entry.js.map +1 -0
  75. package/dist/cjs/p-content-slider.cjs.entry.js +2 -2
  76. package/dist/cjs/p-counter.cjs.entry.js +1 -1
  77. package/dist/cjs/p-cropper.cjs.entry.js +3 -3
  78. package/dist/cjs/p-cropper.cjs.entry.js.map +1 -1
  79. package/dist/cjs/p-datepicker.cjs.entry.js +1 -1
  80. package/dist/cjs/p-divider.cjs.entry.js +1 -1
  81. package/dist/cjs/p-drawer-body_3.cjs.entry.js +3 -3
  82. package/dist/cjs/p-dropdown-menu-container.cjs.entry.js +2 -2
  83. package/dist/cjs/p-field_3.cjs.entry.js +316 -0
  84. package/dist/cjs/p-field_3.cjs.entry.js.map +1 -0
  85. package/dist/cjs/p-floating-menu-container_8.cjs.entry.js +7 -7
  86. package/dist/cjs/p-iban-icon.cjs.entry.js +1 -1
  87. package/dist/cjs/p-info-panel.cjs.entry.js +1 -1
  88. package/dist/cjs/p-input-error.cjs.entry.js +1 -1
  89. package/dist/cjs/p-label_3.cjs.entry.js +4 -4
  90. package/dist/cjs/p-layout.cjs.entry.js +1 -1
  91. package/dist/cjs/p-modal-body_4.cjs.entry.js +4 -4
  92. package/dist/cjs/p-navbar.cjs.entry.js +1 -1
  93. package/dist/cjs/p-navigation-item.cjs.entry.js +4 -3
  94. package/dist/cjs/p-navigation-item.cjs.entry.js.map +1 -1
  95. package/dist/cjs/p-navigation-section.cjs.entry.js +1 -1
  96. package/dist/cjs/p-navigation-title.cjs.entry.js +1 -1
  97. package/dist/cjs/p-page-size-select_3.cjs.entry.js +2 -2
  98. package/dist/cjs/p-portal_2.cjs.entry.js +233 -0
  99. package/dist/cjs/p-portal_2.cjs.entry.js.map +1 -0
  100. package/dist/cjs/p-profile.cjs.entry.js +1 -1
  101. package/dist/cjs/p-radio.cjs.entry.js +8 -19
  102. package/dist/cjs/p-radio.cjs.entry.js.map +1 -1
  103. package/dist/cjs/p-select.cjs.entry.js +1 -1
  104. package/dist/cjs/p-slider-indicator.cjs.entry.js +1 -1
  105. package/dist/cjs/p-status.cjs.entry.js +2 -2
  106. package/dist/cjs/p-stepper-item.cjs.entry.js +1 -1
  107. package/dist/cjs/p-stepper-line.cjs.entry.js +1 -1
  108. package/dist/cjs/p-stepper.cjs.entry.js +1 -1
  109. package/dist/cjs/p-tab-group.cjs.entry.js +1 -1
  110. package/dist/cjs/p-tab-item.cjs.entry.js +1 -1
  111. package/dist/cjs/p-table.cjs.entry.js +15 -17
  112. package/dist/cjs/p-table.cjs.entry.js.map +1 -1
  113. package/dist/cjs/p-toast-container.cjs.entry.js +1 -1
  114. package/dist/cjs/p-toast.cjs.entry.js +1 -1
  115. package/dist/cjs/p-toggle.cjs.entry.js +148 -0
  116. package/dist/cjs/p-toggle.cjs.entry.js.map +1 -0
  117. package/dist/cjs/paperless.cjs.js +1 -1
  118. package/dist/collection/collection-manifest.json +2 -0
  119. package/dist/collection/components/atoms/checkbox/checkbox.component.css +1 -0
  120. package/dist/collection/components/atoms/checkbox/checkbox.component.js +283 -0
  121. package/dist/collection/components/atoms/checkbox/checkbox.component.js.map +1 -0
  122. package/dist/collection/components/atoms/counter/counter.component.js +1 -1
  123. package/dist/collection/components/atoms/divider/divider.component.js +1 -1
  124. package/dist/collection/components/atoms/drawer-body/drawer-body.component.js +1 -1
  125. package/dist/collection/components/atoms/drawer-container/drawer-container.component.js +1 -1
  126. package/dist/collection/components/atoms/drawer-header/drawer-header.component.js +1 -1
  127. package/dist/collection/components/atoms/dropdown-menu-container/dropdown-menu-container.component.js +2 -2
  128. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.css +1 -1
  129. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js +4 -4
  130. package/dist/collection/components/atoms/dropdown-menu-item/dropdown-menu-item.component.js.map +1 -1
  131. package/dist/collection/components/atoms/floating-menu-container/floating-menu-container.component.js +1 -1
  132. package/dist/collection/components/atoms/floating-menu-item/floating-menu-item.component.js +1 -1
  133. package/dist/collection/components/atoms/helper/helper.component.js +1 -1
  134. package/dist/collection/components/atoms/iban-icon/iban-icon.component.js +1 -1
  135. package/dist/collection/components/atoms/info-panel/info-panel.component.js +1 -1
  136. package/dist/collection/components/atoms/label/label.component.js +2 -2
  137. package/dist/collection/components/atoms/layout/layout.component.js +1 -1
  138. package/dist/collection/components/atoms/modal-body/modal-body.component.js +1 -1
  139. package/dist/collection/components/atoms/modal-container/modal-container.component.js +1 -1
  140. package/dist/collection/components/atoms/modal-footer/modal-footer.component.js +1 -1
  141. package/dist/collection/components/atoms/modal-header/modal-header.component.js +1 -1
  142. package/dist/collection/components/atoms/navigation-title/navigation-title.component.js +1 -1
  143. package/dist/collection/components/atoms/pagination-item/pagination-item.component.js +1 -1
  144. package/dist/collection/components/atoms/portal/portal.component.js +1 -1
  145. package/dist/collection/components/atoms/radio/radio.component.css +1 -1
  146. package/dist/collection/components/atoms/radio/radio.component.js +5 -5
  147. package/dist/collection/components/atoms/radio/radio.component.js.map +1 -1
  148. package/dist/collection/components/atoms/segment-container/segment-container.component.js +1 -1
  149. package/dist/collection/components/atoms/segment-item/segment-item.component.js +1 -1
  150. package/dist/collection/components/atoms/slider-indicator/slider-indicator.component.js +1 -1
  151. package/dist/collection/components/atoms/status/status.component.js +2 -2
  152. package/dist/collection/components/atoms/stepper-item/stepper-item.component.js +1 -1
  153. package/dist/collection/components/atoms/stepper-line/stepper-line.component.js +1 -1
  154. package/dist/collection/components/atoms/tab-group/tab-group.component.js +1 -1
  155. package/dist/collection/components/atoms/tab-item/tab-item.component.js +1 -1
  156. package/dist/collection/components/atoms/table-container/table-container.component.js +1 -1
  157. package/dist/collection/components/atoms/toast-container/toast-container.component.js +1 -1
  158. package/dist/collection/components/atoms/toggle/toggle.component.css +1 -0
  159. package/dist/collection/components/atoms/toggle/toggle.component.js +321 -0
  160. package/dist/collection/components/atoms/toggle/toggle.component.js.map +1 -0
  161. package/dist/collection/components/atoms/tooltip/tooltip.component.js +4 -4
  162. package/dist/collection/components/molecules/accordion/accordion.component.js +1 -1
  163. package/dist/collection/components/molecules/attachment/attachment.component.js +4 -4
  164. package/dist/collection/components/molecules/button/button.component.css +1 -1
  165. package/dist/collection/components/molecules/button/button.component.js +4 -4
  166. package/dist/collection/components/molecules/button-group/button-group.component.js +1 -1
  167. package/dist/collection/components/molecules/calendar/calendar.component.js +1 -1
  168. package/dist/collection/components/molecules/content-slider/content-slider.component.js +2 -2
  169. package/dist/collection/components/molecules/cropper/cropper.component.css +1 -1
  170. package/dist/collection/components/molecules/cropper/cropper.component.js +2 -2
  171. package/dist/collection/components/molecules/datepicker/datepicker.component.js +1 -1
  172. package/dist/collection/components/molecules/dropdown/dropdown.component.js +3 -3
  173. package/dist/collection/components/molecules/field/field.component.js +9 -6
  174. package/dist/collection/components/molecules/field/field.component.js.map +1 -1
  175. package/dist/collection/components/molecules/input-error/input-error.component.js +1 -1
  176. package/dist/collection/components/molecules/navigation-item/navigation-item.component.css +1 -1
  177. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js +23 -2
  178. package/dist/collection/components/molecules/navigation-item/navigation-item.component.js.map +1 -1
  179. package/dist/collection/components/molecules/navigation-section/navigation-section.component.js +1 -1
  180. package/dist/collection/components/molecules/pagination/pagination.component.js +1 -1
  181. package/dist/collection/components/molecules/profile/profile.component.js +1 -1
  182. package/dist/collection/components/molecules/select/select.component.js +1 -1
  183. package/dist/collection/components/molecules/stepper/stepper.component.js +1 -1
  184. package/dist/collection/components/molecules/table-cell/table-cell.component.js +1 -1
  185. package/dist/collection/components/molecules/table-footer/table-footer.component.js +1 -1
  186. package/dist/collection/components/molecules/table-row/table-row.component.js +2 -2
  187. package/dist/collection/components/molecules/toast/toast.component.js +1 -1
  188. package/dist/collection/components/organisms/navbar/navbar.component.js +1 -1
  189. package/dist/collection/components/organisms/table/table.component.css +1 -1
  190. package/dist/collection/components/organisms/table/table.component.js +13 -16
  191. package/dist/collection/components/organisms/table/table.component.js.map +1 -1
  192. package/dist/collection/tailwind/theme/shadows.js +2 -1
  193. package/dist/collection/tailwind/theme/shadows.js.map +1 -1
  194. package/dist/components/button.component.js +5 -5
  195. package/dist/components/button.component.js.map +1 -1
  196. package/dist/components/calendar.component.js +1 -1
  197. package/dist/components/checkbox.component.js +134 -0
  198. package/dist/components/checkbox.component.js.map +1 -0
  199. package/dist/components/divider.component.js +1 -1
  200. package/dist/components/drawer-body.component.js +1 -1
  201. package/dist/components/drawer-container.component.js +1 -1
  202. package/dist/components/drawer-header.component.js +1 -1
  203. package/dist/components/dropdown-menu-container.component.js +2 -2
  204. package/dist/components/dropdown-menu-item.component.js +12 -6
  205. package/dist/components/dropdown-menu-item.component.js.map +1 -1
  206. package/dist/components/dropdown.component.js +3 -3
  207. package/dist/components/field.component.js +9 -6
  208. package/dist/components/field.component.js.map +1 -1
  209. package/dist/components/floating-menu-container.component.js +1 -1
  210. package/dist/components/floating-menu-item.component.js +1 -1
  211. package/dist/components/helper.component.js +1 -1
  212. package/dist/components/index.js +2 -1
  213. package/dist/components/index.js.map +1 -1
  214. package/dist/components/input-error.component.js +1 -1
  215. package/dist/components/label.component.js +2 -2
  216. package/dist/components/modal-body.component.js +1 -1
  217. package/dist/components/modal-container.component.js +1 -1
  218. package/dist/components/modal-footer.component.js +1 -1
  219. package/dist/components/modal-header.component.js +1 -1
  220. package/dist/components/navigation-title.component.js +1 -1
  221. package/dist/components/nonce.js +15 -0
  222. package/dist/components/nonce.js.map +1 -0
  223. package/dist/components/p-accordion.js +1 -1
  224. package/dist/components/p-attachment.js +4 -4
  225. package/dist/components/p-button-group.js +1 -1
  226. package/dist/components/p-checkbox.d.ts +11 -0
  227. package/dist/components/p-checkbox.js +8 -0
  228. package/dist/components/p-checkbox.js.map +1 -0
  229. package/dist/components/p-content-slider.js +2 -2
  230. package/dist/components/p-counter.js +1 -1
  231. package/dist/components/p-cropper.js +3 -3
  232. package/dist/components/p-cropper.js.map +1 -1
  233. package/dist/components/p-datepicker.js +1 -1
  234. package/dist/components/p-iban-icon.js +1 -1
  235. package/dist/components/p-info-panel.js +1 -1
  236. package/dist/components/p-layout.js +1 -1
  237. package/dist/components/p-navbar.js +1 -1
  238. package/dist/components/p-navigation-item.js +15 -7
  239. package/dist/components/p-navigation-item.js.map +1 -1
  240. package/dist/components/p-navigation-section.js +1 -1
  241. package/dist/components/p-profile.js +1 -1
  242. package/dist/components/p-radio.js +7 -18
  243. package/dist/components/p-radio.js.map +1 -1
  244. package/dist/components/p-select.js +11 -5
  245. package/dist/components/p-select.js.map +1 -1
  246. package/dist/components/p-status.js +2 -2
  247. package/dist/components/p-stepper-item.js +1 -1
  248. package/dist/components/p-stepper.js +1 -1
  249. package/dist/components/p-tab-group.js +1 -1
  250. package/dist/components/p-tab-item.js +1 -1
  251. package/dist/components/p-table.js +22 -19
  252. package/dist/components/p-table.js.map +1 -1
  253. package/dist/components/p-toast-container.js +1 -1
  254. package/dist/components/p-toast.js +1 -1
  255. package/dist/components/p-toggle.d.ts +11 -0
  256. package/dist/components/p-toggle.js +169 -0
  257. package/dist/components/p-toggle.js.map +1 -0
  258. package/dist/components/page-size-select.component.js +8 -2
  259. package/dist/components/page-size-select.component.js.map +1 -1
  260. package/dist/components/pagination-item.component.js +1 -1
  261. package/dist/components/pagination.component.js +1 -1
  262. package/dist/components/portal.component.js +1 -1
  263. package/dist/components/segment-container.component.js +1 -1
  264. package/dist/components/segment-item.component.js +1 -1
  265. package/dist/components/slider-indicator.component.js +1 -1
  266. package/dist/components/stepper-line.component.js +1 -1
  267. package/dist/components/table-cell.component.js +1 -1
  268. package/dist/components/table-container.component.js +1 -1
  269. package/dist/components/table-footer.component.js +9 -3
  270. package/dist/components/table-footer.component.js.map +1 -1
  271. package/dist/components/table-row.component.js +2 -2
  272. package/dist/components/tooltip.component.js +4 -4
  273. package/dist/esm/index-2ef94580.js +16 -4
  274. package/dist/esm/index.js +2 -1
  275. package/dist/esm/index.js.map +1 -1
  276. package/dist/esm/loader.js +1 -1
  277. package/dist/esm/nonce-a9254eb4.js +15 -0
  278. package/dist/esm/nonce-a9254eb4.js.map +1 -0
  279. package/dist/esm/p-accordion.entry.js +1 -1
  280. package/dist/esm/p-attachment.entry.js +4 -4
  281. package/dist/esm/p-button-group.entry.js +1 -1
  282. package/dist/esm/p-button_3.entry.js +440 -0
  283. package/dist/esm/p-button_3.entry.js.map +1 -0
  284. package/dist/esm/p-calendar.entry.js +1 -1
  285. package/dist/esm/p-checkbox_3.entry.js +438 -0
  286. package/dist/esm/p-checkbox_3.entry.js.map +1 -0
  287. package/dist/esm/p-content-slider.entry.js +2 -2
  288. package/dist/esm/p-counter.entry.js +1 -1
  289. package/dist/esm/p-cropper.entry.js +3 -3
  290. package/dist/esm/p-cropper.entry.js.map +1 -1
  291. package/dist/esm/p-datepicker.entry.js +1 -1
  292. package/dist/esm/p-divider.entry.js +1 -1
  293. package/dist/esm/p-drawer-body_3.entry.js +3 -3
  294. package/dist/esm/p-dropdown-menu-container.entry.js +2 -2
  295. package/dist/esm/p-field_3.entry.js +310 -0
  296. package/dist/esm/p-field_3.entry.js.map +1 -0
  297. package/dist/esm/p-floating-menu-container_8.entry.js +7 -7
  298. package/dist/esm/p-iban-icon.entry.js +1 -1
  299. package/dist/esm/p-info-panel.entry.js +1 -1
  300. package/dist/esm/p-input-error.entry.js +1 -1
  301. package/dist/esm/p-label_3.entry.js +4 -4
  302. package/dist/esm/p-layout.entry.js +1 -1
  303. package/dist/esm/p-modal-body_4.entry.js +4 -4
  304. package/dist/esm/p-navbar.entry.js +1 -1
  305. package/dist/esm/p-navigation-item.entry.js +4 -3
  306. package/dist/esm/p-navigation-item.entry.js.map +1 -1
  307. package/dist/esm/p-navigation-section.entry.js +1 -1
  308. package/dist/esm/p-navigation-title.entry.js +1 -1
  309. package/dist/esm/p-page-size-select_3.entry.js +2 -2
  310. package/dist/esm/p-portal_2.entry.js +228 -0
  311. package/dist/esm/p-portal_2.entry.js.map +1 -0
  312. package/dist/esm/p-profile.entry.js +1 -1
  313. package/dist/esm/p-radio.entry.js +7 -18
  314. package/dist/esm/p-radio.entry.js.map +1 -1
  315. package/dist/esm/p-select.entry.js +1 -1
  316. package/dist/esm/p-slider-indicator.entry.js +1 -1
  317. package/dist/esm/p-status.entry.js +2 -2
  318. package/dist/esm/p-stepper-item.entry.js +1 -1
  319. package/dist/esm/p-stepper-line.entry.js +1 -1
  320. package/dist/esm/p-stepper.entry.js +1 -1
  321. package/dist/esm/p-tab-group.entry.js +1 -1
  322. package/dist/esm/p-tab-item.entry.js +1 -1
  323. package/dist/esm/p-table.entry.js +15 -17
  324. package/dist/esm/p-table.entry.js.map +1 -1
  325. package/dist/esm/p-toast-container.entry.js +1 -1
  326. package/dist/esm/p-toast.entry.js +1 -1
  327. package/dist/esm/p-toggle.entry.js +144 -0
  328. package/dist/esm/p-toggle.entry.js.map +1 -0
  329. package/dist/esm/paperless.js +1 -1
  330. package/dist/index.html +1 -1
  331. package/dist/paperless/index.esm.js +1 -1
  332. package/dist/paperless/index.esm.js.map +1 -1
  333. package/dist/paperless/{p-d26ee54b.entry.js → p-036bb6f4.entry.js} +2 -2
  334. package/dist/paperless/p-0413fcd0.entry.js +2 -0
  335. package/dist/paperless/p-0413fcd0.entry.js.map +1 -0
  336. package/dist/paperless/p-0bbd4d1c.entry.js +2 -0
  337. package/dist/paperless/p-0bbd4d1c.entry.js.map +1 -0
  338. package/dist/paperless/{p-8b28c5be.entry.js → p-0c040d86.entry.js} +2 -2
  339. package/dist/paperless/{p-46cf79b4.entry.js → p-0e1935d5.entry.js} +2 -2
  340. package/dist/paperless/p-14e63599.entry.js +2 -0
  341. package/dist/paperless/{p-716a92ae.entry.js → p-1b5ec2b1.entry.js} +2 -2
  342. package/dist/{build/p-5f54e4b8.entry.js → paperless/p-1ed4a75e.entry.js} +3 -3
  343. package/dist/paperless/{p-5f54e4b8.entry.js.map → p-1ed4a75e.entry.js.map} +1 -1
  344. package/dist/{build/p-9f191ebc.entry.js → paperless/p-214a2978.entry.js} +2 -2
  345. package/dist/{build/p-e9ddf7b0.entry.js → paperless/p-2bd123f4.entry.js} +2 -2
  346. package/dist/{build/p-8b38f27d.entry.js → paperless/p-3a428a06.entry.js} +2 -2
  347. package/dist/paperless/{p-276d2804.entry.js → p-3b5242e9.entry.js} +2 -2
  348. package/dist/paperless/{p-8b3b5d3b.entry.js → p-3e393301.entry.js} +2 -2
  349. package/dist/paperless/{p-d31d6714.entry.js → p-46362798.entry.js} +2 -2
  350. package/dist/paperless/{p-1ea8012a.entry.js → p-48efb6e4.entry.js} +2 -2
  351. package/dist/{build/p-7ef827d5.entry.js → paperless/p-50134fa1.entry.js} +2 -2
  352. package/dist/paperless/{p-b27bbec2.entry.js → p-62843ca0.entry.js} +2 -2
  353. package/dist/paperless/{p-5c6050aa.entry.js → p-638d2138.entry.js} +2 -2
  354. package/dist/{build/p-e102e82d.entry.js → paperless/p-65d9a61f.entry.js} +2 -2
  355. package/dist/paperless/p-6d8852ca.entry.js +2 -0
  356. package/dist/paperless/p-958f3c09.entry.js +2 -0
  357. package/dist/paperless/p-958f3c09.entry.js.map +1 -0
  358. package/dist/paperless/{p-2f821184.entry.js → p-a56474ea.entry.js} +2 -2
  359. package/dist/paperless/{p-68ae68c8.entry.js → p-a5934232.entry.js} +2 -2
  360. package/dist/paperless/p-af468e9f.entry.js +2 -0
  361. package/dist/paperless/p-af468e9f.entry.js.map +1 -0
  362. package/dist/paperless/p-bf261165.entry.js +2 -0
  363. package/dist/{build/p-db4ea9ce.entry.js → paperless/p-c3ba61ac.entry.js} +2 -2
  364. package/dist/paperless/p-c605a1c1.js +2 -0
  365. package/dist/paperless/p-c605a1c1.js.map +1 -0
  366. package/dist/paperless/p-c8e79e30.entry.js +2 -0
  367. package/dist/paperless/{p-00534c3c.entry.js → p-cc3445fc.entry.js} +2 -2
  368. package/dist/{build/p-c6a042f7.entry.js → paperless/p-cfe6ec9a.entry.js} +2 -2
  369. package/dist/{build/p-0ffb8f53.entry.js → paperless/p-d044f441.entry.js} +2 -2
  370. package/dist/paperless/p-d6ca5bce.entry.js +2 -0
  371. package/dist/paperless/p-d6ca5bce.entry.js.map +1 -0
  372. package/dist/paperless/{p-117de4a8.entry.js → p-d70b3539.entry.js} +2 -2
  373. package/dist/paperless/p-d8eb3b7b.entry.js +2 -0
  374. package/dist/paperless/p-d8eb3b7b.entry.js.map +1 -0
  375. package/dist/paperless/{p-e9a323f2.entry.js → p-d9d8c17c.entry.js} +2 -2
  376. package/dist/paperless/{p-57fc0eb5.entry.js → p-d9fae6bd.entry.js} +2 -2
  377. package/dist/paperless/p-dfce711d.entry.js +2 -0
  378. package/dist/paperless/p-dfce711d.entry.js.map +1 -0
  379. package/dist/paperless/p-ea577bae.entry.js +2 -0
  380. package/dist/paperless/p-ea577bae.entry.js.map +1 -0
  381. package/dist/paperless/{p-b26d5130.entry.js → p-eec56c71.entry.js} +2 -2
  382. package/dist/paperless/{p-448b6640.entry.js → p-f3d0ea94.entry.js} +2 -2
  383. package/dist/paperless/{p-955d149f.entry.js → p-f40f89a7.entry.js} +2 -2
  384. package/dist/paperless/{p-c6fa153f.entry.js → p-fd53acd3.entry.js} +2 -2
  385. package/dist/paperless/paperless.css +1 -1
  386. package/dist/paperless/paperless.esm.js +1 -1
  387. package/dist/paperless/paperless.esm.js.map +1 -1
  388. package/dist/style/paperless.scss +0 -2
  389. package/dist/sw.js +1 -1
  390. package/dist/sw.js.map +1 -1
  391. package/dist/tailwind/theme/shadows.ts +2 -1
  392. package/dist/types/components/atoms/checkbox/checkbox.component.d.ts +42 -0
  393. package/dist/types/components/atoms/toggle/toggle.component.d.ts +42 -0
  394. package/dist/types/components/molecules/field/field.component.d.ts +2 -1
  395. package/dist/types/components/molecules/navigation-item/navigation-item.component.d.ts +4 -0
  396. package/dist/types/components/organisms/table/table.component.d.ts +0 -1
  397. package/dist/types/components.d.ts +194 -0
  398. package/dist/types/tailwind/theme/shadows.d.ts +1 -0
  399. package/hydrate/index.js +393 -122
  400. package/hydrate/index.mjs +393 -122
  401. package/package.json +1 -1
  402. package/dist/build/p-17457a9a.entry.js +0 -2
  403. package/dist/build/p-2beae871.entry.js +0 -2
  404. package/dist/build/p-5021f212.entry.js +0 -2
  405. package/dist/build/p-5021f212.entry.js.map +0 -1
  406. package/dist/build/p-8f4ccbe0.entry.js +0 -2
  407. package/dist/build/p-a2ff0942.entry.js +0 -2
  408. package/dist/build/p-a2ff0942.entry.js.map +0 -1
  409. package/dist/build/p-b8a88966.css +0 -1
  410. package/dist/build/p-c8616c4a.js +0 -2
  411. package/dist/build/p-d12bb2d3.entry.js +0 -2
  412. package/dist/build/p-d12bb2d3.entry.js.map +0 -1
  413. package/dist/build/p-ddde168c.entry.js +0 -2
  414. package/dist/build/p-e7bfc9c0.entry.js +0 -2
  415. package/dist/build/p-e7bfc9c0.entry.js.map +0 -1
  416. package/dist/build/p-fb0087cc.entry.js +0 -2
  417. package/dist/build/p-fb0087cc.entry.js.map +0 -1
  418. package/dist/cjs/p-button_8.cjs.entry.js +0 -972
  419. package/dist/cjs/p-button_8.cjs.entry.js.map +0 -1
  420. package/dist/cjs/p-dropdown_2.cjs.entry.js +0 -344
  421. package/dist/cjs/p-dropdown_2.cjs.entry.js.map +0 -1
  422. package/dist/esm/p-button_8.entry.js +0 -961
  423. package/dist/esm/p-button_8.entry.js.map +0 -1
  424. package/dist/esm/p-dropdown_2.entry.js +0 -339
  425. package/dist/esm/p-dropdown_2.entry.js.map +0 -1
  426. package/dist/paperless/p-17457a9a.entry.js +0 -2
  427. package/dist/paperless/p-2beae871.entry.js +0 -2
  428. package/dist/paperless/p-5021f212.entry.js +0 -2
  429. package/dist/paperless/p-5021f212.entry.js.map +0 -1
  430. package/dist/paperless/p-8f4ccbe0.entry.js +0 -2
  431. package/dist/paperless/p-a2ff0942.entry.js +0 -2
  432. package/dist/paperless/p-a2ff0942.entry.js.map +0 -1
  433. package/dist/paperless/p-d12bb2d3.entry.js +0 -2
  434. package/dist/paperless/p-d12bb2d3.entry.js.map +0 -1
  435. package/dist/paperless/p-ddde168c.entry.js +0 -2
  436. package/dist/paperless/p-e7bfc9c0.entry.js +0 -2
  437. package/dist/paperless/p-e7bfc9c0.entry.js.map +0 -1
  438. package/dist/paperless/p-fb0087cc.entry.js +0 -2
  439. package/dist/paperless/p-fb0087cc.entry.js.map +0 -1
  440. package/dist/style/form/_checkbox.scss +0 -135
  441. package/dist/style/form/_input.scss +0 -31
  442. package/dist/style/form/_mixins.scss +0 -140
  443. package/dist/style/form/_radio.scss +0 -58
  444. package/dist/style/form/_range.scss +0 -20
  445. package/dist/style/form/_textarea.scss +0 -31
  446. package/dist/style/form/index.scss +0 -5
  447. /package/dist/build/{p-d26ee54b.entry.js.map → p-036bb6f4.entry.js.map} +0 -0
  448. /package/dist/build/{p-8b28c5be.entry.js.map → p-0c040d86.entry.js.map} +0 -0
  449. /package/dist/build/{p-46cf79b4.entry.js.map → p-0e1935d5.entry.js.map} +0 -0
  450. /package/dist/build/{p-2beae871.entry.js.map → p-14e63599.entry.js.map} +0 -0
  451. /package/dist/build/{p-716a92ae.entry.js.map → p-1b5ec2b1.entry.js.map} +0 -0
  452. /package/dist/build/{p-9f191ebc.entry.js.map → p-214a2978.entry.js.map} +0 -0
  453. /package/dist/build/{p-e9ddf7b0.entry.js.map → p-2bd123f4.entry.js.map} +0 -0
  454. /package/dist/build/{p-8b38f27d.entry.js.map → p-3a428a06.entry.js.map} +0 -0
  455. /package/dist/build/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
  456. /package/dist/build/{p-8b3b5d3b.entry.js.map → p-3e393301.entry.js.map} +0 -0
  457. /package/dist/build/{p-d31d6714.entry.js.map → p-46362798.entry.js.map} +0 -0
  458. /package/dist/build/{p-1ea8012a.entry.js.map → p-48efb6e4.entry.js.map} +0 -0
  459. /package/dist/build/{p-7ef827d5.entry.js.map → p-50134fa1.entry.js.map} +0 -0
  460. /package/dist/build/{p-b27bbec2.entry.js.map → p-62843ca0.entry.js.map} +0 -0
  461. /package/dist/build/{p-5c6050aa.entry.js.map → p-638d2138.entry.js.map} +0 -0
  462. /package/dist/build/{p-e102e82d.entry.js.map → p-65d9a61f.entry.js.map} +0 -0
  463. /package/dist/build/{p-ddde168c.entry.js.map → p-6d8852ca.entry.js.map} +0 -0
  464. /package/dist/build/{p-2f821184.entry.js.map → p-a56474ea.entry.js.map} +0 -0
  465. /package/dist/build/{p-68ae68c8.entry.js.map → p-a5934232.entry.js.map} +0 -0
  466. /package/dist/build/{p-17457a9a.entry.js.map → p-bf261165.entry.js.map} +0 -0
  467. /package/dist/build/{p-db4ea9ce.entry.js.map → p-c3ba61ac.entry.js.map} +0 -0
  468. /package/dist/build/{p-8f4ccbe0.entry.js.map → p-c8e79e30.entry.js.map} +0 -0
  469. /package/dist/build/{p-00534c3c.entry.js.map → p-cc3445fc.entry.js.map} +0 -0
  470. /package/dist/build/{p-c6a042f7.entry.js.map → p-cfe6ec9a.entry.js.map} +0 -0
  471. /package/dist/build/{p-0ffb8f53.entry.js.map → p-d044f441.entry.js.map} +0 -0
  472. /package/dist/build/{p-117de4a8.entry.js.map → p-d70b3539.entry.js.map} +0 -0
  473. /package/dist/build/{p-e9a323f2.entry.js.map → p-d9d8c17c.entry.js.map} +0 -0
  474. /package/dist/build/{p-57fc0eb5.entry.js.map → p-d9fae6bd.entry.js.map} +0 -0
  475. /package/dist/build/{p-b26d5130.entry.js.map → p-eec56c71.entry.js.map} +0 -0
  476. /package/dist/build/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
  477. /package/dist/build/{p-955d149f.entry.js.map → p-f40f89a7.entry.js.map} +0 -0
  478. /package/dist/build/{p-c6fa153f.entry.js.map → p-fd53acd3.entry.js.map} +0 -0
  479. /package/dist/paperless/{p-d26ee54b.entry.js.map → p-036bb6f4.entry.js.map} +0 -0
  480. /package/dist/paperless/{p-8b28c5be.entry.js.map → p-0c040d86.entry.js.map} +0 -0
  481. /package/dist/paperless/{p-46cf79b4.entry.js.map → p-0e1935d5.entry.js.map} +0 -0
  482. /package/dist/paperless/{p-2beae871.entry.js.map → p-14e63599.entry.js.map} +0 -0
  483. /package/dist/paperless/{p-716a92ae.entry.js.map → p-1b5ec2b1.entry.js.map} +0 -0
  484. /package/dist/paperless/{p-9f191ebc.entry.js.map → p-214a2978.entry.js.map} +0 -0
  485. /package/dist/paperless/{p-e9ddf7b0.entry.js.map → p-2bd123f4.entry.js.map} +0 -0
  486. /package/dist/paperless/{p-8b38f27d.entry.js.map → p-3a428a06.entry.js.map} +0 -0
  487. /package/dist/paperless/{p-276d2804.entry.js.map → p-3b5242e9.entry.js.map} +0 -0
  488. /package/dist/paperless/{p-8b3b5d3b.entry.js.map → p-3e393301.entry.js.map} +0 -0
  489. /package/dist/paperless/{p-d31d6714.entry.js.map → p-46362798.entry.js.map} +0 -0
  490. /package/dist/paperless/{p-1ea8012a.entry.js.map → p-48efb6e4.entry.js.map} +0 -0
  491. /package/dist/paperless/{p-7ef827d5.entry.js.map → p-50134fa1.entry.js.map} +0 -0
  492. /package/dist/paperless/{p-b27bbec2.entry.js.map → p-62843ca0.entry.js.map} +0 -0
  493. /package/dist/paperless/{p-5c6050aa.entry.js.map → p-638d2138.entry.js.map} +0 -0
  494. /package/dist/paperless/{p-e102e82d.entry.js.map → p-65d9a61f.entry.js.map} +0 -0
  495. /package/dist/paperless/{p-ddde168c.entry.js.map → p-6d8852ca.entry.js.map} +0 -0
  496. /package/dist/paperless/{p-2f821184.entry.js.map → p-a56474ea.entry.js.map} +0 -0
  497. /package/dist/paperless/{p-68ae68c8.entry.js.map → p-a5934232.entry.js.map} +0 -0
  498. /package/dist/paperless/{p-17457a9a.entry.js.map → p-bf261165.entry.js.map} +0 -0
  499. /package/dist/paperless/{p-db4ea9ce.entry.js.map → p-c3ba61ac.entry.js.map} +0 -0
  500. /package/dist/paperless/{p-8f4ccbe0.entry.js.map → p-c8e79e30.entry.js.map} +0 -0
  501. /package/dist/paperless/{p-00534c3c.entry.js.map → p-cc3445fc.entry.js.map} +0 -0
  502. /package/dist/paperless/{p-c6a042f7.entry.js.map → p-cfe6ec9a.entry.js.map} +0 -0
  503. /package/dist/paperless/{p-0ffb8f53.entry.js.map → p-d044f441.entry.js.map} +0 -0
  504. /package/dist/paperless/{p-117de4a8.entry.js.map → p-d70b3539.entry.js.map} +0 -0
  505. /package/dist/paperless/{p-e9a323f2.entry.js.map → p-d9d8c17c.entry.js.map} +0 -0
  506. /package/dist/paperless/{p-57fc0eb5.entry.js.map → p-d9fae6bd.entry.js.map} +0 -0
  507. /package/dist/paperless/{p-b26d5130.entry.js.map → p-eec56c71.entry.js.map} +0 -0
  508. /package/dist/paperless/{p-448b6640.entry.js.map → p-f3d0ea94.entry.js.map} +0 -0
  509. /package/dist/paperless/{p-955d149f.entry.js.map → p-f40f89a7.entry.js.map} +0 -0
  510. /package/dist/paperless/{p-c6fa153f.entry.js.map → p-fd53acd3.entry.js.map} +0 -0
@@ -0,0 +1,134 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { c as cva } from './index2.js';
3
+ import { n as nonce } from './nonce.js';
4
+ import { d as defineCustomElement$1 } from './icon.component.js';
5
+
6
+ const checkboxComponentCss = "*{box-sizing:border-box}.pointer-events-none{pointer-events:none!important}.static{position:static!important}.absolute{position:absolute!important}.relative{position:relative!important}.left-1\\/2{left:50%!important}.top-1\\/2{top:50%!important}.m-0{margin:0!important}.flex{display:flex!important}.hidden{display:none!important}.h-4{height:1rem!important}.h-6{height:1.5rem!important}.w-4{width:1rem!important}.w-6{width:1.5rem!important}.flex-shrink-0{flex-shrink:0!important}.-translate-x-1\\/2{--tw-translate-x:-50%!important}.-translate-x-1\\/2,.-translate-y-1\\/2{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.-translate-y-1\\/2{--tw-translate-y:-50%!important}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.appearance-none{appearance:none!important}.items-center{align-items:center!important}.justify-start{justify-content:flex-start!important}.gap-2{gap:.5rem!important}.rounded{border-radius:.25rem!important}.rounded-lg{border-radius:.5rem!important}.border{border-width:1px!important}.border-solid{border-style:solid!important}.border-black-teal-100{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.border-black-teal-50{--tw-border-opacity:1!important;border-color:rgb(230 234 233/var(--tw-border-opacity,1))!important}.bg-white{background-color:rgb(255 255 255/var(--tw-bg-opacity,1))!important}.bg-white,.bg-white-600{--tw-bg-opacity:1!important}.bg-white-600{background-color:rgb(250 250 250/var(--tw-bg-opacity,1))!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-white{--tw-text-opacity:1!important;color:rgb(255 255 255/var(--tw-text-opacity,1))!important}.shadow-1{--tw-shadow:0 1px 1px rgba(0,2,2,.08)!important;--tw-shadow-colored:0 1px 1px var(--tw-shadow-color)!important;box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)!important}.outline-none{outline:2px solid transparent!important;outline-offset:2px!important}.drop-shadow-black-teal-10\\%{--tw-drop-shadow:drop-shadow(0px 1px 0px rgba(3,42,36,.1))!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}.checked\\:border-black-teal\\/20:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:bg-supportive-lilac:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.checked\\:ring-2:checked{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.checked\\:ring-supportive-lilac-100:checked{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.indeterminate\\:border-black-teal\\/20:indeterminate{border-color:rgba(3,42,36,.2)!important}.indeterminate\\:bg-supportive-lilac:indeterminate{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.indeterminate\\:ring-2:indeterminate{--tw-ring-offset-shadow:var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color)!important;--tw-ring-shadow:var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color)!important;box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow,0 0 #0000)!important}.indeterminate\\:ring-supportive-lilac-100:indeterminate{--tw-ring-opacity:1!important;--tw-ring-color:rgb(246 239 255/var(--tw-ring-opacity,1))!important}.hover\\:border-black-teal-100:hover{--tw-border-opacity:1!important;border-color:rgb(205 212 211/var(--tw-border-opacity,1))!important}.hover\\:bg-supportive-lilac-100:hover{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.checked\\:hover\\:border-black-teal\\/20:hover:checked{border-color:rgba(3,42,36,.2)!important}.checked\\:hover\\:bg-supportive-lilac:hover:checked{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.indeterminate\\:hover\\:border-black-teal\\/20:hover:indeterminate{border-color:rgba(3,42,36,.2)!important}.indeterminate\\:hover\\:bg-supportive-lilac:hover:indeterminate{--tw-bg-opacity:1!important;background-color:rgb(209 174 255/var(--tw-bg-opacity,1))!important}.peer:checked~.peer-checked\\:flex{display:flex!important}.peer:indeterminate~.peer-indeterminate\\:flex{display:flex!important}";
7
+ const PCheckboxStyle0 = checkboxComponentCss;
8
+
9
+ const checkbox = cva([
10
+ 'peer appearance-none m-0 outline-none flex-shrink-0',
11
+ 'border border-inset border-solid ',
12
+ ], {
13
+ variants: {
14
+ size: {
15
+ sm: 'rounded w-4 h-4',
16
+ base: 'rounded-lg w-6 h-6',
17
+ },
18
+ disabled: {
19
+ false: [
20
+ 'cursor-pointer shadow-1',
21
+ 'bg-white border-black-teal-100',
22
+ 'hover:bg-supportivce-lilac-100 hover:border-black-teal-100',
23
+ 'checked:bg-supportive-lilac checked:border-black-teal/20',
24
+ 'checked:ring-2 checked:ring-supportive-lilac-100',
25
+ 'checked:hover:bg-supportive-lilac checked:hover:border-black-teal/20',
26
+ 'indeterminate:bg-supportive-lilac indeterminate:border-black-teal/20',
27
+ 'indeterminate:ring-2 indeterminate:ring-supportive-lilac-100',
28
+ 'indeterminate:hover:bg-supportive-lilac indeterminate:hover:border-black-teal/20',
29
+ ],
30
+ true: 'bg-white-600 border-black-teal-50 cursor-not-allowed ',
31
+ },
32
+ },
33
+ compoundVariants: [
34
+ {
35
+ disabled: false,
36
+ class: [
37
+ 'cursor-pointer shadow-1',
38
+ 'bg-white border-black-teal-100',
39
+ 'hover:bg-supportive-lilac-100 hover:border-black-teal-100',
40
+ ],
41
+ },
42
+ ],
43
+ });
44
+ const icon = cva([
45
+ 'hidden peer-indeterminate:flex peer-checked:flex',
46
+ 'absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 pointer-events-none',
47
+ ], {
48
+ variants: {
49
+ disabled: {
50
+ false: 'text-white',
51
+ true: 'text-black-teal-200',
52
+ },
53
+ },
54
+ });
55
+ const Checkbox = /*@__PURE__*/ proxyCustomElement(class Checkbox extends HTMLElement {
56
+ constructor() {
57
+ super();
58
+ this.__registerHost();
59
+ this.checkedChange = createEvent(this, "checkedChange", 7);
60
+ this.indeterminateChange = createEvent(this, "indeterminateChange", 7);
61
+ this.checked = undefined;
62
+ this.indeterminate = undefined;
63
+ this.size = 'base';
64
+ this.disabled = false;
65
+ this.required = true;
66
+ this.id = undefined;
67
+ this.name = undefined;
68
+ this._nonce = nonce(5);
69
+ }
70
+ /**
71
+ * Event whenever the checked changes
72
+ */
73
+ checkedChange;
74
+ /**
75
+ * Event whenever the indeterminate changes
76
+ */
77
+ indeterminateChange;
78
+ render() {
79
+ return (h(Host, { key: '29712b68566aa174a26cadca7f871c172b521097', class: 'p-checkbox' }, h("label", { key: 'd36bd4cc81188b83d82bc1e851b91410efd67467', htmlFor: this.id ?? this._nonce, class: 'flex items-center justify-start gap-2 text-black-teal' }, h("div", { key: 'afd3b940652f1c275e182617368f17986add44b0', class: 'relative flex flex-shrink-0 items-center' }, h("input", { key: '3bf25b405487ebf4a80228d729eb8c6e545802b5', class: checkbox({
80
+ size: this.size,
81
+ disabled: this.disabled,
82
+ }), type: 'checkbox', id: this.id ?? this._nonce, name: this.name, required: this.required, checked: !!this.checked, indeterminate: this.indeterminate, disabled: this.disabled, onChange: ev => this._onChange(ev) }), h("div", { key: '940a02a1510e94a243c9e6241aa6a5b63d18d7ad', class: icon({
83
+ disabled: this.disabled,
84
+ }) }, h("p-icon", { key: 'db72ee323d02ac27881c0ba89902784a22989cfc', size: this.size, class: 'drop-shadow-black-teal-10%', variant: !!this.indeterminate ? 'minus' : 'checkmark' }))), h("slot", { key: '76e74f54004070d0cbc79d652f07853d638bb942' }))));
85
+ }
86
+ _onChange(ev) {
87
+ if (this.disabled) {
88
+ ev.preventDefault();
89
+ return;
90
+ }
91
+ const checked = ev.target.checked;
92
+ const indeterminate = ev.target.indeterminate;
93
+ if (checked != this.checked) {
94
+ this.checked = checked;
95
+ this.checkedChange.emit(checked);
96
+ }
97
+ if (indeterminate != this.indeterminate) {
98
+ this.indeterminate = indeterminate;
99
+ this.indeterminateChange.emit(indeterminate);
100
+ }
101
+ }
102
+ static get style() { return PCheckboxStyle0; }
103
+ }, [4, "p-checkbox", {
104
+ "checked": [4],
105
+ "indeterminate": [4],
106
+ "size": [1],
107
+ "disabled": [516],
108
+ "required": [516],
109
+ "id": [513],
110
+ "name": [513],
111
+ "_nonce": [32]
112
+ }]);
113
+ function defineCustomElement() {
114
+ if (typeof customElements === "undefined") {
115
+ return;
116
+ }
117
+ const components = ["p-checkbox", "p-icon"];
118
+ components.forEach(tagName => { switch (tagName) {
119
+ case "p-checkbox":
120
+ if (!customElements.get(tagName)) {
121
+ customElements.define(tagName, Checkbox);
122
+ }
123
+ break;
124
+ case "p-icon":
125
+ if (!customElements.get(tagName)) {
126
+ defineCustomElement$1();
127
+ }
128
+ break;
129
+ } });
130
+ }
131
+
132
+ export { Checkbox as C, defineCustomElement as d };
133
+
134
+ //# sourceMappingURL=checkbox.component.js.map
@@ -0,0 +1 @@
1
+ {"file":"checkbox.component.js","mappings":";;;;;AAAA,MAAM,oBAAoB,GAAG,klKAAklK,CAAC;AAChnK,wBAAe,oBAAoB;;ACWnC,MAAM,QAAQ,GAAG,GAAG,CACnB;IACC,qDAAqD;IACrD,mCAAmC;CACnC,EACD;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,EAAE,EAAE,iBAAiB;YACrB,IAAI,EAAE,oBAAoB;SAC1B;QACD,QAAQ,EAAE;YACT,KAAK,EAAE;gBACN,yBAAyB;gBACzB,gCAAgC;gBAChC,4DAA4D;gBAC5D,0DAA0D;gBAC1D,kDAAkD;gBAClD,sEAAsE;gBACtE,sEAAsE;gBACtE,8DAA8D;gBAC9D,kFAAkF;aAClF;YACD,IAAI,EAAE,uDAAuD;SAC7D;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE;gBACN,yBAAyB;gBACzB,gCAAgC;gBAChC,2DAA2D;aAC3D;SACD;KACD;CACD,CACD,CAAC;AAEF,MAAM,IAAI,GAAG,GAAG,CACf;IACC,kDAAkD;IAClD,2FAA2F;CAC3F,EACD;IACC,QAAQ,EAAE;QACT,QAAQ,EAAE;YACT,KAAK,EAAE,YAAY;YACnB,IAAI,EAAE,qBAAqB;SAC3B;KACD;CACD,CACD,CAAC;MAMW,QAAQ;;;;;;;;oBAcU,MAAM;wBAKS,KAAK;wBAKL,IAAI;;;sBAqBvB,KAAK,CAAC,CAAC,CAAC;;;;;IANzB,aAAa,CAAwB;;;;IAIrC,mBAAmB,CAAwB;IAIpD,MAAM;QACL,QACC,EAAC,IAAI,qDAAC,KAAK,EAAC,YAAY,IACv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,IAAI,CAAC,OAAO,CAAC,CAAC;SACjC;QAED,IAAI,aAAa,IAAI,IAAI,CAAC,aAAa,EAAE;YACxC,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;YACnC,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;SAC7C;KACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/atoms/checkbox/checkbox.component.css?tag=p-checkbox","src/components/atoms/checkbox/checkbox.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tEvent,\n\tEventEmitter,\n\tHost,\n\tProp,\n\tState,\n\th,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { nonce } from '../../../utils/nonce';\n\nconst checkbox = cva(\n\t[\n\t\t'peer appearance-none m-0 outline-none flex-shrink-0',\n\t\t'border border-inset border-solid ',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'rounded w-4 h-4',\n\t\t\t\tbase: 'rounded-lg w-6 h-6',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: [\n\t\t\t\t\t'cursor-pointer shadow-1',\n\t\t\t\t\t'bg-white border-black-teal-100',\n\t\t\t\t\t'hover:bg-supportivce-lilac-100 hover:border-black-teal-100',\n\t\t\t\t\t'checked:bg-supportive-lilac checked:border-black-teal/20',\n\t\t\t\t\t'checked:ring-2 checked:ring-supportive-lilac-100',\n\t\t\t\t\t'checked:hover:bg-supportive-lilac checked:hover:border-black-teal/20',\n\t\t\t\t\t'indeterminate:bg-supportive-lilac indeterminate:border-black-teal/20',\n\t\t\t\t\t'indeterminate:ring-2 indeterminate:ring-supportive-lilac-100',\n\t\t\t\t\t'indeterminate:hover:bg-supportive-lilac indeterminate:hover:border-black-teal/20',\n\t\t\t\t],\n\t\t\t\ttrue: 'bg-white-600 border-black-teal-50 cursor-not-allowed ',\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: [\n\t\t\t\t\t'cursor-pointer shadow-1',\n\t\t\t\t\t'bg-white border-black-teal-100',\n\t\t\t\t\t'hover:bg-supportive-lilac-100 hover:border-black-teal-100',\n\t\t\t\t],\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst icon = cva(\n\t[\n\t\t'hidden peer-indeterminate:flex peer-checked:flex',\n\t\t'absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2 pointer-events-none',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'text-white',\n\t\t\t\ttrue: 'text-black-teal-200',\n\t\t\t},\n\t\t},\n\t}\n);\n\n@Component({\n\ttag: 'p-checkbox',\n\tstyleUrl: 'checkbox.component.css',\n})\nexport class Checkbox {\n\t/**\n\t * Wether the checkbox is checked\n\t */\n\t@Prop() checked: boolean;\n\n\t/**\n\t * Wether the checkbox is in indeterminate state\n\t */\n\t@Prop() indeterminate: boolean;\n\n\t/**\n\t * The size of the checkbox\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * Wether the checkbox is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the checkbox is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * The id of the checkbox button\n\t */\n\t@Prop({ reflect: true }) id: string;\n\n\t/**\n\t * The name of the checkbox button\n\t */\n\t@Prop({ reflect: true }) name: string;\n\n\t/**\n\t * Event whenever the checked changes\n\t */\n\t@Event() checkedChange: EventEmitter<boolean>;\n\t/**\n\t * Event whenever the indeterminate changes\n\t */\n\t@Event() indeterminateChange: EventEmitter<boolean>;\n\n\t@State() private _nonce = nonce(5);\n\n\trender() {\n\t\treturn (\n\t\t\t<Host class='p-checkbox'>\n\t\t\t\t<label\n\t\t\t\t\thtmlFor={this.id ?? this._nonce}\n\t\t\t\t\tclass='flex items-center justify-start gap-2 text-black-teal'\n\t\t\t\t>\n\t\t\t\t\t<div class='relative flex flex-shrink-0 items-center'>\n\t\t\t\t\t\t<input\n\t\t\t\t\t\t\tclass={checkbox({\n\t\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\ttype='checkbox'\n\t\t\t\t\t\t\tid={this.id ?? this._nonce}\n\t\t\t\t\t\t\tname={this.name}\n\t\t\t\t\t\t\trequired={this.required}\n\t\t\t\t\t\t\tchecked={!!this.checked}\n\t\t\t\t\t\t\tindeterminate={this.indeterminate}\n\t\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t\t\tonChange={ev => this._onChange(ev)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t\t<div\n\t\t\t\t\t\t\tclass={icon({\n\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\tsize={this.size}\n\t\t\t\t\t\t\t\tclass='drop-shadow-black-teal-10%'\n\t\t\t\t\t\t\t\tvariant={!!this.indeterminate ? 'minus' : 'checkmark'}\n\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t</label>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\tprivate _onChange(ev: Event) {\n\t\tif (this.disabled) {\n\t\t\tev.preventDefault();\n\t\t\treturn;\n\t\t}\n\n\t\tconst checked = (ev.target as HTMLInputElement).checked;\n\t\tconst indeterminate = (ev.target as HTMLInputElement).indeterminate;\n\n\t\tif (checked != this.checked) {\n\t\t\tthis.checked = checked;\n\t\t\tthis.checkedChange.emit(checked);\n\t\t}\n\n\t\tif (indeterminate != this.indeterminate) {\n\t\t\tthis.indeterminate = indeterminate;\n\t\t\tthis.indeterminateChange.emit(indeterminate);\n\t\t}\n\t}\n}\n"],"version":3}
@@ -13,7 +13,7 @@ const Divider = /*@__PURE__*/ proxyCustomElement(class Divider extends HTMLEleme
13
13
  get _el() { return this; }
14
14
  render() {
15
15
  const hasSlotted = !!this._el.innerHTML?.length;
16
- return (h(Host, { key: 'af8bf3be91d1396b166c80b6aed1872263049229', class: 'p-divider' }, h("div", { key: 'c1ea847f3e4e6188887adcd7b066f55f410488e2', class: 'content' }, h("div", { key: '76fdc38127326969263f5bf5ffab3223a18c3c13', class: `flex items-center ${hasSlotted && 'px-2'} text-xs font-semibold uppercase text-storm-light` }, h("slot", { key: '602c0892e341392df8545f13d0d5e7dca974d88e' })))));
16
+ return (h(Host, { key: '4e7e3f76c4d8cd9c5752bfb514917368aaf479bc', class: 'p-divider' }, h("div", { key: 'e8b94342c6c8c2f0c52a7ddd7bf49e091e2b2f0d', class: 'content' }, h("div", { key: '2b11bd0b9414b9b5884df6ba113ffed60eeccf1d', class: `flex items-center ${hasSlotted && 'px-2'} text-xs font-semibold uppercase text-storm-light` }, h("slot", { key: '9eb43ae5fc38830a274721c4e29bed49e6da7e0a' })))));
17
17
  }
18
18
  static get style() { return PDividerStyle0; }
19
19
  }, [1, "p-divider", {
@@ -11,7 +11,7 @@ const ModalBody = /*@__PURE__*/ proxyCustomElement(class ModalBody extends HTMLE
11
11
  this.variant = 'default';
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: 'a2c133cebe1c94778aa5691294fe47a659755d17', class: `p-drawer-body variant-${this.variant}` }, h("slot", { key: '01102ea3654bc3c814a1a319c40434723fcdb7d4' })));
14
+ return (h(Host, { key: 'b3733a13455dd1ea7cfd813c70b759301aad7ddb', class: `p-drawer-body variant-${this.variant}` }, h("slot", { key: '9cdaffefb9a76d63d402bf5df9a8a1c785ffd932' })));
15
15
  }
16
16
  static get style() { return PDrawerBodyStyle0; }
17
17
  }, [1, "p-drawer-body", {
@@ -10,7 +10,7 @@ const ModalContainer = /*@__PURE__*/ proxyCustomElement(class ModalContainer ext
10
10
  this.closing = false;
11
11
  }
12
12
  render() {
13
- return (h(Host, { key: '1ece7fe8058fe653c61f24c6f06f0df1c0895bfa', class: `p-drawer-container ${this.closing && 'closing'}` }, h("slot", { key: '624bb614ccc4f48d335ceb4da4a574a0e653d47a' })));
13
+ return (h(Host, { key: '8fff9cd196871aa7c5738182e0f24e86b488f0a9', class: `p-drawer-container ${this.closing && 'closing'}` }, h("slot", { key: 'c52ac3f20264e553fd2f9e3429535ab24ecd1eed' })));
14
14
  }
15
15
  static get style() { return PDrawerContainerStyle0; }
16
16
  }, [4, "p-drawer-container", {
@@ -19,7 +19,7 @@ const ModalHeader = /*@__PURE__*/ proxyCustomElement(class ModalHeader extends H
19
19
  */
20
20
  close;
21
21
  render() {
22
- return (h(Host, { key: 'bf0e849843e4678b3309ef0b10ebd8c7ec1274f5', class: 'p-drawer-header' }, this.showClose && (h("p-button", { key: '70e55410f1ce2371d05654aa9fd76d61da53e803', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: () => this.close.emit(), size: 'sm' })), h("slot", { key: '6e827710b5ddbd011e626a2cb2fb301876d50c05' })));
22
+ return (h(Host, { key: 'ac60faaafaa2d0ecb13e0be70848bc623c002b69', class: 'p-drawer-header' }, this.showClose && (h("p-button", { key: 'da636aab294d800a0de03b02fbe63971c6d2a2cf', variant: 'secondary', icon: 'negative', iconOnly: true, onClick: () => this.close.emit(), size: 'sm' })), h("slot", { key: '5aab881dedd79021a2aec11fe875334c561107da' })));
23
23
  }
24
24
  static get style() { return PDrawerHeaderStyle0; }
25
25
  }, [1, "p-drawer-header", {
@@ -47,13 +47,13 @@ const DropdownMenuContainer = /*@__PURE__*/ proxyCustomElement(class DropdownMen
47
47
  : this.scrollable === true
48
48
  ? 'default'
49
49
  : this.scrollable;
50
- return (h(Host, { key: '830d3afed17ee5523990ad2299a03d83458245b8', class: dropdownMenuContainer({
50
+ return (h(Host, { key: 'e549573c5aeddeceb9cf8970ff3e4f1a49416a9e', class: dropdownMenuContainer({
51
51
  class: this.class,
52
52
  fullWidth: this.fullWidth,
53
53
  allowOverflow: this.allowOverflow,
54
54
  scrollable,
55
55
  maxWidth: this.maxWidth,
56
- }) }, h("div", { key: 'c619f2980bdab537242b90dc030c2448df71b795', class: 'flex w-full flex-col gap-[1px]' }, h("slot", { key: 'e56af3999bcb72d27ccd05b51d315c512be5fc98' }))));
56
+ }) }, h("div", { key: '42ac40b2ac896553e130803dbfa849cca34cfb84', class: 'flex w-full flex-col gap-[1px]' }, h("slot", { key: '73fa9c93c564274aaa24910bf7215b23a8d93fe9' }))));
57
57
  }
58
58
  static get style() { return PDropdownMenuContainerStyle0; }
59
59
  }, [4, "p-dropdown-menu-container", {
@@ -1,8 +1,9 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
  import { c as cva } from './index2.js';
3
+ import { d as defineCustomElement$2 } from './checkbox.component.js';
3
4
  import { d as defineCustomElement$1 } from './icon.component.js';
4
5
 
5
- const dropdownMenuItemComponentCss = "*{box-sizing:border-box}.static{position:static!important}.block{display:block!important}.flex{display:flex!important}.h-8{height:2rem!important}.w-full{width:100%!important}.max-w-full{max-width:100%!important}.flex-shrink-0{flex-shrink:0!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.whitespace-nowrap{white-space:nowrap!important}.rounded-lg{border-radius:.5rem!important}.bg-negative-red-100{--tw-bg-opacity:1!important;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))!important}.bg-negative-red-50{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.bg-supportive-lilac-100{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.text-start{text-align:start!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-medium{font-weight:500!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-100{--tw-text-opacity:1!important;color:rgb(255 221 221/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.hover\\:bg-negative-red-50:hover{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.hover\\:bg-supportive-lilac-50:hover{--tw-bg-opacity:1!important;background-color:rgb(250 247 255/var(--tw-bg-opacity,1))!important}.group:hover .group-hover\\:text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}";
6
+ const dropdownMenuItemComponentCss = "*{box-sizing:border-box}.static{position:static!important}.block{display:block!important}.flex{display:flex!important}.h-8{height:2rem!important}.w-full{width:100%!important}.max-w-full{max-width:100%!important}.cursor-not-allowed{cursor:not-allowed!important}.cursor-pointer{cursor:pointer!important}.items-center{align-items:center!important}.gap-2{gap:.5rem!important}.overflow-hidden{overflow:hidden!important}.text-ellipsis{text-overflow:ellipsis!important}.whitespace-nowrap{white-space:nowrap!important}.rounded-lg{border-radius:.5rem!important}.bg-negative-red-100{--tw-bg-opacity:1!important;background-color:rgb(255 221 221/var(--tw-bg-opacity,1))!important}.bg-negative-red-50{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.bg-supportive-lilac-100{--tw-bg-opacity:1!important;background-color:rgb(246 239 255/var(--tw-bg-opacity,1))!important}.px-2{padding-left:.5rem!important;padding-right:.5rem!important}.py-1{padding-bottom:.25rem!important;padding-top:.25rem!important}.text-start{text-align:start!important}.text-base{font-size:1rem!important;line-height:1.5rem!important}.text-sm{font-size:.875rem!important;line-height:1.25rem!important}.font-medium{font-weight:500!important}.text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.text-black-teal-100{--tw-text-opacity:1!important;color:rgb(205 212 211/var(--tw-text-opacity,1))!important}.text-black-teal-200{--tw-text-opacity:1!important;color:rgb(154 170 167/var(--tw-text-opacity,1))!important}.text-black-teal-300{--tw-text-opacity:1!important;color:rgb(104 127 124/var(--tw-text-opacity,1))!important}.text-negative-red{--tw-text-opacity:1!important;color:rgb(230 30 30/var(--tw-text-opacity,1))!important}.text-negative-red-100{--tw-text-opacity:1!important;color:rgb(255 221 221/var(--tw-text-opacity,1))!important}.text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}.hover\\:bg-negative-red-50:hover{--tw-bg-opacity:1!important;background-color:rgb(253 237 237/var(--tw-bg-opacity,1))!important}.hover\\:bg-supportive-lilac-50:hover{--tw-bg-opacity:1!important;background-color:rgb(250 247 255/var(--tw-bg-opacity,1))!important}.group:hover .group-hover\\:text-black-teal{--tw-text-opacity:1!important;color:rgb(3 42 36/var(--tw-text-opacity,1))!important}.group:hover .group-hover\\:text-negative-red-800{--tw-text-opacity:1!important;color:rgb(141 16 16/var(--tw-text-opacity,1))!important}";
6
7
  const PDropdownMenuItemStyle0 = dropdownMenuItemComponentCss;
7
8
 
8
9
  const dropdownMenuItem = cva([
@@ -18,7 +19,7 @@ const dropdownMenuItem = cva([
18
19
  true: null,
19
20
  },
20
21
  disabled: {
21
- false: null,
22
+ false: 'cursor-pointer',
22
23
  true: 'cursor-not-allowed',
23
24
  },
24
25
  enableHover: {
@@ -131,16 +132,16 @@ const DropdownMenuItem = /*@__PURE__*/ proxyCustomElement(class DropdownMenuItem
131
132
  this.useContainer = true;
132
133
  }
133
134
  render() {
134
- return (h(Host, { key: '9c57bb1471e15ee7047541f91632ce2e9daf045c', class: dropdownMenuItem({
135
+ return (h(Host, { key: 'eae3f121b78a2cf2f43116a383addfe754b824d3', class: dropdownMenuItem({
135
136
  variant: this.variant,
136
137
  active: this.active,
137
138
  enableHover: this.enableHover,
138
139
  disabled: this.disabled,
139
- }) }, this.icon && (h("p-icon", { key: '564d2a98f4ecd61ad80cf292e2856a86b10b4036', class: dropdownMenuItemIcon({
140
+ }) }, this.icon && (h("p-icon", { key: '3fc1da2563895786896ab6d280b3759b021e7274', class: dropdownMenuItemIcon({
140
141
  variant: this.variant,
141
142
  active: this.active,
142
143
  disabled: this.disabled,
143
- }), variant: this.icon })), this.checkbox && (h("input", { key: '2759db4da7a2bb71d565d90d2445953abf88859d', type: 'checkbox', class: 'p-input size-small flex-shrink-0', checked: this.active })), this.useContainer ? (h("div", { class: 'block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start' }, h("slot", null))) : (h("slot", null))));
144
+ }), variant: this.icon })), this.checkbox && (h("p-checkbox", { key: '7c3b45d2c9c42c82095d9d8ba20350c5d0c341eb', size: 'sm', checked: this.active, disabled: this.disabled })), this.useContainer ? (h("div", { class: 'block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start' }, h("slot", null))) : (h("slot", null))));
144
145
  }
145
146
  static get style() { return PDropdownMenuItemStyle0; }
146
147
  }, [4, "p-dropdown-menu-item", {
@@ -156,13 +157,18 @@ function defineCustomElement() {
156
157
  if (typeof customElements === "undefined") {
157
158
  return;
158
159
  }
159
- const components = ["p-dropdown-menu-item", "p-icon"];
160
+ const components = ["p-dropdown-menu-item", "p-checkbox", "p-icon"];
160
161
  components.forEach(tagName => { switch (tagName) {
161
162
  case "p-dropdown-menu-item":
162
163
  if (!customElements.get(tagName)) {
163
164
  customElements.define(tagName, DropdownMenuItem);
164
165
  }
165
166
  break;
167
+ case "p-checkbox":
168
+ if (!customElements.get(tagName)) {
169
+ defineCustomElement$2();
170
+ }
171
+ break;
166
172
  case "p-icon":
167
173
  if (!customElements.get(tagName)) {
168
174
  defineCustomElement$1();
@@ -1 +1 @@
1
- {"file":"dropdown-menu-item.component.js","mappings":";;;;AAAA,MAAM,4BAA4B,GAAG,qgFAAqgF,CAAC;AAC3iF,gCAAe,4BAA4B;;ACG3C,MAAM,gBAAgB,GAAG,GAAG,CAC3B;IACC,4GAA4G;CAC5G,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACP,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,oBAAoB;SAC1B;QACD,WAAW,EAAE;YACZ,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,8CAA8C;SACrD;QACD;YACC,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,IAAI;YACZ,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,yBAAyB;SAChC;QACD;YACC,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,IAAI;YACd,KAAK,EAAE,qBAAqB;SAC5B;QACD;YACC,OAAO,EAAE,SAAS;YAClB,QAAQ,EAAE,IAAI;YACd,MAAM,EAAE,IAAI;YACZ,KAAK,EAAE,yBAAyB;SAChC;QAED;YACC,OAAO,EAAE,UAAU;YACnB,MAAM,EAAE,KAAK;YACb,WAAW,EAAE,IAAI;YACjB,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MAAM;QACL,QACC,EAAC,IAAI,qDACJ,KAAK,EAAE,gBAAgB,CAAC;gBACvB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,WAAW,EAAE,IAAI,CAAC,WAAW;gBAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACvB,CAAC,IAKD,IAAI,CAAC,IAAI,KACT,+DACC,KAAK,EAAE,oBAAoB,CAAC;gBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,MAAM,EAAE,IAAI,CAAC,MAAM;gBACnB,QAAQ,EAAE,IAAI,CAAC,QAAQ;aACvB,CAAC,EACF,OAAO,EAAE,IAAI,CAAC,IAAI,GACjB,CACF,EAEA,IAAI,CAAC,QAAQ,KACb,8DACC,IAAI,EAAC,UAAU,EACf,KAAK,EAAC,kCAAkC,EACxC,OAAO,EAAE,IAAI,CAAC,MAAM,GACnB,CACF,EAEA,IAAI,CAAC,YAAY,IACjB,WAAK,KAAK,EAAC,yEAAyE,IACnF,eAAQ,CACH,KAEN,eAAQ,CACR,CACK,EACN;KACF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/atoms/dropdown-menu-item/dropdown-menu-item.component.scss?tag=p-dropdown-menu-item","src/components/atoms/dropdown-menu-item/dropdown-menu-item.component.tsx"],"sourcesContent":["","import { Component, Host, Prop, h } from '@stencil/core';\nimport { IconVariant } from '../icon/icon.component';\nimport { cva } from 'class-variance-authority';\n\nconst dropdownMenuItem = cva(\n\t[\n\t\t'p-dropdown-menu-item flex px-2 py-1 gap-2 text-sm font-medium group rounded-lg items-center h-8 max-w-full',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: null,\n\t\t\t\tnegative: null,\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t\tenableHover: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-black-teal hover:bg-supportive-lilac-50',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-supportive-lilac-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-black-teal-200',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: true,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-supportive-lilac-100',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-negative-red hover:bg-negative-red-50',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tactive: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-negative-red-100 text-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-negative-red-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tdisabled: true,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-negative-red-50',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'cursor-pointer',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst dropdownMenuItemIcon = cva(['text-base'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: null,\n\t\t\tnegative: null,\n\t\t},\n\t\tactive: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\tdisabled: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'text-black-teal-100',\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'default',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-black-teal-300 group-hover:text-black-teal',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'negative',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-negative-red group-hover:text-negative-red-800',\n\t\t},\n\t\t{\n\t\t\tvariant: 'negative',\n\t\t\tactive: true,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-negative-red-800',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-dropdown-menu-item',\n\tstyleUrl: 'dropdown-menu-item.component.scss',\n})\nexport class DropdownMenuItem {\n\t/**\n\t * Wether the dropdown menu item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the dropdown menu item has a checkbox\n\t */\n\t@Prop() checkbox: boolean = false;\n\n\t/**\n\t * The variant of the item\n\t */\n\t@Prop() variant: 'default' | 'negative' = 'default';\n\n\t/**\n\t * Wether to enable the hover state\n\t */\n\t@Prop() enableHover: boolean = true;\n\n\t/**\n\t * Wether the item is disabled\n\t */\n\t@Prop() disabled: boolean = false;\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * wether to use the container for text\n\t */\n\t@Prop() useContainer = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={dropdownMenuItem({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tactive: this.active,\n\t\t\t\t\tenableHover: this.enableHover,\n\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{/* class={`p-dropdown-menu-item ${this.active && 'active'} ${ */}\n\t\t\t\t{/* \tthis.enableHover && 'hover' */}\n\t\t\t\t{/* }`} */}\n\t\t\t\t{this.icon && (\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tclass={dropdownMenuItemIcon({\n\t\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\t\tactive: this.active,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.checkbox && (\n\t\t\t\t\t<input\n\t\t\t\t\t\ttype='checkbox'\n\t\t\t\t\t\tclass='p-input size-small flex-shrink-0'\n\t\t\t\t\t\tchecked={this.active}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.useContainer ? (\n\t\t\t\t\t<div class='block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start'>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<slot />\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
1
+ {"file":"dropdown-menu-item.component.js","mappings":";;;;;AAAA,MAAM,4BAA4B,GAAG,89EAA89E,CAAC;AACpgF,gCAAe,4BAA4B;;ACG3C,MAAM,gBAAgB,GAAG,GAAG,CAC3B;IACC,4GAA4G;CAC5G,EACD;IACC,QAAQ,EAAE;QACT,OAAO,EAAE;YACR,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACd;QACD,MAAM,EAAE;YACP,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,gBAAgB;YACvB,IAAI,EAAE,oBAAoB;SAC1B;QACD,WAAW,EAAE;YACZ,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,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;;;;;;;;","names":[],"sources":["src/components/atoms/dropdown-menu-item/dropdown-menu-item.component.scss?tag=p-dropdown-menu-item","src/components/atoms/dropdown-menu-item/dropdown-menu-item.component.tsx"],"sourcesContent":["","import { Component, Host, Prop, h } from '@stencil/core';\nimport { IconVariant } from '../icon/icon.component';\nimport { cva } from 'class-variance-authority';\n\nconst dropdownMenuItem = cva(\n\t[\n\t\t'p-dropdown-menu-item flex px-2 py-1 gap-2 text-sm font-medium group rounded-lg items-center h-8 max-w-full',\n\t],\n\t{\n\t\tvariants: {\n\t\t\tvariant: {\n\t\t\t\tdefault: null,\n\t\t\t\tnegative: null,\n\t\t\t},\n\t\t\tactive: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'cursor-pointer',\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t\tenableHover: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-black-teal hover:bg-supportive-lilac-50',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tactive: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-supportive-lilac-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-black-teal-200',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'default',\n\t\t\t\tdisabled: true,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-supportive-lilac-100',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tactive: false,\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'text-negative-red hover:bg-negative-red-50',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tactive: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'bg-negative-red-100 text-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tdisabled: true,\n\t\t\t\tclass: 'text-negative-red-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tvariant: 'negative',\n\t\t\t\tdisabled: true,\n\t\t\t\tactive: true,\n\t\t\t\tclass: 'bg-negative-red-50',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tenableHover: true,\n\t\t\t\tdisabled: false,\n\t\t\t\tclass: 'cursor-pointer',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst dropdownMenuItemIcon = cva(['text-base'], {\n\tvariants: {\n\t\tvariant: {\n\t\t\tdefault: null,\n\t\t\tnegative: null,\n\t\t},\n\t\tactive: {\n\t\t\tfalse: null,\n\t\t\ttrue: null,\n\t\t},\n\t\tdisabled: {\n\t\t\tfalse: null,\n\t\t\ttrue: 'text-black-teal-100',\n\t\t},\n\t},\n\tcompoundVariants: [\n\t\t{\n\t\t\tvariant: 'default',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-black-teal-300 group-hover:text-black-teal',\n\t\t},\n\n\t\t{\n\t\t\tvariant: 'negative',\n\t\t\tactive: false,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-negative-red group-hover:text-negative-red-800',\n\t\t},\n\t\t{\n\t\t\tvariant: 'negative',\n\t\t\tactive: true,\n\t\t\tdisabled: false,\n\t\t\tclass: 'text-negative-red-800',\n\t\t},\n\t],\n});\n\n@Component({\n\ttag: 'p-dropdown-menu-item',\n\tstyleUrl: 'dropdown-menu-item.component.scss',\n})\nexport class DropdownMenuItem {\n\t/**\n\t * Wether the dropdown menu item is active\n\t */\n\t@Prop() active: boolean = false;\n\n\t/**\n\t * Wether the dropdown menu item has a checkbox\n\t */\n\t@Prop() checkbox: boolean = false;\n\n\t/**\n\t * The variant of the item\n\t */\n\t@Prop() variant: 'default' | 'negative' = 'default';\n\n\t/**\n\t * Wether to enable the hover state\n\t */\n\t@Prop() enableHover: boolean = true;\n\n\t/**\n\t * Wether the item is disabled\n\t */\n\t@Prop() disabled: boolean = false;\n\n\t/**\n\t * Icon of the navigation item\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * wether to use the container for text\n\t */\n\t@Prop() useContainer = true;\n\n\trender() {\n\t\treturn (\n\t\t\t<Host\n\t\t\t\tclass={dropdownMenuItem({\n\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\tactive: this.active,\n\t\t\t\t\tenableHover: this.enableHover,\n\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t})}\n\t\t\t>\n\t\t\t\t{/* class={`p-dropdown-menu-item ${this.active && 'active'} ${ */}\n\t\t\t\t{/* \tthis.enableHover && 'hover' */}\n\t\t\t\t{/* }`} */}\n\t\t\t\t{this.icon && (\n\t\t\t\t\t<p-icon\n\t\t\t\t\t\tclass={dropdownMenuItemIcon({\n\t\t\t\t\t\t\tvariant: this.variant,\n\t\t\t\t\t\t\tactive: this.active,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.checkbox && (\n\t\t\t\t\t<p-checkbox\n\t\t\t\t\t\tsize='sm'\n\t\t\t\t\t\tchecked={this.active}\n\t\t\t\t\t\tdisabled={this.disabled}\n\t\t\t\t\t/>\n\t\t\t\t)}\n\n\t\t\t\t{this.useContainer ? (\n\t\t\t\t\t<div class='block w-full overflow-hidden text-ellipsis whitespace-nowrap text-start'>\n\t\t\t\t\t\t<slot />\n\t\t\t\t\t</div>\n\t\t\t\t) : (\n\t\t\t\t\t<slot />\n\t\t\t\t)}\n\t\t\t</Host>\n\t\t);\n\t}\n}\n"],"version":3}
@@ -75,12 +75,12 @@ const Dropdown = /*@__PURE__*/ proxyCustomElement(class Dropdown extends HTMLEle
75
75
  };
76
76
  let dropdownContainer;
77
77
  if (this.usePortal) {
78
- dropdownContainer = (h("p-portal", { key: 'af7d8c74fa1151ee87e5af8ed1effbbd3f2db620', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: '32ddcbb99ed9d71bb3419600a618c084c72afb69', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: 'ed3e7e06e5ca492e4eb3bbfe05a0b6c579726dad', name: 'items' }))));
78
+ dropdownContainer = (h("p-portal", { key: '5d9510a6759f791fb120fc06a31329a21f623f02', ...dropdownContainerProps }, h("p-dropdown-menu-container", { key: 'ea8ef6c6bba695321c530e12051881613fb73fac', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable }, h("slot", { key: '6ab8276bd86e17e48cea60aee12809edaf4d59ad', name: 'items' }))));
79
79
  }
80
80
  else {
81
- dropdownContainer = (h("p-dropdown-menu-container", { key: '701a15646b2518e6f4eab68fb82919b42b435dd2', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '57931a0f1f24213e5a38749f510dd32dff4cdf31', name: 'items' })));
81
+ dropdownContainer = (h("p-dropdown-menu-container", { key: 'fa587ed2bf372b31843d0e39b2cf5309d62fc0b5', maxWidth: !this.calculateWidth && this.applyMaxWidth, fullWidth: this.applyFullWidth && !this.applyMaxWidth, allowOverflow: this.allowOverflow, scrollable: this.scrollable, ...dropdownContainerProps }, h("slot", { key: '91a76863819e3c4d2cfd97f7b935b0b444d9dacc', name: 'items' })));
82
82
  }
83
- return (h(Host, { key: '8e812ed99b55b9ba3e9df935dd8d6c878c6ccec8', class: 'p-dropdown relative' }, h("div", { key: '6c60a68afcfeae8d93c83d331194ca46d161f0d8', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: '86e0015878b6cfdb5bb0ee1bed78ec199f4c50e8', name: 'trigger' })), dropdownContainer));
83
+ return (h(Host, { key: 'b5feffa63e8b3539ea8f7a00fcafab83d0be9c4e', class: 'p-dropdown relative' }, h("div", { key: 'ffe6f1d230d2281e6c704683dd08c9e74261dbe3', class: 'trigger', ref: ref => (this._trigger = ref), onClick: () => this._triggerClickHandler() }, h("slot", { key: 'f01bb68c26c92da98d639ba49aa1723a841c6c92', name: 'trigger' })), dropdownContainer));
84
84
  }
85
85
  _checkButtons(active = false) {
86
86
  if (!this.applyChevron) {
@@ -146,16 +146,16 @@ const Field = /*@__PURE__*/ proxyCustomElement(class Field extends HTMLElement {
146
146
  _inputRef;
147
147
  render() {
148
148
  const { prefix, suffix, hasHeaderSlot, hasLabelSlot, hasHelperSlot, hasErrorSlot, } = this._getSlotInfo();
149
- return (h(Host, { key: 'dbe8b0acc647c2ab64d91cfe077861099ba5748c', class: 'p-field' }, h("p-field-container", { key: '71ea4943de215b127fd5135b8f8f94815501dd39', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: '8086310ed9107ad83d4d9abd2767e143191457f2', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '8bd93114e8ccdc29d4ed1bd8bd217801409f22f1', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: '64639cd1f20992afd3e8cea2c53169eb6d6b920b', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'b8a21fa739b6e676088be3fc8778b43c23ae1756', name: 'error', slot: 'error' })), h("div", { key: 'ddd7796221e3ae75bf17b7f85cea1eb234c833b7', class: field({
149
+ return (h(Host, { key: 'b4229a4e7257f7a929cc3208834d95ab97990bcf', class: 'p-field' }, h("p-field-container", { key: '66c1e5bdc10bdc948e1e943fde89355e861135ae', forceShowTooltip: this.forceShowTooltip || this._focused, label: this.label, helper: this.helper, error: this.error, required: this.required }, hasLabelSlot && (h("slot", { key: '045626975fa0861371d2ad830d9bf8ec5b80720d', name: 'label', slot: 'label' })), hasHeaderSlot && (h("slot", { key: '43e613371e67f46a0c8ed5c9201b2b4e5fe91d7e', name: 'header', slot: 'header' })), hasHelperSlot && (h("slot", { key: 'e26723ffb55166d67c50e761410cd62100d70fa1', name: 'helper', slot: 'helper' })), hasErrorSlot && (h("slot", { key: 'b833ce639c3ff30e88ba86cdeb45dcf01ef866ac', name: 'error', slot: 'error' })), h("div", { key: 'd6b045356bca57b02a4ea32096969b5e017e3884', class: field({
150
150
  error: !!this.error?.length,
151
151
  disabled: this.disabled,
152
152
  focused: this.focused || this._focused,
153
153
  size: this.size,
154
- }), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '1cd79f0755348a0730e25e6a043189920c572129', class: prefixAndSuffic({
154
+ }), slot: 'content' }, (prefix || (this.icon && this.iconPosition === 'start')) && (h("div", { key: '6edc4f2c7b1b3bf470f7ab4a390655cdf0cf4d7f', class: prefixAndSuffic({
155
155
  error: !!this.error?.length,
156
156
  disabled: this.disabled,
157
157
  focused: this.focused || this._focused,
158
- }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '7a356d8701be55b0392d7a210f9b5d5d879c13bc', class: prefixAndSuffic({
158
+ }), onClick: () => this._focusInput() }, this.icon && this.iconPosition === 'start' ? (h("p-icon", { class: 'flex', variant: this.icon, rotate: this.iconRotate, flip: this.iconFlip })) : (prefix))), this._getInput(), (suffix || (this.icon && this.iconPosition === 'end')) && (h("div", { key: '4b9d7579b8f08fb7fd7b6a2b69d0fb1a8a2bead5', class: prefixAndSuffic({
159
159
  error: !!this.error?.length,
160
160
  disabled: this.disabled,
161
161
  focused: this.focused || this._focused,
@@ -207,9 +207,7 @@ const Field = /*@__PURE__*/ proxyCustomElement(class Field extends HTMLElement {
207
207
  value: this.value,
208
208
  placeholder: this.placeholder,
209
209
  disabled: this.disabled,
210
- onInput: (ev) => {
211
- this.valueChange.emit(ev.target.value);
212
- },
210
+ onInput: (ev) => this._valueChange(ev),
213
211
  };
214
212
  let properties = this.properties ?? {};
215
213
  if (typeof properties === 'string') {
@@ -238,6 +236,11 @@ const Field = /*@__PURE__*/ proxyCustomElement(class Field extends HTMLElement {
238
236
  }
239
237
  this._inputRef.select();
240
238
  }
239
+ _valueChange(ev) {
240
+ const value = ev.target.value;
241
+ this.value = value;
242
+ this.valueChange.emit(value);
243
+ }
241
244
  static get style() { return PFieldStyle0; }
242
245
  }, [1, "p-field", {
243
246
  "size": [1],
@@ -1 +1 @@
1
- {"file":"field.component.js","mappings":";;;;;;;;AAAA,MAAM,iBAAiB,GAAG,+iHAA+iH,CAAC;AAC1kH,qBAAe,iBAAiB;;ACiBhC,MAAM,KAAK,GAAG,GAAG,CAChB,CAAC,YAAY,EAAE,gBAAgB,EAAE,gCAAgC,CAAC,EAClE;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,EAAE,EAAE,KAAK;YACT,IAAI,EAAE,KAAK;SACX;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,iCAAiC;SACvC;QACD,OAAO,EAAE;YACR,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,KAAK,EAAE;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,uBAAuB;SAC9B;QACD;YACC,QAAQ,EAAE,KAAK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AAO;SACP;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,aAAa,CAAC,yBAAyB,CAAC,CAAC;QAC/D,KAAqB,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;KAC3C;IAEO,UAAU;QACjB,IAAI,CAAC,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;YAC9C,OAAO;SACP;QAED,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;KACxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/field/field.component.css?tag=p-field&encapsulation=shadow","src/components/molecules/field/field.component.tsx"],"sourcesContent":["","import {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { HTMLInputTypeAttribute } from 'react';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { templateFunc } from '../field-container/field-container.component';\nimport { Placement } from '@floating-ui/dom';\n\nconst field = cva(\n\t['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-lg'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-6',\n\t\t\t\tbase: 'h-8',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'bg-white',\n\t\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'border-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass:\n\t\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'border-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst input = cva(\n\t'text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal border-none outline-none focus:outline-none bg-transparent flex-1 min-w-0 h-full',\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst prefixAndSuffic = cva(\n\t['flex flex-shrink-0 justify-center items-center text-center'],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-black-teal-100',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-300',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-500',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red-800',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-field',\n\tstyleUrl: './field.component.css',\n\tshadow: true,\n})\nexport class Field {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the input group\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The value of the input\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * The error to display\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * Wether to select all text on focus\n\t */\n\t@Prop({ reflect: true }) selectAllOnFocus: boolean = true;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event() valueChange: EventEmitter<string>;\n\n\t/**\n\t * Event whenever the input ref changes\n\t */\n\t@Event() inputRefChange: EventEmitter<HTMLInputElement | HTMLTextAreaElement>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _focused = false;\n\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\trender() {\n\t\tconst {\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\thasHeaderSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHelperSlot,\n\t\t\thasErrorSlot,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field'>\n\t\t\t\t<p-field-container\n\t\t\t\t\tforceShowTooltip={this.forceShowTooltip || this._focused}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t>\n\t\t\t\t\t{hasLabelSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='label'\n\t\t\t\t\t\t\tslot='label'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHeaderSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='header'\n\t\t\t\t\t\t\tslot='header'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHelperSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='helper'\n\t\t\t\t\t\t\tslot='helper'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='error'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={field({\n\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{this._getInput()}\n\n\t\t\t\t\t\t{(suffix || (this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</p-field-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = true;\n\t\tthis._selectAll();\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = false;\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getInput() {\n\t\tif (this.type === 'custom') {\n\t\t\treturn <slot name='input' />;\n\t\t}\n\n\t\tconst props = {\n\t\t\tclass: input({\n\t\t\t\tdisabled: this.disabled,\n\t\t\t}),\n\t\t\tvalue: this.value,\n\t\t\tplaceholder: this.placeholder,\n\t\t\tdisabled: this.disabled,\n\t\t\tonInput: (ev: Event) => {\n\t\t\t\tthis.valueChange.emit(\n\t\t\t\t\t(ev.target as HTMLTextAreaElement | HTMLInputElement).value\n\t\t\t\t);\n\t\t\t},\n\t\t};\n\n\t\tlet properties = this.properties ?? {};\n\t\tif (typeof properties === 'string') {\n\t\t\tproperties = JSON.parse(this.properties);\n\t\t}\n\n\t\tif (this.type === 'textarea') {\n\t\t\t<textarea\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>;\n\t\t}\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={this.type}\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>\n\t\t);\n\t}\n\n\tprivate _setInputRef(ref: HTMLInputElement | HTMLTextAreaElement) {\n\t\tthis._inputRef = ref;\n\t\tthis.inputRefChange.emit(ref);\n\t}\n\n\tprivate _focusInput() {\n\t\tif (this._inputRef) {\n\t\t\tthis._inputRef.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n\n\tprivate _selectAll() {\n\t\tif (!this._inputRef || !this.selectAllOnFocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputRef.select();\n\t}\n}\n"],"version":3}
1
+ {"file":"field.component.js","mappings":";;;;;;;;AAAA,MAAM,iBAAiB,GAAG,+iHAA+iH,CAAC;AAC1kH,qBAAe,iBAAiB;;ACiBhC,MAAM,KAAK,GAAG,GAAG,CAChB,CAAC,YAAY,EAAE,gBAAgB,EAAE,gCAAgC,CAAC,EAClE;IACC,QAAQ,EAAE;QACT,IAAI,EAAE;YACL,EAAE,EAAE,KAAK;YACT,IAAI,EAAE,KAAK;SACX;QACD,QAAQ,EAAE;YACT,KAAK,EAAE,UAAU;YACjB,IAAI,EAAE,iCAAiC;SACvC;QACD,OAAO,EAAE;YACR,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;QACD,KAAK,EAAE;YACN,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,IAAI;SACV;KACD;IACD,gBAAgB,EAAE;QACjB;YACC,OAAO,EAAE,KAAK;YACd,KAAK,EAAE,KAAK;YACZ,KAAK,EAAE,uBAAuB;SAC9B;QACD;YACC,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,KAAK;YACZ,KAAK,EACJ,0FAA0F;SAC3F;QAED;YACC,QAAQ,EAAE,KAAK;YACf,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,qBAAqB;SAC5B;QACD;YACC,QAAQ,EAAE,KAAK;YACf,OAAO,EAAE,IAAI;YACb,KAAK,EAAE,IAAI;YACX,KAAK,EAAE,wDAAwD;SAC/D;KACD;CACD,CACD,CAAC;AAEF,MAAM,KAAK,GAAG,GAAG,CAChB,8JAA8J,EAC9J;IACC,QAAQ,EAAE;QACT,QAAQ,EAAE;YACT,KAAK,EAAE,IAAI;YACX,IAAI,EAAE,oBAAoB;SAC1B;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AK,CAAC,CAAC;KAC7B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":[],"sources":["src/components/molecules/field/field.component.css?tag=p-field&encapsulation=shadow","src/components/molecules/field/field.component.tsx"],"sourcesContent":["","import { Placement } from '@floating-ui/dom';\nimport {\n\tComponent,\n\tElement,\n\tEvent,\n\tEventEmitter,\n\th,\n\tHost,\n\tListen,\n\tProp,\n\tState,\n} from '@stencil/core';\nimport { cva } from 'class-variance-authority';\nimport { HTMLInputTypeAttribute } from 'react';\nimport { RotateOptions } from '../../../types/tailwind';\nimport { IconFlipOptions, IconVariant } from '../../atoms/icon/icon.component';\nimport { templateFunc } from '../field-container/field-container.component';\n\nconst field = cva(\n\t['flex gap-2', 'w-inherit px-2', 'border border-solid rounded-lg'],\n\t{\n\t\tvariants: {\n\t\t\tsize: {\n\t\t\t\tsm: 'h-6',\n\t\t\t\tbase: 'h-8',\n\t\t\t},\n\t\t\tdisabled: {\n\t\t\t\tfalse: 'bg-white',\n\t\t\t\ttrue: 'bg-white-600 cursor-not-allowed',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'border-black-teal-100',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass:\n\t\t\t\t\t'border-supportive-lilac-800 ring ring-supportive-lilac-100 selection:bg-supportive-lilac',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'border-negative-red',\n\t\t\t},\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'ring ring-negative-red-50 selection:bg-negative-red-50',\n\t\t\t},\n\t\t],\n\t}\n);\n\nconst input = cva(\n\t'text-sm placeholder:text-sm placeholder:text-black-teal-200 text-black-teal border-none outline-none focus:outline-none bg-transparent flex-1 min-w-0 h-full',\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'cursor-not-allowed',\n\t\t\t},\n\t\t},\n\t}\n);\n\nconst prefixAndSuffic = cva(\n\t['flex flex-shrink-0 justify-center items-center text-center'],\n\t{\n\t\tvariants: {\n\t\t\tdisabled: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: 'text-black-teal-100',\n\t\t\t},\n\t\t\tfocused: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t\terror: {\n\t\t\t\tfalse: null,\n\t\t\t\ttrue: null,\n\t\t\t},\n\t\t},\n\t\tcompoundVariants: [\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-300',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: false,\n\t\t\t\tclass: 'text-black-teal-500',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: false,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red',\n\t\t\t},\n\n\t\t\t{\n\t\t\t\tdisabled: false,\n\t\t\t\tfocused: true,\n\t\t\t\terror: true,\n\t\t\t\tclass: 'text-negative-red-800',\n\t\t\t},\n\t\t],\n\t}\n);\n\n@Component({\n\ttag: 'p-field',\n\tstyleUrl: './field.component.css',\n\tshadow: true,\n})\nexport class Field {\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() size: 'sm' | 'base' = 'base';\n\n\t/**\n\t * The type of the input group\n\t */\n\t@Prop() type: HTMLInputTypeAttribute | 'textarea' | 'slot' = 'text';\n\n\t/**\n\t * The size of the input group\n\t */\n\t@Prop() properties: any | string = {};\n\n\t/**\n\t * The prefix of the input group\n\t */\n\t@Prop() prefix: string;\n\n\t/**\n\t * The suffix of the input group\n\t */\n\t@Prop() suffix: string;\n\n\t/**\n\t * Icon of the input group\n\t */\n\t@Prop() icon: IconVariant;\n\n\t/**\n\t * Icon flip */\n\t@Prop() iconFlip: IconFlipOptions;\n\n\t/**\n\t * Icon rotate\n\t */\n\t@Prop() iconRotate: RotateOptions;\n\n\t/**\n\t * Icon position\n\t */\n\t@Prop() iconPosition: 'start' | 'end' = 'start';\n\n\t/**\n\t * The value of the input\n\t */\n\t@Prop() value: string;\n\n\t/**\n\t * The label of the input group\n\t */\n\t@Prop() label: string;\n\n\t/**\n\t * The placeholder of the input\n\t */\n\t@Prop() placeholder: string;\n\n\t/**\n\t * The helper of the input group\n\t */\n\t@Prop() helper: string;\n\n\t/**\n\t * Wether the field is required\n\t */\n\t@Prop({ reflect: true }) required: boolean = true;\n\n\t/**\n\t * The error to display\n\t */\n\t@Prop({ reflect: true }) error: string;\n\n\t/**\n\t * The placement of the error popover\n\t */\n\t@Prop() errorPlacement: Placement;\n\n\t/**\n\t * Wether the input group is disabled\n\t */\n\t@Prop({ reflect: true }) disabled: boolean = false;\n\n\t/**\n\t * Wether the input group is focused\n\t */\n\t@Prop({ reflect: true }) focused: boolean = false;\n\n\t/**\n\t * Force show the error tooltip\n\t */\n\t@Prop({ reflect: true }) forceShowTooltip: boolean = false;\n\n\t/**\n\t * Wether to select all text on focus\n\t */\n\t@Prop({ reflect: true }) selectAllOnFocus: boolean = true;\n\n\t/**\n\t * The method to use when focusing the input\n\t */\n\t@Prop() focusMethod: 'focus' | 'click' = 'focus';\n\n\t/**\n\t * The template for the optional text\n\t */\n\t@Prop() optionalTemplate: templateFunc;\n\n\t/**\n\t * Event whenever the value changes\n\t */\n\t@Event() valueChange: EventEmitter<string>;\n\n\t/**\n\t * Event whenever the input ref changes\n\t */\n\t@Event() inputRefChange: EventEmitter<HTMLInputElement | HTMLTextAreaElement>;\n\n\t/**\n\t * The host element\n\t */\n\t@Element() private _el: HTMLElement;\n\n\t@State() private _focused = false;\n\n\tprivate _inputRef: HTMLInputElement | HTMLTextAreaElement;\n\n\trender() {\n\t\tconst {\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\thasHeaderSlot,\n\t\t\thasLabelSlot,\n\t\t\thasHelperSlot,\n\t\t\thasErrorSlot,\n\t\t} = this._getSlotInfo();\n\n\t\treturn (\n\t\t\t<Host class='p-field'>\n\t\t\t\t<p-field-container\n\t\t\t\t\tforceShowTooltip={this.forceShowTooltip || this._focused}\n\t\t\t\t\tlabel={this.label}\n\t\t\t\t\thelper={this.helper}\n\t\t\t\t\terror={this.error}\n\t\t\t\t\trequired={this.required}\n\t\t\t\t>\n\t\t\t\t\t{hasLabelSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='label'\n\t\t\t\t\t\t\tslot='label'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHeaderSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='header'\n\t\t\t\t\t\t\tslot='header'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasHelperSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='helper'\n\t\t\t\t\t\t\tslot='helper'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t{hasErrorSlot && (\n\t\t\t\t\t\t<slot\n\t\t\t\t\t\t\tname='error'\n\t\t\t\t\t\t\tslot='error'\n\t\t\t\t\t\t/>\n\t\t\t\t\t)}\n\n\t\t\t\t\t<div\n\t\t\t\t\t\tclass={field({\n\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\tsize: this.size,\n\t\t\t\t\t\t})}\n\t\t\t\t\t\tslot='content'\n\t\t\t\t\t>\n\t\t\t\t\t\t{(prefix || (this.icon && this.iconPosition === 'start')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'start' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tprefix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\n\t\t\t\t\t\t{this._getInput()}\n\n\t\t\t\t\t\t{(suffix || (this.icon && this.iconPosition === 'end')) && (\n\t\t\t\t\t\t\t<div\n\t\t\t\t\t\t\t\tclass={prefixAndSuffic({\n\t\t\t\t\t\t\t\t\terror: !!this.error?.length,\n\t\t\t\t\t\t\t\t\tdisabled: this.disabled,\n\t\t\t\t\t\t\t\t\tfocused: this.focused || this._focused,\n\t\t\t\t\t\t\t\t})}\n\t\t\t\t\t\t\t\tonClick={() => this._focusInput()}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t{this.icon && this.iconPosition === 'end' ? (\n\t\t\t\t\t\t\t\t\t<p-icon\n\t\t\t\t\t\t\t\t\t\tclass='flex'\n\t\t\t\t\t\t\t\t\t\tvariant={this.icon}\n\t\t\t\t\t\t\t\t\t\trotate={this.iconRotate}\n\t\t\t\t\t\t\t\t\t\tflip={this.iconFlip}\n\t\t\t\t\t\t\t\t\t/>\n\t\t\t\t\t\t\t\t) : (\n\t\t\t\t\t\t\t\t\tsuffix\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t)}\n\t\t\t\t\t</div>\n\t\t\t\t</p-field-container>\n\t\t\t</Host>\n\t\t);\n\t}\n\n\t@Listen('focusin')\n\thandleFocusIn() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = true;\n\t\tthis._selectAll();\n\t}\n\n\t@Listen('focusout')\n\thandleFocusOut() {\n\t\tif (this.disabled) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._focused = false;\n\t}\n\n\tprivate _getSlotInfo() {\n\t\tconst hasHelperSlot = !!this._el.querySelector(':scope > [slot=\"helper\"]');\n\t\tconst hasLabelSlot = !!this._el.querySelector(':scope > [slot=\"label\"]');\n\t\tconst hasPrefixSlot = !!this._el.querySelector(':scope > [slot=\"prefix\"]');\n\t\tconst hasSuffixSlot = !!this._el.querySelector(':scope > [slot=\"suffix\"]');\n\t\tconst hasHeaderSlot = !!this._el.querySelector(':scope > [slot=\"header\"]');\n\t\tconst hasErrorSlot = !!this._el.querySelector(':scope > [slot=\"error\"]');\n\n\t\tconst prefix = hasPrefixSlot ? <slot name='prefix' /> : this.prefix;\n\t\tconst suffix = hasSuffixSlot ? <slot name='suffix' /> : this.suffix;\n\n\t\tconst errorAndErrorIsNotBoolean =\n\t\t\tthis.error && typeof this.error === 'string' && this.error !== 'true';\n\n\t\treturn {\n\t\t\thasHelperSlot,\n\t\t\thasLabelSlot,\n\t\t\thasPrefixSlot,\n\t\t\thasSuffixSlot,\n\t\t\thasHeaderSlot,\n\t\t\thasErrorSlot,\n\t\t\tprefix,\n\t\t\tsuffix,\n\t\t\terrorAndErrorIsNotBoolean,\n\t\t};\n\t}\n\n\tprivate _getInput() {\n\t\tif (this.type === 'custom') {\n\t\t\treturn <slot name='input' />;\n\t\t}\n\n\t\tconst props = {\n\t\t\tclass: input({\n\t\t\t\tdisabled: this.disabled,\n\t\t\t}),\n\t\t\tvalue: this.value,\n\t\t\tplaceholder: this.placeholder,\n\t\t\tdisabled: this.disabled,\n\t\t\tonInput: (ev: Event) => this._valueChange(ev),\n\t\t};\n\n\t\tlet properties = this.properties ?? {};\n\t\tif (typeof properties === 'string') {\n\t\t\tproperties = JSON.parse(this.properties);\n\t\t}\n\n\t\tif (this.type === 'textarea') {\n\t\t\t<textarea\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>;\n\t\t}\n\n\t\treturn (\n\t\t\t<input\n\t\t\t\ttype={this.type}\n\t\t\t\tref={ref => this._setInputRef(ref)}\n\t\t\t\t{...props}\n\t\t\t\t{...properties}\n\t\t\t/>\n\t\t);\n\t}\n\n\tprivate _setInputRef(ref: HTMLInputElement | HTMLTextAreaElement) {\n\t\tthis._inputRef = ref;\n\t\tthis.inputRefChange.emit(ref);\n\t}\n\n\tprivate _focusInput() {\n\t\tif (this._inputRef) {\n\t\t\tthis._inputRef.focus();\n\t\t\treturn;\n\t\t}\n\n\t\tconst input = this._el.querySelector(':scope > [slot=\"input\"]');\n\t\t(input as HTMLElement)[this.focusMethod]();\n\t}\n\n\tprivate _selectAll() {\n\t\tif (!this._inputRef || !this.selectAllOnFocus) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis._inputRef.select();\n\t}\n\n\tprivate _valueChange(ev) {\n\t\tconst value = (ev.target as HTMLTextAreaElement | HTMLInputElement).value;\n\t\tthis.value = value;\n\t\tthis.valueChange.emit(value);\n\t}\n}\n"],"version":3}
@@ -11,7 +11,7 @@ const FloatingMenuContainer = /*@__PURE__*/ proxyCustomElement(class FloatingMen
11
11
  this.usedInTable = false;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '0df7c5fb8599e610c58c8b90fba1fc2a75583766', class: "p-floating-menu-container" }, this.usedInTable ? (h("slot", { name: "floating-menu-item" })) : (h("slot", null))));
14
+ return (h(Host, { key: '2469cda7b5e9990919058e7a4d183a86589e543e', class: "p-floating-menu-container" }, this.usedInTable ? (h("slot", { name: "floating-menu-item" })) : (h("slot", null))));
15
15
  }
16
16
  static get style() { return PFloatingMenuContainerStyle0; }
17
17
  }, [1, "p-floating-menu-container", {
@@ -12,7 +12,7 @@ const FloatingMenuItem = /*@__PURE__*/ proxyCustomElement(class FloatingMenuItem
12
12
  this.disabled = false;
13
13
  }
14
14
  render() {
15
- return (h(Host, { key: '5059df52bd0a4bee8d53d95836027744b83b5d32', class: "p-floating-menu-item" }, h("slot", { key: '5aa2c83fe53e80fe7da35b552d363992182a80d9' })));
15
+ return (h(Host, { key: 'acd29dcff18979371230b82419c2306084b99b44', class: "p-floating-menu-item" }, h("slot", { key: '80274da4ad9362eaf6573d87ab8f4c633030ecde' })));
16
16
  }
17
17
  static get style() { return PFloatingMenuItemStyle0; }
18
18
  }, [1, "p-floating-menu-item", {
@@ -14,7 +14,7 @@ const Helper = /*@__PURE__*/ proxyCustomElement(class Helper extends HTMLElement
14
14
  this.placement = 'top';
15
15
  }
16
16
  render() {
17
- return (h(Host, { key: '9392e235ad3f053620cfabe68e71bcdfe961df09', class: 'p-helper' }, h("p-tooltip", { key: 'b3e4f9e553a44ec81a2f67c2c58404505bc3f224', placement: this.placement, strategy: this.strategy }, h("div", { key: '8e4ce0d5f7c6b2af6dc0a16476bca5cce5abfdcc', slot: 'content' }, h("slot", { key: '5ef4bfce3db5547eb380cbe6e51a49ff283b7367' })), h("div", { key: 'fbaa2d08ae0d679ff7814e178569f53a830a1942', slot: 'trigger', class: 'helper' }))));
17
+ return (h(Host, { key: '540f0bec4dd767c4be84ec5973d25bae8863f55e', class: 'p-helper' }, h("p-tooltip", { key: 'f814314bc2a7f9751c57db8a1cda799a3b195fa1', placement: this.placement, strategy: this.strategy }, h("div", { key: '999a01bc5b4cf7bc6ebc229b7279ca215a46ca6d', slot: 'content' }, h("slot", { key: '9fb3ed56f75111c8560a8b877dbfd58aedaa2530' })), h("div", { key: 'b8b9b5ca2ce68040531c071e1d24d8dab049321d', slot: 'trigger', class: 'helper' }))));
18
18
  }
19
19
  static get style() { return PHelperStyle0; }
20
20
  }, [1, "p-helper", {
@@ -368,7 +368,8 @@ const shadows = {
368
368
  '0 2px 2px rgba(0, 2, 2, 0.08)',
369
369
  '0 4px 4px rgba(0, 2, 2, 0.08)',
370
370
  ],
371
- 'supportive-lilac': '0px 1px 1px 0px rgba(189, 140, 255, 0.20)',
371
+ 'supportive-lilac': '0px 1px 1px rgba(189, 140, 255, 0.20)',
372
+ 'black-teal-10%': '0px 1px 0px rgba(3, 42, 36, 0.1)',
372
373
  inherit: 'inherit',
373
374
  transparent: 'transparent',
374
375
  };