@pine-ds/core 3.9.0 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (829) hide show
  1. package/components/attributes.js.map +1 -1
  2. package/components/form.js.map +1 -1
  3. package/components/index.js +1 -1
  4. package/components/index2.js +1 -1
  5. package/components/index2.js.map +1 -1
  6. package/components/mock-pds-modal.js +5 -3
  7. package/components/mock-pds-modal.js.map +1 -1
  8. package/components/pds-accordion.js +5 -3
  9. package/components/pds-accordion.js.map +1 -1
  10. package/components/pds-alert.js +5 -3
  11. package/components/pds-alert.js.map +1 -1
  12. package/components/pds-avatar.js +5 -3
  13. package/components/pds-avatar.js.map +1 -1
  14. package/components/pds-box2.js +5 -3
  15. package/components/pds-box2.js.map +1 -1
  16. package/components/pds-button2.js +15 -4
  17. package/components/pds-button2.js.map +1 -1
  18. package/components/pds-checkbox2.js +5 -3
  19. package/components/pds-checkbox2.js.map +1 -1
  20. package/components/pds-chip2.js +5 -3
  21. package/components/pds-chip2.js.map +1 -1
  22. package/components/pds-combobox.js +5 -3
  23. package/components/pds-combobox.js.map +1 -1
  24. package/components/pds-copytext.js +5 -3
  25. package/components/pds-copytext.js.map +1 -1
  26. package/components/pds-divider.js +5 -3
  27. package/components/pds-divider.js.map +1 -1
  28. package/components/pds-dropdown-menu-item.js +5 -3
  29. package/components/pds-dropdown-menu-item.js.map +1 -1
  30. package/components/pds-dropdown-menu-separator.js +5 -3
  31. package/components/pds-dropdown-menu-separator.js.map +1 -1
  32. package/components/pds-dropdown-menu.js +6 -4
  33. package/components/pds-dropdown-menu.js.map +1 -1
  34. package/components/pds-filter.js +5 -3
  35. package/components/pds-filter.js.map +1 -1
  36. package/components/pds-filters.js +5 -3
  37. package/components/pds-filters.js.map +1 -1
  38. package/components/pds-icon2.js +5 -3
  39. package/components/pds-icon2.js.map +1 -1
  40. package/components/pds-image.js +5 -3
  41. package/components/pds-image.js.map +1 -1
  42. package/components/pds-input.js +5 -3
  43. package/components/pds-input.js.map +1 -1
  44. package/components/pds-link2.js +5 -3
  45. package/components/pds-link2.js.map +1 -1
  46. package/components/pds-loader2.js +5 -3
  47. package/components/pds-loader2.js.map +1 -1
  48. package/components/pds-modal-content.js +7 -5
  49. package/components/pds-modal-content.js.map +1 -1
  50. package/components/pds-modal-footer.js +5 -3
  51. package/components/pds-modal-footer.js.map +1 -1
  52. package/components/pds-modal-header.js +5 -3
  53. package/components/pds-modal-header.js.map +1 -1
  54. package/components/pds-modal.js +5 -3
  55. package/components/pds-modal.js.map +1 -1
  56. package/components/pds-popover.js +437 -90
  57. package/components/pds-popover.js.map +1 -1
  58. package/components/pds-progress.js +6 -4
  59. package/components/pds-progress.js.map +1 -1
  60. package/components/pds-property.js +6 -4
  61. package/components/pds-property.js.map +1 -1
  62. package/components/pds-radio.js +8 -6
  63. package/components/pds-radio.js.map +1 -1
  64. package/components/pds-row.js +6 -4
  65. package/components/pds-row.js.map +1 -1
  66. package/components/pds-select.js +6 -4
  67. package/components/pds-select.js.map +1 -1
  68. package/components/pds-sortable-item.js +6 -4
  69. package/components/pds-sortable-item.js.map +1 -1
  70. package/components/pds-sortable.js +6 -4
  71. package/components/pds-sortable.js.map +1 -1
  72. package/components/pds-switch.js +8 -6
  73. package/components/pds-switch.js.map +1 -1
  74. package/components/pds-tab.js +8 -6
  75. package/components/pds-tab.js.map +1 -1
  76. package/components/pds-table-body.js +6 -4
  77. package/components/pds-table-body.js.map +1 -1
  78. package/components/pds-table-cell2.js +7 -5
  79. package/components/pds-table-cell2.js.map +1 -1
  80. package/components/pds-table-head-cell2.js +7 -5
  81. package/components/pds-table-head-cell2.js.map +1 -1
  82. package/components/pds-table-head.js +6 -4
  83. package/components/pds-table-head.js.map +1 -1
  84. package/components/pds-table-row.js +6 -4
  85. package/components/pds-table-row.js.map +1 -1
  86. package/components/pds-table.js +5 -3
  87. package/components/pds-table.js.map +1 -1
  88. package/components/pds-tabpanel.js +6 -4
  89. package/components/pds-tabpanel.js.map +1 -1
  90. package/components/pds-tabs.js +6 -4
  91. package/components/pds-tabs.js.map +1 -1
  92. package/components/pds-text2.js +6 -4
  93. package/components/pds-text2.js.map +1 -1
  94. package/components/pds-textarea.js +9 -7
  95. package/components/pds-textarea.js.map +1 -1
  96. package/components/pds-toast.js +8 -6
  97. package/components/pds-toast.js.map +1 -1
  98. package/components/pds-tooltip.js +7 -5
  99. package/components/pds-tooltip.js.map +1 -1
  100. package/components/utils.js.map +1 -1
  101. package/dist/cjs/attributes-oNMnBEnP.js.map +1 -1
  102. package/dist/cjs/form-hmpgbT1I.js.map +1 -1
  103. package/dist/cjs/{index-DDTyvZD7.js → index-2Lf0E1JO.js} +505 -182
  104. package/dist/cjs/index-2Lf0E1JO.js.map +1 -0
  105. package/dist/cjs/{index-DtnvzYhe.js → index-B17J2UZb.js} +3 -3
  106. package/dist/cjs/index-B17J2UZb.js.map +1 -0
  107. package/dist/cjs/index.cjs.js +0 -4
  108. package/dist/cjs/index.cjs.js.map +1 -1
  109. package/dist/cjs/loader.cjs.js +3 -6
  110. package/dist/cjs/loader.cjs.js.map +1 -1
  111. package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -3
  112. package/dist/cjs/pds-accordion.cjs.entry.js +2 -4
  113. package/dist/cjs/pds-alert.cjs.entry.js +1 -3
  114. package/dist/cjs/pds-avatar.cjs.entry.js +2 -4
  115. package/dist/cjs/pds-box.cjs.entry.js +1 -3
  116. package/dist/cjs/pds-button.cjs.entry.js +11 -5
  117. package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
  118. package/dist/cjs/pds-checkbox.cjs.entry.js +2 -4
  119. package/dist/cjs/pds-chip.cjs.entry.js +2 -4
  120. package/dist/cjs/pds-combobox.cjs.entry.js +1 -3
  121. package/dist/cjs/pds-copytext.cjs.entry.js +2 -4
  122. package/dist/cjs/pds-divider.cjs.entry.js +1 -3
  123. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -3
  124. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -3
  125. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -4
  126. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -1
  127. package/dist/cjs/pds-filter.cjs.entry.js +2 -4
  128. package/dist/cjs/pds-filters.cjs.entry.js +1 -3
  129. package/dist/cjs/pds-icon.cjs.entry.js +1 -3
  130. package/dist/cjs/pds-image.cjs.entry.js +1 -3
  131. package/dist/cjs/pds-input.cjs.entry.js +2 -4
  132. package/dist/cjs/pds-link.cjs.entry.js +2 -4
  133. package/dist/cjs/pds-loader.cjs.entry.js +1 -3
  134. package/dist/cjs/pds-modal-content.cjs.entry.js +3 -5
  135. package/dist/cjs/pds-modal-content.entry.cjs.js.map +1 -1
  136. package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -3
  137. package/dist/cjs/pds-modal-header.cjs.entry.js +1 -3
  138. package/dist/cjs/pds-modal.cjs.entry.js +1 -3
  139. package/dist/cjs/pds-popover.cjs.entry.js +432 -88
  140. package/dist/cjs/pds-popover.entry.cjs.js.map +1 -1
  141. package/dist/cjs/pds-progress.cjs.entry.js +2 -4
  142. package/dist/cjs/pds-property.cjs.entry.js +2 -4
  143. package/dist/cjs/pds-radio.cjs.entry.js +5 -7
  144. package/dist/cjs/pds-row.cjs.entry.js +2 -4
  145. package/dist/cjs/pds-select.cjs.entry.js +3 -5
  146. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -5
  147. package/dist/cjs/pds-sortable.cjs.entry.js +2 -4
  148. package/dist/cjs/pds-sortable.entry.cjs.js.map +1 -1
  149. package/dist/cjs/pds-switch.cjs.entry.js +5 -7
  150. package/dist/cjs/pds-tab.cjs.entry.js +4 -6
  151. package/dist/cjs/pds-table-body.cjs.entry.js +2 -4
  152. package/dist/cjs/pds-table-cell.cjs.entry.js +3 -5
  153. package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -6
  154. package/dist/cjs/pds-table-head.cjs.entry.js +2 -4
  155. package/dist/cjs/pds-table-row.cjs.entry.js +2 -4
  156. package/dist/cjs/pds-table.cjs.entry.js +1 -3
  157. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -4
  158. package/dist/cjs/pds-tabs.cjs.entry.js +2 -4
  159. package/dist/cjs/pds-text.cjs.entry.js +2 -4
  160. package/dist/cjs/pds-textarea.cjs.entry.js +6 -8
  161. package/dist/cjs/pds-toast.cjs.entry.js +4 -6
  162. package/dist/cjs/pds-tooltip.cjs.entry.js +3 -5
  163. package/dist/cjs/pine-core.cjs.js +4 -7
  164. package/dist/cjs/pine-core.cjs.js.map +1 -1
  165. package/dist/cjs/utils-7jx8T2mW.js.map +1 -1
  166. package/dist/collection/collection-manifest.json +2 -2
  167. package/dist/collection/components/pds-accordion/pds-accordion.js +3 -3
  168. package/dist/collection/components/pds-alert/pds-alert.js +7 -7
  169. package/dist/collection/components/pds-avatar/pds-avatar.js +8 -8
  170. package/dist/collection/components/pds-box/pds-box.js +235 -235
  171. package/dist/collection/components/pds-button/pds-button.css +38 -0
  172. package/dist/collection/components/pds-button/pds-button.js +50 -19
  173. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  174. package/dist/collection/components/pds-button/stories/pds-button.stories.js +109 -55
  175. package/dist/collection/components/pds-checkbox/pds-checkbox.js +23 -23
  176. package/dist/collection/components/pds-chip/pds-chip.js +8 -8
  177. package/dist/collection/components/pds-combobox/pds-combobox.js +26 -26
  178. package/dist/collection/components/pds-copytext/pds-copytext.js +7 -7
  179. package/dist/collection/components/pds-divider/pds-divider.js +5 -5
  180. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +6 -6
  181. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +3 -3
  182. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +4 -4
  183. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +1 -1
  184. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +7 -7
  185. package/dist/collection/components/pds-filters/pds-filters.js +2 -2
  186. package/dist/collection/components/pds-image/pds-image.js +14 -14
  187. package/dist/collection/components/pds-input/pds-input.js +44 -44
  188. package/dist/collection/components/pds-link/pds-link.js +9 -9
  189. package/dist/collection/components/pds-loader/pds-loader.js +4 -4
  190. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +3 -3
  191. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +1 -1
  192. package/dist/collection/components/pds-modal/pds-modal.js +6 -6
  193. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +6 -6
  194. package/dist/collection/components/pds-popover/pds-popover.css +4 -31
  195. package/dist/collection/components/pds-popover/pds-popover.js +440 -130
  196. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -1
  197. package/dist/collection/components/pds-popover/popover-interface.js.map +1 -1
  198. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +66 -18
  199. package/dist/collection/components/pds-progress/pds-progress.js +10 -10
  200. package/dist/collection/components/pds-property/pds-property.js +4 -4
  201. package/dist/collection/components/pds-radio/pds-radio.js +22 -22
  202. package/dist/collection/components/pds-row/pds-row.js +17 -17
  203. package/dist/collection/components/pds-select/pds-select.js +24 -24
  204. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +5 -5
  205. package/dist/collection/components/pds-sortable/pds-sortable.js +6 -6
  206. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
  207. package/dist/collection/components/pds-switch/pds-switch.js +21 -21
  208. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  209. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +6 -6
  210. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +5 -5
  211. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +6 -6
  212. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +5 -5
  213. package/dist/collection/components/pds-table/pds-table.js +10 -10
  214. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +12 -12
  215. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +8 -8
  216. package/dist/collection/components/pds-tabs/pds-tabs.js +11 -11
  217. package/dist/collection/components/pds-text/pds-text.js +18 -18
  218. package/dist/collection/components/pds-textarea/pds-textarea.js +32 -32
  219. package/dist/collection/components/pds-toast/pds-toast.js +10 -10
  220. package/dist/collection/components/pds-tooltip/pds-tooltip.js +11 -11
  221. package/dist/collection/utils/attributes.js.map +1 -1
  222. package/dist/collection/utils/form.js.map +1 -1
  223. package/dist/collection/utils/utils.js.map +1 -1
  224. package/dist/docs.json +242 -79
  225. package/dist/esm/attributes-C0M1gTKv.js.map +1 -1
  226. package/dist/esm/form-DwjNklzi.js.map +1 -1
  227. package/dist/esm/{index-Bf1dou5H.js → index-Bh07GI-d.js} +505 -183
  228. package/dist/esm/index-Bh07GI-d.js.map +1 -0
  229. package/dist/esm/{index-D4zJBIgl.js → index-QXCASaCq.js} +3 -3
  230. package/dist/esm/index-QXCASaCq.js.map +1 -0
  231. package/dist/esm/index.js +1 -3
  232. package/dist/esm/loader.js +3 -6
  233. package/dist/esm/loader.js.map +1 -1
  234. package/dist/esm/mock-pds-modal.entry.js +1 -3
  235. package/dist/esm/pds-accordion.entry.js +2 -4
  236. package/dist/esm/pds-alert.entry.js +1 -3
  237. package/dist/esm/pds-avatar.entry.js +2 -4
  238. package/dist/esm/pds-box.entry.js +1 -3
  239. package/dist/esm/pds-button.entry.js +11 -5
  240. package/dist/esm/pds-button.entry.js.map +1 -1
  241. package/dist/esm/pds-checkbox.entry.js +2 -4
  242. package/dist/esm/pds-chip.entry.js +2 -4
  243. package/dist/esm/pds-combobox.entry.js +1 -3
  244. package/dist/esm/pds-copytext.entry.js +2 -4
  245. package/dist/esm/pds-divider.entry.js +1 -3
  246. package/dist/esm/pds-dropdown-menu-item.entry.js +1 -3
  247. package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -3
  248. package/dist/esm/pds-dropdown-menu.entry.js +2 -4
  249. package/dist/esm/pds-dropdown-menu.entry.js.map +1 -1
  250. package/dist/esm/pds-filter.entry.js +2 -4
  251. package/dist/esm/pds-filters.entry.js +1 -3
  252. package/dist/esm/pds-icon.entry.js +1 -3
  253. package/dist/esm/pds-image.entry.js +1 -3
  254. package/dist/esm/pds-input.entry.js +2 -4
  255. package/dist/esm/pds-link.entry.js +2 -4
  256. package/dist/esm/pds-loader.entry.js +1 -3
  257. package/dist/esm/pds-modal-content.entry.js +3 -5
  258. package/dist/esm/pds-modal-content.entry.js.map +1 -1
  259. package/dist/esm/pds-modal-footer.entry.js +1 -3
  260. package/dist/esm/pds-modal-header.entry.js +1 -3
  261. package/dist/esm/pds-modal.entry.js +1 -3
  262. package/dist/esm/pds-popover.entry.js +432 -88
  263. package/dist/esm/pds-popover.entry.js.map +1 -1
  264. package/dist/esm/pds-progress.entry.js +2 -4
  265. package/dist/esm/pds-property.entry.js +2 -4
  266. package/dist/esm/pds-radio.entry.js +5 -7
  267. package/dist/esm/pds-row.entry.js +2 -4
  268. package/dist/esm/pds-select.entry.js +3 -5
  269. package/dist/esm/pds-sortable-item.entry.js +3 -5
  270. package/dist/esm/pds-sortable.entry.js +2 -4
  271. package/dist/esm/pds-sortable.entry.js.map +1 -1
  272. package/dist/esm/pds-switch.entry.js +5 -7
  273. package/dist/esm/pds-tab.entry.js +4 -6
  274. package/dist/esm/pds-table-body.entry.js +2 -4
  275. package/dist/esm/pds-table-cell.entry.js +3 -5
  276. package/dist/esm/pds-table-head-cell.entry.js +4 -6
  277. package/dist/esm/pds-table-head.entry.js +2 -4
  278. package/dist/esm/pds-table-row.entry.js +2 -4
  279. package/dist/esm/pds-table.entry.js +1 -3
  280. package/dist/esm/pds-tabpanel.entry.js +2 -4
  281. package/dist/esm/pds-tabs.entry.js +2 -4
  282. package/dist/esm/pds-text.entry.js +2 -4
  283. package/dist/esm/pds-textarea.entry.js +6 -8
  284. package/dist/esm/pds-toast.entry.js +4 -6
  285. package/dist/esm/pds-tooltip.entry.js +3 -5
  286. package/dist/esm/pine-core.js +4 -7
  287. package/dist/esm/pine-core.js.map +1 -1
  288. package/dist/esm/utils-tJa4KYNO.js.map +1 -1
  289. package/dist/esm-es5/attributes-C0M1gTKv.js.map +1 -1
  290. package/dist/esm-es5/form-DwjNklzi.js.map +1 -1
  291. package/dist/esm-es5/index-Bh07GI-d.js +3 -0
  292. package/dist/esm-es5/index-Bh07GI-d.js.map +1 -0
  293. package/dist/esm-es5/{index-D4zJBIgl.js → index-QXCASaCq.js} +1 -1
  294. package/dist/esm-es5/index-QXCASaCq.js.map +1 -0
  295. package/dist/esm-es5/index.js +1 -1
  296. package/dist/esm-es5/loader.js +1 -1
  297. package/dist/esm-es5/loader.js.map +1 -1
  298. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  299. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  300. package/dist/esm-es5/pds-alert.entry.js +1 -1
  301. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  302. package/dist/esm-es5/pds-box.entry.js +1 -1
  303. package/dist/esm-es5/pds-button.entry.js +1 -1
  304. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  305. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  306. package/dist/esm-es5/pds-chip.entry.js +1 -1
  307. package/dist/esm-es5/pds-combobox.entry.js +2 -2
  308. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  309. package/dist/esm-es5/pds-divider.entry.js +1 -1
  310. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  311. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  312. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  313. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -1
  314. package/dist/esm-es5/pds-filter.entry.js +1 -1
  315. package/dist/esm-es5/pds-filters.entry.js +1 -1
  316. package/dist/esm-es5/pds-icon.entry.js +1 -1
  317. package/dist/esm-es5/pds-image.entry.js +1 -1
  318. package/dist/esm-es5/pds-input.entry.js +1 -1
  319. package/dist/esm-es5/pds-link.entry.js +1 -1
  320. package/dist/esm-es5/pds-loader.entry.js +1 -1
  321. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  322. package/dist/esm-es5/pds-modal-content.entry.js.map +1 -1
  323. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  324. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  325. package/dist/esm-es5/pds-modal.entry.js +1 -1
  326. package/dist/esm-es5/pds-popover.entry.js +1 -1
  327. package/dist/esm-es5/pds-popover.entry.js.map +1 -1
  328. package/dist/esm-es5/pds-progress.entry.js +1 -1
  329. package/dist/esm-es5/pds-property.entry.js +1 -1
  330. package/dist/esm-es5/pds-radio.entry.js +1 -1
  331. package/dist/esm-es5/pds-row.entry.js +1 -1
  332. package/dist/esm-es5/pds-select.entry.js +1 -1
  333. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  334. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  335. package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
  336. package/dist/esm-es5/pds-switch.entry.js +1 -1
  337. package/dist/esm-es5/pds-tab.entry.js +1 -1
  338. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  339. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  340. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  341. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  342. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  343. package/dist/esm-es5/pds-table.entry.js +1 -1
  344. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  345. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  346. package/dist/esm-es5/pds-text.entry.js +1 -1
  347. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  348. package/dist/esm-es5/pds-toast.entry.js +1 -1
  349. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  350. package/dist/esm-es5/pine-core.js +1 -1
  351. package/dist/esm-es5/pine-core.js.map +1 -1
  352. package/dist/esm-es5/utils-tJa4KYNO.js.map +1 -1
  353. package/dist/pine-core/index.esm.js +1 -1
  354. package/dist/pine-core/loader.esm.js.map +1 -1
  355. package/dist/pine-core/{p-9766923f.entry.js → p-01c4eac9.entry.js} +2 -2
  356. package/dist/pine-core/p-01c4eac9.entry.js.map +1 -0
  357. package/dist/pine-core/p-04390d80.system.entry.js +2 -0
  358. package/dist/pine-core/p-04390d80.system.entry.js.map +1 -0
  359. package/dist/pine-core/{p-4ef17b95.system.entry.js → p-052eedc2.system.entry.js} +2 -2
  360. package/dist/pine-core/p-052eedc2.system.entry.js.map +1 -0
  361. package/dist/pine-core/p-06f164fe.system.entry.js +2 -0
  362. package/dist/pine-core/p-06f164fe.system.entry.js.map +1 -0
  363. package/dist/pine-core/{p-725c350c.entry.js → p-0819d524.entry.js} +2 -2
  364. package/dist/pine-core/p-0819d524.entry.js.map +1 -0
  365. package/dist/pine-core/p-105951b7.system.entry.js +2 -0
  366. package/dist/pine-core/p-105951b7.system.entry.js.map +1 -0
  367. package/dist/pine-core/{p-307f415a.system.entry.js → p-168b5a5b.system.entry.js} +2 -2
  368. package/dist/pine-core/p-168b5a5b.system.entry.js.map +1 -0
  369. package/dist/pine-core/{p-ee583234.system.entry.js → p-1ab0a7b1.system.entry.js} +2 -2
  370. package/dist/pine-core/p-1ab0a7b1.system.entry.js.map +1 -0
  371. package/dist/pine-core/{p-da1fb45d.system.entry.js → p-1ac7cb0f.system.entry.js} +2 -2
  372. package/dist/pine-core/p-1ac7cb0f.system.entry.js.map +1 -0
  373. package/dist/pine-core/{p-f61ee383.system.entry.js → p-1bf75b30.system.entry.js} +2 -2
  374. package/dist/pine-core/p-1bf75b30.system.entry.js.map +1 -0
  375. package/dist/pine-core/{p-1039e8e9.entry.js → p-1c6def68.entry.js} +2 -2
  376. package/dist/pine-core/p-1c6def68.entry.js.map +1 -0
  377. package/dist/pine-core/p-1d3c4f2d.entry.js +2 -0
  378. package/dist/pine-core/p-1d3c4f2d.entry.js.map +1 -0
  379. package/dist/pine-core/{p-8ff41ba8.entry.js → p-1d83f560.entry.js} +2 -2
  380. package/dist/pine-core/p-1d83f560.entry.js.map +1 -0
  381. package/dist/pine-core/{p-90e83476.system.entry.js → p-1f28575b.system.entry.js} +2 -2
  382. package/dist/pine-core/p-1f28575b.system.entry.js.map +1 -0
  383. package/dist/pine-core/{p-88773b86.entry.js → p-1f67a7d6.entry.js} +2 -2
  384. package/dist/pine-core/p-1f67a7d6.entry.js.map +1 -0
  385. package/dist/pine-core/{p-e18c3044.entry.js → p-1fbe221a.entry.js} +2 -2
  386. package/dist/pine-core/p-1fbe221a.entry.js.map +1 -0
  387. package/dist/pine-core/{p-e692908e.entry.js → p-239cbdb2.entry.js} +2 -2
  388. package/dist/pine-core/p-239cbdb2.entry.js.map +1 -0
  389. package/dist/pine-core/{p-a9cfaa1f.entry.js → p-2551ed1a.entry.js} +2 -2
  390. package/dist/pine-core/p-2551ed1a.entry.js.map +1 -0
  391. package/dist/pine-core/p-285bc185.entry.js +2 -0
  392. package/dist/pine-core/p-285bc185.entry.js.map +1 -0
  393. package/dist/pine-core/{p-ozqEY4Zc.system.js.map → p-2NVJY0Vc.system.js.map} +1 -1
  394. package/dist/pine-core/{p-97299c83.system.entry.js → p-2aed6c67.system.entry.js} +2 -2
  395. package/dist/pine-core/p-2aed6c67.system.entry.js.map +1 -0
  396. package/dist/pine-core/p-2f5d1411.entry.js +2 -0
  397. package/dist/pine-core/p-2f5d1411.entry.js.map +1 -0
  398. package/dist/pine-core/{p-96a60a99.entry.js → p-35dd09be.entry.js} +2 -2
  399. package/dist/pine-core/p-35dd09be.entry.js.map +1 -0
  400. package/dist/pine-core/p-37795a28.system.entry.js +2 -0
  401. package/dist/pine-core/p-37795a28.system.entry.js.map +1 -0
  402. package/dist/pine-core/{p-c55fc47e.entry.js → p-3900b6f6.entry.js} +2 -2
  403. package/dist/pine-core/p-3900b6f6.entry.js.map +1 -0
  404. package/dist/pine-core/p-3ca2c7d0.system.entry.js +2 -0
  405. package/dist/pine-core/p-3ca2c7d0.system.entry.js.map +1 -0
  406. package/dist/pine-core/{p-B-Doh1Wu.system.js.map → p-3fR7iol3.system.js.map} +1 -1
  407. package/dist/pine-core/p-43b758af.entry.js +2 -0
  408. package/dist/pine-core/p-43b758af.entry.js.map +1 -0
  409. package/dist/pine-core/{p-f25274c9.entry.js → p-45c81df5.entry.js} +2 -2
  410. package/dist/pine-core/p-45c81df5.entry.js.map +1 -0
  411. package/dist/pine-core/{p-378df5eb.system.entry.js → p-4792d0c8.system.entry.js} +2 -2
  412. package/dist/pine-core/p-4792d0c8.system.entry.js.map +1 -0
  413. package/dist/pine-core/{p-3cc92094.system.entry.js → p-49c5234f.system.entry.js} +2 -2
  414. package/dist/pine-core/p-49c5234f.system.entry.js.map +1 -0
  415. package/dist/pine-core/p-4HGk7WFM.system.js.map +1 -0
  416. package/dist/pine-core/{p-c44d3551.entry.js → p-51e0ea73.entry.js} +2 -2
  417. package/dist/pine-core/p-51e0ea73.entry.js.map +1 -0
  418. package/dist/pine-core/{p-7af21e83.system.entry.js → p-52e92b68.system.entry.js} +2 -2
  419. package/dist/pine-core/p-52e92b68.system.entry.js.map +1 -0
  420. package/dist/pine-core/{p-b9aafec7.system.entry.js → p-54e04c59.system.entry.js} +2 -2
  421. package/dist/pine-core/p-54e04c59.system.entry.js.map +1 -0
  422. package/dist/pine-core/{p-972a511a.entry.js → p-55d120d1.entry.js} +2 -2
  423. package/dist/pine-core/p-55d120d1.entry.js.map +1 -0
  424. package/dist/pine-core/{p-9b335a9f.entry.js → p-57120758.entry.js} +2 -2
  425. package/dist/pine-core/p-57120758.entry.js.map +1 -0
  426. package/dist/pine-core/{p-b9e12535.system.entry.js → p-59166970.system.entry.js} +2 -2
  427. package/dist/pine-core/p-59166970.system.entry.js.map +1 -0
  428. package/dist/pine-core/p-5a332f9e.system.entry.js +2 -0
  429. package/dist/pine-core/p-5a332f9e.system.entry.js.map +1 -0
  430. package/dist/pine-core/{p-4802f8de.system.entry.js → p-5a94e426.system.entry.js} +2 -2
  431. package/dist/pine-core/p-5a94e426.system.entry.js.map +1 -0
  432. package/dist/pine-core/{p-bc637bed.system.entry.js → p-5d379706.system.entry.js} +2 -2
  433. package/dist/pine-core/p-5d379706.system.entry.js.map +1 -0
  434. package/dist/pine-core/p-5e1804a3.system.entry.js +2 -0
  435. package/dist/pine-core/p-5e1804a3.system.entry.js.map +1 -0
  436. package/dist/pine-core/{p-b23dd01c.entry.js → p-6046e0b1.entry.js} +2 -2
  437. package/dist/pine-core/p-6046e0b1.entry.js.map +1 -0
  438. package/dist/pine-core/{p-544fea4c.system.entry.js → p-6448829b.system.entry.js} +3 -3
  439. package/dist/pine-core/p-6448829b.system.entry.js.map +1 -0
  440. package/dist/pine-core/{p-DmdrRtWG.system.js.map → p-6R6wgf3i.system.js.map} +1 -1
  441. package/dist/pine-core/{p-dace69e7.system.entry.js → p-6b8903e4.system.entry.js} +2 -2
  442. package/dist/pine-core/p-6b8903e4.system.entry.js.map +1 -0
  443. package/dist/pine-core/{p-c3f84df8.system.entry.js → p-6d9ca1ff.system.entry.js} +2 -2
  444. package/dist/pine-core/p-6d9ca1ff.system.entry.js.map +1 -0
  445. package/dist/pine-core/{p-6381a811.system.entry.js → p-6e4be339.system.entry.js} +3 -3
  446. package/dist/pine-core/p-6e4be339.system.entry.js.map +1 -0
  447. package/dist/pine-core/{p-2c407961.entry.js → p-71a30434.entry.js} +2 -2
  448. package/dist/pine-core/p-71a30434.entry.js.map +1 -0
  449. package/dist/pine-core/p-730ea265.entry.js +2 -0
  450. package/dist/pine-core/p-730ea265.entry.js.map +1 -0
  451. package/dist/pine-core/{p-100de2b7.entry.js → p-73353346.entry.js} +2 -2
  452. package/dist/pine-core/p-73353346.entry.js.map +1 -0
  453. package/dist/pine-core/p-770eefdd.entry.js +2 -0
  454. package/dist/pine-core/p-770eefdd.entry.js.map +1 -0
  455. package/dist/pine-core/p-79466624.entry.js +2 -0
  456. package/dist/pine-core/p-79466624.entry.js.map +1 -0
  457. package/dist/pine-core/{p-9fbb9f0e.system.entry.js → p-7a12238d.system.entry.js} +2 -2
  458. package/dist/pine-core/p-7a12238d.system.entry.js.map +1 -0
  459. package/dist/pine-core/p-7a5e0609.system.entry.js +2 -0
  460. package/dist/pine-core/p-7a5e0609.system.entry.js.map +1 -0
  461. package/dist/pine-core/{p-f5d78141.entry.js → p-7a63e1ec.entry.js} +2 -2
  462. package/dist/pine-core/p-7a63e1ec.entry.js.map +1 -0
  463. package/dist/pine-core/p-7bbe537d.system.entry.js +2 -0
  464. package/dist/pine-core/p-7bbe537d.system.entry.js.map +1 -0
  465. package/dist/pine-core/p-7c69ca77.entry.js +2 -0
  466. package/dist/pine-core/p-7c69ca77.entry.js.map +1 -0
  467. package/dist/pine-core/p-7ccd095b.entry.js +2 -0
  468. package/dist/pine-core/p-7ccd095b.entry.js.map +1 -0
  469. package/dist/pine-core/{p-f8e1545e.entry.js → p-841a6445.entry.js} +2 -2
  470. package/dist/pine-core/p-841a6445.entry.js.map +1 -0
  471. package/dist/pine-core/p-88040f36.entry.js +2 -0
  472. package/dist/pine-core/p-88040f36.entry.js.map +1 -0
  473. package/dist/pine-core/{p-538b3902.system.entry.js → p-89565b3c.system.entry.js} +2 -2
  474. package/dist/pine-core/p-89565b3c.system.entry.js.map +1 -0
  475. package/dist/pine-core/{p-5ac7af9e.entry.js → p-996072ce.entry.js} +2 -2
  476. package/dist/pine-core/p-996072ce.entry.js.map +1 -0
  477. package/dist/pine-core/{p-0486ecc6.system.entry.js → p-9c0577eb.system.entry.js} +2 -2
  478. package/dist/pine-core/p-9c0577eb.system.entry.js.map +1 -0
  479. package/dist/pine-core/{p-CTkQ9Pq-.system.js.map → p-B8ftT2uA.system.js.map} +1 -1
  480. package/dist/pine-core/{p-Cl47ROcT.system.js.map → p-B9oQYxlC.system.js.map} +1 -1
  481. package/dist/pine-core/{p-BbhWs2I3.system.js.map → p-BCGaZxvq.system.js.map} +1 -1
  482. package/dist/pine-core/p-BG6uGRQj.system.js.map +1 -1
  483. package/dist/pine-core/p-BHavepTY.system.js.map +1 -1
  484. package/dist/pine-core/{p-BJ3oNLWN.system.js.map → p-BLpHPllL.system.js.map} +1 -1
  485. package/dist/pine-core/{p-CSa_b_JX.system.js.map → p-BMBJoTMg.system.js.map} +1 -1
  486. package/dist/pine-core/{p-Dw7zXw_6.system.js.map → p-BMv60T1z.system.js.map} +1 -1
  487. package/dist/pine-core/p-BOmQOnQe.system.js +1 -1
  488. package/dist/pine-core/p-BeWjxtlo.system.js.map +1 -0
  489. package/dist/pine-core/{p-k9JOparb.system.js.map → p-BeaxER_z.system.js.map} +1 -1
  490. package/dist/pine-core/p-Bh07GI-d.js +3 -0
  491. package/dist/pine-core/p-Bh07GI-d.js.map +1 -0
  492. package/dist/pine-core/p-BhQhw0S3.system.js.map +1 -1
  493. package/dist/pine-core/{p-C2W-sHx5.system.js.map → p-BhoJR5O9.system.js.map} +1 -1
  494. package/dist/pine-core/{p-B8JDvOCM.system.js.map → p-Btz7Q5Hx.system.js.map} +1 -1
  495. package/dist/pine-core/{p-CEUtKiTx.system.js.map → p-Bv5KzSWg.system.js.map} +1 -1
  496. package/dist/pine-core/{p-qQVNUF7F.system.js.map → p-BwYg-WQV.system.js.map} +1 -1
  497. package/dist/pine-core/p-C0M1gTKv.js.map +1 -1
  498. package/dist/pine-core/{p-CG2PKUWT.system.js.map → p-C2AG52JP.system.js.map} +1 -1
  499. package/dist/pine-core/{p-kcOuXqWo.system.js.map → p-C4UrydrO.system.js.map} +1 -1
  500. package/dist/pine-core/{p-Bkfqi7zE.system.js.map → p-C6_QgODF.system.js.map} +1 -1
  501. package/dist/pine-core/{p-CQwYeJqz.system.js.map → p-CEUHG_Nb.system.js.map} +1 -1
  502. package/dist/pine-core/{p-K3LH4gRE.system.js.map → p-CIoeutZO.system.js.map} +1 -1
  503. package/dist/pine-core/{p-DW3lkDNz.system.js.map → p-CMbWVxYl.system.js.map} +1 -1
  504. package/dist/pine-core/{p-DiWDsjtE.system.js.map → p-CNOoGfj8.system.js.map} +1 -1
  505. package/dist/pine-core/{p-ByzULH8m.system.js.map → p-CSVIgMVz.system.js.map} +1 -1
  506. package/dist/pine-core/{p-CCQd5PVN.system.js.map → p-CVjjaBaW.system.js.map} +1 -1
  507. package/dist/pine-core/p-CZsWy9_t.system.js +3 -0
  508. package/dist/pine-core/p-CZsWy9_t.system.js.map +1 -0
  509. package/dist/pine-core/{p-BEgEi4w5.system.js.map → p-CbrMVAcu.system.js.map} +1 -1
  510. package/dist/pine-core/{p-ch9PI3Vl.system.js.map → p-ChQGk39M.system.js.map} +1 -1
  511. package/dist/pine-core/{p-M-zMP2QX.system.js.map → p-CoBzoZzZ.system.js.map} +1 -1
  512. package/dist/pine-core/{p-DJ7iTbji.system.js.map → p-CqtdHqyo.system.js.map} +1 -1
  513. package/dist/pine-core/{p-DExobiBX.system.js.map → p-CrpTd0PB.system.js.map} +1 -1
  514. package/dist/pine-core/{p-rnM09DN4.system.js.map → p-CtiVxXhr.system.js.map} +1 -1
  515. package/dist/pine-core/p-CuF_eckL.system.js.map +1 -0
  516. package/dist/pine-core/p-Cua7cmvq.system.js +2 -0
  517. package/dist/pine-core/p-Cua7cmvq.system.js.map +1 -0
  518. package/dist/pine-core/{p-CdcQ02yR.system.js.map → p-D5MCs-6L.system.js.map} +1 -1
  519. package/dist/pine-core/{p-BLC5kuro.system.js.map → p-DCLLstWD.system.js.map} +1 -1
  520. package/dist/pine-core/{p-CfyzuJNE.system.js.map → p-DDsUR6MK.system.js.map} +1 -1
  521. package/dist/pine-core/{p-BILpjGVZ.system.js.map → p-DLKKVRBm.system.js.map} +1 -1
  522. package/dist/pine-core/{p-D52TGCLt.system.js.map → p-DTMMULoz.system.js.map} +1 -1
  523. package/dist/pine-core/p-DwjNklzi.js.map +1 -1
  524. package/dist/pine-core/{p-DhDw2HLE.system.js.map → p-DxdUBbJz.system.js.map} +1 -1
  525. package/dist/pine-core/{p-BDK6YCRb.system.js.map → p-DySPwKLZ.system.js.map} +1 -1
  526. package/dist/pine-core/{p-Cid662up.system.js.map → p-GdAtTGB0.system.js.map} +1 -1
  527. package/dist/pine-core/{p-D4zJBIgl.js → p-QXCASaCq.js} +1 -1
  528. package/dist/pine-core/p-QXCASaCq.js.map +1 -0
  529. package/dist/pine-core/{p-BRIdBthP.system.js.map → p-W2_s_Evj.system.js.map} +1 -1
  530. package/dist/pine-core/p-YWpyar7R.system.js +2 -0
  531. package/dist/pine-core/p-YWpyar7R.system.js.map +1 -0
  532. package/dist/pine-core/{p-85c41629.entry.js → p-a037df25.entry.js} +2 -2
  533. package/dist/pine-core/p-a037df25.entry.js.map +1 -0
  534. package/dist/pine-core/{p-ae2d59cd.entry.js → p-a1ddcc69.entry.js} +2 -2
  535. package/dist/pine-core/p-a1ddcc69.entry.js.map +1 -0
  536. package/dist/pine-core/{p-96c27dba.entry.js → p-a494b7d1.entry.js} +2 -2
  537. package/dist/pine-core/p-a494b7d1.entry.js.map +1 -0
  538. package/dist/pine-core/{p-db12273e.system.entry.js → p-b07bb58f.system.entry.js} +2 -2
  539. package/dist/pine-core/p-b07bb58f.system.entry.js.map +1 -0
  540. package/dist/pine-core/p-b0948892.system.entry.js +2 -0
  541. package/dist/pine-core/p-b0948892.system.entry.js.map +1 -0
  542. package/dist/pine-core/{p-9ac84e63.entry.js → p-b151a37d.entry.js} +3 -3
  543. package/dist/pine-core/p-b151a37d.entry.js.map +1 -0
  544. package/dist/pine-core/{p-6d48604a.system.entry.js → p-b38d8113.system.entry.js} +2 -2
  545. package/dist/pine-core/p-b38d8113.system.entry.js.map +1 -0
  546. package/dist/pine-core/{p-18179981.system.entry.js → p-ba1a4643.system.entry.js} +2 -2
  547. package/dist/pine-core/p-ba1a4643.system.entry.js.map +1 -0
  548. package/dist/pine-core/p-ba609b1e.entry.js +2 -0
  549. package/dist/pine-core/p-ba609b1e.entry.js.map +1 -0
  550. package/dist/pine-core/{p-cffc98ae.entry.js → p-bd11961c.entry.js} +3 -3
  551. package/dist/pine-core/p-bd11961c.entry.js.map +1 -0
  552. package/dist/pine-core/{p-c2599425.entry.js → p-bd5369b5.entry.js} +2 -2
  553. package/dist/pine-core/p-bd5369b5.entry.js.map +1 -0
  554. package/dist/pine-core/{p-2b102034.system.entry.js → p-c28c54c2.system.entry.js} +2 -2
  555. package/dist/pine-core/p-c28c54c2.system.entry.js.map +1 -0
  556. package/dist/pine-core/{p-86263a62.entry.js → p-c697e76a.entry.js} +2 -2
  557. package/dist/pine-core/p-c697e76a.entry.js.map +1 -0
  558. package/dist/pine-core/{p-25cb810d.entry.js → p-c7175497.entry.js} +2 -2
  559. package/dist/pine-core/p-c7175497.entry.js.map +1 -0
  560. package/dist/pine-core/{p-04ad9d2c.system.entry.js → p-ca094b21.system.entry.js} +2 -2
  561. package/dist/pine-core/p-ca094b21.system.entry.js.map +1 -0
  562. package/dist/pine-core/{p-07e129db.entry.js → p-d6cff25a.entry.js} +2 -2
  563. package/dist/pine-core/p-d6cff25a.entry.js.map +1 -0
  564. package/dist/pine-core/{p-Dq7Wu9rr.system.js.map → p-dWrReyPk.system.js.map} +1 -1
  565. package/dist/pine-core/{p-f911dde3.system.entry.js → p-db3b827e.system.entry.js} +2 -2
  566. package/dist/pine-core/p-db3b827e.system.entry.js.map +1 -0
  567. package/dist/pine-core/{p-1009009c.entry.js → p-de4ebf0b.entry.js} +2 -2
  568. package/dist/pine-core/p-de4ebf0b.entry.js.map +1 -0
  569. package/dist/pine-core/{p-6c36cab6.entry.js → p-e25d2c53.entry.js} +2 -2
  570. package/dist/pine-core/p-e25d2c53.entry.js.map +1 -0
  571. package/dist/pine-core/{p-2fd7f74e.entry.js → p-e47fbd71.entry.js} +2 -2
  572. package/dist/pine-core/p-e47fbd71.entry.js.map +1 -0
  573. package/dist/pine-core/{p-5b1d6cd2.entry.js → p-e4b73c71.entry.js} +2 -2
  574. package/dist/pine-core/p-e4b73c71.entry.js.map +1 -0
  575. package/dist/pine-core/p-e87633c0.system.entry.js +2 -0
  576. package/dist/pine-core/p-e87633c0.system.entry.js.map +1 -0
  577. package/dist/pine-core/p-e948a514.system.entry.js +2 -0
  578. package/dist/pine-core/p-e948a514.system.entry.js.map +1 -0
  579. package/dist/pine-core/p-eb3fe298.system.entry.js +2 -0
  580. package/dist/pine-core/p-eb3fe298.system.entry.js.map +1 -0
  581. package/dist/pine-core/{p-9c1bfa68.entry.js → p-ed214033.entry.js} +2 -2
  582. package/dist/pine-core/p-ed214033.entry.js.map +1 -0
  583. package/dist/pine-core/{p-d61f3ab0.system.entry.js → p-f38e87ad.system.entry.js} +2 -2
  584. package/dist/pine-core/p-f38e87ad.system.entry.js.map +1 -0
  585. package/dist/pine-core/{p-f0e44449.system.entry.js → p-f6020738.system.entry.js} +2 -2
  586. package/dist/pine-core/p-f6020738.system.entry.js.map +1 -0
  587. package/dist/pine-core/p-f6049a55.system.entry.js +2 -0
  588. package/dist/pine-core/p-f6049a55.system.entry.js.map +1 -0
  589. package/dist/pine-core/{p-00f6f3af.system.entry.js → p-f70327de.system.entry.js} +2 -2
  590. package/dist/pine-core/p-f70327de.system.entry.js.map +1 -0
  591. package/dist/pine-core/{p-e702a8dc.system.entry.js → p-f73aef05.system.entry.js} +2 -2
  592. package/dist/pine-core/p-f73aef05.system.entry.js.map +1 -0
  593. package/dist/pine-core/{p-1a7cd7a6.entry.js → p-fb877b9d.entry.js} +2 -2
  594. package/dist/pine-core/p-fb877b9d.entry.js.map +1 -0
  595. package/dist/pine-core/{p-1c32ffb3.entry.js → p-fbf10641.entry.js} +2 -2
  596. package/dist/pine-core/p-fbf10641.entry.js.map +1 -0
  597. package/dist/pine-core/p-fdf7a1db.system.entry.js +2 -0
  598. package/dist/pine-core/p-fdf7a1db.system.entry.js.map +1 -0
  599. package/dist/pine-core/p-fe23aa6f.system.entry.js +2 -0
  600. package/dist/pine-core/p-fe23aa6f.system.entry.js.map +1 -0
  601. package/dist/pine-core/{p-DmWU0f_O.system.js.map → p-oqHEiE2W.system.js.map} +1 -1
  602. package/dist/pine-core/p-pKEraGuG.system.js.map +1 -0
  603. package/dist/pine-core/{p-CyFXZIZs.system.js.map → p-pStt9pIi.system.js.map} +1 -1
  604. package/dist/pine-core/{p-BG99uNIQ.system.js → p-r1rzi0o4.system.js} +1 -1
  605. package/dist/pine-core/p-r1rzi0o4.system.js.map +1 -0
  606. package/dist/pine-core/p-tJa4KYNO.js.map +1 -1
  607. package/dist/pine-core/{p-4xv5UVkx.system.js.map → p-w6Q6Xc-v.system.js.map} +1 -1
  608. package/dist/pine-core/{p-CypP0PZf.system.js.map → p-y8wq27x0.system.js.map} +1 -1
  609. package/dist/pine-core/{p-hop4Cgg5.system.js.map → p-zZn2-0Xb.system.js.map} +1 -1
  610. package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
  611. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -1
  612. package/dist/pine-core/pds-modal-content.entry.esm.js.map +1 -1
  613. package/dist/pine-core/pds-popover.entry.esm.js.map +1 -1
  614. package/dist/pine-core/pds-sortable.entry.esm.js.map +1 -1
  615. package/dist/pine-core/pine-core.esm.js +1 -1
  616. package/dist/pine-core/pine-core.esm.js.map +1 -1
  617. package/dist/pine-core/pine-core.js +1 -1
  618. package/dist/types/components/pds-button/pds-button.d.ts +6 -1
  619. package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +0 -5
  620. package/dist/types/components/pds-popover/pds-popover.d.ts +113 -10
  621. package/dist/types/components/pds-popover/popover-interface.d.ts +0 -4
  622. package/dist/types/components.d.ts +76 -10
  623. package/dist/types/stencil-public-runtime.d.ts +83 -8
  624. package/dist/types/utils/attributes.d.ts +2 -2
  625. package/dist/types/utils/form.d.ts +1 -1
  626. package/dist/types/utils/utils.d.ts +1 -1
  627. package/hydrate/index.d.ts +40 -24
  628. package/hydrate/index.js +1619 -451
  629. package/hydrate/index.mjs +1618 -452
  630. package/package.json +12 -12
  631. package/dist/cjs/app-globals-V2Kpy_OQ.js +0 -8
  632. package/dist/cjs/app-globals-V2Kpy_OQ.js.map +0 -1
  633. package/dist/cjs/index-DDTyvZD7.js.map +0 -1
  634. package/dist/cjs/index-DtnvzYhe.js.map +0 -1
  635. package/dist/cjs/mock-pds-modal.cjs.entry.js.map +0 -1
  636. package/dist/cjs/pds-accordion.cjs.entry.js.map +0 -1
  637. package/dist/cjs/pds-alert.cjs.entry.js.map +0 -1
  638. package/dist/cjs/pds-avatar.cjs.entry.js.map +0 -1
  639. package/dist/cjs/pds-box.cjs.entry.js.map +0 -1
  640. package/dist/cjs/pds-button.cjs.entry.js.map +0 -1
  641. package/dist/cjs/pds-checkbox.cjs.entry.js.map +0 -1
  642. package/dist/cjs/pds-chip.cjs.entry.js.map +0 -1
  643. package/dist/cjs/pds-combobox.cjs.entry.js.map +0 -1
  644. package/dist/cjs/pds-copytext.cjs.entry.js.map +0 -1
  645. package/dist/cjs/pds-divider.cjs.entry.js.map +0 -1
  646. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js.map +0 -1
  647. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js.map +0 -1
  648. package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +0 -1
  649. package/dist/cjs/pds-filter.cjs.entry.js.map +0 -1
  650. package/dist/cjs/pds-filters.cjs.entry.js.map +0 -1
  651. package/dist/cjs/pds-icon.cjs.entry.js.map +0 -1
  652. package/dist/cjs/pds-image.cjs.entry.js.map +0 -1
  653. package/dist/cjs/pds-input.cjs.entry.js.map +0 -1
  654. package/dist/cjs/pds-link.cjs.entry.js.map +0 -1
  655. package/dist/cjs/pds-loader.cjs.entry.js.map +0 -1
  656. package/dist/cjs/pds-modal-content.cjs.entry.js.map +0 -1
  657. package/dist/cjs/pds-modal-footer.cjs.entry.js.map +0 -1
  658. package/dist/cjs/pds-modal-header.cjs.entry.js.map +0 -1
  659. package/dist/cjs/pds-modal.cjs.entry.js.map +0 -1
  660. package/dist/cjs/pds-popover.cjs.entry.js.map +0 -1
  661. package/dist/cjs/pds-progress.cjs.entry.js.map +0 -1
  662. package/dist/cjs/pds-property.cjs.entry.js.map +0 -1
  663. package/dist/cjs/pds-radio.cjs.entry.js.map +0 -1
  664. package/dist/cjs/pds-row.cjs.entry.js.map +0 -1
  665. package/dist/cjs/pds-select.cjs.entry.js.map +0 -1
  666. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +0 -1
  667. package/dist/cjs/pds-sortable.cjs.entry.js.map +0 -1
  668. package/dist/cjs/pds-switch.cjs.entry.js.map +0 -1
  669. package/dist/cjs/pds-tab.cjs.entry.js.map +0 -1
  670. package/dist/cjs/pds-table-body.cjs.entry.js.map +0 -1
  671. package/dist/cjs/pds-table-cell.cjs.entry.js.map +0 -1
  672. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +0 -1
  673. package/dist/cjs/pds-table-head.cjs.entry.js.map +0 -1
  674. package/dist/cjs/pds-table-row.cjs.entry.js.map +0 -1
  675. package/dist/cjs/pds-table.cjs.entry.js.map +0 -1
  676. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +0 -1
  677. package/dist/cjs/pds-tabs.cjs.entry.js.map +0 -1
  678. package/dist/cjs/pds-text.cjs.entry.js.map +0 -1
  679. package/dist/cjs/pds-textarea.cjs.entry.js.map +0 -1
  680. package/dist/cjs/pds-toast.cjs.entry.js.map +0 -1
  681. package/dist/cjs/pds-tooltip.cjs.entry.js.map +0 -1
  682. package/dist/esm/app-globals-DQuL1Twl.js +0 -6
  683. package/dist/esm/app-globals-DQuL1Twl.js.map +0 -1
  684. package/dist/esm/index-Bf1dou5H.js.map +0 -1
  685. package/dist/esm/index-D4zJBIgl.js.map +0 -1
  686. package/dist/esm-es5/app-globals-DQuL1Twl.js +0 -2
  687. package/dist/esm-es5/app-globals-DQuL1Twl.js.map +0 -1
  688. package/dist/esm-es5/index-Bf1dou5H.js +0 -3
  689. package/dist/esm-es5/index-Bf1dou5H.js.map +0 -1
  690. package/dist/esm-es5/index-D4zJBIgl.js.map +0 -1
  691. package/dist/pine-core/p-00f6f3af.system.entry.js.map +0 -1
  692. package/dist/pine-core/p-0486ecc6.system.entry.js.map +0 -1
  693. package/dist/pine-core/p-04ad9d2c.system.entry.js.map +0 -1
  694. package/dist/pine-core/p-07e129db.entry.js.map +0 -1
  695. package/dist/pine-core/p-0b593535.system.entry.js +0 -2
  696. package/dist/pine-core/p-0b593535.system.entry.js.map +0 -1
  697. package/dist/pine-core/p-1009009c.entry.js.map +0 -1
  698. package/dist/pine-core/p-100de2b7.entry.js.map +0 -1
  699. package/dist/pine-core/p-1039e8e9.entry.js.map +0 -1
  700. package/dist/pine-core/p-18179981.system.entry.js.map +0 -1
  701. package/dist/pine-core/p-1a7cd7a6.entry.js.map +0 -1
  702. package/dist/pine-core/p-1c32ffb3.entry.js.map +0 -1
  703. package/dist/pine-core/p-1d127ddc.system.entry.js +0 -2
  704. package/dist/pine-core/p-1d127ddc.system.entry.js.map +0 -1
  705. package/dist/pine-core/p-25cb810d.entry.js.map +0 -1
  706. package/dist/pine-core/p-2b102034.system.entry.js.map +0 -1
  707. package/dist/pine-core/p-2b12bc55.system.entry.js +0 -2
  708. package/dist/pine-core/p-2b12bc55.system.entry.js.map +0 -1
  709. package/dist/pine-core/p-2c407961.entry.js.map +0 -1
  710. package/dist/pine-core/p-2efc646c.system.entry.js +0 -2
  711. package/dist/pine-core/p-2efc646c.system.entry.js.map +0 -1
  712. package/dist/pine-core/p-2fd7f74e.entry.js.map +0 -1
  713. package/dist/pine-core/p-302849cf.system.entry.js +0 -2
  714. package/dist/pine-core/p-302849cf.system.entry.js.map +0 -1
  715. package/dist/pine-core/p-307f415a.system.entry.js.map +0 -1
  716. package/dist/pine-core/p-332338ee.entry.js +0 -2
  717. package/dist/pine-core/p-332338ee.entry.js.map +0 -1
  718. package/dist/pine-core/p-378df5eb.system.entry.js.map +0 -1
  719. package/dist/pine-core/p-3cc92094.system.entry.js.map +0 -1
  720. package/dist/pine-core/p-41abb654.entry.js +0 -2
  721. package/dist/pine-core/p-41abb654.entry.js.map +0 -1
  722. package/dist/pine-core/p-45d574f1.system.entry.js +0 -2
  723. package/dist/pine-core/p-45d574f1.system.entry.js.map +0 -1
  724. package/dist/pine-core/p-4802f8de.system.entry.js.map +0 -1
  725. package/dist/pine-core/p-4c6ec7c4.entry.js +0 -2
  726. package/dist/pine-core/p-4c6ec7c4.entry.js.map +0 -1
  727. package/dist/pine-core/p-4ef17b95.system.entry.js.map +0 -1
  728. package/dist/pine-core/p-538b3902.system.entry.js.map +0 -1
  729. package/dist/pine-core/p-544fea4c.system.entry.js.map +0 -1
  730. package/dist/pine-core/p-5ac7af9e.entry.js.map +0 -1
  731. package/dist/pine-core/p-5b1d6cd2.entry.js.map +0 -1
  732. package/dist/pine-core/p-6381a811.system.entry.js.map +0 -1
  733. package/dist/pine-core/p-6c36cab6.entry.js.map +0 -1
  734. package/dist/pine-core/p-6d48604a.system.entry.js.map +0 -1
  735. package/dist/pine-core/p-725c350c.entry.js.map +0 -1
  736. package/dist/pine-core/p-7792f47d.system.entry.js +0 -2
  737. package/dist/pine-core/p-7792f47d.system.entry.js.map +0 -1
  738. package/dist/pine-core/p-7af21e83.system.entry.js.map +0 -1
  739. package/dist/pine-core/p-81972d0f.entry.js +0 -2
  740. package/dist/pine-core/p-81972d0f.entry.js.map +0 -1
  741. package/dist/pine-core/p-81bc089e.entry.js +0 -2
  742. package/dist/pine-core/p-81bc089e.entry.js.map +0 -1
  743. package/dist/pine-core/p-85c41629.entry.js.map +0 -1
  744. package/dist/pine-core/p-86263a62.entry.js.map +0 -1
  745. package/dist/pine-core/p-87ed43d5.entry.js +0 -2
  746. package/dist/pine-core/p-87ed43d5.entry.js.map +0 -1
  747. package/dist/pine-core/p-88773b86.entry.js.map +0 -1
  748. package/dist/pine-core/p-8b3f4c31.entry.js +0 -2
  749. package/dist/pine-core/p-8b3f4c31.entry.js.map +0 -1
  750. package/dist/pine-core/p-8ff41ba8.entry.js.map +0 -1
  751. package/dist/pine-core/p-90e83476.system.entry.js.map +0 -1
  752. package/dist/pine-core/p-96a60a99.entry.js.map +0 -1
  753. package/dist/pine-core/p-96c27dba.entry.js.map +0 -1
  754. package/dist/pine-core/p-97299c83.system.entry.js.map +0 -1
  755. package/dist/pine-core/p-972a511a.entry.js.map +0 -1
  756. package/dist/pine-core/p-9766923f.entry.js.map +0 -1
  757. package/dist/pine-core/p-9ac84e63.entry.js.map +0 -1
  758. package/dist/pine-core/p-9b335a9f.entry.js.map +0 -1
  759. package/dist/pine-core/p-9c1bfa68.entry.js.map +0 -1
  760. package/dist/pine-core/p-9c579956.system.entry.js +0 -2
  761. package/dist/pine-core/p-9c579956.system.entry.js.map +0 -1
  762. package/dist/pine-core/p-9fbb9f0e.system.entry.js.map +0 -1
  763. package/dist/pine-core/p-BG99uNIQ.system.js.map +0 -1
  764. package/dist/pine-core/p-BPjnTOEL.system.js +0 -2
  765. package/dist/pine-core/p-BPjnTOEL.system.js.map +0 -1
  766. package/dist/pine-core/p-BbPAtVJG.system.js +0 -2
  767. package/dist/pine-core/p-BbPAtVJG.system.js.map +0 -1
  768. package/dist/pine-core/p-Bf1dou5H.js +0 -3
  769. package/dist/pine-core/p-Bf1dou5H.js.map +0 -1
  770. package/dist/pine-core/p-CIBXMJd-.system.js.map +0 -1
  771. package/dist/pine-core/p-Cqzmj3D8.system.js.map +0 -1
  772. package/dist/pine-core/p-CwNRZQss.system.js.map +0 -1
  773. package/dist/pine-core/p-Cxvdulqq.system.js +0 -3
  774. package/dist/pine-core/p-Cxvdulqq.system.js.map +0 -1
  775. package/dist/pine-core/p-D4zJBIgl.js.map +0 -1
  776. package/dist/pine-core/p-DCjZr2HA.system.js.map +0 -1
  777. package/dist/pine-core/p-DQuL1Twl.js +0 -2
  778. package/dist/pine-core/p-DQuL1Twl.js.map +0 -1
  779. package/dist/pine-core/p-WWWd_vEd.system.js +0 -2
  780. package/dist/pine-core/p-WWWd_vEd.system.js.map +0 -1
  781. package/dist/pine-core/p-a707a7da.system.entry.js +0 -2
  782. package/dist/pine-core/p-a707a7da.system.entry.js.map +0 -1
  783. package/dist/pine-core/p-a9cfaa1f.entry.js.map +0 -1
  784. package/dist/pine-core/p-ae2d59cd.entry.js.map +0 -1
  785. package/dist/pine-core/p-b23dd01c.entry.js.map +0 -1
  786. package/dist/pine-core/p-b669e1d9.entry.js +0 -2
  787. package/dist/pine-core/p-b669e1d9.entry.js.map +0 -1
  788. package/dist/pine-core/p-b9aafec7.system.entry.js.map +0 -1
  789. package/dist/pine-core/p-b9e12535.system.entry.js.map +0 -1
  790. package/dist/pine-core/p-bc2530d7.entry.js +0 -2
  791. package/dist/pine-core/p-bc2530d7.entry.js.map +0 -1
  792. package/dist/pine-core/p-bc637bed.system.entry.js.map +0 -1
  793. package/dist/pine-core/p-c2599425.entry.js.map +0 -1
  794. package/dist/pine-core/p-c3f84df8.system.entry.js.map +0 -1
  795. package/dist/pine-core/p-c44d3551.entry.js.map +0 -1
  796. package/dist/pine-core/p-c55fc47e.entry.js.map +0 -1
  797. package/dist/pine-core/p-cffc98ae.entry.js.map +0 -1
  798. package/dist/pine-core/p-d2b15290.system.entry.js +0 -2
  799. package/dist/pine-core/p-d2b15290.system.entry.js.map +0 -1
  800. package/dist/pine-core/p-d61f3ab0.system.entry.js.map +0 -1
  801. package/dist/pine-core/p-da1fb45d.system.entry.js.map +0 -1
  802. package/dist/pine-core/p-dace69e7.system.entry.js.map +0 -1
  803. package/dist/pine-core/p-db12273e.system.entry.js.map +0 -1
  804. package/dist/pine-core/p-e18c3044.entry.js.map +0 -1
  805. package/dist/pine-core/p-e6085566.system.entry.js +0 -2
  806. package/dist/pine-core/p-e6085566.system.entry.js.map +0 -1
  807. package/dist/pine-core/p-e683e197.system.entry.js +0 -2
  808. package/dist/pine-core/p-e683e197.system.entry.js.map +0 -1
  809. package/dist/pine-core/p-e692908e.entry.js.map +0 -1
  810. package/dist/pine-core/p-e6b051e8.system.entry.js +0 -2
  811. package/dist/pine-core/p-e6b051e8.system.entry.js.map +0 -1
  812. package/dist/pine-core/p-e702a8dc.system.entry.js.map +0 -1
  813. package/dist/pine-core/p-ed724664.system.entry.js +0 -2
  814. package/dist/pine-core/p-ed724664.system.entry.js.map +0 -1
  815. package/dist/pine-core/p-ed7bea99.system.entry.js +0 -2
  816. package/dist/pine-core/p-ed7bea99.system.entry.js.map +0 -1
  817. package/dist/pine-core/p-ee583234.system.entry.js.map +0 -1
  818. package/dist/pine-core/p-f0e44449.system.entry.js.map +0 -1
  819. package/dist/pine-core/p-f15cd180.entry.js +0 -2
  820. package/dist/pine-core/p-f15cd180.entry.js.map +0 -1
  821. package/dist/pine-core/p-f25274c9.entry.js.map +0 -1
  822. package/dist/pine-core/p-f5d78141.entry.js.map +0 -1
  823. package/dist/pine-core/p-f61ee383.system.entry.js.map +0 -1
  824. package/dist/pine-core/p-f8e1545e.entry.js.map +0 -1
  825. package/dist/pine-core/p-f911dde3.system.entry.js.map +0 -1
  826. package/dist/pine-core/p-fc2f3466.system.entry.js +0 -2
  827. package/dist/pine-core/p-fc2f3466.system.entry.js.map +0 -1
  828. package/dist/pine-core/p-fe60ee09.entry.js +0 -2
  829. package/dist/pine-core/p-fe60ee09.entry.js.map +0 -1
@@ -1 +1 @@
1
- {"file":"pds-toast.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,y4JAAy4J;;MCOh5JA,UAAQ,iBAAAC,kBAAA,CAAA,MAAA,QAAA,SAAA,WAAA,CAAA;AALrB,IAAA,WAAA,GAAA;;;;;AAYE;;;;AAIG;AACK,QAAA,IAAW,CAAA,WAAA,GAAY,IAAI;AAEnC;;;;AAIG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAW,IAAI;AAO/B;;;;;;AAMG;AACK,QAAA,IAAI,CAAA,IAAA,GAAqC,SAAS;AAE1D;;AAEG;AACM,QAAA,IAAS,CAAA,SAAA,GAAY,IAAI;AAElC;;AAEG;AACM,QAAA,IAAc,CAAA,cAAA,GAAY,KAA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mBAAmB,EACzB,OAAO,EAAE,MAAK;gBACZ,IAAI,CAAC,OAAO,EAAE;aACf,gBACU,iBAAiB,EAAA,EAE5B,CAAU,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,QAAQ,EAAA,CAAG,CACnB,CACV,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsToast","__stencil_proxyCustomElement"],"sources":["src/components/pds-toast/pds-toast.scss?tag=pds-toast&encapsulation=shadow","src/components/pds-toast/pds-toast.tsx"],"sourcesContent":[":host {\n --animation-duration: 0.3s;\n --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);\n --padding-inline: var(--pine-dimension-md);\n --padding-inline-desktop: var(--pine-dimension-2xl);\n --sizing-height-default: 68px;\n --sizing-min-width: calc(var(--sizing-total-width) - (var(--padding-inline) * 2));\n --sizing-min-width-desktop: calc(var(--sizing-total-width) - (var(--padding-inline-desktop) * 2));\n --sizing-total-width: 350px;\n\n box-sizing: border-box;\n display: block;\n font: var(--pine-typography-body-medium);\n}\n\n.pds-toast {\n align-items: center;\n animation: pds-toast-animate-in var(--animation-duration) var(--animation-timing);\n background-color: var(--pine-color-primary);\n border-radius: var(--pine-dimension-xs);\n box-shadow: var(--pine-box-shadow);\n color: var(--pine-color-text-primary);\n display: flex;\n height: var(--sizing-height-default);\n justify-content: flex-start;\n margin-block-end: var(--pine-dimension-2xs);\n max-width: 90vw;\n min-width: var(--sizing-min-width);\n padding: 0 var(--padding-inline);\n position: relative;\n width: fit-content;\n\n @media screen and (max-width: 767px) {\n height: 36px;\n max-width: calc(100vw - (var(--pine-dimension-2xs) * 2));\n min-width: auto;\n padding-inline: var(--pine-dimension-2xs);\n }\n\n &--danger {\n background-color: var(--pine-color-danger);\n }\n\n &--loading {\n .pds-toast__loader {\n align-items: center;\n display: flex;\n justify-content: center;\n margin-inline-end: var(--pine-dimension-sm);\n position: relative;\n\n &-spinner {\n animation: pds-toast-rotate 2s linear infinite;\n height: 20px;\n width: 20px;\n }\n\n &-path {\n animation: pds-toast-dash 1.5s ease-in-out infinite;\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n }\n }\n }\n}\n\n.pds-toast__icon {\n color: var(--pine-color-text-primary);\n display: inline-flex;\n margin-inline-end: var(--pine-dimension-sm);\n}\n\n.pds-toast__message {\n font: var(--pine-typography-body-sm-medium);\n margin-inline-end: auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n // Style all slotted links\n ::slotted(a) {\n color: var(--pine-color-text-primary);\n margin-inline-start: var(--pine-dimension-xs);\n opacity: 0.7;\n text-decoration: underline;\n\n &:hover,\n &:focus-visible {\n opacity: 1;\n }\n\n &:focus-visible {\n outline: 2px solid var(--pine-color-text-primary);\n outline-offset: 2px;\n }\n }\n}\n\n.pds-toast__button {\n align-items: center;\n background: none;\n border: 0;\n border-radius: var(--pine-border-radius-full);\n color: inherit;\n cursor: pointer;\n display: inline-flex;\n margin-inline-start: var(--pine-dimension-md);\n opacity: 0.7;\n padding: 0;\n white-space: nowrap;\n\n &:hover,\n &:focus {\n opacity: 1;\n }\n\n &:focus {\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-dimension-2xs);\n }\n}\n\n// Animation keyframes\n@keyframes pds-toast-animate-in {\n from {\n opacity: 0;\n transform: translateY(100%);\n }\n\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@keyframes pds-toast-animate-out {\n from {\n opacity: 1;\n transform: translateY(0);\n }\n\n to {\n opacity: 0;\n transform: translateY(100%);\n }\n}\n\n// Loading animation keyframes\n@keyframes pds-toast-rotate {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes pds-toast-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35;\n }\n\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124;\n }\n}\n\n// Animation for dismissing\n:host([hidden]) .pds-toast,\n.pds-toast--animating-out {\n animation: pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;\n pointer-events: none; /* Prevent interaction during animation */\n}\n","import { Component, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\n\n@Component({\n tag: 'pds-toast',\n styleUrl: 'pds-toast.scss',\n shadow: true,\n})\nexport class PdsToast {\n // Props\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Whether the toast can be dismissed manually via the close button.\n * Note: This only controls manual dismissal. Auto-dismissal via duration still applies.\n * @default true\n */\n @Prop() dismissible: boolean = true;\n\n /**\n * The duration in milliseconds to show the toast before auto-dismissing.\n * Set to 0 to disable auto-dismiss.\n * @default 4500\n */\n @Prop() duration: number = 4500;\n\n /**\n * The name of the icon to display in the toast.\n */\n @Prop() icon?: string;\n\n /**\n * The type of toast to display.\n * - default: Grey background (default)\n * - danger: Red background\n * - loading: With spinner animation\n * @default 'default'\n */\n @Prop() type: 'default' | 'danger' | 'loading' = 'default';\n\n /**\n * Whether the toast is currently visible.\n */\n @State() isVisible: boolean = true;\n\n /**\n * Whether the toast is animating out.\n */\n @State() isAnimatingOut: boolean = false;\n\n // Private properties\n /**\n * Timer for auto-dismissal\n */\n private dismissTimer?: number;\n\n /**\n * Event emitted when the toast is dismissed, either manually or automatically.\n */\n @Event() pdsToastDismissed: EventEmitter<{ componentId?: string }>;\n\n componentDidLoad() {\n if (this.duration > 0) {\n this.startDismissTimer();\n }\n }\n\n disconnectedCallback() {\n this.cleanup();\n }\n\n @Watch('duration')\n handleDurationChange(newDuration: number) {\n if (this.dismissTimer) {\n window.clearTimeout(this.dismissTimer);\n this.dismissTimer = undefined;\n }\n if (newDuration > 0) {\n this.startDismissTimer();\n }\n }\n\n @Method()\n async dismiss(): Promise<void> {\n // Start the animation out\n this.isAnimatingOut = true;\n\n // Wait for animation to complete before hiding and cleanup\n await new Promise((resolve) => setTimeout(resolve, 300)); // Match --animation-duration\n\n this.isVisible = false;\n this.cleanup();\n this.pdsToastDismissed.emit({ componentId: this.componentId });\n }\n\n // Private methods\n private cleanup(): void {\n if (this.dismissTimer) {\n window.clearTimeout(this.dismissTimer);\n this.dismissTimer = undefined;\n }\n }\n\n private startDismissTimer(): void {\n this.dismissTimer = window.setTimeout(() => {\n this.dismiss();\n }, this.duration);\n }\n\n private renderIcon() {\n // Loading type takes priority\n if (this.type === 'loading') {\n return (\n <div class=\"pds-toast__loader\">\n <svg class=\"pds-toast__loader-spinner\" viewBox=\"25 25 50 50\" aria-hidden=\"true\">\n <circle class=\"pds-toast__loader-path\" cx=\"50\" cy=\"50\" r=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"4\" stroke-linecap=\"round\" />\n </svg>\n </div>\n );\n }\n\n // Return icon if provided, otherwise undefined (which renders as nothing)\n return this.icon && <pds-icon name={this.icon} class=\"pds-toast__icon\" />;\n }\n\n render() {\n return (\n <Host hidden={!this.isVisible}>\n <div\n class={{\n 'pds-toast': true,\n [`pds-toast--${this.type}`]: this.type !== 'default',\n 'pds-toast--animating-out': this.isAnimatingOut\n }}\n role=\"alert\"\n aria-live=\"polite\"\n >\n {this.renderIcon()}\n\n <span class=\"pds-toast__message\">\n <slot></slot>\n </span>\n\n {this.dismissible && (\n <button\n type=\"button\"\n class=\"pds-toast__button\"\n onClick={() => {\n this.dismiss();\n }}\n aria-label=\"Dismiss message\"\n >\n <pds-icon name=\"remove\" />\n </button>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pds-toast.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,y4JAAy4J;;MCOh5JA,UAAQ,iBAAAC,kBAAA,CAAA,MAAA,QAAA,SAAA,WAAA,CAAA;AALrB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;;;AAYE;;;;AAIG;AACK,QAAA,IAAW,CAAA,WAAA,GAAY,IAAI;AAEnC;;;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AAK,EAAC,oBAAoB,EAAA,EAC9B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR,EAEN,IAAI,CAAC,WAAW,KACf,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,mBAAmB,EACzB,OAAO,EAAE,MAAK;gBACZ,IAAI,CAAC,OAAO,EAAE;aACf,gBACU,iBAAiB,EAAA,EAE5B,CAAU,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,QAAQ,EAAA,CAAG,CACnB,CACV,CACG,CACD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsToast","__stencil_proxyCustomElement"],"sources":["src/components/pds-toast/pds-toast.scss?tag=pds-toast&encapsulation=shadow","src/components/pds-toast/pds-toast.tsx"],"sourcesContent":[":host {\n --animation-duration: 0.3s;\n --animation-timing: cubic-bezier(0.4, 0, 0.2, 1);\n --padding-inline: var(--pine-dimension-md);\n --padding-inline-desktop: var(--pine-dimension-2xl);\n --sizing-height-default: 68px;\n --sizing-min-width: calc(var(--sizing-total-width) - (var(--padding-inline) * 2));\n --sizing-min-width-desktop: calc(var(--sizing-total-width) - (var(--padding-inline-desktop) * 2));\n --sizing-total-width: 350px;\n\n box-sizing: border-box;\n display: block;\n font: var(--pine-typography-body-medium);\n}\n\n.pds-toast {\n align-items: center;\n animation: pds-toast-animate-in var(--animation-duration) var(--animation-timing);\n background-color: var(--pine-color-primary);\n border-radius: var(--pine-dimension-xs);\n box-shadow: var(--pine-box-shadow);\n color: var(--pine-color-text-primary);\n display: flex;\n height: var(--sizing-height-default);\n justify-content: flex-start;\n margin-block-end: var(--pine-dimension-2xs);\n max-width: 90vw;\n min-width: var(--sizing-min-width);\n padding: 0 var(--padding-inline);\n position: relative;\n width: fit-content;\n\n @media screen and (max-width: 767px) {\n height: 36px;\n max-width: calc(100vw - (var(--pine-dimension-2xs) * 2));\n min-width: auto;\n padding-inline: var(--pine-dimension-2xs);\n }\n\n &--danger {\n background-color: var(--pine-color-danger);\n }\n\n &--loading {\n .pds-toast__loader {\n align-items: center;\n display: flex;\n justify-content: center;\n margin-inline-end: var(--pine-dimension-sm);\n position: relative;\n\n &-spinner {\n animation: pds-toast-rotate 2s linear infinite;\n height: 20px;\n width: 20px;\n }\n\n &-path {\n animation: pds-toast-dash 1.5s ease-in-out infinite;\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n stroke-linecap: round;\n }\n }\n }\n}\n\n.pds-toast__icon {\n color: var(--pine-color-text-primary);\n display: inline-flex;\n margin-inline-end: var(--pine-dimension-sm);\n}\n\n.pds-toast__message {\n font: var(--pine-typography-body-sm-medium);\n margin-inline-end: auto;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n\n // Style all slotted links\n ::slotted(a) {\n color: var(--pine-color-text-primary);\n margin-inline-start: var(--pine-dimension-xs);\n opacity: 0.7;\n text-decoration: underline;\n\n &:hover,\n &:focus-visible {\n opacity: 1;\n }\n\n &:focus-visible {\n outline: 2px solid var(--pine-color-text-primary);\n outline-offset: 2px;\n }\n }\n}\n\n.pds-toast__button {\n align-items: center;\n background: none;\n border: 0;\n border-radius: var(--pine-border-radius-full);\n color: inherit;\n cursor: pointer;\n display: inline-flex;\n margin-inline-start: var(--pine-dimension-md);\n opacity: 0.7;\n padding: 0;\n white-space: nowrap;\n\n &:hover,\n &:focus {\n opacity: 1;\n }\n\n &:focus {\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-dimension-2xs);\n }\n}\n\n// Animation keyframes\n@keyframes pds-toast-animate-in {\n from {\n opacity: 0;\n transform: translateY(100%);\n }\n\n to {\n opacity: 1;\n transform: translateY(0);\n }\n}\n\n@keyframes pds-toast-animate-out {\n from {\n opacity: 1;\n transform: translateY(0);\n }\n\n to {\n opacity: 0;\n transform: translateY(100%);\n }\n}\n\n// Loading animation keyframes\n@keyframes pds-toast-rotate {\n to {\n transform: rotate(360deg);\n }\n}\n\n@keyframes pds-toast-dash {\n 0% {\n stroke-dasharray: 1, 200;\n stroke-dashoffset: 0;\n }\n\n 50% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -35;\n }\n\n 100% {\n stroke-dasharray: 89, 200;\n stroke-dashoffset: -124;\n }\n}\n\n// Animation for dismissing\n:host([hidden]) .pds-toast,\n.pds-toast--animating-out {\n animation: pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;\n pointer-events: none; /* Prevent interaction during animation */\n}\n","import { Component, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\n\n@Component({\n tag: 'pds-toast',\n styleUrl: 'pds-toast.scss',\n shadow: true,\n})\nexport class PdsToast {\n // Props\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Whether the toast can be dismissed manually via the close button.\n * Note: This only controls manual dismissal. Auto-dismissal via duration still applies.\n * @default true\n */\n @Prop() dismissible: boolean = true;\n\n /**\n * The duration in milliseconds to show the toast before auto-dismissing.\n * Set to 0 to disable auto-dismiss.\n * @default 4500\n */\n @Prop() duration: number = 4500;\n\n /**\n * The name of the icon to display in the toast.\n */\n @Prop() icon?: string;\n\n /**\n * The type of toast to display.\n * - default: Grey background (default)\n * - danger: Red background\n * - loading: With spinner animation\n * @default 'default'\n */\n @Prop() type: 'default' | 'danger' | 'loading' = 'default';\n\n /**\n * Whether the toast is currently visible.\n */\n @State() isVisible: boolean = true;\n\n /**\n * Whether the toast is animating out.\n */\n @State() isAnimatingOut: boolean = false;\n\n // Private properties\n /**\n * Timer for auto-dismissal\n */\n private dismissTimer?: number;\n\n /**\n * Event emitted when the toast is dismissed, either manually or automatically.\n */\n @Event() pdsToastDismissed: EventEmitter<{ componentId?: string }>;\n\n componentDidLoad() {\n if (this.duration > 0) {\n this.startDismissTimer();\n }\n }\n\n disconnectedCallback() {\n this.cleanup();\n }\n\n @Watch('duration')\n handleDurationChange(newDuration: number) {\n if (this.dismissTimer) {\n window.clearTimeout(this.dismissTimer);\n this.dismissTimer = undefined;\n }\n if (newDuration > 0) {\n this.startDismissTimer();\n }\n }\n\n @Method()\n async dismiss(): Promise<void> {\n // Start the animation out\n this.isAnimatingOut = true;\n\n // Wait for animation to complete before hiding and cleanup\n await new Promise((resolve) => setTimeout(resolve, 300)); // Match --animation-duration\n\n this.isVisible = false;\n this.cleanup();\n this.pdsToastDismissed.emit({ componentId: this.componentId });\n }\n\n // Private methods\n private cleanup(): void {\n if (this.dismissTimer) {\n window.clearTimeout(this.dismissTimer);\n this.dismissTimer = undefined;\n }\n }\n\n private startDismissTimer(): void {\n this.dismissTimer = window.setTimeout(() => {\n this.dismiss();\n }, this.duration);\n }\n\n private renderIcon() {\n // Loading type takes priority\n if (this.type === 'loading') {\n return (\n <div class=\"pds-toast__loader\">\n <svg class=\"pds-toast__loader-spinner\" viewBox=\"25 25 50 50\" aria-hidden=\"true\">\n <circle class=\"pds-toast__loader-path\" cx=\"50\" cy=\"50\" r=\"20\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"4\" stroke-linecap=\"round\" />\n </svg>\n </div>\n );\n }\n\n // Return icon if provided, otherwise undefined (which renders as nothing)\n return this.icon && <pds-icon name={this.icon} class=\"pds-toast__icon\" />;\n }\n\n render() {\n return (\n <Host hidden={!this.isVisible}>\n <div\n class={{\n 'pds-toast': true,\n [`pds-toast--${this.type}`]: this.type !== 'default',\n 'pds-toast--animating-out': this.isAnimatingOut\n }}\n role=\"alert\"\n aria-live=\"polite\"\n >\n {this.renderIcon()}\n\n <span class=\"pds-toast__message\">\n <slot></slot>\n </span>\n\n {this.dismissible && (\n <button\n type=\"button\"\n class=\"pds-toast__button\"\n onClick={() => {\n this.dismiss();\n }}\n aria-label=\"Dismiss message\"\n >\n <pds-icon name=\"remove\" />\n </button>\n )}\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -4,9 +4,11 @@ import { c as computePosition, a as autoUpdate, o as offset, f as flip, s as shi
4
4
  const pdsTooltipCss = ".pds-tooltip{--tooltip-border-width-arrow-down:var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) 0;--tooltip-border-width-arrow-left:var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) 0;--tooltip-border-width-arrow-right:var(--tooltip-sizing-arrow) 0 var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow);--tooltip-border-width-arrow-up:0 var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow);--tooltip-sizing-arrow:6px;--tooltip-sizing-arrow-offset:14px;--tooltip-dimension-max-width:320px}.pds-tooltip__content{background-color:var(--pine-color-primary);border-radius:calc(var(--pine-dimension-xs) * 1.25);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);color:var(--pine-color-text-primary);max-width:var(--tooltip-dimension-max-width);opacity:0;padding:var(--pine-dimension-xs) calc(var(--pine-dimension-md) / 2);visibility:hidden;width:-webkit-max-content;width:-moz-max-content;width:max-content}.pds-tooltip--is-open .pds-tooltip__content{opacity:1;visibility:visible;z-index:var(--pine-z-index-raised)}.pds-tooltip.pds-tooltip--has-html-content .pds-tooltip__content{width:auto}.pds-tooltip__content::after{border-color:transparent;border-right-color:transparent;border-style:solid;border-width:var(--tooltip-border-width-arrow-left);content:\"\";height:0;position:absolute;width:0}.pds-tooltip--right .pds-tooltip__content::after{border-inline-end-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-left);left:calc(var(--tooltip-sizing-arrow) * -1);top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pds-tooltip--right-end .pds-tooltip__content::after{border-inline-end-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-left);bottom:var(--tooltip-sizing-arrow-offset);left:calc(var(--tooltip-sizing-arrow) * -1);top:initial}.pds-tooltip--right-start .pds-tooltip__content::after{border-inline-end-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-left);left:calc(var(--tooltip-sizing-arrow) * -1);top:var(--tooltip-sizing-arrow-offset)}.pds-tooltip--top .pds-tooltip__content::after{border-block-start-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-down);bottom:calc(var(--tooltip-sizing-arrow) * -1);left:50%;top:initial;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pds-tooltip--top-start .pds-tooltip__content::after{border-block-start-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-down);bottom:calc(var(--tooltip-sizing-arrow) * -1);left:var(--tooltip-sizing-arrow-offset);top:initial}.pds-tooltip--top-end .pds-tooltip__content::after{border-block-start-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-down);bottom:calc(var(--tooltip-sizing-arrow) * -1);left:initial;right:var(--tooltip-sizing-arrow-offset);top:initial}.pds-tooltip--left .pds-tooltip__content::after{border-inline-start-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-right);left:initial;right:calc(var(--tooltip-sizing-arrow) * -1);top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.pds-tooltip--left-end .pds-tooltip__content::after{border-inline-start-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-right);bottom:var(--tooltip-sizing-arrow-offset);left:initial;right:calc(var(--tooltip-sizing-arrow) * -1);top:initial}.pds-tooltip--left-start .pds-tooltip__content::after{border-inline-start-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-right);left:initial;right:calc(var(--tooltip-sizing-arrow) * -1);top:var(--tooltip-sizing-arrow-offset)}.pds-tooltip--bottom .pds-tooltip__content::after{border-block-end-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-up);left:50%;top:calc(var(--tooltip-sizing-arrow) * -1);-webkit-transform:translateX(-50%);transform:translateX(-50%)}.pds-tooltip--bottom-end .pds-tooltip__content::after{border-block-end-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-up);left:initial;right:var(--tooltip-sizing-arrow-offset);top:calc(var(--tooltip-sizing-arrow) * -1)}.pds-tooltip--bottom-start .pds-tooltip__content::after{border-block-end-color:var(--pine-color-primary);border-width:var(--tooltip-border-width-arrow-up);left:var(--tooltip-sizing-arrow-offset);top:calc(var(--tooltip-sizing-arrow) * -1)}.pds-tooltip--no-arrow .pds-tooltip__content::after{border-width:0}";
5
5
 
6
6
  const PdsTooltip$1 = /*@__PURE__*/ proxyCustomElement(class PdsTooltip extends HTMLElement {
7
- constructor() {
7
+ constructor(registerHost) {
8
8
  super();
9
- this.__registerHost();
9
+ if (registerHost !== false) {
10
+ this.__registerHost();
11
+ }
10
12
  /**
11
13
  * Internal state: true if the tooltip was opened by user interaction (hover/focus),
12
14
  * false if opened via the `opened` prop or currently closed.
@@ -313,16 +315,16 @@ const PdsTooltip$1 = /*@__PURE__*/ proxyCustomElement(class PdsTooltip extends H
313
315
  }
314
316
  render() {
315
317
  const hostId = this.componentId || undefined;
316
- return (h(Host, { key: 'af1e569128ba37226fd2fc36059f3c829a8f0c6f', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, h("span", { key: '16a834eb3ac201e8ab7b42000d89ee7f04a15ec9', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
318
+ return (h(Host, { key: 'ef40605b8ed95b1920caa425a021b900bdaef847', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, h("span", { key: '953a0ddd6070fa99e89307f6ddb9bacfa6932b5c', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide,
317
319
  /* focusin/out bubble; ensure keyboard users see tooltips */
318
- onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, h("slot", { key: '2c15603e660ef296a9e2d47958b858d7162d0cc5' })), h("div", { key: 'e3bfefad4fe5f2c2d67ca1cc00d65f353ee08332', class: "pds-tooltip__content-slot-wrapper", hidden: true }, h("slot", { key: '0f63d8e02dba9ba43df2c92ec5e5509ab5f8f920', name: "content" }))));
320
+ onFocusin: this.handleShow, onFocusout: this.handleHide, ref: el => this.triggerEl = el }, h("slot", { key: '9fa52468a1d99d4dd5af8a8c07d11b1591c5204c' })), h("div", { key: 'c4dfe98893fc2abacff788177d1f143afb2aa502', class: "pds-tooltip__content-slot-wrapper", hidden: true }, h("slot", { key: '468d06248f384f727517de3fd4c15af8d6e7b118', name: "content" }))));
319
321
  }
320
322
  get el() { return this; }
321
323
  static get watchers() { return {
322
324
  "opened": ["handleOpenToggle"]
323
325
  }; }
324
326
  static get style() { return pdsTooltipCss; }
325
- }, [4, "pds-tooltip", {
327
+ }, [260, "pds-tooltip", {
326
328
  "content": [1],
327
329
  "componentId": [1, "component-id"],
328
330
  "hasArrow": [4, "has-arrow"],
@@ -1 +1 @@
1
- {"file":"pds-tooltip.js","mappings":";;;AAAA,MAAM,aAAa,GAAG,+7IAA+7I;;MCqBx8IA,YAAU,iBAAAC,kBAAA,CAAA,MAAA,UAAA,SAAA,WAAA,CAAA;AANvB,IAAA,WAAA,GAAA;;;AASE;;;AAGG;AACc,QAAA,IAAkB,CAAA,kBAAA,GAAG,KAAK;AAEnC,QAAA,IAAQ,CAAA,QAAA,GAAuB,IAAI;AACnC,QAAA,IAAiB,CAAA,iBAAA,GAAkB,OAAO;AAC1C,QAAA,IAAS,CAAA,SAAA,GAAuB,IAAI;AACpC,QAAA,IAAU,CAAA,UAAA,GAAuB,IAAI;AACrC,QAAA,IAAoB,CAAA,oBAAA,GAA4B,IAAI;AACpD,QAAA,IAAe,CAAA,eAAA,GAAW,EAAE;AAC5B,QAAA,IAAqB,CAAA,qBAAA,GAA0C,IAAI;AACnE,QAAA,IAAc,CAAA,cAAA,GAAwB,IAAI;AAiBlD;;;AAGG;AACK,QAAA,IAAQ,CAAA,QAAA,GAAG,IAAI;AAEvB;;;AAGG;AACK,QAAA,IAAW,CAAA,WAAA,GAAG,KAAK;AAE3B;;;AAGG;AACsB,QAAA,IAAS,CAAA,SAAA,GAAkB,OAAO;AAE3D;;;AAGG;AACK,QAAA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A,IAAI,CAAC,SAAS,CAAC,eAAe,CAAC,kBAAkB,CAAC;;AAEpD,QAAA,IAAI,CAAC,UAAU,GAAG,IAAI;;IAGxB,MAAM,GAAA;AACJ,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,IAAI,SAAS;QAE5C,QACE,CAAC,CAAA,IAAI,EAAC,EAAA,GAAA,EAAA,0CAAA,EAAA,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,sBAAsB,EAAE,IAAI,CAAC,MAAM,EAAE,EAAA,EAC9D,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAC,sBAAsB,EAC5B,YAAY,EAAE,IAAI,CAAC,UAAU,EAC7B,YAAY,EAAE,IAAI,CAAC,UAAU;;AAE7B,YAAA,SAAS,EAAE,IAAI,CAAC,UAAiB,EACjC,UAAU,EAAE,IAAI,CAAC,UAAiB,EAClC,GAAG,EAAE,EAAE,IAAI,IAAI,CAAC,SAAS,GAAG,EAAE,EAAA,EAE9B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACH,EACP,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,mCAAmC,EAAC,MAAM,EAAA,IAAA,EAAA,EACnD,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,CACD;;;;;;;;;;;;;;;;;;;;;AAlZID,YAAe,CAAA,eAAA,GAAG,CAAH;;;;;;;;;;;;;;;;;;;;","names":["PdsTooltip","__stencil_proxyCustomElement"],"sources":["src/components/pds-tooltip/pds-tooltip.scss?tag=pds-tooltip","src/components/pds-tooltip/pds-tooltip.tsx"],"sourcesContent":[".pds-tooltip {\n --tooltip-border-width-arrow-down: var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) 0;\n --tooltip-border-width-arrow-left: var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) 0;\n --tooltip-border-width-arrow-right: var(--tooltip-sizing-arrow) 0 var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow);\n --tooltip-border-width-arrow-up: 0 var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow);\n --tooltip-sizing-arrow: 6px;\n --tooltip-sizing-arrow-offset: 14px;\n --tooltip-dimension-max-width: 320px;\n}\n\n.pds-tooltip__content {\n background-color: var(--pine-color-primary);\n border-radius: calc(var(--pine-dimension-xs) * 1.25);\n box-shadow: var(--pine-box-shadow);\n color: var(--pine-color-text-primary);\n // TODO: need to use block / none but the tooltip content width and height are needed for calculations\n max-width: var(--tooltip-dimension-max-width);\n opacity: 0;\n padding: var(--pine-dimension-xs) calc(var(--pine-dimension-md) / 2);\n visibility: hidden;\n width: max-content;\n\n .pds-tooltip--is-open & {\n // TODO: need to use block / none but the tooltip content width and height are needed for calculations\n opacity: 1;\n visibility: visible;\n z-index: var(--pine-z-index-raised);\n }\n\n .pds-tooltip.pds-tooltip--has-html-content & {\n width: auto;\n }\n\n &::after {\n border-color: transparent;\n border-right-color: transparent;\n border-style: solid;\n border-width: var(--tooltip-border-width-arrow-left);\n content: '';\n height: 0;\n position: absolute;\n width: 0;\n\n .pds-tooltip--right & {\n border-inline-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-left);\n left: calc(var(--tooltip-sizing-arrow) * -1);\n top: 50%;\n transform: translateY(-50%);\n }\n\n .pds-tooltip--right-end & {\n border-inline-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-left);\n bottom: var(--tooltip-sizing-arrow-offset);\n left: calc(var(--tooltip-sizing-arrow) * -1);\n top: initial;\n }\n\n .pds-tooltip--right-start & {\n border-inline-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-left);\n left: calc(var(--tooltip-sizing-arrow) * -1);\n top: var(--tooltip-sizing-arrow-offset);\n }\n\n .pds-tooltip--top & {\n border-block-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-down);\n bottom: calc(var(--tooltip-sizing-arrow) * -1);\n left: 50%;\n top: initial;\n transform: translateX(-50%);\n }\n\n .pds-tooltip--top-start & {\n border-block-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-down);\n bottom: calc(var(--tooltip-sizing-arrow) * -1);\n left: var(--tooltip-sizing-arrow-offset);\n top: initial;\n }\n\n .pds-tooltip--top-end & {\n border-block-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-down);\n bottom: calc(var(--tooltip-sizing-arrow) * -1);\n left: initial;\n right: var(--tooltip-sizing-arrow-offset);\n top: initial;\n }\n\n .pds-tooltip--left & {\n border-inline-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-right);\n left: initial;\n right: calc(var(--tooltip-sizing-arrow) * -1);\n top: 50%;\n transform: translateY(-50%);\n }\n\n .pds-tooltip--left-end & {\n border-inline-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-right);\n bottom: var(--tooltip-sizing-arrow-offset);\n left: initial;\n right: calc(var(--tooltip-sizing-arrow) * -1);\n top: initial;\n }\n\n .pds-tooltip--left-start & {\n border-inline-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-right);\n left: initial;\n right: calc(var(--tooltip-sizing-arrow) * -1);\n top: var(--tooltip-sizing-arrow-offset);\n }\n\n .pds-tooltip--bottom & {\n border-block-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-up);\n left: 50%;\n top: calc(var(--tooltip-sizing-arrow) * -1);\n transform: translateX(-50%);\n }\n\n .pds-tooltip--bottom-end & {\n border-block-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-up);\n left: initial;\n right: var(--tooltip-sizing-arrow-offset);\n top: calc(var(--tooltip-sizing-arrow) * -1);\n }\n\n .pds-tooltip--bottom-start & {\n border-block-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-up);\n left: var(--tooltip-sizing-arrow-offset);\n top: calc(var(--tooltip-sizing-arrow) * -1);\n }\n\n .pds-tooltip--no-arrow & {\n border-width: 0;\n }\n }\n}\n","import { Component, Element, Host, Prop, State, h, Method, Watch } from '@stencil/core';\nimport { PlacementType } from '@utils/types';\nimport {\n autoUpdate,\n computePosition,\n flip,\n offset,\n shift,\n} from '@floating-ui/dom';\n\n/**\n * @slot (default) - The tooltip's target element\n * @slot content - HTML content for the tooltip\n */\n\n@Component({\n tag: 'pds-tooltip',\n styleUrls: ['pds-tooltip.scss'],\n shadow: false,\n})\n\nexport class PdsTooltip {\n private static instanceCounter = 0;\n\n /**\n * Internal state: true if the tooltip was opened by user interaction (hover/focus),\n * false if opened via the `opened` prop or currently closed.\n */\n @State() private _isInteractiveOpen = false;\n\n private portalEl: HTMLElement | null = null;\n private resolvedPlacement: PlacementType = 'right';\n private triggerEl: HTMLElement | null = null;\n private contentDiv: HTMLElement | null = null;\n private slotMutationObserver: MutationObserver | null = null;\n private currentPathname: string = '';\n private pathnameCheckInterval: ReturnType<typeof setInterval> | null = null;\n private stopAutoUpdate: (() => void) | null = null;\n\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsTooltipElement;\n\n /**\n * Content for the tooltip. If HTML is required, use the content slot\n */\n @Prop() content: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether or not the tooltip has an arrow\n * @defaultValue true\n */\n @Prop() hasArrow = true;\n\n /**\n * Enable this option when using the content slot\n * @defaultValue false\n */\n @Prop() htmlContent = false;\n\n /**\n * Determines the preferred position of the tooltip\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement: PlacementType = 'right';\n\n /**\n * Sets the maximum width of the tooltip content\n * @defaultValue \"352px\"\n */\n @Prop() maxWidth: string = '352px';\n\n /**\n * Determines whether or not the tooltip is visible\n * @defaultValue false\n */\n @Prop({mutable: true, reflect: true}) opened = false;\n\n @Watch('opened')\n\n handleOpenToggle(newValue: boolean, oldValue: boolean) {\n if (newValue === false && oldValue === true) {\n this._isInteractiveOpen = false;\n }\n }\n\n componentWillLoad() {\n this._isInteractiveOpen = false;\n this.resolvedPlacement = this.placement;\n }\n\n componentDidLoad() {\n window.addEventListener('pageshow', this.handlePageShow);\n this.currentPathname = window.location.pathname;\n this.triggerEl = this.el.querySelector('.pds-tooltip__trigger') as HTMLElement;\n const contentSlotWrapper = this.el.querySelector('.pds-tooltip__content-slot-wrapper');\n\n if (contentSlotWrapper !== null) {\n this.slotMutationObserver = new MutationObserver(() => {\n if (this.opened && this.portalEl !== null) {\n this.removePortal();\n this.createPortal();\n }\n });\n this.slotMutationObserver.observe(contentSlotWrapper, { childList: true, subtree: false });\n }\n\n // no return; Stencil ignores teardown functions here\n }\n\n disconnectedCallback() {\n window.removeEventListener('pageshow', this.handlePageShow);\n if (this.slotMutationObserver !== null) {\n this.slotMutationObserver.disconnect();\n this.slotMutationObserver = null;\n }\n // Ensure global listeners/intervals are removed if still present\n if (this.portalEl !== null) {\n this.removePortal();\n }\n if (this.pathnameCheckInterval !== null) {\n clearInterval(this.pathnameCheckInterval);\n this.pathnameCheckInterval = null;\n }\n // Ensure autoUpdate is stopped if still present\n if (this.stopAutoUpdate !== null) {\n this.stopAutoUpdate();\n this.stopAutoUpdate = null;\n }\n }\n\n componentDidRender() {\n if (this.opened && this.portalEl === null) {\n this.createPortal();\n } else if (!this.opened && this.portalEl !== null) {\n this.removePortal();\n }\n\n // Update portal class when opened state changes\n if (this.portalEl !== null) {\n this.portalEl.className = `pds-tooltip pds-tooltip--${this.resolvedPlacement} ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''} ${this.opened ? 'pds-tooltip--is-open' : ''} ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}`;\n\n // Update ARIA attributes to stay in sync with visual open state\n this.portalEl.setAttribute('aria-hidden', this.opened ? 'false' : 'true');\n this.portalEl.setAttribute('aria-live', this.opened ? 'polite' : 'off');\n }\n }\n\n /**\n * Shows the tooltip by enabling the opened property\n */\n @Method()\n async showTooltip() {\n this.opened = true;\n }\n\n /**\n * Hides the tooltip by disabling the opened property\n */\n @Method()\n async hideTooltip() {\n this.opened = false;\n }\n\n private handleHide = () => {\n if (this.opened && !this._isInteractiveOpen) {\n return;\n }\n\n this.hideTooltip();\n this._isInteractiveOpen = false;\n };\n\n private handleShow = () => {\n if (this.opened && !this._isInteractiveOpen) {\n return;\n }\n\n this._isInteractiveOpen = true;\n this.showTooltip();\n };\n\n private handlePageShow = () => {\n if (this.opened && !this._isInteractiveOpen) {\n return;\n }\n\n this.opened = false;\n this._isInteractiveOpen = false;\n };\n\n\n private handleSpaNavigation = () => {\n if (this.opened && !this._isInteractiveOpen) {\n return;\n }\n\n this.hideTooltip();\n this._isInteractiveOpen = false;\n };\n\n private checkPathnameChange = () => {\n if (window.location.pathname !== this.currentPathname) {\n this.currentPathname = window.location.pathname;\n this.handleSpaNavigation();\n }\n };\n\n /**\n * Determines the most accurate HTML element to use as the anchor for positioning the tooltip.\n * If `htmlContent` is false, it attempts to find the actual element slotted as the trigger.\n * Otherwise, or if no specific element is found, it defaults to the span wrapper around the trigger slot.\n * This helps with precise alignment.\n */\n private determinePositioningAnchor(): HTMLElement | null {\n let positioningAnchor: HTMLElement | null = this.triggerEl;\n\n if (this.triggerEl !== null) {\n const children = this.triggerEl.childNodes;\n\n for (let i = 0; i < children.length; i++) {\n const childNode = children[i];\n\n if (childNode.nodeType === Node.ELEMENT_NODE) {\n positioningAnchor = childNode as HTMLElement;\n break; // Found the first element, use it as the anchor\n }\n }\n }\n\n // If no ELEMENT_NODE is found within this.triggerEl (e.g., if trigger is just text),\n // positioningAnchor will correctly remain this.triggerEl (the span).\n return positioningAnchor;\n }\n\n /**\n * Centralized method to calculate and apply the tooltip's position using floating UI.\n * Uses the determined anchor element and applies computePosition with flip, offset, and shift.\n */\n private async repositionPortal() {\n const anchor = this.determinePositioningAnchor();\n\n if (anchor !== null && this.portalEl !== null) {\n try {\n const { x, y, placement: computedPlacement } = await computePosition(anchor, this.portalEl, {\n placement: this.placement,\n strategy: 'fixed',\n middleware: [offset(8), flip(), shift({ padding: 5 })],\n });\n\n this.resolvedPlacement = computedPlacement as PlacementType;\n\n Object.assign(this.portalEl.style, {\n left: `${x}px`,\n top: `${y}px`,\n position: 'fixed',\n });\n\n // Update CSS classes to match the resolved placement\n this.portalEl.className = `pds-tooltip pds-tooltip--${this.resolvedPlacement} ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''} ${this.opened ? 'pds-tooltip--is-open' : ''} ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}`;\n } catch (error) {\n console.warn('Failed to position tooltip:', error);\n this.resolvedPlacement = this.placement; // Fallback to requested placement\n // Fallback to basic positioning if floating UI fails\n const anchorRect = anchor.getBoundingClientRect();\n this.portalEl.style.left = `${anchorRect.right + 8}px`;\n this.portalEl.style.top = `${anchorRect.top}px`;\n this.portalEl.style.position = 'fixed';\n }\n }\n }\n\n private createPortal() {\n if (this.portalEl !== null) return;\n\n this.portalEl = document.createElement('div');\n this.portalEl.className = `pds-tooltip pds-tooltip--${this.resolvedPlacement} ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''} ${this.opened ? 'pds-tooltip--is-open' : ''} ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}`;\n this.portalEl.style.position = 'fixed';\n this.portalEl.style.zIndex = 'var(--pine-z-index-nuclear)';\n\n if (this.portalEl.id === '') {\n const suffix = PdsTooltip.instanceCounter++;\n const baseId = this.componentId || this.el.id || 'pds-tooltip';\n this.portalEl.id = `${baseId}-portal-${suffix}`;\n }\n\n if (this.portalEl.getAttribute('id') !== this.portalEl.id) {\n this.portalEl.setAttribute('id', this.portalEl.id);\n }\n\n this.portalEl.setAttribute('role', 'tooltip');\n this.portalEl.setAttribute('aria-hidden', this.opened ? 'false' : 'true');\n this.portalEl.setAttribute('aria-live', this.opened ? 'polite' : 'off');\n this.portalEl.style.maxWidth = this.maxWidth;\n\n this.contentDiv = document.createElement('div');\n this.contentDiv.className = 'pds-tooltip__content';\n this.contentDiv.setAttribute('aria-hidden', this.opened ? 'false' : 'true');\n this.contentDiv.setAttribute('aria-live', this.opened ? 'polite' : 'off');\n\n const contentSlotWrapper = this.el.querySelector('.pds-tooltip__content-slot-wrapper');\n const slottedContentContainer = contentSlotWrapper?.querySelector('[slot=\"content\"]') as HTMLElement | null;\n let hasSlottedContent = false;\n\n if (slottedContentContainer !== null) {\n const childrenToClone = Array.from(slottedContentContainer.childNodes);\n\n if (childrenToClone.length > 0) {\n const hasMeaningfulNode = childrenToClone.some(node =>\n node.nodeType === Node.ELEMENT_NODE ||\n (node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== '')\n );\n\n if (hasMeaningfulNode) {\n hasSlottedContent = true;\n childrenToClone.forEach((node /*, index*/) => {\n if (node.nodeType === Node.ELEMENT_NODE || (node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== '')) {\n this.contentDiv.appendChild(node.cloneNode(true));\n }\n });\n }\n }\n }\n\n if (!hasSlottedContent && typeof this.content === 'string' && this.content.trim() !== '') {\n this.contentDiv.textContent = this.content;\n }\n\n this.portalEl.appendChild(this.contentDiv);\n document.body.appendChild(this.portalEl);\n\n this.repositionPortal().catch(error => {\n console.warn('Failed to position tooltip on creation:', error);\n });\n\n // Use Floating UI's autoUpdate to handle scroll/resize automatically\n if (this.triggerEl && this.portalEl) {\n this.stopAutoUpdate = autoUpdate(\n this.triggerEl,\n this.portalEl,\n () => {\n this.repositionPortal().catch(error => {\n console.warn('Failed to reposition tooltip on auto update:', error);\n });\n }\n );\n }\n\n // Keep only SPA navigation listeners (not handled by autoUpdate)\n window.addEventListener('popstate', this.handleSpaNavigation, true);\n window.addEventListener('hashchange', this.handleSpaNavigation, true);\n\n // Start pathname change detection\n this.pathnameCheckInterval = setInterval(this.checkPathnameChange, 100);\n\n // Add ARIA attribute to trigger, now that portalEl and its ID are confirmed\n if (this.triggerEl !== null && this.portalEl.id !== '') {\n this.triggerEl.setAttribute('aria-describedby', this.portalEl.id);\n }\n }\n\n private removePortal() {\n // Stop Floating UI's autoUpdate\n if (this.stopAutoUpdate !== null) {\n this.stopAutoUpdate();\n this.stopAutoUpdate = null;\n }\n\n // Stop pathname change detection\n if (this.pathnameCheckInterval !== null) {\n clearInterval(this.pathnameCheckInterval);\n this.pathnameCheckInterval = null;\n }\n\n if (this.portalEl !== null) {\n // Remove only SPA navigation listeners (scroll/resize handled by autoUpdate)\n window.removeEventListener('popstate', this.handleSpaNavigation, true);\n window.removeEventListener('hashchange', this.handleSpaNavigation, true);\n\n // Safely remove portal from DOM\n try {\n if (this.portalEl.parentNode) {\n this.portalEl.parentNode.removeChild(this.portalEl);\n }\n } catch (error) {\n // Portal might have already been removed by test cleanup\n console.warn('Portal element could not be removed from DOM:', error);\n }\n\n this.portalEl = null;\n }\n\n // Remove ARIA attribute from trigger\n if (this.triggerEl !== null) {\n this.triggerEl.removeAttribute('aria-describedby');\n }\n this.contentDiv = null;\n }\n\n render() {\n const hostId = this.componentId || undefined;\n\n return (\n <Host id={hostId} class={{ 'pds-tooltip--is-open': this.opened }}>\n <span\n class=\"pds-tooltip__trigger\"\n onMouseEnter={this.handleShow}\n onMouseLeave={this.handleHide}\n /* focusin/out bubble; ensure keyboard users see tooltips */\n onFocusin={this.handleShow as any}\n onFocusout={this.handleHide as any}\n ref={el => this.triggerEl = el}\n >\n <slot />\n </span>\n <div class=\"pds-tooltip__content-slot-wrapper\" hidden>\n <slot name=\"content\"></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
1
+ {"file":"pds-tooltip.js","mappings":";;;AAAA,MAAM,aAAa,GAAG,+7IAA+7I;;MCqBx8IA,YAAU,iBAAAC,kBAAA,CAAA,MAAA,UAAA,SAAA,WAAA,CAAA;AANvB,IAAA,WAAA,CAAA,YAAA,EAAA;;;;;AASE;;;AAGG;AACc,QAAA,IAAkB,CAAA,k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MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAQ,CACH,EACP,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAK,KAAK,EAAC,mCAAmC,EAAC,MAAM,EAAA,IAAA,EAAA,EACnD,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAM,IAAI,EAAC,SAAS,GAAQ,CACxB,CACD;;;;;;;;;;;;;;;;;;;;;AAlZID,YAAe,CAAA,eAAA,GAAG,CAAH;;;;;;;;;;;;;;;;;;;;","names":["PdsTooltip","__stencil_proxyCustomElement"],"sources":["src/components/pds-tooltip/pds-tooltip.scss?tag=pds-tooltip","src/components/pds-tooltip/pds-tooltip.tsx"],"sourcesContent":[".pds-tooltip {\n --tooltip-border-width-arrow-down: var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) 0;\n --tooltip-border-width-arrow-left: var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow) 0;\n --tooltip-border-width-arrow-right: var(--tooltip-sizing-arrow) 0 var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow);\n --tooltip-border-width-arrow-up: 0 var(--tooltip-sizing-arrow) var(--tooltip-sizing-arrow);\n --tooltip-sizing-arrow: 6px;\n --tooltip-sizing-arrow-offset: 14px;\n --tooltip-dimension-max-width: 320px;\n}\n\n.pds-tooltip__content {\n background-color: var(--pine-color-primary);\n border-radius: calc(var(--pine-dimension-xs) * 1.25);\n box-shadow: var(--pine-box-shadow);\n color: var(--pine-color-text-primary);\n // TODO: need to use block / none but the tooltip content width and height are needed for calculations\n max-width: var(--tooltip-dimension-max-width);\n opacity: 0;\n padding: var(--pine-dimension-xs) calc(var(--pine-dimension-md) / 2);\n visibility: hidden;\n width: max-content;\n\n .pds-tooltip--is-open & {\n // TODO: need to use block / none but the tooltip content width and height are needed for calculations\n opacity: 1;\n visibility: visible;\n z-index: var(--pine-z-index-raised);\n }\n\n .pds-tooltip.pds-tooltip--has-html-content & {\n width: auto;\n }\n\n &::after {\n border-color: transparent;\n border-right-color: transparent;\n border-style: solid;\n border-width: var(--tooltip-border-width-arrow-left);\n content: '';\n height: 0;\n position: absolute;\n width: 0;\n\n .pds-tooltip--right & {\n border-inline-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-left);\n left: calc(var(--tooltip-sizing-arrow) * -1);\n top: 50%;\n transform: translateY(-50%);\n }\n\n .pds-tooltip--right-end & {\n border-inline-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-left);\n bottom: var(--tooltip-sizing-arrow-offset);\n left: calc(var(--tooltip-sizing-arrow) * -1);\n top: initial;\n }\n\n .pds-tooltip--right-start & {\n border-inline-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-left);\n left: calc(var(--tooltip-sizing-arrow) * -1);\n top: var(--tooltip-sizing-arrow-offset);\n }\n\n .pds-tooltip--top & {\n border-block-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-down);\n bottom: calc(var(--tooltip-sizing-arrow) * -1);\n left: 50%;\n top: initial;\n transform: translateX(-50%);\n }\n\n .pds-tooltip--top-start & {\n border-block-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-down);\n bottom: calc(var(--tooltip-sizing-arrow) * -1);\n left: var(--tooltip-sizing-arrow-offset);\n top: initial;\n }\n\n .pds-tooltip--top-end & {\n border-block-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-down);\n bottom: calc(var(--tooltip-sizing-arrow) * -1);\n left: initial;\n right: var(--tooltip-sizing-arrow-offset);\n top: initial;\n }\n\n .pds-tooltip--left & {\n border-inline-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-right);\n left: initial;\n right: calc(var(--tooltip-sizing-arrow) * -1);\n top: 50%;\n transform: translateY(-50%);\n }\n\n .pds-tooltip--left-end & {\n border-inline-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-right);\n bottom: var(--tooltip-sizing-arrow-offset);\n left: initial;\n right: calc(var(--tooltip-sizing-arrow) * -1);\n top: initial;\n }\n\n .pds-tooltip--left-start & {\n border-inline-start-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-right);\n left: initial;\n right: calc(var(--tooltip-sizing-arrow) * -1);\n top: var(--tooltip-sizing-arrow-offset);\n }\n\n .pds-tooltip--bottom & {\n border-block-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-up);\n left: 50%;\n top: calc(var(--tooltip-sizing-arrow) * -1);\n transform: translateX(-50%);\n }\n\n .pds-tooltip--bottom-end & {\n border-block-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-up);\n left: initial;\n right: var(--tooltip-sizing-arrow-offset);\n top: calc(var(--tooltip-sizing-arrow) * -1);\n }\n\n .pds-tooltip--bottom-start & {\n border-block-end-color: var(--pine-color-primary);\n border-width: var(--tooltip-border-width-arrow-up);\n left: var(--tooltip-sizing-arrow-offset);\n top: calc(var(--tooltip-sizing-arrow) * -1);\n }\n\n .pds-tooltip--no-arrow & {\n border-width: 0;\n }\n }\n}\n","import { Component, Element, Host, Prop, State, h, Method, Watch } from '@stencil/core';\nimport { PlacementType } from '@utils/types';\nimport {\n autoUpdate,\n computePosition,\n flip,\n offset,\n shift,\n} from '@floating-ui/dom';\n\n/**\n * @slot (default) - The tooltip's target element\n * @slot content - HTML content for the tooltip\n */\n\n@Component({\n tag: 'pds-tooltip',\n styleUrls: ['pds-tooltip.scss'],\n shadow: false,\n})\n\nexport class PdsTooltip {\n private static instanceCounter = 0;\n\n /**\n * Internal state: true if the tooltip was opened by user interaction (hover/focus),\n * false if opened via the `opened` prop or currently closed.\n */\n @State() private _isInteractiveOpen = false;\n\n private portalEl: HTMLElement | null = null;\n private resolvedPlacement: PlacementType = 'right';\n private triggerEl: HTMLElement | null = null;\n private contentDiv: HTMLElement | null = null;\n private slotMutationObserver: MutationObserver | null = null;\n private currentPathname: string = '';\n private pathnameCheckInterval: ReturnType<typeof setInterval> | null = null;\n private stopAutoUpdate: (() => void) | null = null;\n\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsTooltipElement;\n\n /**\n * Content for the tooltip. If HTML is required, use the content slot\n */\n @Prop() content: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether or not the tooltip has an arrow\n * @defaultValue true\n */\n @Prop() hasArrow = true;\n\n /**\n * Enable this option when using the content slot\n * @defaultValue false\n */\n @Prop() htmlContent = false;\n\n /**\n * Determines the preferred position of the tooltip\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement: PlacementType = 'right';\n\n /**\n * Sets the maximum width of the tooltip content\n * @defaultValue \"352px\"\n */\n @Prop() maxWidth: string = '352px';\n\n /**\n * Determines whether or not the tooltip is visible\n * @defaultValue false\n */\n @Prop({mutable: true, reflect: true}) opened = false;\n\n @Watch('opened')\n\n handleOpenToggle(newValue: boolean, oldValue: boolean) {\n if (newValue === false && oldValue === true) {\n this._isInteractiveOpen = false;\n }\n }\n\n componentWillLoad() {\n this._isInteractiveOpen = false;\n this.resolvedPlacement = this.placement;\n }\n\n componentDidLoad() {\n window.addEventListener('pageshow', this.handlePageShow);\n this.currentPathname = window.location.pathname;\n this.triggerEl = this.el.querySelector('.pds-tooltip__trigger') as HTMLElement;\n const contentSlotWrapper = this.el.querySelector('.pds-tooltip__content-slot-wrapper');\n\n if (contentSlotWrapper !== null) {\n this.slotMutationObserver = new MutationObserver(() => {\n if (this.opened && this.portalEl !== null) {\n this.removePortal();\n this.createPortal();\n }\n });\n this.slotMutationObserver.observe(contentSlotWrapper, { childList: true, subtree: false });\n }\n\n // no return; Stencil ignores teardown functions here\n }\n\n disconnectedCallback() {\n window.removeEventListener('pageshow', this.handlePageShow);\n if (this.slotMutationObserver !== null) {\n this.slotMutationObserver.disconnect();\n this.slotMutationObserver = null;\n }\n // Ensure global listeners/intervals are removed if still present\n if (this.portalEl !== null) {\n this.removePortal();\n }\n if (this.pathnameCheckInterval !== null) {\n clearInterval(this.pathnameCheckInterval);\n this.pathnameCheckInterval = null;\n }\n // Ensure autoUpdate is stopped if still present\n if (this.stopAutoUpdate !== null) {\n this.stopAutoUpdate();\n this.stopAutoUpdate = null;\n }\n }\n\n componentDidRender() {\n if (this.opened && this.portalEl === null) {\n this.createPortal();\n } else if (!this.opened && this.portalEl !== null) {\n this.removePortal();\n }\n\n // Update portal class when opened state changes\n if (this.portalEl !== null) {\n this.portalEl.className = `pds-tooltip pds-tooltip--${this.resolvedPlacement} ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''} ${this.opened ? 'pds-tooltip--is-open' : ''} ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}`;\n\n // Update ARIA attributes to stay in sync with visual open state\n this.portalEl.setAttribute('aria-hidden', this.opened ? 'false' : 'true');\n this.portalEl.setAttribute('aria-live', this.opened ? 'polite' : 'off');\n }\n }\n\n /**\n * Shows the tooltip by enabling the opened property\n */\n @Method()\n async showTooltip() {\n this.opened = true;\n }\n\n /**\n * Hides the tooltip by disabling the opened property\n */\n @Method()\n async hideTooltip() {\n this.opened = false;\n }\n\n private handleHide = () => {\n if (this.opened && !this._isInteractiveOpen) {\n return;\n }\n\n this.hideTooltip();\n this._isInteractiveOpen = false;\n };\n\n private handleShow = () => {\n if (this.opened && !this._isInteractiveOpen) {\n return;\n }\n\n this._isInteractiveOpen = true;\n this.showTooltip();\n };\n\n private handlePageShow = () => {\n if (this.opened && !this._isInteractiveOpen) {\n return;\n }\n\n this.opened = false;\n this._isInteractiveOpen = false;\n };\n\n\n private handleSpaNavigation = () => {\n if (this.opened && !this._isInteractiveOpen) {\n return;\n }\n\n this.hideTooltip();\n this._isInteractiveOpen = false;\n };\n\n private checkPathnameChange = () => {\n if (window.location.pathname !== this.currentPathname) {\n this.currentPathname = window.location.pathname;\n this.handleSpaNavigation();\n }\n };\n\n /**\n * Determines the most accurate HTML element to use as the anchor for positioning the tooltip.\n * If `htmlContent` is false, it attempts to find the actual element slotted as the trigger.\n * Otherwise, or if no specific element is found, it defaults to the span wrapper around the trigger slot.\n * This helps with precise alignment.\n */\n private determinePositioningAnchor(): HTMLElement | null {\n let positioningAnchor: HTMLElement | null = this.triggerEl;\n\n if (this.triggerEl !== null) {\n const children = this.triggerEl.childNodes;\n\n for (let i = 0; i < children.length; i++) {\n const childNode = children[i];\n\n if (childNode.nodeType === Node.ELEMENT_NODE) {\n positioningAnchor = childNode as HTMLElement;\n break; // Found the first element, use it as the anchor\n }\n }\n }\n\n // If no ELEMENT_NODE is found within this.triggerEl (e.g., if trigger is just text),\n // positioningAnchor will correctly remain this.triggerEl (the span).\n return positioningAnchor;\n }\n\n /**\n * Centralized method to calculate and apply the tooltip's position using floating UI.\n * Uses the determined anchor element and applies computePosition with flip, offset, and shift.\n */\n private async repositionPortal() {\n const anchor = this.determinePositioningAnchor();\n\n if (anchor !== null && this.portalEl !== null) {\n try {\n const { x, y, placement: computedPlacement } = await computePosition(anchor, this.portalEl, {\n placement: this.placement,\n strategy: 'fixed',\n middleware: [offset(8), flip(), shift({ padding: 5 })],\n });\n\n this.resolvedPlacement = computedPlacement as PlacementType;\n\n Object.assign(this.portalEl.style, {\n left: `${x}px`,\n top: `${y}px`,\n position: 'fixed',\n });\n\n // Update CSS classes to match the resolved placement\n this.portalEl.className = `pds-tooltip pds-tooltip--${this.resolvedPlacement} ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''} ${this.opened ? 'pds-tooltip--is-open' : ''} ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}`;\n } catch (error) {\n console.warn('Failed to position tooltip:', error);\n this.resolvedPlacement = this.placement; // Fallback to requested placement\n // Fallback to basic positioning if floating UI fails\n const anchorRect = anchor.getBoundingClientRect();\n this.portalEl.style.left = `${anchorRect.right + 8}px`;\n this.portalEl.style.top = `${anchorRect.top}px`;\n this.portalEl.style.position = 'fixed';\n }\n }\n }\n\n private createPortal() {\n if (this.portalEl !== null) return;\n\n this.portalEl = document.createElement('div');\n this.portalEl.className = `pds-tooltip pds-tooltip--${this.resolvedPlacement} ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''} ${this.opened ? 'pds-tooltip--is-open' : ''} ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}`;\n this.portalEl.style.position = 'fixed';\n this.portalEl.style.zIndex = 'var(--pine-z-index-nuclear)';\n\n if (this.portalEl.id === '') {\n const suffix = PdsTooltip.instanceCounter++;\n const baseId = this.componentId || this.el.id || 'pds-tooltip';\n this.portalEl.id = `${baseId}-portal-${suffix}`;\n }\n\n if (this.portalEl.getAttribute('id') !== this.portalEl.id) {\n this.portalEl.setAttribute('id', this.portalEl.id);\n }\n\n this.portalEl.setAttribute('role', 'tooltip');\n this.portalEl.setAttribute('aria-hidden', this.opened ? 'false' : 'true');\n this.portalEl.setAttribute('aria-live', this.opened ? 'polite' : 'off');\n this.portalEl.style.maxWidth = this.maxWidth;\n\n this.contentDiv = document.createElement('div');\n this.contentDiv.className = 'pds-tooltip__content';\n this.contentDiv.setAttribute('aria-hidden', this.opened ? 'false' : 'true');\n this.contentDiv.setAttribute('aria-live', this.opened ? 'polite' : 'off');\n\n const contentSlotWrapper = this.el.querySelector('.pds-tooltip__content-slot-wrapper');\n const slottedContentContainer = contentSlotWrapper?.querySelector('[slot=\"content\"]') as HTMLElement | null;\n let hasSlottedContent = false;\n\n if (slottedContentContainer !== null) {\n const childrenToClone = Array.from(slottedContentContainer.childNodes);\n\n if (childrenToClone.length > 0) {\n const hasMeaningfulNode = childrenToClone.some(node =>\n node.nodeType === Node.ELEMENT_NODE ||\n (node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== '')\n );\n\n if (hasMeaningfulNode) {\n hasSlottedContent = true;\n childrenToClone.forEach((node /*, index*/) => {\n if (node.nodeType === Node.ELEMENT_NODE || (node.nodeType === Node.TEXT_NODE && node.textContent?.trim() !== '')) {\n this.contentDiv.appendChild(node.cloneNode(true));\n }\n });\n }\n }\n }\n\n if (!hasSlottedContent && typeof this.content === 'string' && this.content.trim() !== '') {\n this.contentDiv.textContent = this.content;\n }\n\n this.portalEl.appendChild(this.contentDiv);\n document.body.appendChild(this.portalEl);\n\n this.repositionPortal().catch(error => {\n console.warn('Failed to position tooltip on creation:', error);\n });\n\n // Use Floating UI's autoUpdate to handle scroll/resize automatically\n if (this.triggerEl && this.portalEl) {\n this.stopAutoUpdate = autoUpdate(\n this.triggerEl,\n this.portalEl,\n () => {\n this.repositionPortal().catch(error => {\n console.warn('Failed to reposition tooltip on auto update:', error);\n });\n }\n );\n }\n\n // Keep only SPA navigation listeners (not handled by autoUpdate)\n window.addEventListener('popstate', this.handleSpaNavigation, true);\n window.addEventListener('hashchange', this.handleSpaNavigation, true);\n\n // Start pathname change detection\n this.pathnameCheckInterval = setInterval(this.checkPathnameChange, 100);\n\n // Add ARIA attribute to trigger, now that portalEl and its ID are confirmed\n if (this.triggerEl !== null && this.portalEl.id !== '') {\n this.triggerEl.setAttribute('aria-describedby', this.portalEl.id);\n }\n }\n\n private removePortal() {\n // Stop Floating UI's autoUpdate\n if (this.stopAutoUpdate !== null) {\n this.stopAutoUpdate();\n this.stopAutoUpdate = null;\n }\n\n // Stop pathname change detection\n if (this.pathnameCheckInterval !== null) {\n clearInterval(this.pathnameCheckInterval);\n this.pathnameCheckInterval = null;\n }\n\n if (this.portalEl !== null) {\n // Remove only SPA navigation listeners (scroll/resize handled by autoUpdate)\n window.removeEventListener('popstate', this.handleSpaNavigation, true);\n window.removeEventListener('hashchange', this.handleSpaNavigation, true);\n\n // Safely remove portal from DOM\n try {\n if (this.portalEl.parentNode) {\n this.portalEl.parentNode.removeChild(this.portalEl);\n }\n } catch (error) {\n // Portal might have already been removed by test cleanup\n console.warn('Portal element could not be removed from DOM:', error);\n }\n\n this.portalEl = null;\n }\n\n // Remove ARIA attribute from trigger\n if (this.triggerEl !== null) {\n this.triggerEl.removeAttribute('aria-describedby');\n }\n this.contentDiv = null;\n }\n\n render() {\n const hostId = this.componentId || undefined;\n\n return (\n <Host id={hostId} class={{ 'pds-tooltip--is-open': this.opened }}>\n <span\n class=\"pds-tooltip__trigger\"\n onMouseEnter={this.handleShow}\n onMouseLeave={this.handleHide}\n /* focusin/out bubble; ensure keyboard users see tooltips */\n onFocusin={this.handleShow as any}\n onFocusout={this.handleHide as any}\n ref={el => this.triggerEl = el}\n >\n <slot />\n </span>\n <div class=\"pds-tooltip__content-slot-wrapper\" hidden>\n <slot name=\"content\"></slot>\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"file":"utils.js","mappings":"AAEa,MAAA,YAAY,GAAG,CAAC,EAAe,KAAI;IAC9C,OAAO,CAAC,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAE,EAAU,CAAC,YAAY;AACtD;MAEa,aAAa,GAAG,CAAC,KAAmB,EAAE,IAAY,KAAkB;AAC/E,IAAA,MAAM,QAAQ,GAAI,KAAa,CAAC,SAAS,IAAI,KAAK;IAClD,OAAO;AACL,QAAA,SAAS,EAAE,KAAK;AAChB,QAAA,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;KACnC;AACnB;AAEO,MAAM,QAAQ,GAAG,CAAC,IAA8B,EAAE,IAAI,GAAG,CAAC,KAAI;AACnE,IAAA,IAAI,KAAU;AACd,IAAA,OAAO,CAAC,GAAG,IAAW,KAAS;QAC7B,YAAY,CAAC,KAAK,CAAC;QACnB,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;AACzC,KAAC;AACH,CAAC;AAED;AACA;;;;;AAKG;MACU,mBAAmB,GAAG,CACjC,KAAyB,EACzB,OAAkD,KAC5B;AACtB,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,SAAS;AAC5B,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,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src/utils/utils.ts"],"sourcesContent":["import type { EventEmitter } from \"@stencil/core\";\n\nexport const hasShadowDom = (el: HTMLElement) => {\n return !!el.shadowRoot && !!(el as any).attachShadow\n}\n\nexport const debounceEvent = (event: EventEmitter, wait: number): EventEmitter => {\n const original = (event as any)._original || event;\n return {\n _original: event,\n emit: debounce(original.emit.bind(original), wait),\n } as EventEmitter;\n};\n\nexport const debounce = (func: (...args: any[]) => void, wait = 0) => {\n let timer: any;\n return (...args: any[]): any => {\n clearTimeout(timer);\n timer = setTimeout(func, wait, ...args);\n };\n};\n\n// Add shared color normalization utility to unify token handling across components\n/**\n * Normalizes color values to ensure consistent CSS variable usage\n * @param value - Raw token (--token), CSS variable (var(--token)), semantic name, or literal color\n * @param options.semanticMap - Optional mapping of semantic names to CSS variables\n * @returns Normalized color value or undefined for invalid inputs\n */\nexport const normalizeColorValue = (\n value: string | undefined,\n options?: { semanticMap?: Record<string, string> }\n): string | undefined => {\n if (!value) return undefined;\n const trimmed = value.trim();\n // Treat whitespace-only as undefined to avoid invalid CSS values\n if (trimmed === '') return undefined;\n\n // If a semantic map is provided and the value matches a key, return mapped CSS var\n if (options?.semanticMap && options.semanticMap[trimmed]) {\n return options.semanticMap[trimmed];\n }\n\n // If already a CSS var, pass through\n if (trimmed.startsWith('var(')) return trimmed;\n\n // If raw token is provided (e.g., --pine-color-foo), wrap in var(...)\n if (trimmed.startsWith('--')) return `var(${trimmed})`;\n\n // Otherwise treat as literal CSS color value\n return trimmed;\n};\n\nexport const setColor = (color: string, customColors?: Record<string, string>) => {\n // Return an empty object for empty/whitespace/undefined inputs to avoid invalid CSS styles\n if (!color) return {} as Record<string, string>;\n\n const defaultColors: Record<string, string> = {\n primary: 'var(--pine-color-text-primary)',\n secondary: 'var(--pine-color-text-secondary)',\n neutral: 'var(--pine-color-text-neutral)',\n accent: 'var(--pine-color-text-accent)',\n danger: 'var(--pine-color-text-danger)',\n info: 'var(--pine-color-text-info)',\n success: 'var(--pine-color-text-success)',\n warning: 'var(--pine-color-text-warning)',\n };\n\n // Merge defaults with any custom overrides so defaults are preserved\n const semanticMap = { ...defaultColors, ...(customColors || {}) };\n\n // Use the shared normalizer so components accept semantic names, raw tokens, var(...), or literals\n const resolved = normalizeColorValue(color, { semanticMap });\n\n // Ensure we never return an undefined style value; if unresolved, omit the property\n if (!resolved) return {} as Record<string, string>;\n\n return {\n '--color': resolved\n };\n}\n"],"version":3}
1
+ {"file":"utils.js","mappings":"AAEa,MAAA,YAAY,GAAG,CAAC,EAAW,KAAI;IAC1C,OAAO,CAAC,CAAC,EAAE,CAAC,UAAU,IAAI,CAAC,CAAE,EAAU,CAAC,YAAY;AACtD;MAEa,aAAa,GAAG,CAAC,KAAmB,EAAE,IAAY,KAAkB;AAC/E,IAAA,MAAM,QAAQ,GAAI,KAAa,CAAC,SAAS,IAAI,KAAK;IAClD,OAAO;AACL,QAAA,SAAS,EAAE,KAAK;AAChB,QAAA,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,IAAI,CAAC;KACnC;AACnB;AAEO,MAAM,QAAQ,GAAG,CAAC,IAA8B,EAAE,IAAI,GAAG,CAAC,KAAI;AACnE,IAAA,IAAI,KAAU;AACd,IAAA,OAAO,CAAC,GAAG,IAAW,KAAS;QAC7B,YAAY,CAAC,KAAK,CAAC;QACnB,KAAK,GAAG,UAAU,CAAC,IAAI,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;AACzC,KAAC;AACH,CAAC;AAED;AACA;;;;;AAKG;MACU,mBAAmB,GAAG,CACjC,KAAyB,EACzB,OAAkD,KAC5B;AACtB,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,SAAS;AAC5B,IAAA,MAAM,OAAO,GAAG,KAAK,CAAC,IAAI,EAAE;;IAE5B,IAAI,OAAO,KAAK,EAAE;AAAE,QAAA,OAAO,SAAS;;AAGpC,IAAA,IAAI,CAAA,OAAO,KAAA,IAAA,IAAP,OAAO,KAAA,MAAA,GAAA,MAAA,GAAP,OAAO,CAAE,WAAW,KAAI,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE;AACxD,QAAA,OAAO,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC;;;AAIrC,IAAA,IAAI,OAAO,CAAC,UAAU,CAAC,MAAM,CAAC;AAAE,QAAA,OAAO,OAAO;;AAG9C,IAAA,IAAI,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC;QAAE,OAAO,CAAA,IAAA,EAAO,OAAO,CAAA,CAAA,CAAG;;AAGtD,IAAA,OAAO,OAAO;AAChB;MAEa,QAAQ,GAAG,CAAC,KAAa,EAAE,YAAqC,KAAI;;AAE/E,IAAA,IAAI,CAAC,KAAK;AAAE,QAAA,OAAO,EAA4B;AAE/C,IAAA,MAAM,aAAa,GAA2B;AAC5C,QAAA,OAAO,EAAE,gCAAgC;AACzC,QAAA,SAAS,EAAE,kCAAkC;AAC7C,QAAA,OAAO,EAAE,gCAAgC;AACzC,QAAA,MAAM,EAAE,+BAA+B;AACvC,QAAA,MAAM,EAAE,+BAA+B;AACvC,QAAA,IAAI,EAAE,6BAA6B;AACnC,QAAA,OAAO,EAAE,gCAAgC;AACzC,QAAA,OAAO,EAAE,gCAAgC;KAC1C;;IAGD,MAAM,WAAW,GAAQ,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAA,aAAa,CAAK,GAAC,YAAY,IAAI,EAAE,EAAG;;IAGjE,MAAM,QAAQ,GAAG,mBAAmB,CAAC,KAAK,EAAE,EAAE,WAAW,EAAE,CAAC;;AAG5D,IAAA,IAAI,CAAC,QAAQ;AAAE,QAAA,OAAO,EAA4B;IAElD,OAAO;AACL,QAAA,SAAS,EAAE;KACZ;AACH;;;;","names":[],"sources":["src/utils/utils.ts"],"sourcesContent":["import type { EventEmitter } from \"@stencil/core\";\n\nexport const hasShadowDom = (el: Element) => {\n return !!el.shadowRoot && !!(el as any).attachShadow\n}\n\nexport const debounceEvent = (event: EventEmitter, wait: number): EventEmitter => {\n const original = (event as any)._original || event;\n return {\n _original: event,\n emit: debounce(original.emit.bind(original), wait),\n } as EventEmitter;\n};\n\nexport const debounce = (func: (...args: any[]) => void, wait = 0) => {\n let timer: any;\n return (...args: any[]): any => {\n clearTimeout(timer);\n timer = setTimeout(func, wait, ...args);\n };\n};\n\n// Add shared color normalization utility to unify token handling across components\n/**\n * Normalizes color values to ensure consistent CSS variable usage\n * @param value - Raw token (--token), CSS variable (var(--token)), semantic name, or literal color\n * @param options.semanticMap - Optional mapping of semantic names to CSS variables\n * @returns Normalized color value or undefined for invalid inputs\n */\nexport const normalizeColorValue = (\n value: string | undefined,\n options?: { semanticMap?: Record<string, string> }\n): string | undefined => {\n if (!value) return undefined;\n const trimmed = value.trim();\n // Treat whitespace-only as undefined to avoid invalid CSS values\n if (trimmed === '') return undefined;\n\n // If a semantic map is provided and the value matches a key, return mapped CSS var\n if (options?.semanticMap && options.semanticMap[trimmed]) {\n return options.semanticMap[trimmed];\n }\n\n // If already a CSS var, pass through\n if (trimmed.startsWith('var(')) return trimmed;\n\n // If raw token is provided (e.g., --pine-color-foo), wrap in var(...)\n if (trimmed.startsWith('--')) return `var(${trimmed})`;\n\n // Otherwise treat as literal CSS color value\n return trimmed;\n};\n\nexport const setColor = (color: string, customColors?: Record<string, string>) => {\n // Return an empty object for empty/whitespace/undefined inputs to avoid invalid CSS styles\n if (!color) return {} as Record<string, string>;\n\n const defaultColors: Record<string, string> = {\n primary: 'var(--pine-color-text-primary)',\n secondary: 'var(--pine-color-text-secondary)',\n neutral: 'var(--pine-color-text-neutral)',\n accent: 'var(--pine-color-text-accent)',\n danger: 'var(--pine-color-text-danger)',\n info: 'var(--pine-color-text-info)',\n success: 'var(--pine-color-text-success)',\n warning: 'var(--pine-color-text-warning)',\n };\n\n // Merge defaults with any custom overrides so defaults are preserved\n const semanticMap = { ...defaultColors, ...(customColors || {}) };\n\n // Use the shared normalizer so components accept semantic names, raw tokens, var(...), or literals\n const resolved = normalizeColorValue(color, { semanticMap });\n\n // Ensure we never return an undefined style value; if unresolved, omit the property\n if (!resolved) return {} as Record<string, string>;\n\n return {\n '--color': resolved\n };\n}\n"],"version":3}
@@ -1 +1 @@
1
- {"version":3,"file":"attributes-oNMnBEnP.js","sources":["src/utils/attributes.ts"],"sourcesContent":["export type Attributes = { [key: string]: any };\n\n/**\n * Inherit attributes from the host element\n * @param el - Host element\n * @param attributes - Array of attributes to inherit\n */\nexport const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: Attributes = {};\n\n attributes.forEach((attr) => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n\n if ( value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n\n/**\n * List of available ARIA attributes + `role`.\n * Removed deprecated attributes.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes\n */\nconst ariaAttributes = [\n 'role',\n 'aria-activedescendant',\n 'aria-atomic',\n 'aria-autocomplete',\n 'aria-braillelabel',\n 'aria-brailleroledescription',\n 'aria-busy',\n 'aria-checked',\n 'aria-colcount',\n 'aria-colindex',\n 'aria-colindextext',\n 'aria-colspan',\n 'aria-controls',\n 'aria-current',\n 'aria-describedby',\n 'aria-description',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-flowto',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-level',\n 'aria-live',\n 'aria-multiline',\n 'aria-multiselectable',\n 'aria-orientation',\n 'aria-owns',\n 'aria-placeholder',\n 'aria-posinset',\n 'aria-pressed',\n 'aria-readonly',\n 'aria-relevant',\n 'aria-required',\n 'aria-roledescription',\n 'aria-rowcount',\n 'aria-rowindex',\n 'aria-rowindextext',\n 'aria-rowspan',\n 'aria-selected',\n 'aria-setsize',\n 'aria-sort',\n 'aria-valuemax',\n 'aria-valuemin',\n 'aria-valuenow',\n 'aria-valuetext',\n];\n\n\n export const inheritAriaAttributes = (el: HTMLElement, ignoreList?: string[]) => {\n let attributesToInherit = ariaAttributes;\n if (ignoreList && ignoreList.length > 0) {\n attributesToInherit = ariaAttributes.filter(attr => !ignoreList.includes(attr));\n }\n\n return inheritAttributes(el, attributesToInherit);\n }\n"],"names":[],"mappings":";;AAEA;;;;AAIG;AACU,MAAA,iBAAiB,GAAG,CAAC,EAAe,EAAE,UAAA,GAAuB,EAAE,KAAI;IAC9E,MAAM,eAAe,GAAe,EAAE;AAEtC,IAAA,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC1B,QAAA,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;AAEnC,YAAA,IAAK,KAAK,KAAK,IAAI,EAAE;gBACnB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;;AAE/C,YAAA,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;;AAE5B,KAAC,CAAC;AAEF,IAAA,OAAO,eAAe;AACxB;AAEA;;;;AAIG;AACH,MAAM,cAAc,GAAG;IACrB,MAAM;IACN,uBAAuB;IACvB,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,6BAA6B;IAC7B,WAAW;IACX,cAAc;IACd,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,mBAAmB;IACnB,eAAe;IACf,aAAa;IACb,eAAe;IACf,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;IACjB,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,sBAAsB;IACtB,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,WAAW;IACX,eAAe;IACf,eAAe;IACf,eAAe;IACf,gBAAgB;CACjB;MAGa,qBAAqB,GAAG,CAAC,EAAe,EAAE,UAAqB,KAAI;IAC/E,IAAI,mBAAmB,GAAG,cAAc;AAKxC,IAAA,OAAO,iBAAiB,CAAC,EAAE,EAAE,mBAAmB,CAAC;AAClD;;;;;"}
1
+ {"version":3,"file":"attributes-oNMnBEnP.js","sources":["src/utils/attributes.ts"],"sourcesContent":["export type Attributes = { [key: string]: any };\n\n/**\n * Inherit attributes from the host element\n * @param el - Host element\n * @param attributes - Array of attributes to inherit\n */\nexport const inheritAttributes = (el: Element, attributes: string[] = []) => {\n const attributeObject: Attributes = {};\n\n attributes.forEach((attr) => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n\n if ( value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n\n return attributeObject;\n}\n\n/**\n * List of available ARIA attributes + `role`.\n * Removed deprecated attributes.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes\n */\nconst ariaAttributes = [\n 'role',\n 'aria-activedescendant',\n 'aria-atomic',\n 'aria-autocomplete',\n 'aria-braillelabel',\n 'aria-brailleroledescription',\n 'aria-busy',\n 'aria-checked',\n 'aria-colcount',\n 'aria-colindex',\n 'aria-colindextext',\n 'aria-colspan',\n 'aria-controls',\n 'aria-current',\n 'aria-describedby',\n 'aria-description',\n 'aria-details',\n 'aria-disabled',\n 'aria-errormessage',\n 'aria-expanded',\n 'aria-flowto',\n 'aria-haspopup',\n 'aria-hidden',\n 'aria-invalid',\n 'aria-keyshortcuts',\n 'aria-label',\n 'aria-labelledby',\n 'aria-level',\n 'aria-live',\n 'aria-multiline',\n 'aria-multiselectable',\n 'aria-orientation',\n 'aria-owns',\n 'aria-placeholder',\n 'aria-posinset',\n 'aria-pressed',\n 'aria-readonly',\n 'aria-relevant',\n 'aria-required',\n 'aria-roledescription',\n 'aria-rowcount',\n 'aria-rowindex',\n 'aria-rowindextext',\n 'aria-rowspan',\n 'aria-selected',\n 'aria-setsize',\n 'aria-sort',\n 'aria-valuemax',\n 'aria-valuemin',\n 'aria-valuenow',\n 'aria-valuetext',\n];\n\n\n export const inheritAriaAttributes = (el: Element, ignoreList?: string[]) => {\n let attributesToInherit = ariaAttributes;\n if (ignoreList && ignoreList.length > 0) {\n attributesToInherit = ariaAttributes.filter(attr => !ignoreList.includes(attr));\n }\n\n return inheritAttributes(el, attributesToInherit);\n }\n"],"names":[],"mappings":";;AAEA;;;;AAIG;AACU,MAAA,iBAAiB,GAAG,CAAC,EAAW,EAAE,UAAA,GAAuB,EAAE,KAAI;IAC1E,MAAM,eAAe,GAAe,EAAE;AAEtC,IAAA,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,KAAI;AAC1B,QAAA,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;AAEnC,YAAA,IAAK,KAAK,KAAK,IAAI,EAAE;gBACnB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC;;AAE/C,YAAA,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC;;AAE5B,KAAC,CAAC;AAEF,IAAA,OAAO,eAAe;AACxB;AAEA;;;;AAIG;AACH,MAAM,cAAc,GAAG;IACrB,MAAM;IACN,uBAAuB;IACvB,aAAa;IACb,mBAAmB;IACnB,mBAAmB;IACnB,6BAA6B;IAC7B,WAAW;IACX,cAAc;IACd,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,kBAAkB;IAClB,kBAAkB;IAClB,cAAc;IACd,eAAe;IACf,mBAAmB;IACnB,eAAe;IACf,aAAa;IACb,eAAe;IACf,aAAa;IACb,cAAc;IACd,mBAAmB;IACnB,YAAY;IACZ,iBAAiB;IACjB,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,sBAAsB;IACtB,kBAAkB;IAClB,WAAW;IACX,kBAAkB;IAClB,eAAe;IACf,cAAc;IACd,eAAe;IACf,eAAe;IACf,eAAe;IACf,sBAAsB;IACtB,eAAe;IACf,eAAe;IACf,mBAAmB;IACnB,cAAc;IACd,eAAe;IACf,cAAc;IACd,WAAW;IACX,eAAe;IACf,eAAe;IACf,eAAe;IACf,gBAAgB;CACjB;MAGa,qBAAqB,GAAG,CAAC,EAAW,EAAE,UAAqB,KAAI;IAC3E,IAAI,mBAAmB,GAAG,cAAc;AAKxC,IAAA,OAAO,iBAAiB,CAAC,EAAE,EAAE,mBAAmB,CAAC;AAClD;;;;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"form-hmpgbT1I.js","sources":["src/utils/form.ts"],"sourcesContent":["/**\n * Create id for messaging\n */\nexport const messageId = (id: string, messageType: string) => {\n return `${id}__${messageType}-message`;\n};\n\n/**\n * Assign aria-description id to relate messages with form element\n */\nexport const assignDescription = (id: string, invalid: boolean, helperMessage: string) => {\n if (!helperMessage) return\n\n let relatedId = messageId(id, 'helper')\n\n if (invalid) relatedId = messageId(id, 'error');\n\n return relatedId;\n};\n\n/**\n * Updates the `invalid` prop of a form element based on it's values validity\n */\nexport const isRequired = (target, component) => {\n if ( !target || !component ) return;\n if (component.required === true) {\n (target.checkValidity() === false) ? component.invalid = true : component.invalid = false;\n }\n}\n\n/**\n * Exposes a readonly type property on a custom form element to match native form element behavior.\n * This makes the type property enumerable and accessible via element.type, matching native HTML elements.\n * The property is non-configurable, preventing it from being redefined or deleted at runtime.\n * \n * @param element - The custom element to add the type property to\n * @param type - The type value (string literal) or a getter function that returns the type\n */\nexport function exposeTypeProperty(element: HTMLElement, type: string | (() => string)) {\n Object.defineProperty(element, 'type', {\n get: typeof type === 'function' ? type : () => type,\n enumerable: true,\n configurable: false\n });\n}\n"],"names":[],"mappings":";;AAAA;;AAEG;MACU,SAAS,GAAG,CAAC,EAAU,EAAE,WAAmB,KAAI;AAC3D,IAAA,OAAO,CAAG,EAAA,EAAE,CAAK,EAAA,EAAA,WAAW,UAAU;AACxC;AAEA;;AAEG;AACU,MAAA,iBAAiB,GAAG,CAAC,EAAU,EAAE,OAAgB,EAAE,aAAqB,KAAI;AACvF,IAAA,IAAI,CAAC,aAAa;QAAE;IAEpB,IAAI,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,QAAQ,CAAC;AAEvC,IAAA,IAAI,OAAO;AAAE,QAAA,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC;AAE/C,IAAA,OAAO,SAAS;AAClB;AAEA;;AAEG;MACU,UAAU,GAAG,CAAC,MAAM,EAAE,SAAS,KAAI;AAC9C,IAAA,IAAK,CAAC,MAAM,IAAI,CAAC,SAAS;QAAG;AAC7B,IAAA,IAAI,SAAS,CAAC,QAAQ,KAAK,IAAI,EAAE;QAC/B,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,KAAK,IAAI,SAAS,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,OAAO,GAAG,KAAK;;AAE7F;AAEA;;;;;;;AAOG;AACa,SAAA,kBAAkB,CAAC,OAAoB,EAAE,IAA6B,EAAA;AACpF,IAAA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE;AACrC,QAAA,GAAG,EAAE,OAAO,IAAI,KAAK,UAAU,GAAG,IAAI,GAAG,MAAM,IAAI;AACnD,QAAA,UAAU,EAAE,IAAI;AAChB,QAAA,YAAY,EAAE;AACf,KAAA,CAAC;AACJ;;;;;;;"}
1
+ {"version":3,"file":"form-hmpgbT1I.js","sources":["src/utils/form.ts"],"sourcesContent":["/**\n * Create id for messaging\n */\nexport const messageId = (id: string, messageType: string) => {\n return `${id}__${messageType}-message`;\n};\n\n/**\n * Assign aria-description id to relate messages with form element\n */\nexport const assignDescription = (id: string, invalid: boolean, helperMessage: string) => {\n if (!helperMessage) return\n\n let relatedId = messageId(id, 'helper')\n\n if (invalid) relatedId = messageId(id, 'error');\n\n return relatedId;\n};\n\n/**\n * Updates the `invalid` prop of a form element based on it's values validity\n */\nexport const isRequired = (target, component) => {\n if ( !target || !component ) return;\n if (component.required === true) {\n (target.checkValidity() === false) ? component.invalid = true : component.invalid = false;\n }\n}\n\n/**\n * Exposes a readonly type property on a custom form element to match native form element behavior.\n * This makes the type property enumerable and accessible via element.type, matching native HTML elements.\n * The property is non-configurable, preventing it from being redefined or deleted at runtime.\n *\n * @param element - The custom element to add the type property to\n * @param type - The type value (string literal) or a getter function that returns the type\n */\nexport function exposeTypeProperty(element: Element, type: string | (() => string)) {\n Object.defineProperty(element, 'type', {\n get: typeof type === 'function' ? type : () => type,\n enumerable: true,\n configurable: false\n });\n}\n"],"names":[],"mappings":";;AAAA;;AAEG;MACU,SAAS,GAAG,CAAC,EAAU,EAAE,WAAmB,KAAI;AAC3D,IAAA,OAAO,CAAG,EAAA,EAAE,CAAK,EAAA,EAAA,WAAW,UAAU;AACxC;AAEA;;AAEG;AACU,MAAA,iBAAiB,GAAG,CAAC,EAAU,EAAE,OAAgB,EAAE,aAAqB,KAAI;AACvF,IAAA,IAAI,CAAC,aAAa;QAAE;IAEpB,IAAI,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,QAAQ,CAAC;AAEvC,IAAA,IAAI,OAAO;AAAE,QAAA,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC;AAE/C,IAAA,OAAO,SAAS;AAClB;AAEA;;AAEG;MACU,UAAU,GAAG,CAAC,MAAM,EAAE,SAAS,KAAI;AAC9C,IAAA,IAAK,CAAC,MAAM,IAAI,CAAC,SAAS;QAAG;AAC7B,IAAA,IAAI,SAAS,CAAC,QAAQ,KAAK,IAAI,EAAE;QAC/B,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,KAAK,IAAI,SAAS,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,OAAO,GAAG,KAAK;;AAE7F;AAEA;;;;;;;AAOG;AACa,SAAA,kBAAkB,CAAC,OAAgB,EAAE,IAA6B,EAAA;AAChF,IAAA,MAAM,CAAC,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE;AACrC,QAAA,GAAG,EAAE,OAAO,IAAI,KAAK,UAAU,GAAG,IAAI,GAAG,MAAM,IAAI;AACnD,QAAA,UAAU,EAAE,IAAI;AAChB,QAAA,YAAY,EAAE;AACf,KAAA,CAAC;AACJ;;;;;;;"}