@pine-ds/core 3.0.3 → 3.2.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 (722) hide show
  1. package/components/index.d.ts +20 -0
  2. package/components/index.js +10 -0
  3. package/components/index.js.map +1 -1
  4. package/components/index2.js +1 -1
  5. package/components/index2.js.map +1 -1
  6. package/components/mock-pds-modal.d.ts +11 -0
  7. package/components/mock-pds-modal.js +108 -0
  8. package/components/mock-pds-modal.js.map +1 -0
  9. package/components/pds-alert.d.ts +11 -0
  10. package/components/pds-alert.js +107 -0
  11. package/components/pds-alert.js.map +1 -0
  12. package/components/pds-avatar.js +1 -1
  13. package/components/pds-box.js +1 -110
  14. package/components/pds-box.js.map +1 -1
  15. package/components/pds-box2.js +115 -0
  16. package/components/pds-box2.js.map +1 -0
  17. package/components/pds-button2.js +31 -5
  18. package/components/pds-button2.js.map +1 -1
  19. package/components/pds-checkbox2.js +9 -3
  20. package/components/pds-checkbox2.js.map +1 -1
  21. package/components/pds-chip.js +1 -1
  22. package/components/pds-copytext.js +2 -2
  23. package/components/pds-copytext.js.map +1 -1
  24. package/components/pds-divider.js +1 -1
  25. package/components/pds-dropdown-menu-item.d.ts +11 -0
  26. package/components/pds-dropdown-menu-item.js +117 -0
  27. package/components/pds-dropdown-menu-item.js.map +1 -0
  28. package/components/pds-dropdown-menu-separator.d.ts +11 -0
  29. package/components/pds-dropdown-menu-separator.js +44 -0
  30. package/components/pds-dropdown-menu-separator.js.map +1 -0
  31. package/components/pds-dropdown-menu.d.ts +11 -0
  32. package/components/pds-dropdown-menu.js +1600 -0
  33. package/components/pds-dropdown-menu.js.map +1 -0
  34. package/components/pds-icon2.js +103 -7
  35. package/components/pds-icon2.js.map +1 -1
  36. package/components/pds-image.js +2 -2
  37. package/components/pds-input.js +4 -4
  38. package/components/pds-link.js +1 -67
  39. package/components/pds-link.js.map +1 -1
  40. package/components/pds-link2.js +85 -0
  41. package/components/pds-link2.js.map +1 -0
  42. package/components/pds-loader2.js +1 -1
  43. package/components/pds-modal-content.d.ts +11 -0
  44. package/components/pds-modal-content.js +111 -0
  45. package/components/pds-modal-content.js.map +1 -0
  46. package/components/pds-modal-footer.d.ts +11 -0
  47. package/components/pds-modal-footer.js +35 -0
  48. package/components/pds-modal-footer.js.map +1 -0
  49. package/components/pds-modal-header.d.ts +11 -0
  50. package/components/pds-modal-header.js +35 -0
  51. package/components/pds-modal-header.js.map +1 -0
  52. package/components/pds-modal.d.ts +11 -0
  53. package/components/pds-modal.js +278 -0
  54. package/components/pds-modal.js.map +1 -0
  55. package/components/pds-popover.js +33 -1
  56. package/components/pds-popover.js.map +1 -1
  57. package/components/pds-progress.js +1 -1
  58. package/components/pds-radio.js +3 -3
  59. package/components/pds-row.js +1 -1
  60. package/components/pds-select.js +2 -2
  61. package/components/pds-sortable-item.js +1 -1
  62. package/components/pds-sortable.js +1 -1
  63. package/components/pds-switch.js +8 -3
  64. package/components/pds-switch.js.map +1 -1
  65. package/components/pds-tab.js +3 -3
  66. package/components/pds-table-body.js +1 -1
  67. package/components/pds-table-cell2.js +2 -2
  68. package/components/pds-table-head-cell2.js +2 -2
  69. package/components/pds-table-head.js +1 -1
  70. package/components/pds-table-row.js +1 -1
  71. package/components/pds-table.js +1 -1
  72. package/components/pds-tabpanel.js +1 -1
  73. package/components/pds-tabs.js +1 -1
  74. package/components/pds-text.js +1 -53
  75. package/components/pds-text.js.map +1 -1
  76. package/components/pds-text2.js +58 -0
  77. package/components/pds-text2.js.map +1 -0
  78. package/components/pds-textarea.js +4 -4
  79. package/components/pds-toast.d.ts +11 -0
  80. package/components/pds-toast.js +137 -0
  81. package/components/pds-toast.js.map +1 -0
  82. package/components/pds-tooltip.js +283 -81
  83. package/components/pds-tooltip.js.map +1 -1
  84. package/components/utils.js +3 -2
  85. package/components/utils.js.map +1 -1
  86. package/dist/cjs/{index-Br1YlNK2.js → index-CG2Rr2io.js} +3 -3
  87. package/dist/cjs/index-CG2Rr2io.js.map +1 -0
  88. package/dist/cjs/loader.cjs.js +1 -1
  89. package/dist/cjs/mock-pds-modal.cjs.entry.js +86 -0
  90. package/dist/cjs/mock-pds-modal.cjs.entry.js.map +1 -0
  91. package/dist/cjs/mock-pds-modal.entry.cjs.js.map +1 -0
  92. package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
  93. package/dist/cjs/pds-alert.cjs.entry.js +66 -0
  94. package/dist/cjs/pds-alert.cjs.entry.js.map +1 -0
  95. package/dist/cjs/pds-alert.entry.cjs.js.map +1 -0
  96. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  97. package/dist/cjs/pds-box.cjs.entry.js +2 -2
  98. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  99. package/dist/cjs/pds-box.entry.cjs.js.map +1 -1
  100. package/dist/cjs/pds-button.cjs.entry.js +33 -7
  101. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  102. package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
  103. package/dist/cjs/pds-checkbox.cjs.entry.js +10 -4
  104. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  105. package/dist/cjs/pds-checkbox.entry.cjs.js.map +1 -1
  106. package/dist/cjs/pds-chip.cjs.entry.js +2 -2
  107. package/dist/cjs/pds-copytext.cjs.entry.js +3 -3
  108. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  109. package/dist/cjs/pds-copytext.entry.cjs.js.map +1 -1
  110. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  111. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +82 -0
  112. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js.map +1 -0
  113. package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +1 -0
  114. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +25 -0
  115. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js.map +1 -0
  116. package/dist/cjs/pds-dropdown-menu-separator.entry.cjs.js.map +1 -0
  117. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +1574 -0
  118. package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +1 -0
  119. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -0
  120. package/dist/cjs/pds-icon.cjs.entry.js +102 -7
  121. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  122. package/dist/cjs/pds-icon.entry.cjs.js.map +1 -1
  123. package/dist/cjs/pds-image.cjs.entry.js +2 -2
  124. package/dist/cjs/pds-input.cjs.entry.js +6 -6
  125. package/dist/cjs/pds-link.cjs.entry.js +16 -4
  126. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  127. package/dist/cjs/pds-link.entry.cjs.js.map +1 -1
  128. package/dist/cjs/pds-loader.cjs.entry.js +1 -1
  129. package/dist/cjs/pds-modal-content.cjs.entry.js +93 -0
  130. package/dist/cjs/pds-modal-content.cjs.entry.js.map +1 -0
  131. package/dist/cjs/pds-modal-content.entry.cjs.js.map +1 -0
  132. package/dist/cjs/pds-modal-footer.cjs.entry.js +20 -0
  133. package/dist/cjs/pds-modal-footer.cjs.entry.js.map +1 -0
  134. package/dist/cjs/pds-modal-footer.entry.cjs.js.map +1 -0
  135. package/dist/cjs/pds-modal-header.cjs.entry.js +20 -0
  136. package/dist/cjs/pds-modal-header.cjs.entry.js.map +1 -0
  137. package/dist/cjs/pds-modal-header.entry.cjs.js.map +1 -0
  138. package/dist/cjs/pds-modal.cjs.entry.js +253 -0
  139. package/dist/cjs/pds-modal.cjs.entry.js.map +1 -0
  140. package/dist/cjs/pds-modal.entry.cjs.js.map +1 -0
  141. package/dist/cjs/pds-popover.cjs.entry.js +33 -1
  142. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -1
  143. package/dist/cjs/pds-popover.entry.cjs.js.map +1 -1
  144. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  145. package/dist/cjs/pds-radio.cjs.entry.js +4 -4
  146. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  147. package/dist/cjs/pds-select.cjs.entry.js +3 -3
  148. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  149. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  150. package/dist/cjs/pds-switch.cjs.entry.js +9 -4
  151. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  152. package/dist/cjs/pds-switch.entry.cjs.js.map +1 -1
  153. package/dist/cjs/pds-tab.cjs.entry.js +3 -3
  154. package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
  155. package/dist/cjs/pds-table-cell.cjs.entry.js +2 -2
  156. package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -3
  157. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  158. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  159. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  160. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  161. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  162. package/dist/cjs/pds-text.cjs.entry.js +2 -2
  163. package/dist/cjs/pds-text.cjs.entry.js.map +1 -1
  164. package/dist/cjs/pds-text.entry.cjs.js.map +1 -1
  165. package/dist/cjs/pds-textarea.cjs.entry.js +6 -6
  166. package/dist/cjs/pds-toast.cjs.entry.js +104 -0
  167. package/dist/cjs/pds-toast.cjs.entry.js.map +1 -0
  168. package/dist/cjs/pds-toast.entry.cjs.js.map +1 -0
  169. package/dist/cjs/pds-tooltip.cjs.entry.js +281 -79
  170. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  171. package/dist/cjs/pds-tooltip.entry.cjs.js.map +1 -1
  172. package/dist/cjs/pine-core.cjs.js +1 -1
  173. package/dist/cjs/{utils-CQKIgzWg.js → utils-jWx-Mf12.js} +5 -4
  174. package/dist/cjs/utils-jWx-Mf12.js.map +1 -0
  175. package/dist/collection/collection-manifest.json +10 -0
  176. package/dist/collection/components/pds-alert/pds-alert.css +108 -0
  177. package/dist/collection/components/pds-alert/pds-alert.js +198 -0
  178. package/dist/collection/components/pds-alert/pds-alert.js.map +1 -0
  179. package/dist/collection/components/pds-alert/pds-alert.tokens.css +32 -0
  180. package/dist/collection/components/pds-alert/stories/pds-alert.stories.js +97 -0
  181. package/dist/collection/components/pds-avatar/pds-avatar.js +1 -1
  182. package/dist/collection/components/pds-box/pds-box.js +8 -8
  183. package/dist/collection/components/pds-box/pds-box.js.map +1 -1
  184. package/dist/collection/components/pds-button/pds-button.css +7 -11
  185. package/dist/collection/components/pds-button/pds-button.js +37 -5
  186. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  187. package/dist/collection/components/pds-button/stories/pds-button.stories.js +46 -11
  188. package/dist/collection/components/pds-checkbox/pds-checkbox.js +9 -3
  189. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  190. package/dist/collection/components/pds-chip/pds-chip.js +1 -1
  191. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +1 -1
  192. package/dist/collection/components/pds-copytext/pds-copytext.css +1 -1
  193. package/dist/collection/components/pds-copytext/pds-copytext.js +1 -1
  194. package/dist/collection/components/pds-divider/pds-divider.js +1 -1
  195. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.css +68 -0
  196. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +219 -0
  197. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js.map +1 -0
  198. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.css +4 -0
  199. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +72 -0
  200. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js.map +1 -0
  201. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.css +16 -0
  202. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +328 -0
  203. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +1 -0
  204. package/dist/collection/components/pds-dropdown-menu/stories/pds-dropdown-menu.stories.js +44 -0
  205. package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +1 -1
  206. package/dist/collection/components/pds-image/pds-image.js +2 -2
  207. package/dist/collection/components/pds-input/pds-input.js +4 -4
  208. package/dist/collection/components/pds-link/pds-link.css +23 -9
  209. package/dist/collection/components/pds-link/pds-link.js +33 -2
  210. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  211. package/dist/collection/components/pds-link/stories/pds-link.stories.js +15 -2
  212. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  213. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.css +27 -0
  214. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +125 -0
  215. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +1 -0
  216. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.css +8 -0
  217. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +18 -0
  218. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js.map +1 -0
  219. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.css +8 -0
  220. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +18 -0
  221. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js.map +1 -0
  222. package/dist/collection/components/pds-modal/pds-modal.css +79 -0
  223. package/dist/collection/components/pds-modal/pds-modal.js +426 -0
  224. package/dist/collection/components/pds-modal/pds-modal.js.map +1 -0
  225. package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +415 -0
  226. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +256 -0
  227. package/dist/collection/components/pds-modal/test/mock-pds-modal.js.map +1 -0
  228. package/dist/collection/components/pds-popover/pds-popover.js +33 -1
  229. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -1
  230. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +4 -5
  231. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  232. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  233. package/dist/collection/components/pds-row/pds-row.js +1 -1
  234. package/dist/collection/components/pds-select/pds-select.js +2 -2
  235. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  236. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  237. package/dist/collection/components/pds-switch/pds-switch.js +8 -3
  238. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
  239. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  240. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  241. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  242. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  243. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  244. package/dist/collection/components/pds-table/pds-table.js +1 -1
  245. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  246. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  247. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  248. package/dist/collection/components/pds-text/pds-text.js +2 -2
  249. package/dist/collection/components/pds-text/pds-text.js.map +1 -1
  250. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
  251. package/dist/collection/components/pds-toast/pds-toast.css +153 -0
  252. package/dist/collection/components/pds-toast/pds-toast.js +263 -0
  253. package/dist/collection/components/pds-toast/pds-toast.js.map +1 -0
  254. package/dist/collection/components/pds-toast/stories/pds-toast.stories.js +103 -0
  255. package/dist/collection/components/pds-tooltip/pds-tooltip.css +2 -12
  256. package/dist/collection/components/pds-tooltip/pds-tooltip.js +211 -26
  257. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  258. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +7 -3
  259. package/dist/collection/utils/interfaces.js +2 -0
  260. package/dist/collection/utils/interfaces.js.map +1 -0
  261. package/dist/collection/utils/overlay.js +66 -49
  262. package/dist/collection/utils/overlay.js.map +1 -1
  263. package/dist/collection/utils/utils.js +3 -2
  264. package/dist/collection/utils/utils.js.map +1 -1
  265. package/dist/docs.json +1670 -268
  266. package/dist/esm/{index-mVZRKoXd.js → index-_4gljHh-.js} +3 -3
  267. package/dist/esm/index-_4gljHh-.js.map +1 -0
  268. package/dist/esm/loader.js +1 -1
  269. package/dist/esm/mock-pds-modal.entry.js +84 -0
  270. package/dist/esm/mock-pds-modal.entry.js.map +1 -0
  271. package/dist/esm/pds-accordion.entry.js +1 -1
  272. package/dist/esm/pds-alert.entry.js +64 -0
  273. package/dist/esm/pds-alert.entry.js.map +1 -0
  274. package/dist/esm/pds-avatar.entry.js +2 -2
  275. package/dist/esm/pds-box.entry.js +2 -2
  276. package/dist/esm/pds-box.entry.js.map +1 -1
  277. package/dist/esm/pds-button.entry.js +33 -7
  278. package/dist/esm/pds-button.entry.js.map +1 -1
  279. package/dist/esm/pds-checkbox.entry.js +11 -5
  280. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  281. package/dist/esm/pds-chip.entry.js +2 -2
  282. package/dist/esm/pds-copytext.entry.js +3 -3
  283. package/dist/esm/pds-copytext.entry.js.map +1 -1
  284. package/dist/esm/pds-divider.entry.js +1 -1
  285. package/dist/esm/pds-dropdown-menu-item.entry.js +80 -0
  286. package/dist/esm/pds-dropdown-menu-item.entry.js.map +1 -0
  287. package/dist/esm/pds-dropdown-menu-separator.entry.js +23 -0
  288. package/dist/esm/pds-dropdown-menu-separator.entry.js.map +1 -0
  289. package/dist/esm/pds-dropdown-menu.entry.js +1572 -0
  290. package/dist/esm/pds-dropdown-menu.entry.js.map +1 -0
  291. package/dist/esm/pds-icon.entry.js +102 -7
  292. package/dist/esm/pds-icon.entry.js.map +1 -1
  293. package/dist/esm/pds-image.entry.js +2 -2
  294. package/dist/esm/pds-input.entry.js +6 -6
  295. package/dist/esm/pds-link.entry.js +16 -4
  296. package/dist/esm/pds-link.entry.js.map +1 -1
  297. package/dist/esm/pds-loader.entry.js +1 -1
  298. package/dist/esm/pds-modal-content.entry.js +91 -0
  299. package/dist/esm/pds-modal-content.entry.js.map +1 -0
  300. package/dist/esm/pds-modal-footer.entry.js +18 -0
  301. package/dist/esm/pds-modal-footer.entry.js.map +1 -0
  302. package/dist/esm/pds-modal-header.entry.js +18 -0
  303. package/dist/esm/pds-modal-header.entry.js.map +1 -0
  304. package/dist/esm/pds-modal.entry.js +251 -0
  305. package/dist/esm/pds-modal.entry.js.map +1 -0
  306. package/dist/esm/pds-popover.entry.js +33 -1
  307. package/dist/esm/pds-popover.entry.js.map +1 -1
  308. package/dist/esm/pds-progress.entry.js +1 -1
  309. package/dist/esm/pds-radio.entry.js +4 -4
  310. package/dist/esm/pds-row.entry.js +1 -1
  311. package/dist/esm/pds-select.entry.js +3 -3
  312. package/dist/esm/pds-sortable-item.entry.js +2 -2
  313. package/dist/esm/pds-sortable.entry.js +1 -1
  314. package/dist/esm/pds-switch.entry.js +9 -4
  315. package/dist/esm/pds-switch.entry.js.map +1 -1
  316. package/dist/esm/pds-tab.entry.js +3 -3
  317. package/dist/esm/pds-table-body.entry.js +1 -1
  318. package/dist/esm/pds-table-cell.entry.js +2 -2
  319. package/dist/esm/pds-table-head-cell.entry.js +3 -3
  320. package/dist/esm/pds-table-head.entry.js +1 -1
  321. package/dist/esm/pds-table-row.entry.js +1 -1
  322. package/dist/esm/pds-table.entry.js +1 -1
  323. package/dist/esm/pds-tabpanel.entry.js +1 -1
  324. package/dist/esm/pds-tabs.entry.js +1 -1
  325. package/dist/esm/pds-text.entry.js +2 -2
  326. package/dist/esm/pds-text.entry.js.map +1 -1
  327. package/dist/esm/pds-textarea.entry.js +6 -6
  328. package/dist/esm/pds-toast.entry.js +102 -0
  329. package/dist/esm/pds-toast.entry.js.map +1 -0
  330. package/dist/esm/pds-tooltip.entry.js +281 -79
  331. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  332. package/dist/esm/pine-core.js +1 -1
  333. package/dist/esm/{utils-Dw9B1JDC.js → utils-DkabwBZT.js} +5 -4
  334. package/dist/esm/utils-DkabwBZT.js.map +1 -0
  335. package/dist/esm-es5/{index-mVZRKoXd.js → index-_4gljHh-.js} +1 -1
  336. package/dist/esm-es5/index-_4gljHh-.js.map +1 -0
  337. package/dist/esm-es5/loader.js +1 -1
  338. package/dist/esm-es5/mock-pds-modal.entry.js +2 -0
  339. package/dist/esm-es5/mock-pds-modal.entry.js.map +1 -0
  340. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  341. package/dist/esm-es5/pds-alert.entry.js +2 -0
  342. package/dist/esm-es5/pds-alert.entry.js.map +1 -0
  343. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  344. package/dist/esm-es5/pds-box.entry.js +1 -1
  345. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  346. package/dist/esm-es5/pds-button.entry.js +1 -1
  347. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  348. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  349. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  350. package/dist/esm-es5/pds-chip.entry.js +1 -1
  351. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  352. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  353. package/dist/esm-es5/pds-divider.entry.js +1 -1
  354. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +2 -0
  355. package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +1 -0
  356. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +2 -0
  357. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js.map +1 -0
  358. package/dist/esm-es5/pds-dropdown-menu.entry.js +2 -0
  359. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -0
  360. package/dist/esm-es5/pds-icon.entry.js +1 -1
  361. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  362. package/dist/esm-es5/pds-image.entry.js +1 -1
  363. package/dist/esm-es5/pds-input.entry.js +1 -1
  364. package/dist/esm-es5/pds-link.entry.js +1 -1
  365. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  366. package/dist/esm-es5/pds-loader.entry.js +1 -1
  367. package/dist/esm-es5/pds-modal-content.entry.js +2 -0
  368. package/dist/esm-es5/pds-modal-content.entry.js.map +1 -0
  369. package/dist/esm-es5/pds-modal-footer.entry.js +2 -0
  370. package/dist/esm-es5/pds-modal-footer.entry.js.map +1 -0
  371. package/dist/esm-es5/pds-modal-header.entry.js +2 -0
  372. package/dist/esm-es5/pds-modal-header.entry.js.map +1 -0
  373. package/dist/esm-es5/pds-modal.entry.js +2 -0
  374. package/dist/esm-es5/pds-modal.entry.js.map +1 -0
  375. package/dist/esm-es5/pds-popover.entry.js +1 -1
  376. package/dist/esm-es5/pds-popover.entry.js.map +1 -1
  377. package/dist/esm-es5/pds-progress.entry.js +1 -1
  378. package/dist/esm-es5/pds-radio.entry.js +1 -1
  379. package/dist/esm-es5/pds-row.entry.js +1 -1
  380. package/dist/esm-es5/pds-select.entry.js +1 -1
  381. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  382. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  383. package/dist/esm-es5/pds-switch.entry.js +1 -1
  384. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  385. package/dist/esm-es5/pds-tab.entry.js +1 -1
  386. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  387. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  388. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  389. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  390. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  391. package/dist/esm-es5/pds-table.entry.js +1 -1
  392. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  393. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  394. package/dist/esm-es5/pds-text.entry.js +1 -1
  395. package/dist/esm-es5/pds-text.entry.js.map +1 -1
  396. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  397. package/dist/esm-es5/pds-toast.entry.js +2 -0
  398. package/dist/esm-es5/pds-toast.entry.js.map +1 -0
  399. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  400. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  401. package/dist/esm-es5/pine-core.js +1 -1
  402. package/dist/esm-es5/utils-DkabwBZT.js +2 -0
  403. package/dist/esm-es5/utils-DkabwBZT.js.map +1 -0
  404. package/dist/pine-core/mock-pds-modal.entry.esm.js.map +1 -0
  405. package/dist/pine-core/{p-ad69e5f9.system.entry.js → p-0069abf8.system.entry.js} +2 -2
  406. package/dist/pine-core/{p-a14c8ab4.system.entry.js → p-03d8cb4c.system.entry.js} +2 -2
  407. package/dist/pine-core/{p-2ab26d3d.system.entry.js → p-04df41d7.system.entry.js} +2 -2
  408. package/dist/pine-core/{p-0486ad57.entry.js → p-0572825b.entry.js} +2 -2
  409. package/dist/pine-core/{p-d2110923.system.entry.js → p-111e7da2.system.entry.js} +2 -2
  410. package/dist/pine-core/p-121e03ad.system.entry.js +2 -0
  411. package/dist/pine-core/p-121e03ad.system.entry.js.map +1 -0
  412. package/dist/pine-core/p-1224c874.entry.js +2 -0
  413. package/dist/pine-core/{p-b2bbc362.entry.js → p-146fcd44.entry.js} +2 -2
  414. package/dist/pine-core/{p-abcce8af.entry.js → p-17d3fa8b.entry.js} +2 -2
  415. package/dist/pine-core/p-1b109c01.entry.js +2 -0
  416. package/dist/pine-core/p-1b109c01.entry.js.map +1 -0
  417. package/dist/pine-core/p-1bd715ee.system.entry.js +2 -0
  418. package/dist/pine-core/p-1bd715ee.system.entry.js.map +1 -0
  419. package/dist/pine-core/{p-e4ea5041.system.entry.js → p-1eec6bea.system.entry.js} +2 -2
  420. package/dist/pine-core/p-21c3aaeb.entry.js +2 -0
  421. package/dist/pine-core/{p-f439922f.entry.js → p-2296c34f.entry.js} +2 -2
  422. package/dist/pine-core/{p-f439922f.entry.js.map → p-2296c34f.entry.js.map} +1 -1
  423. package/dist/pine-core/{p-5c396e75.entry.js → p-24607f93.entry.js} +2 -2
  424. package/dist/pine-core/p-28e28f42.system.entry.js +2 -0
  425. package/dist/pine-core/p-28e28f42.system.entry.js.map +1 -0
  426. package/dist/pine-core/p-29ad0b86.entry.js +2 -0
  427. package/dist/pine-core/p-29ad0b86.entry.js.map +1 -0
  428. package/dist/pine-core/{p-c0f0b368.system.entry.js → p-30142a25.system.entry.js} +2 -2
  429. package/dist/pine-core/p-32bd3e33.entry.js +2 -0
  430. package/dist/pine-core/p-32bd3e33.entry.js.map +1 -0
  431. package/dist/pine-core/{p-8305cd4d.entry.js → p-367e188f.entry.js} +2 -2
  432. package/dist/pine-core/{p-6147b1ea.system.entry.js → p-3798a631.system.entry.js} +2 -2
  433. package/dist/pine-core/p-3D0orTx_.system.js.map +1 -0
  434. package/dist/pine-core/p-3e91dccd.entry.js +2 -0
  435. package/dist/pine-core/p-3e91dccd.entry.js.map +1 -0
  436. package/dist/pine-core/{p-3fdbda99.system.entry.js → p-3f82ac77.system.entry.js} +2 -2
  437. package/dist/pine-core/p-4288c861.entry.js +2 -0
  438. package/dist/pine-core/p-4288c861.entry.js.map +1 -0
  439. package/dist/pine-core/p-47a7a65b.entry.js +2 -0
  440. package/dist/pine-core/p-47a7a65b.entry.js.map +1 -0
  441. package/dist/pine-core/{p-42f1190a.system.entry.js → p-48e76945.system.entry.js} +2 -2
  442. package/dist/pine-core/p-49265849.system.entry.js +2 -0
  443. package/dist/pine-core/p-49265849.system.entry.js.map +1 -0
  444. package/dist/pine-core/{p-b9f99fc9.entry.js → p-4ff0838c.entry.js} +2 -2
  445. package/dist/pine-core/p-513c16c7.entry.js +2 -0
  446. package/dist/pine-core/p-513c16c7.entry.js.map +1 -0
  447. package/dist/pine-core/{p-820faa91.system.entry.js → p-596e0292.system.entry.js} +2 -2
  448. package/dist/pine-core/p-5acda4ac.system.entry.js +2 -0
  449. package/dist/pine-core/p-5acda4ac.system.entry.js.map +1 -0
  450. package/dist/pine-core/p-5c4aceb7.entry.js +2 -0
  451. package/dist/pine-core/p-5c4aceb7.entry.js.map +1 -0
  452. package/dist/pine-core/{p-598ade79.entry.js → p-5e1e7762.entry.js} +2 -2
  453. package/dist/pine-core/p-624db3d6.system.entry.js +2 -0
  454. package/dist/pine-core/p-624db3d6.system.entry.js.map +1 -0
  455. package/dist/pine-core/{p-d0780ca1.system.entry.js → p-6a2296e6.system.entry.js} +2 -2
  456. package/dist/pine-core/{p-b68cb43d.system.entry.js → p-71265b2a.system.entry.js} +2 -2
  457. package/dist/pine-core/p-71f01676.system.entry.js +2 -0
  458. package/dist/pine-core/p-71f01676.system.entry.js.map +1 -0
  459. package/dist/pine-core/{p-a5587332.entry.js → p-722012ac.entry.js} +2 -2
  460. package/dist/pine-core/p-722012ac.entry.js.map +1 -0
  461. package/dist/pine-core/{p-98181fa8.system.entry.js → p-730221a8.system.entry.js} +2 -2
  462. package/dist/pine-core/{p-a97952fc.system.entry.js → p-73412ca9.system.entry.js} +2 -2
  463. package/dist/pine-core/{p-a97952fc.system.entry.js.map → p-73412ca9.system.entry.js.map} +1 -1
  464. package/dist/pine-core/{p-91dadcbe.entry.js → p-742d4490.entry.js} +2 -2
  465. package/dist/pine-core/p-761946a0.entry.js +2 -0
  466. package/dist/pine-core/p-761946a0.entry.js.map +1 -0
  467. package/dist/pine-core/{p-950427b2.entry.js → p-77c3a10d.entry.js} +2 -2
  468. package/dist/pine-core/{p-fed4c0c0.system.entry.js → p-78cb1c40.system.entry.js} +2 -2
  469. package/dist/pine-core/{p-1d92261f.system.entry.js → p-78fb945e.system.entry.js} +2 -2
  470. package/dist/pine-core/p-7b38e384.system.entry.js +2 -0
  471. package/dist/pine-core/{p-9d0c1b2e.system.entry.js.map → p-7b38e384.system.entry.js.map} +1 -1
  472. package/dist/pine-core/p-7e92ec48.system.entry.js +2 -0
  473. package/dist/pine-core/p-7e92ec48.system.entry.js.map +1 -0
  474. package/dist/pine-core/{p-13b9ed06.system.entry.js → p-7ff213bb.system.entry.js} +2 -2
  475. package/dist/pine-core/{p-9e9d3a2b.entry.js → p-8023086c.entry.js} +2 -2
  476. package/dist/pine-core/p-83252078.system.entry.js +2 -0
  477. package/dist/pine-core/{p-bedddd53.entry.js → p-833f08f3.entry.js} +2 -2
  478. package/dist/pine-core/p-83c632f6.system.entry.js +2 -0
  479. package/dist/pine-core/p-83c632f6.system.entry.js.map +1 -0
  480. package/dist/pine-core/p-83ffc1cc.entry.js +2 -0
  481. package/dist/pine-core/p-83ffc1cc.entry.js.map +1 -0
  482. package/dist/pine-core/p-85ff1482.entry.js +2 -0
  483. package/dist/pine-core/{p-d5838288.entry.js.map → p-85ff1482.entry.js.map} +1 -1
  484. package/dist/pine-core/{p-12bee2e5.entry.js → p-86d388a2.entry.js} +2 -2
  485. package/dist/pine-core/p-929bb7ab.system.entry.js +2 -0
  486. package/dist/pine-core/p-929bb7ab.system.entry.js.map +1 -0
  487. package/dist/pine-core/p-942fa145.system.entry.js +2 -0
  488. package/dist/pine-core/p-942fa145.system.entry.js.map +1 -0
  489. package/dist/pine-core/{p-e045e337.system.entry.js → p-984578f8.system.entry.js} +2 -2
  490. package/dist/pine-core/{p-e281ac09.entry.js → p-99b5e1a5.entry.js} +2 -2
  491. package/dist/pine-core/{p-BFPxUBwH.system.js.map → p-B-pTdYoP.system.js.map} +1 -1
  492. package/dist/pine-core/p-B2gfQpwn.system.js.map +1 -0
  493. package/dist/pine-core/{p-Bd19LaTb.system.js → p-B4W0_y2p.system.js} +1 -1
  494. package/dist/pine-core/p-B4W0_y2p.system.js.map +1 -0
  495. package/dist/pine-core/{p-CDhmuxC9.system.js.map → p-B5JFBYFw.system.js.map} +1 -1
  496. package/dist/pine-core/p-B5LBNcOw.system.js.map +1 -0
  497. package/dist/pine-core/{p-B46WXJMn.system.js.map → p-BHZ6CSg4.system.js.map} +1 -1
  498. package/dist/pine-core/{p-Dlv6r83m.system.js.map → p-BO1OsmVU.system.js.map} +1 -1
  499. package/dist/pine-core/{p-Cj21y714.system.js.map → p-BOJnNd1p.system.js.map} +1 -1
  500. package/dist/pine-core/p-BVUeEWjl.system.js.map +1 -0
  501. package/dist/pine-core/{p-C94EgDFz.system.js → p-BhPuKJbQ.system.js} +2 -2
  502. package/dist/pine-core/p-BhPuKJbQ.system.js.map +1 -0
  503. package/dist/pine-core/p-Bo6FQRlR.system.js.map +1 -0
  504. package/dist/pine-core/{p-kMnJefdU.system.js.map → p-Bs9Nyvj2.system.js.map} +1 -1
  505. package/dist/pine-core/p-BsL2GDnH.system.js +1 -1
  506. package/dist/pine-core/p-C-oNYS10.system.js.map +1 -0
  507. package/dist/pine-core/p-C3ud771n.system.js.map +1 -0
  508. package/dist/pine-core/{p-C0hVtnK2.system.js.map → p-CDIHBBTC.system.js.map} +1 -1
  509. package/dist/pine-core/p-CLNi-hRD.system.js.map +1 -0
  510. package/dist/pine-core/{p-BjCOR1Nn.system.js.map → p-CV405yTU.system.js.map} +1 -1
  511. package/dist/pine-core/p-CWtKi9tV.system.js.map +1 -0
  512. package/dist/pine-core/{p-BoNavS-S.system.js.map → p-CcsZC7UR.system.js.map} +1 -1
  513. package/dist/pine-core/p-CiDIFl28.system.js.map +1 -0
  514. package/dist/pine-core/{p-BYgoXBct.system.js.map → p-Cj2r1nL6.system.js.map} +1 -1
  515. package/dist/pine-core/{p-w3zTyPF1.system.js.map → p-CnPERKGo.system.js.map} +1 -1
  516. package/dist/pine-core/p-CsM74dxm.system.js.map +1 -0
  517. package/dist/pine-core/{p-CFcYB49C.system.js.map → p-CtAVdPaE.system.js.map} +1 -1
  518. package/dist/pine-core/{p-qXPbJ8Ls.system.js.map → p-CzKqvFNN.system.js.map} +1 -1
  519. package/dist/pine-core/{p-CmTz2SvK.system.js.map → p-D-4Xbxlj.system.js.map} +1 -1
  520. package/dist/pine-core/{p-BVNW4NmT.system.js.map → p-D5vuiRx2.system.js.map} +1 -1
  521. package/dist/pine-core/p-D8DRYw9w.system.js.map +1 -0
  522. package/dist/pine-core/{p-DVVPJPOu.system.js.map → p-D9LPgNmN.system.js.map} +1 -1
  523. package/dist/pine-core/{p-DY5LpFEG.system.js.map → p-DEsea81X.system.js.map} +1 -1
  524. package/dist/pine-core/p-DKSZziVY.system.js.map +1 -0
  525. package/dist/pine-core/{p-CLIVqKy5.system.js.map → p-DN9puCWI.system.js.map} +1 -1
  526. package/dist/pine-core/{p-C0cdB2AV.system.js.map → p-DS7q5AvX.system.js.map} +1 -1
  527. package/dist/pine-core/{p-BSINexOf.system.js.map → p-DV_GadHU.system.js.map} +1 -1
  528. package/dist/pine-core/{p-BgcVBzVE.system.js.map → p-DbVkYdnF.system.js.map} +1 -1
  529. package/dist/pine-core/{p-eKz-xVcI.system.js.map → p-Derxa-nn.system.js.map} +1 -1
  530. package/dist/pine-core/{p-BW-n3jjz.system.js.map → p-DgOMN0Ur.system.js.map} +1 -1
  531. package/dist/pine-core/p-DiJV28pi.system.js.map +1 -0
  532. package/dist/pine-core/p-DkabwBZT.js +2 -0
  533. package/dist/pine-core/p-DkabwBZT.js.map +1 -0
  534. package/dist/pine-core/p-DyQ_s5MV.system.js.map +1 -0
  535. package/dist/pine-core/p-HBgo7i_E.system.js.map +1 -0
  536. package/dist/pine-core/{p-BUZBNCHp.system.js.map → p-M2Hhmwex.system.js.map} +1 -1
  537. package/dist/pine-core/p-PkSWq78_.system.js.map +1 -0
  538. package/dist/pine-core/{p-mVZRKoXd.js → p-_4gljHh-.js} +1 -1
  539. package/dist/pine-core/p-_4gljHh-.js.map +1 -0
  540. package/dist/pine-core/{p-1995a0f8.system.entry.js → p-a2572675.system.entry.js} +2 -2
  541. package/dist/pine-core/{p-85073252.system.entry.js → p-a394645a.system.entry.js} +2 -2
  542. package/dist/pine-core/p-a52b1413.entry.js +2 -0
  543. package/dist/pine-core/p-a52b1413.entry.js.map +1 -0
  544. package/dist/pine-core/{p-dae339c3.entry.js → p-abec6606.entry.js} +2 -2
  545. package/dist/pine-core/p-b2796d3c.system.entry.js +2 -0
  546. package/dist/pine-core/p-b2796d3c.system.entry.js.map +1 -0
  547. package/dist/pine-core/{p-5db706e1.entry.js → p-b3d05184.entry.js} +2 -2
  548. package/dist/pine-core/{p-b902f535.entry.js → p-b7ba6316.entry.js} +2 -2
  549. package/dist/pine-core/p-b9c13f99.entry.js +2 -0
  550. package/dist/pine-core/p-b9c13f99.entry.js.map +1 -0
  551. package/dist/pine-core/{p-14ca569b.entry.js → p-bcc4edaa.entry.js} +2 -2
  552. package/dist/pine-core/{p-1178485a.system.entry.js → p-bd04212c.system.entry.js} +2 -2
  553. package/dist/pine-core/{p-1178485a.system.entry.js.map → p-bd04212c.system.entry.js.map} +1 -1
  554. package/dist/pine-core/{p-9cdd57de.entry.js → p-c0f74199.entry.js} +2 -2
  555. package/dist/pine-core/{p-ed8c3064.system.entry.js → p-c1b0f921.system.entry.js} +2 -2
  556. package/dist/pine-core/{p-68de979e.entry.js → p-c4294be2.entry.js} +2 -2
  557. package/dist/pine-core/p-cd2cd116.entry.js +2 -0
  558. package/dist/pine-core/p-cd2cd116.entry.js.map +1 -0
  559. package/dist/pine-core/p-d1b222f5.entry.js +2 -0
  560. package/dist/pine-core/p-d1b222f5.entry.js.map +1 -0
  561. package/dist/pine-core/{p-7b6b354a.system.entry.js → p-d2ccda59.system.entry.js} +2 -2
  562. package/dist/pine-core/p-d6ac2862.system.entry.js +2 -0
  563. package/dist/pine-core/p-d6ac2862.system.entry.js.map +1 -0
  564. package/dist/pine-core/{p-040f3c92.system.entry.js → p-e09a3682.system.entry.js} +2 -2
  565. package/dist/pine-core/{p-792355e6.entry.js → p-e2dc81c0.entry.js} +2 -2
  566. package/dist/pine-core/p-e6d6e103.entry.js +2 -0
  567. package/dist/pine-core/p-e6d6e103.entry.js.map +1 -0
  568. package/dist/pine-core/{p-6c21bcb0.system.entry.js → p-e9d972db.system.entry.js} +2 -2
  569. package/dist/pine-core/p-e9d972db.system.entry.js.map +1 -0
  570. package/dist/pine-core/p-ef9ed75a.system.entry.js +2 -0
  571. package/dist/pine-core/p-ef9ed75a.system.entry.js.map +1 -0
  572. package/dist/pine-core/{p-4b59cae8.entry.js → p-f256dd8a.entry.js} +2 -2
  573. package/dist/pine-core/{p-4b59cae8.entry.js.map → p-f256dd8a.entry.js.map} +1 -1
  574. package/dist/pine-core/p-f2c807ac.entry.js +2 -0
  575. package/dist/pine-core/p-f2c807ac.entry.js.map +1 -0
  576. package/dist/pine-core/{p-eda0dc79.entry.js → p-f47133fd.entry.js} +2 -2
  577. package/dist/pine-core/p-f4fff209.system.entry.js +2 -0
  578. package/dist/pine-core/p-f4fff209.system.entry.js.map +1 -0
  579. package/dist/pine-core/p-f9e01886.system.entry.js +2 -0
  580. package/dist/pine-core/p-f9e01886.system.entry.js.map +1 -0
  581. package/dist/pine-core/{p-DhYEBuMP.system.js.map → p-xgOOHGQo.system.js.map} +1 -1
  582. package/dist/pine-core/p-yku4NLl6.system.js.map +1 -0
  583. package/dist/pine-core/pds-alert.entry.esm.js.map +1 -0
  584. package/dist/pine-core/pds-box.entry.esm.js.map +1 -1
  585. package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
  586. package/dist/pine-core/pds-checkbox.entry.esm.js.map +1 -1
  587. package/dist/pine-core/pds-copytext.entry.esm.js.map +1 -1
  588. package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +1 -0
  589. package/dist/pine-core/pds-dropdown-menu-separator.entry.esm.js.map +1 -0
  590. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -0
  591. package/dist/pine-core/pds-icon.entry.esm.js.map +1 -1
  592. package/dist/pine-core/pds-link.entry.esm.js.map +1 -1
  593. package/dist/pine-core/pds-modal-content.entry.esm.js.map +1 -0
  594. package/dist/pine-core/pds-modal-footer.entry.esm.js.map +1 -0
  595. package/dist/pine-core/pds-modal-header.entry.esm.js.map +1 -0
  596. package/dist/pine-core/pds-modal.entry.esm.js.map +1 -0
  597. package/dist/pine-core/pds-popover.entry.esm.js.map +1 -1
  598. package/dist/pine-core/pds-switch.entry.esm.js.map +1 -1
  599. package/dist/pine-core/pds-text.entry.esm.js.map +1 -1
  600. package/dist/pine-core/pds-toast.entry.esm.js.map +1 -0
  601. package/dist/pine-core/pds-tooltip.entry.esm.js.map +1 -1
  602. package/dist/pine-core/pine-core.esm.js +1 -1
  603. package/dist/types/components/pds-alert/pds-alert.d.ts +39 -0
  604. package/dist/types/components/pds-box/pds-box.d.ts +6 -6
  605. package/dist/types/components/pds-button/pds-button.d.ts +8 -1
  606. package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +3 -0
  607. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.d.ts +43 -0
  608. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.d.ts +13 -0
  609. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu.d.ts +33 -0
  610. package/dist/types/components/pds-link/pds-link.d.ts +5 -0
  611. package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +25 -0
  612. package/dist/types/components/pds-modal/pds-modal-footer/pds-modal-footer.d.ts +3 -0
  613. package/dist/types/components/pds-modal/pds-modal-header/pds-modal-header.d.ts +3 -0
  614. package/dist/types/components/pds-modal/pds-modal.d.ts +72 -0
  615. package/dist/types/components/pds-modal/test/mock-pds-modal.d.ts +63 -0
  616. package/dist/types/components/pds-switch/pds-switch.d.ts +2 -0
  617. package/dist/types/components/pds-toast/pds-toast.d.ts +57 -0
  618. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +28 -3
  619. package/dist/types/components.d.ts +543 -16
  620. package/dist/types/utils/interfaces.d.ts +6 -0
  621. package/dist/types/utils/overlay.d.ts +3 -3
  622. package/dist/types/utils/utils.d.ts +1 -1
  623. package/hydrate/index.js +3093 -324
  624. package/hydrate/index.mjs +3093 -324
  625. package/package.json +6 -2
  626. package/dist/cjs/index-Br1YlNK2.js.map +0 -1
  627. package/dist/cjs/utils-CQKIgzWg.js.map +0 -1
  628. package/dist/esm/index-mVZRKoXd.js.map +0 -1
  629. package/dist/esm/utils-Dw9B1JDC.js.map +0 -1
  630. package/dist/esm-es5/index-mVZRKoXd.js.map +0 -1
  631. package/dist/esm-es5/utils-Dw9B1JDC.js +0 -2
  632. package/dist/esm-es5/utils-Dw9B1JDC.js.map +0 -1
  633. package/dist/pine-core/p-012c4d8b.entry.js +0 -2
  634. package/dist/pine-core/p-012c4d8b.entry.js.map +0 -1
  635. package/dist/pine-core/p-1d690915.entry.js +0 -2
  636. package/dist/pine-core/p-294f9b1f.entry.js +0 -2
  637. package/dist/pine-core/p-3be0323a.system.entry.js +0 -2
  638. package/dist/pine-core/p-3be0323a.system.entry.js.map +0 -1
  639. package/dist/pine-core/p-433c6687.system.entry.js +0 -2
  640. package/dist/pine-core/p-433c6687.system.entry.js.map +0 -1
  641. package/dist/pine-core/p-545ccff7.system.entry.js +0 -2
  642. package/dist/pine-core/p-545ccff7.system.entry.js.map +0 -1
  643. package/dist/pine-core/p-5c9e1a3d.system.entry.js +0 -2
  644. package/dist/pine-core/p-5c9e1a3d.system.entry.js.map +0 -1
  645. package/dist/pine-core/p-6c21bcb0.system.entry.js.map +0 -1
  646. package/dist/pine-core/p-722989ee.entry.js +0 -2
  647. package/dist/pine-core/p-722989ee.entry.js.map +0 -1
  648. package/dist/pine-core/p-768e754e.system.entry.js +0 -2
  649. package/dist/pine-core/p-768e754e.system.entry.js.map +0 -1
  650. package/dist/pine-core/p-953f619f.system.entry.js +0 -2
  651. package/dist/pine-core/p-9d0c1b2e.system.entry.js +0 -2
  652. package/dist/pine-core/p-BBpt-9kK.system.js.map +0 -1
  653. package/dist/pine-core/p-BUD-iaLL.system.js.map +0 -1
  654. package/dist/pine-core/p-Bd19LaTb.system.js.map +0 -1
  655. package/dist/pine-core/p-C94EgDFz.system.js.map +0 -1
  656. package/dist/pine-core/p-CIzJqNxZ.system.js.map +0 -1
  657. package/dist/pine-core/p-CbNKHcsJ.system.js.map +0 -1
  658. package/dist/pine-core/p-CdkqpuKd.system.js.map +0 -1
  659. package/dist/pine-core/p-Chrs_Qxi.system.js.map +0 -1
  660. package/dist/pine-core/p-DhwO1z4v.system.js.map +0 -1
  661. package/dist/pine-core/p-Dw9B1JDC.js +0 -2
  662. package/dist/pine-core/p-Dw9B1JDC.js.map +0 -1
  663. package/dist/pine-core/p-a5587332.entry.js.map +0 -1
  664. package/dist/pine-core/p-aa955b03.entry.js +0 -2
  665. package/dist/pine-core/p-aa955b03.entry.js.map +0 -1
  666. package/dist/pine-core/p-amsdFwC6.system.js.map +0 -1
  667. package/dist/pine-core/p-b41dee6f.system.entry.js +0 -2
  668. package/dist/pine-core/p-b41dee6f.system.entry.js.map +0 -1
  669. package/dist/pine-core/p-d5838288.entry.js +0 -2
  670. package/dist/pine-core/p-e7bf0be9.entry.js +0 -2
  671. package/dist/pine-core/p-e7bf0be9.entry.js.map +0 -1
  672. package/dist/pine-core/p-f1156360.entry.js +0 -2
  673. package/dist/pine-core/p-f1156360.entry.js.map +0 -1
  674. package/dist/pine-core/p-f4898d4f.entry.js +0 -2
  675. package/dist/pine-core/p-f4898d4f.entry.js.map +0 -1
  676. package/dist/pine-core/p-mVZRKoXd.js.map +0 -1
  677. /package/dist/pine-core/{p-ad69e5f9.system.entry.js.map → p-0069abf8.system.entry.js.map} +0 -0
  678. /package/dist/pine-core/{p-a14c8ab4.system.entry.js.map → p-03d8cb4c.system.entry.js.map} +0 -0
  679. /package/dist/pine-core/{p-2ab26d3d.system.entry.js.map → p-04df41d7.system.entry.js.map} +0 -0
  680. /package/dist/pine-core/{p-0486ad57.entry.js.map → p-0572825b.entry.js.map} +0 -0
  681. /package/dist/pine-core/{p-d2110923.system.entry.js.map → p-111e7da2.system.entry.js.map} +0 -0
  682. /package/dist/pine-core/{p-1d690915.entry.js.map → p-1224c874.entry.js.map} +0 -0
  683. /package/dist/pine-core/{p-b2bbc362.entry.js.map → p-146fcd44.entry.js.map} +0 -0
  684. /package/dist/pine-core/{p-abcce8af.entry.js.map → p-17d3fa8b.entry.js.map} +0 -0
  685. /package/dist/pine-core/{p-e4ea5041.system.entry.js.map → p-1eec6bea.system.entry.js.map} +0 -0
  686. /package/dist/pine-core/{p-294f9b1f.entry.js.map → p-21c3aaeb.entry.js.map} +0 -0
  687. /package/dist/pine-core/{p-5c396e75.entry.js.map → p-24607f93.entry.js.map} +0 -0
  688. /package/dist/pine-core/{p-c0f0b368.system.entry.js.map → p-30142a25.system.entry.js.map} +0 -0
  689. /package/dist/pine-core/{p-8305cd4d.entry.js.map → p-367e188f.entry.js.map} +0 -0
  690. /package/dist/pine-core/{p-6147b1ea.system.entry.js.map → p-3798a631.system.entry.js.map} +0 -0
  691. /package/dist/pine-core/{p-3fdbda99.system.entry.js.map → p-3f82ac77.system.entry.js.map} +0 -0
  692. /package/dist/pine-core/{p-42f1190a.system.entry.js.map → p-48e76945.system.entry.js.map} +0 -0
  693. /package/dist/pine-core/{p-b9f99fc9.entry.js.map → p-4ff0838c.entry.js.map} +0 -0
  694. /package/dist/pine-core/{p-820faa91.system.entry.js.map → p-596e0292.system.entry.js.map} +0 -0
  695. /package/dist/pine-core/{p-598ade79.entry.js.map → p-5e1e7762.entry.js.map} +0 -0
  696. /package/dist/pine-core/{p-d0780ca1.system.entry.js.map → p-6a2296e6.system.entry.js.map} +0 -0
  697. /package/dist/pine-core/{p-b68cb43d.system.entry.js.map → p-71265b2a.system.entry.js.map} +0 -0
  698. /package/dist/pine-core/{p-98181fa8.system.entry.js.map → p-730221a8.system.entry.js.map} +0 -0
  699. /package/dist/pine-core/{p-91dadcbe.entry.js.map → p-742d4490.entry.js.map} +0 -0
  700. /package/dist/pine-core/{p-950427b2.entry.js.map → p-77c3a10d.entry.js.map} +0 -0
  701. /package/dist/pine-core/{p-fed4c0c0.system.entry.js.map → p-78cb1c40.system.entry.js.map} +0 -0
  702. /package/dist/pine-core/{p-1d92261f.system.entry.js.map → p-78fb945e.system.entry.js.map} +0 -0
  703. /package/dist/pine-core/{p-13b9ed06.system.entry.js.map → p-7ff213bb.system.entry.js.map} +0 -0
  704. /package/dist/pine-core/{p-9e9d3a2b.entry.js.map → p-8023086c.entry.js.map} +0 -0
  705. /package/dist/pine-core/{p-953f619f.system.entry.js.map → p-83252078.system.entry.js.map} +0 -0
  706. /package/dist/pine-core/{p-bedddd53.entry.js.map → p-833f08f3.entry.js.map} +0 -0
  707. /package/dist/pine-core/{p-12bee2e5.entry.js.map → p-86d388a2.entry.js.map} +0 -0
  708. /package/dist/pine-core/{p-e045e337.system.entry.js.map → p-984578f8.system.entry.js.map} +0 -0
  709. /package/dist/pine-core/{p-e281ac09.entry.js.map → p-99b5e1a5.entry.js.map} +0 -0
  710. /package/dist/pine-core/{p-1995a0f8.system.entry.js.map → p-a2572675.system.entry.js.map} +0 -0
  711. /package/dist/pine-core/{p-85073252.system.entry.js.map → p-a394645a.system.entry.js.map} +0 -0
  712. /package/dist/pine-core/{p-dae339c3.entry.js.map → p-abec6606.entry.js.map} +0 -0
  713. /package/dist/pine-core/{p-5db706e1.entry.js.map → p-b3d05184.entry.js.map} +0 -0
  714. /package/dist/pine-core/{p-b902f535.entry.js.map → p-b7ba6316.entry.js.map} +0 -0
  715. /package/dist/pine-core/{p-14ca569b.entry.js.map → p-bcc4edaa.entry.js.map} +0 -0
  716. /package/dist/pine-core/{p-9cdd57de.entry.js.map → p-c0f74199.entry.js.map} +0 -0
  717. /package/dist/pine-core/{p-ed8c3064.system.entry.js.map → p-c1b0f921.system.entry.js.map} +0 -0
  718. /package/dist/pine-core/{p-68de979e.entry.js.map → p-c4294be2.entry.js.map} +0 -0
  719. /package/dist/pine-core/{p-7b6b354a.system.entry.js.map → p-d2ccda59.system.entry.js.map} +0 -0
  720. /package/dist/pine-core/{p-040f3c92.system.entry.js.map → p-e09a3682.system.entry.js.map} +0 -0
  721. /package/dist/pine-core/{p-792355e6.entry.js.map → p-e2dc81c0.entry.js.map} +0 -0
  722. /package/dist/pine-core/{p-eda0dc79.entry.js.map → p-f47133fd.entry.js.map} +0 -0
@@ -0,0 +1,104 @@
1
+ 'use strict';
2
+
3
+ var index = require('./index-CxX7ua5d.js');
4
+
5
+ const pdsToastCss = ":host{--animation-duration:0.3s;--animation-timing:cubic-bezier(0.4, 0, 0.2, 1);--padding-inline:var(--pine-dimension-md);--padding-inline-desktop:var(--pine-dimension-2xl);--sizing-height-default:68px;--sizing-min-width:calc(var(--sizing-total-width) - (var(--padding-inline) * 2));--sizing-min-width-desktop:calc(var(--sizing-total-width) - (var(--padding-inline-desktop) * 2));--sizing-total-width:350px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;font:var(--pine-typography-body-medium)}.pds-toast{-ms-flex-align:center;align-items:center;-webkit-animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);animation:pds-toast-animate-in var(--animation-duration) var(--animation-timing);background-color:var(--pine-color-primary);border-radius:var(--pine-dimension-xs);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);color:var(--pine-color-text-primary);display:-ms-flexbox;display:flex;height:var(--sizing-height-default);-ms-flex-pack:start;justify-content:flex-start;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs);max-width:90vw;min-width:var(--sizing-min-width);padding:0 var(--padding-inline);position:relative;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media screen and (max-width: 767px){.pds-toast{height:36px;max-width:calc(100vw - var(--pine-dimension-2xs) * 2);min-width:auto;padding-inline:var(--pine-dimension-2xs)}}.pds-toast--danger{background-color:var(--pine-color-danger)}.pds-toast--loading .pds-toast__loader{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm);position:relative}.pds-toast--loading .pds-toast__loader-spinner{-webkit-animation:pds-toast-rotate 2s linear infinite;animation:pds-toast-rotate 2s linear infinite;height:20px;width:20px}.pds-toast--loading .pds-toast__loader-path{-webkit-animation:pds-toast-dash 1.5s ease-in-out infinite;animation:pds-toast-dash 1.5s ease-in-out infinite;stroke-dasharray:1, 200;stroke-dashoffset:0;stroke-linecap:round}.pds-toast__icon{color:var(--pine-color-text-primary);display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm)}.pds-toast__message{font:var(--pine-typography-body-sm-medium);-webkit-margin-end:auto;margin-inline-end:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-toast__message ::slotted(a){color:var(--pine-color-text-primary);-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs);opacity:0.7;text-decoration:underline}.pds-toast__message ::slotted(a):hover,.pds-toast__message ::slotted(a):focus-visible{opacity:1}.pds-toast__message ::slotted(a):focus-visible{outline:2px solid var(--pine-color-text-primary);outline-offset:2px}.pds-toast__button{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);color:inherit;cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);opacity:0.7;padding:0;white-space:nowrap}.pds-toast__button:hover,.pds-toast__button:focus{opacity:1}.pds-toast__button:focus{outline:var(--pine-outline-focus);outline-offset:var(--pine-dimension-2xs)}@-webkit-keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes pds-toast-animate-in{from{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}to{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@-webkit-keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@keyframes pds-toast-animate-out{from{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}to{opacity:0;-webkit-transform:translateY(100%);transform:translateY(100%)}}@-webkit-keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes pds-toast-rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@-webkit-keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}@keyframes pds-toast-dash{0%{stroke-dasharray:1, 200;stroke-dashoffset:0}50%{stroke-dasharray:89, 200;stroke-dashoffset:-35}100%{stroke-dasharray:89, 200;stroke-dashoffset:-124}}:host([hidden]) .pds-toast,.pds-toast--animating-out{-webkit-animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;animation:pds-toast-animate-out var(--animation-duration) var(--animation-timing) forwards;pointer-events:none;}";
6
+
7
+ const PdsToast = class {
8
+ constructor(hostRef) {
9
+ index.registerInstance(this, hostRef);
10
+ this.pdsToastDismissed = index.createEvent(this, "pdsToastDismissed");
11
+ /**
12
+ * Whether the toast can be dismissed manually via the close button.
13
+ * Note: This only controls manual dismissal. Auto-dismissal via duration still applies.
14
+ * @default true
15
+ */
16
+ this.dismissible = true;
17
+ /**
18
+ * The duration in milliseconds to show the toast before auto-dismissing.
19
+ * Set to 0 to disable auto-dismiss.
20
+ * @default 4500
21
+ */
22
+ this.duration = 4500;
23
+ /**
24
+ * The type of toast to display.
25
+ * - default: Grey background (default)
26
+ * - danger: Red background
27
+ * - loading: With spinner animation
28
+ * @default 'default'
29
+ */
30
+ this.type = 'default';
31
+ /**
32
+ * Whether the toast is currently visible.
33
+ */
34
+ this.isVisible = true;
35
+ /**
36
+ * Whether the toast is animating out.
37
+ */
38
+ this.isAnimatingOut = false;
39
+ }
40
+ componentDidLoad() {
41
+ if (this.duration > 0) {
42
+ this.startDismissTimer();
43
+ }
44
+ }
45
+ disconnectedCallback() {
46
+ this.cleanup();
47
+ }
48
+ handleDurationChange(newDuration) {
49
+ if (this.dismissTimer) {
50
+ window.clearTimeout(this.dismissTimer);
51
+ this.dismissTimer = undefined;
52
+ }
53
+ if (newDuration > 0) {
54
+ this.startDismissTimer();
55
+ }
56
+ }
57
+ async dismiss() {
58
+ // Start the animation out
59
+ this.isAnimatingOut = true;
60
+ // Wait for animation to complete before hiding and cleanup
61
+ await new Promise((resolve) => setTimeout(resolve, 300)); // Match --animation-duration
62
+ this.isVisible = false;
63
+ this.cleanup();
64
+ this.pdsToastDismissed.emit({ componentId: this.componentId });
65
+ }
66
+ // Private methods
67
+ cleanup() {
68
+ if (this.dismissTimer) {
69
+ window.clearTimeout(this.dismissTimer);
70
+ this.dismissTimer = undefined;
71
+ }
72
+ }
73
+ startDismissTimer() {
74
+ this.dismissTimer = window.setTimeout(() => {
75
+ this.dismiss();
76
+ }, this.duration);
77
+ }
78
+ renderIcon() {
79
+ // Loading type takes priority
80
+ if (this.type === 'loading') {
81
+ return (index.h("div", { class: "pds-toast__loader" }, index.h("svg", { class: "pds-toast__loader-spinner", viewBox: "25 25 50 50", "aria-hidden": "true" }, index.h("circle", { class: "pds-toast__loader-path", cx: "50", cy: "50", r: "20", fill: "none", stroke: "currentColor", "stroke-width": "4", "stroke-linecap": "round" }))));
82
+ }
83
+ // Return icon if provided, otherwise undefined (which renders as nothing)
84
+ return this.icon && index.h("pds-icon", { name: this.icon, class: "pds-toast__icon" });
85
+ }
86
+ render() {
87
+ return (index.h(index.Host, { key: 'c950cf3a269952f6048f79e5c6c793c65ff2b89a', hidden: !this.isVisible }, index.h("div", { key: '0cec10124aecec0c7af86b460165a577c65d1571', class: {
88
+ 'pds-toast': true,
89
+ [`pds-toast--${this.type}`]: this.type !== 'default',
90
+ 'pds-toast--animating-out': this.isAnimatingOut
91
+ }, role: "alert", "aria-live": "polite" }, this.renderIcon(), index.h("span", { key: '5dda529f788df94ed0e444924fb11a1061a20dd1', class: "pds-toast__message" }, index.h("slot", { key: '29a6c93dbf14f92b1375eff7a3c8f4556babe67a' })), this.dismissible && (index.h("button", { key: 'f3bcbcacceb5ef2b1d2127d408879e2a95418230', type: "button", class: "pds-toast__button", onClick: () => {
92
+ this.dismiss();
93
+ }, "aria-label": "Dismiss message" }, index.h("pds-icon", { key: '1ea48def81a89dc7ba38f493abb0107632005075', name: "remove" }))))));
94
+ }
95
+ static get watchers() { return {
96
+ "duration": ["handleDurationChange"]
97
+ }; }
98
+ };
99
+ PdsToast.style = pdsToastCss;
100
+
101
+ exports.pds_toast = PdsToast;
102
+ //# sourceMappingURL=pds-toast.entry.cjs.js.map
103
+
104
+ //# sourceMappingURL=pds-toast.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-toast.entry.cjs.js","mappings":"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","names":["h","Host"],"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}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-toast.entry.cjs.js","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"],"names":["h","Host"],"mappings":"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"}
@@ -3,78 +3,105 @@
3
3
  var index = require('./index-CxX7ua5d.js');
4
4
 
5
5
  const positionTooltip = ({ elem, elemPlacement, overlay, offset = 8 }) => {
6
- if (elem == undefined)
7
- return;
6
+ if (elem === null || overlay === null)
7
+ return false;
8
+ if (typeof elemPlacement !== 'string' || elemPlacement.trim() === '') {
9
+ return false;
10
+ }
8
11
  const rect = elem.getBoundingClientRect();
9
12
  const contentRect = overlay.getBoundingClientRect();
10
- // Exit the function if the placement is not set
11
- if (!elemPlacement || elemPlacement == "")
12
- return;
13
+ // Reset styles
14
+ overlay.style.top = '';
15
+ overlay.style.left = '';
16
+ overlay.style.right = '';
17
+ overlay.style.bottom = '';
18
+ overlay.style.transform = '';
19
+ // Use fixed positioning for portal overlays
20
+ overlay.style.position = 'fixed';
21
+ // Detect if the trigger is a span with only text or a text node
22
+ let isTextTrigger = false;
23
+ if (elem.childNodes.length === 1 && elem.childNodes[0].nodeType === Node.TEXT_NODE) {
24
+ isTextTrigger = true;
25
+ }
26
+ else if (elem.childNodes.length === 1 && elem.childNodes[0].nodeType === Node.ELEMENT_NODE) {
27
+ const child = elem.childNodes[0];
28
+ if (child.tagName === 'SPAN' && child.childNodes.length === 1 && child.childNodes[0].nodeType === Node.TEXT_NODE) {
29
+ isTextTrigger = true;
30
+ }
31
+ }
13
32
  switch (true) {
14
- case elemPlacement.includes("right"):
15
- overlay.style.top = '50%';
16
- overlay.style.left = `calc(${rect.width}px + ${offset}px)`;
17
- overlay.style.transform = 'translateY(-50%)';
18
- if (elemPlacement.includes("start")) {
19
- overlay.style.top = '0';
20
- overlay.style.transform = 'translateY(0)';
21
- }
22
- if (elemPlacement.includes("end")) {
23
- overlay.style.bottom = '0';
24
- overlay.style.top = 'initial';
25
- overlay.style.transform = 'translateY(0)';
33
+ case elemPlacement.includes('right'):
34
+ if (isTextTrigger) {
35
+ // Align to the bottom of the trigger for text triggers
36
+ overlay.style.top = `${rect.bottom - contentRect.height / 2}px`;
37
+ }
38
+ else {
39
+ overlay.style.top = `${rect.top + rect.height / 2 - contentRect.height / 2}px`;
40
+ }
41
+ overlay.style.left = `${rect.right + offset}px`;
42
+ if (elemPlacement.includes('start')) {
43
+ overlay.style.top = `${rect.top}px`;
44
+ }
45
+ if (elemPlacement.includes('end')) {
46
+ overlay.style.top = `${rect.bottom - contentRect.height}px`;
26
47
  }
27
48
  break;
28
- case elemPlacement.includes("left"):
29
- overlay.style.top = '50%';
30
- overlay.style.right = `calc(${rect.width}px + ${offset}px)`;
31
- overlay.style.transform = 'translateY(-50%)';
32
- if (elemPlacement.includes("start")) {
33
- overlay.style.top = '0';
34
- overlay.style.transform = 'translateY(0)';
35
- }
36
- if (elemPlacement.includes("end")) {
37
- overlay.style.bottom = '0';
38
- overlay.style.top = 'initial';
39
- overlay.style.transform = 'translateY(0)';
49
+ case elemPlacement.includes('left'):
50
+ if (isTextTrigger) {
51
+ overlay.style.top = `${rect.bottom - contentRect.height / 2}px`;
52
+ }
53
+ else {
54
+ overlay.style.top = `${rect.top + rect.height / 2 - contentRect.height / 2}px`;
55
+ }
56
+ overlay.style.left = `${rect.left - contentRect.width - offset}px`;
57
+ if (elemPlacement.includes('start')) {
58
+ overlay.style.top = `${rect.top}px`;
59
+ }
60
+ if (elemPlacement.includes('end')) {
61
+ overlay.style.top = `${rect.bottom - contentRect.height}px`;
40
62
  }
41
63
  break;
42
- case elemPlacement.includes("bottom"):
43
- overlay.style.top = `calc(${rect.height}px + ${offset}px)`;
44
- overlay.style.left = '50%';
45
- overlay.style.transform = 'translateX(-50%)';
46
- if (elemPlacement.includes("start")) {
47
- overlay.style.left = '0';
48
- overlay.style.transform = 'translateX(0)';
49
- }
50
- if (elemPlacement.includes("end")) {
51
- overlay.style.left = 'initial';
52
- overlay.style.right = '0';
53
- overlay.style.transform = 'translateX(0)';
64
+ case elemPlacement.includes('bottom'):
65
+ overlay.style.top = `${rect.bottom + offset}px`;
66
+ overlay.style.left = `${rect.left + rect.width / 2 - contentRect.width / 2}px`;
67
+ if (elemPlacement.includes('start')) {
68
+ overlay.style.left = `${rect.left}px`;
69
+ }
70
+ if (elemPlacement.includes('end')) {
71
+ overlay.style.left = `${rect.right - contentRect.width}px`;
72
+ overlay.style.right = 'initial';
54
73
  }
55
74
  break;
56
- case elemPlacement.includes("top"):
57
- overlay.style.top = `calc((${contentRect.height}px + ${offset}px) * -1)`;
58
- overlay.style.left = '50%';
59
- overlay.style.transform = 'translateX(-50%)';
60
- if (elemPlacement.includes("start")) {
61
- overlay.style.left = '0';
62
- overlay.style.transform = 'translateX(0)';
63
- }
64
- if (elemPlacement.includes("end")) {
65
- overlay.style.left = 'initial';
66
- overlay.style.right = '0';
67
- overlay.style.transform = 'translateX(0)';
75
+ case elemPlacement.includes('top'):
76
+ overlay.style.top = `${rect.top - contentRect.height - offset}px`;
77
+ overlay.style.left = `${rect.left + rect.width / 2 - contentRect.width / 2}px`;
78
+ if (elemPlacement.includes('start')) {
79
+ overlay.style.left = `${rect.left}px`;
80
+ }
81
+ if (elemPlacement.includes('end')) {
82
+ overlay.style.left = `${rect.right - contentRect.width}px`;
83
+ overlay.style.right = 'initial';
68
84
  }
69
85
  break;
70
86
  }
87
+ return true;
71
88
  };
72
89
 
73
- const pdsTooltipCss = ":host{--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;display:inline-block;position:relative}:host ::slotted(*){display:-ms-flexbox;display:flex}:host ::slotted([slot=content]){display:block;max-width:var(--tooltip-dimension-max-width);white-space:normal}.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);position:absolute;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:1}:host(.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}";
90
+ 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);position:absolute;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:1}.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}";
74
91
 
75
92
  const PdsTooltip = class {
76
93
  constructor(hostRef) {
77
94
  index.registerInstance(this, hostRef);
95
+ /**
96
+ * Internal state: true if the tooltip was opened by user interaction (hover/focus),
97
+ * false if opened via the `opened` prop or currently closed.
98
+ */
99
+ this._isInteractiveOpen = false;
100
+ this.portalEl = null;
101
+ this.triggerEl = null;
102
+ this.contentDiv = null;
103
+ this.slotMutationObserver = null;
104
+ this.overlayResizeObserver = null;
78
105
  /**
79
106
  * Determines when the tooltip is open
80
107
  * @defaultValue false
@@ -106,44 +133,80 @@ const PdsTooltip = class {
106
133
  */
107
134
  this.opened = false;
108
135
  this.handleHide = () => {
136
+ if (this.opened && !this._isInteractiveOpen) {
137
+ return;
138
+ }
109
139
  this.hideTooltip();
140
+ this._isInteractiveOpen = false;
110
141
  };
111
142
  this.handleShow = () => {
143
+ if (this.opened && !this._isInteractiveOpen) {
144
+ return;
145
+ }
146
+ this._isInteractiveOpen = true;
112
147
  this.showTooltip();
113
148
  };
114
149
  this.handlePageShow = () => {
150
+ if (this.opened && !this._isInteractiveOpen) {
151
+ return;
152
+ }
115
153
  this.opened = false;
154
+ this._isInteractiveOpen = false;
155
+ };
156
+ this.handleScroll = () => {
157
+ if (this.opened) {
158
+ if (!this._isInteractiveOpen) {
159
+ this.repositionPortal();
160
+ }
161
+ else {
162
+ this.hideTooltip();
163
+ this._isInteractiveOpen = false;
164
+ }
165
+ }
166
+ };
167
+ this.handleSpaNavigation = () => {
168
+ if (this.opened && !this._isInteractiveOpen) {
169
+ return;
170
+ }
171
+ this.hideTooltip();
172
+ this._isInteractiveOpen = false;
116
173
  };
117
174
  }
118
- handleOpenToggle() {
119
- if (this.opened) {
120
- this.handleShow();
121
- }
122
- else {
123
- this.handleHide();
175
+ handleOpenToggle(newValue, oldValue) {
176
+ if (newValue === false && oldValue === true) {
177
+ this._isInteractiveOpen = false;
124
178
  }
125
179
  }
126
180
  componentWillLoad() {
127
- if (this.opened) {
128
- this.showTooltip();
129
- }
130
- this.el.addEventListener('blur', this.handleHide, true);
131
- this.el.addEventListener('focus', this.handleShow, true);
181
+ this._isInteractiveOpen = false;
132
182
  }
133
183
  componentDidLoad() {
134
- // fix for Safari iOS back button issue
135
184
  window.addEventListener('pageshow', this.handlePageShow);
185
+ this.triggerEl = this.el.querySelector('.pds-tooltip__trigger');
186
+ const contentSlotWrapper = this.el.querySelector('.pds-tooltip__content-slot-wrapper');
187
+ if (contentSlotWrapper !== null) {
188
+ this.slotMutationObserver = new MutationObserver(() => {
189
+ if (this.opened && this.portalEl !== null) {
190
+ this.removePortal();
191
+ this.createPortal();
192
+ }
193
+ });
194
+ this.slotMutationObserver.observe(contentSlotWrapper, { childList: true, subtree: false });
195
+ }
136
196
  return () => {
137
197
  window.removeEventListener('pageshow', this.handlePageShow);
198
+ if (this.slotMutationObserver !== null) {
199
+ this.slotMutationObserver.disconnect();
200
+ }
138
201
  };
139
202
  }
140
- componentDidUpdate() {
141
- if (this.opened) {
142
- this.showTooltip();
143
- }
144
- }
145
203
  componentDidRender() {
146
- positionTooltip({ elem: this.el, elemPlacement: this.placement, overlay: this.contentEl });
204
+ if (this.opened && this.portalEl === null) {
205
+ this.createPortal();
206
+ }
207
+ else if (!this.opened && this.portalEl !== null) {
208
+ this.removePortal();
209
+ }
147
210
  }
148
211
  /**
149
212
  * Shows the tooltip by enabling the opened property
@@ -157,20 +220,159 @@ const PdsTooltip = class {
157
220
  async hideTooltip() {
158
221
  this.opened = false;
159
222
  }
223
+ /**
224
+ * Determines the most accurate HTML element to use as the anchor for positioning the tooltip.
225
+ * If `htmlContent` is false, it attempts to find the actual element slotted as the trigger.
226
+ * Otherwise, or if no specific element is found, it defaults to the span wrapper around the trigger slot.
227
+ * This helps with precise alignment.
228
+ */
229
+ determinePositioningAnchor() {
230
+ let positioningAnchor = this.triggerEl;
231
+ if (this.triggerEl !== null) {
232
+ const children = this.triggerEl.childNodes;
233
+ for (let i = 0; i < children.length; i++) {
234
+ const childNode = children[i];
235
+ if (childNode.nodeType === Node.ELEMENT_NODE) {
236
+ positioningAnchor = childNode;
237
+ break; // Found the first element, use it as the anchor
238
+ }
239
+ }
240
+ }
241
+ // If no ELEMENT_NODE is found within this.triggerEl (e.g., if trigger is just text),
242
+ // positioningAnchor will correctly remain this.triggerEl (the span).
243
+ return positioningAnchor;
244
+ }
245
+ /**
246
+ * Centralized method to calculate and apply the tooltip's position.
247
+ * Uses the determined anchor element and the current content dimensions.
248
+ */
249
+ repositionPortal() {
250
+ const anchor = this.determinePositioningAnchor();
251
+ if (anchor !== null && this.contentDiv !== null) {
252
+ positionTooltip({ elem: anchor, elemPlacement: this.placement, overlay: this.contentDiv });
253
+ const placementParts = this.placement.split('-');
254
+ const primaryPlacement = placementParts[0];
255
+ const isCardinalCenterPlacement = placementParts.length === 1;
256
+ if (isCardinalCenterPlacement) {
257
+ const anchorRect = anchor.getBoundingClientRect();
258
+ const overlayRect = this.contentDiv.getBoundingClientRect();
259
+ if (primaryPlacement === 'left' || primaryPlacement === 'right') {
260
+ const currentOverlayTop = parseFloat(this.contentDiv.style.top || '0');
261
+ const anchorCenterY = anchorRect.top + (anchorRect.height / 2);
262
+ const overlayCenterY = overlayRect.top + (overlayRect.height / 2);
263
+ const adjustmentY = anchorCenterY - overlayCenterY;
264
+ if (Math.abs(adjustmentY) > 0.5) {
265
+ this.contentDiv.style.top = `${currentOverlayTop + adjustmentY}px`;
266
+ }
267
+ }
268
+ else if (primaryPlacement === 'top' || primaryPlacement === 'bottom') {
269
+ const currentOverlayLeft = parseFloat(this.contentDiv.style.left || '0');
270
+ const anchorCenterX = anchorRect.left + (anchorRect.width / 2);
271
+ const overlayCenterX = overlayRect.left + (overlayRect.width / 2);
272
+ const adjustmentX = anchorCenterX - overlayCenterX;
273
+ if (Math.abs(adjustmentX) > 0.5) {
274
+ this.contentDiv.style.left = `${currentOverlayLeft + adjustmentX}px`;
275
+ }
276
+ }
277
+ }
278
+ }
279
+ }
280
+ createPortal() {
281
+ if (this.portalEl !== null)
282
+ return;
283
+ this.portalEl = document.createElement('div');
284
+ this.portalEl.className = `pds-tooltip pds-tooltip--${this.placement} ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''} ${this.opened ? 'pds-tooltip--is-open' : ''} ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}`;
285
+ this.portalEl.style.position = 'fixed';
286
+ this.portalEl.style.zIndex = '9999';
287
+ if (this.portalEl.id === '') {
288
+ this.portalEl.id = this.componentId || this.el.id || `pds-tooltip-portal-${PdsTooltip.instanceCounter++}`;
289
+ }
290
+ if (this.portalEl.getAttribute('id') !== this.portalEl.id) {
291
+ this.portalEl.setAttribute('id', this.portalEl.id);
292
+ }
293
+ this.portalEl.setAttribute('role', 'tooltip');
294
+ this.portalEl.setAttribute('aria-hidden', this.opened ? 'false' : 'true');
295
+ this.portalEl.setAttribute('aria-live', this.opened ? 'polite' : 'off');
296
+ this.portalEl.style.maxWidth = this.maxWidth;
297
+ this.contentDiv = document.createElement('div');
298
+ this.contentDiv.className = 'pds-tooltip__content';
299
+ this.contentDiv.setAttribute('aria-hidden', this.opened ? 'false' : 'true');
300
+ this.contentDiv.setAttribute('aria-live', this.opened ? 'polite' : 'off');
301
+ this.contentDiv.setAttribute('role', 'tooltip');
302
+ this.contentDiv.style.maxWidth = this.maxWidth;
303
+ const contentSlotWrapper = this.el.querySelector('.pds-tooltip__content-slot-wrapper');
304
+ const slottedContentContainer = contentSlotWrapper === null || contentSlotWrapper === void 0 ? void 0 : contentSlotWrapper.querySelector('[slot="content"]');
305
+ let hasSlottedContent = false;
306
+ if (slottedContentContainer !== null) {
307
+ const childrenToClone = Array.from(slottedContentContainer.childNodes);
308
+ if (childrenToClone.length > 0) {
309
+ const hasMeaningfulNode = childrenToClone.some(node => {
310
+ var _a;
311
+ return node.nodeType === Node.ELEMENT_NODE ||
312
+ (node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== '');
313
+ });
314
+ if (hasMeaningfulNode) {
315
+ hasSlottedContent = true;
316
+ childrenToClone.forEach((node /*, index*/) => {
317
+ var _a;
318
+ if (node.nodeType === Node.ELEMENT_NODE || (node.nodeType === Node.TEXT_NODE && ((_a = node.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== '')) {
319
+ this.contentDiv.appendChild(node.cloneNode(true));
320
+ }
321
+ });
322
+ }
323
+ }
324
+ }
325
+ if (!hasSlottedContent) {
326
+ if (this.content !== '') {
327
+ this.contentDiv.textContent = this.content;
328
+ }
329
+ }
330
+ this.portalEl.appendChild(this.contentDiv);
331
+ document.body.appendChild(this.portalEl);
332
+ this.repositionPortal();
333
+ if (this.contentDiv !== null) {
334
+ this.overlayResizeObserver = new ResizeObserver(() => {
335
+ this.repositionPortal();
336
+ });
337
+ this.overlayResizeObserver.observe(this.contentDiv);
338
+ }
339
+ // Add global listeners when portal is created
340
+ window.addEventListener('scroll', this.handleScroll, true);
341
+ window.addEventListener('popstate', this.handleSpaNavigation, true);
342
+ window.addEventListener('hashchange', this.handleSpaNavigation, true);
343
+ // Add ARIA attribute to trigger, now that portalEl and its ID are confirmed
344
+ if (this.triggerEl !== null && this.portalEl.id !== '') {
345
+ this.triggerEl.setAttribute('aria-describedby', this.portalEl.id);
346
+ }
347
+ }
348
+ removePortal() {
349
+ if (this.overlayResizeObserver !== null && this.contentDiv !== null) {
350
+ this.overlayResizeObserver.unobserve(this.contentDiv);
351
+ this.overlayResizeObserver = null;
352
+ }
353
+ if (this.portalEl !== null) {
354
+ window.removeEventListener('scroll', this.handleScroll, true);
355
+ window.removeEventListener('popstate', this.handleSpaNavigation, true);
356
+ window.removeEventListener('hashchange', this.handleSpaNavigation, true);
357
+ document.body.removeChild(this.portalEl);
358
+ this.portalEl = null;
359
+ }
360
+ // Remove ARIA attribute from trigger
361
+ if (this.triggerEl !== null) {
362
+ this.triggerEl.removeAttribute('aria-describedby');
363
+ }
364
+ this.contentDiv = null;
365
+ }
160
366
  render() {
161
- return (index.h(index.Host, { key: '2732f2c81bc66814945206ddde15367e64a89ec2', onMouseEnter: this.handleShow, onMouseLeave: this.handleHide, onFocusin: this.handleShow, onFocusout: this.handleHide }, index.h("div", { key: '58705f1fbb1d88b91337100ba32de07f7838be52', class: `
162
- pds-tooltip
163
- pds-tooltip--${this.placement}
164
- ${this.htmlContent ? 'pds-tooltip--has-html-content' : ''}
165
- ${this.opened ? 'pds-tooltip--is-open' : ''}
166
- ${this.hasArrow ? '' : 'pds-tooltip--no-arrow'}
167
- ` }, index.h("span", { key: '33e96cb4f46ebc418f79971047a37fc5c3498e0d', "aria-describedby": this.componentId, class: "pds-tooltip__trigger" }, index.h("slot", { key: 'cca7b5d50e2cbc0f839a46caa5a5dc8a79f1cb15' })), index.h("div", { key: '22c666894f7835629e00e9c2c3964bcaf63000ae', class: "pds-tooltip__content", "aria-hidden": this.opened ? 'false' : 'true', "aria-live": this.opened ? 'polite' : 'off', id: this.componentId, ref: (el) => (this.contentEl = el), role: "tooltip", style: { maxWidth: this.maxWidth } }, index.h("slot", { key: '83a805d9eef71ac261a03d56853ccc8ac7bfe818', name: "content" }), this.content))));
367
+ const hostId = this.componentId || undefined;
368
+ return (index.h(index.Host, { key: '0fe2bea1ea0e8eaeb5879644694a2e129f1f4898', id: hostId, class: { 'pds-tooltip--is-open': this.opened } }, index.h("span", { key: 'f26feb3c37957573d3b6b0a55091b2e7012ae31b', class: "pds-tooltip__trigger", onMouseEnter: this.handleShow, onMouseLeave: this.handleHide, onFocus: this.handleShow, onBlur: this.handleHide, ref: el => this.triggerEl = el }, index.h("slot", { key: 'c7940e3aa7f17fc5d5fcdedc0a624204ceed291c' })), index.h("div", { key: '0c8dc83e3b7f8c1337aae8641d80f63c0866c348', class: "pds-tooltip__content-slot-wrapper", style: { display: 'none' } }, index.h("slot", { key: '2f6701768c0debdd69673da3ad7dc34b8b237f6a', name: "content" }))));
168
369
  }
169
370
  get el() { return index.getElement(this); }
170
371
  static get watchers() { return {
171
372
  "opened": ["handleOpenToggle"]
172
373
  }; }
173
374
  };
375
+ PdsTooltip.instanceCounter = 0;
174
376
  PdsTooltip.style = pdsTooltipCss;
175
377
 
176
378
  exports.pds_tooltip = PdsTooltip;