@pine-ds/core 3.6.0 → 3.8.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 (881) hide show
  1. package/components/form.js +16 -1
  2. package/components/form.js.map +1 -1
  3. package/components/index.d.ts +4 -0
  4. package/components/index.js +2 -0
  5. package/components/index.js.map +1 -1
  6. package/components/index2.js +4 -2
  7. package/components/index2.js.map +1 -1
  8. package/components/mock-pds-modal.js +2 -2
  9. package/components/mock-pds-modal.js.map +1 -1
  10. package/components/pds-avatar.js +1 -1
  11. package/components/pds-button2.js +7 -4
  12. package/components/pds-button2.js.map +1 -1
  13. package/components/pds-checkbox2.js +8 -5
  14. package/components/pds-checkbox2.js.map +1 -1
  15. package/components/pds-chip.js +1 -100
  16. package/components/pds-chip.js.map +1 -1
  17. package/components/pds-chip2.js +105 -0
  18. package/components/pds-chip2.js.map +1 -0
  19. package/components/pds-combobox.js +735 -54
  20. package/components/pds-combobox.js.map +1 -1
  21. package/components/pds-copytext.js +4 -4
  22. package/components/pds-copytext.js.map +1 -1
  23. package/components/pds-dropdown-menu-separator.js +1 -1
  24. package/components/pds-dropdown-menu-separator.js.map +1 -1
  25. package/components/pds-dropdown-menu.js +1 -1
  26. package/components/pds-dropdown-menu.js.map +1 -1
  27. package/components/pds-filter.d.ts +11 -0
  28. package/components/pds-filter.js +518 -0
  29. package/components/pds-filter.js.map +1 -0
  30. package/components/pds-filters.d.ts +11 -0
  31. package/components/pds-filters.js +38 -0
  32. package/components/pds-filters.js.map +1 -0
  33. package/components/pds-image.js +2 -2
  34. package/components/pds-input.js +3 -3
  35. package/components/pds-input.js.map +1 -1
  36. package/components/pds-link2.js +2 -2
  37. package/components/pds-loader2.js +1 -1
  38. package/components/pds-modal-content.js +2 -2
  39. package/components/pds-modal-footer.js +1 -1
  40. package/components/pds-modal-header.js +1 -1
  41. package/components/pds-modal.js +4 -4
  42. package/components/pds-modal.js.map +1 -1
  43. package/components/pds-popover.js +123 -15
  44. package/components/pds-popover.js.map +1 -1
  45. package/components/pds-progress.js +1 -1
  46. package/components/pds-property.js +1 -1
  47. package/components/pds-radio.js +11 -5
  48. package/components/pds-radio.js.map +1 -1
  49. package/components/pds-row.js +1 -1
  50. package/components/pds-select.js +22 -6
  51. package/components/pds-select.js.map +1 -1
  52. package/components/pds-sortable-item.js +1 -1
  53. package/components/pds-sortable.js +1 -1
  54. package/components/pds-switch.js +8 -5
  55. package/components/pds-switch.js.map +1 -1
  56. package/components/pds-tab.js +4 -4
  57. package/components/pds-tab.js.map +1 -1
  58. package/components/pds-table-body.js +1 -1
  59. package/components/pds-table-cell2.js +3 -3
  60. package/components/pds-table-cell2.js.map +1 -1
  61. package/components/pds-table-head-cell2.js +3 -3
  62. package/components/pds-table-head-cell2.js.map +1 -1
  63. package/components/pds-table-head.js +2 -2
  64. package/components/pds-table-head.js.map +1 -1
  65. package/components/pds-table-row.js +2 -2
  66. package/components/pds-table-row.js.map +1 -1
  67. package/components/pds-table.js +1 -1
  68. package/components/pds-table.js.map +1 -1
  69. package/components/pds-tabpanel.js +1 -1
  70. package/components/pds-tabs.js +14 -4
  71. package/components/pds-tabs.js.map +1 -1
  72. package/components/pds-text2.js +1 -1
  73. package/components/pds-textarea.js +10 -7
  74. package/components/pds-textarea.js.map +1 -1
  75. package/components/pds-toast.js +3 -3
  76. package/components/pds-tooltip.js +4 -4
  77. package/components/pds-tooltip.js.map +1 -1
  78. package/dist/cjs/{form-Bx4nzJBo.js → form-hmpgbT1I.js} +18 -2
  79. package/dist/cjs/form-hmpgbT1I.js.map +1 -0
  80. package/dist/cjs/{index-g-uSeICs.js → index-DDTyvZD7.js} +5 -2
  81. package/dist/cjs/index-DDTyvZD7.js.map +1 -0
  82. package/dist/cjs/{index-DVaLegMK.js → index-DtnvzYhe.js} +7 -3
  83. package/dist/cjs/index-DtnvzYhe.js.map +1 -0
  84. package/dist/cjs/index.cjs.js +1 -1
  85. package/dist/cjs/loader.cjs.js +2 -2
  86. package/dist/cjs/mock-pds-modal.cjs.entry.js +3 -3
  87. package/dist/cjs/mock-pds-modal.cjs.entry.js.map +1 -1
  88. package/dist/cjs/mock-pds-modal.entry.cjs.js.map +1 -1
  89. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  90. package/dist/cjs/pds-alert.cjs.entry.js +1 -1
  91. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  92. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  93. package/dist/cjs/pds-button.cjs.entry.js +8 -5
  94. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  95. package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
  96. package/dist/cjs/pds-checkbox.cjs.entry.js +9 -6
  97. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  98. package/dist/cjs/pds-checkbox.entry.cjs.js.map +1 -1
  99. package/dist/cjs/pds-chip.cjs.entry.js +4 -4
  100. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  101. package/dist/cjs/pds-chip.entry.cjs.js.map +1 -1
  102. package/dist/cjs/pds-combobox.cjs.entry.js +719 -51
  103. package/dist/cjs/pds-combobox.cjs.entry.js.map +1 -1
  104. package/dist/cjs/pds-combobox.entry.cjs.js.map +1 -1
  105. package/dist/cjs/pds-copytext.cjs.entry.js +5 -5
  106. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  107. package/dist/cjs/pds-copytext.entry.cjs.js.map +1 -1
  108. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  109. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
  110. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +2 -2
  111. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js.map +1 -1
  112. package/dist/cjs/pds-dropdown-menu-separator.entry.cjs.js.map +1 -1
  113. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +2 -2
  114. package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +1 -1
  115. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -1
  116. package/dist/cjs/pds-filter.cjs.entry.js +488 -0
  117. package/dist/cjs/pds-filter.cjs.entry.js.map +1 -0
  118. package/dist/cjs/pds-filter.entry.cjs.js.map +1 -0
  119. package/dist/cjs/pds-filters.cjs.entry.js +20 -0
  120. package/dist/cjs/pds-filters.cjs.entry.js.map +1 -0
  121. package/dist/cjs/pds-filters.entry.cjs.js.map +1 -0
  122. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  123. package/dist/cjs/pds-image.cjs.entry.js +3 -3
  124. package/dist/cjs/pds-input.cjs.entry.js +5 -5
  125. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  126. package/dist/cjs/pds-input.entry.cjs.js.map +1 -1
  127. package/dist/cjs/pds-link.cjs.entry.js +4 -4
  128. package/dist/cjs/pds-loader.cjs.entry.js +2 -2
  129. package/dist/cjs/pds-modal-content.cjs.entry.js +3 -3
  130. package/dist/cjs/pds-modal-footer.cjs.entry.js +2 -2
  131. package/dist/cjs/pds-modal-header.cjs.entry.js +2 -2
  132. package/dist/cjs/pds-modal.cjs.entry.js +5 -5
  133. package/dist/cjs/pds-modal.cjs.entry.js.map +1 -1
  134. package/dist/cjs/pds-modal.entry.cjs.js.map +1 -1
  135. package/dist/cjs/pds-popover.cjs.entry.js +118 -13
  136. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -1
  137. package/dist/cjs/pds-popover.entry.cjs.js.map +1 -1
  138. package/dist/cjs/pds-progress.cjs.entry.js +2 -2
  139. package/dist/cjs/pds-property.cjs.entry.js +2 -2
  140. package/dist/cjs/pds-radio.cjs.entry.js +12 -6
  141. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  142. package/dist/cjs/pds-radio.entry.cjs.js.map +1 -1
  143. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  144. package/dist/cjs/pds-select.cjs.entry.js +21 -6
  145. package/dist/cjs/pds-select.cjs.entry.js.map +1 -1
  146. package/dist/cjs/pds-select.entry.cjs.js.map +1 -1
  147. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
  148. package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
  149. package/dist/cjs/pds-switch.cjs.entry.js +9 -6
  150. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  151. package/dist/cjs/pds-switch.entry.cjs.js.map +1 -1
  152. package/dist/cjs/pds-tab.cjs.entry.js +5 -5
  153. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -1
  154. package/dist/cjs/pds-tab.entry.cjs.js.map +1 -1
  155. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  156. package/dist/cjs/pds-table-cell.cjs.entry.js +4 -4
  157. package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -1
  158. package/dist/cjs/pds-table-cell.entry.cjs.js.map +1 -1
  159. package/dist/cjs/pds-table-head-cell.cjs.entry.js +5 -5
  160. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
  161. package/dist/cjs/pds-table-head-cell.entry.cjs.js.map +1 -1
  162. package/dist/cjs/pds-table-head.cjs.entry.js +3 -3
  163. package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
  164. package/dist/cjs/pds-table-head.entry.cjs.js.map +1 -1
  165. package/dist/cjs/pds-table-row.cjs.entry.js +3 -3
  166. package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
  167. package/dist/cjs/pds-table-row.entry.cjs.js.map +1 -1
  168. package/dist/cjs/pds-table.cjs.entry.js +2 -2
  169. package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
  170. package/dist/cjs/pds-table.entry.cjs.js.map +1 -1
  171. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
  172. package/dist/cjs/pds-tabs.cjs.entry.js +15 -5
  173. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -1
  174. package/dist/cjs/pds-tabs.entry.cjs.js.map +1 -1
  175. package/dist/cjs/pds-text.cjs.entry.js +2 -2
  176. package/dist/cjs/pds-textarea.cjs.entry.js +11 -8
  177. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  178. package/dist/cjs/pds-textarea.entry.cjs.js.map +1 -1
  179. package/dist/cjs/pds-toast.cjs.entry.js +4 -4
  180. package/dist/cjs/pds-tooltip.cjs.entry.js +5 -5
  181. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  182. package/dist/cjs/pds-tooltip.entry.cjs.js.map +1 -1
  183. package/dist/cjs/pine-core.cjs.js +2 -2
  184. package/dist/collection/collection-manifest.json +2 -0
  185. package/dist/collection/components/pds-button/pds-button.css +29 -3
  186. package/dist/collection/components/pds-button/pds-button.js +8 -5
  187. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  188. package/dist/collection/components/pds-button/stories/pds-button.stories.js +28 -1
  189. package/dist/collection/components/pds-checkbox/pds-checkbox.js +7 -4
  190. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  191. package/dist/collection/components/pds-chip/pds-chip.css +2 -2
  192. package/dist/collection/components/pds-chip/pds-chip.js +17 -5
  193. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  194. package/dist/collection/components/pds-combobox/pds-combobox.css +213 -4
  195. package/dist/collection/components/pds-combobox/pds-combobox.js +837 -54
  196. package/dist/collection/components/pds-combobox/pds-combobox.js.map +1 -1
  197. package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +182 -2
  198. package/dist/collection/components/pds-copytext/pds-copytext.css +6 -3
  199. package/dist/collection/components/pds-copytext/pds-copytext.js +2 -2
  200. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
  201. package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +1 -1
  202. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.css +4 -1
  203. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.css +1 -1
  204. package/dist/collection/components/pds-filters/pds-filter/filter-interface.js +2 -0
  205. package/dist/collection/components/pds-filters/pds-filter/filter-interface.js.map +1 -0
  206. package/dist/collection/components/pds-filters/pds-filter/pds-filter.css +193 -0
  207. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js +732 -0
  208. package/dist/collection/components/pds-filters/pds-filter/pds-filter.js.map +1 -0
  209. package/dist/collection/components/pds-filters/pds-filter/stories/pds-filter.stories.js +93 -0
  210. package/dist/collection/components/pds-filters/pds-filters.css +10 -0
  211. package/dist/collection/components/pds-filters/pds-filters.js +45 -0
  212. package/dist/collection/components/pds-filters/pds-filters.js.map +1 -0
  213. package/dist/collection/components/pds-filters/stories/pds-filters.stories.js +40 -0
  214. package/dist/collection/components/pds-image/pds-image.js +2 -2
  215. package/dist/collection/components/pds-input/pds-input.css +18 -3
  216. package/dist/collection/components/pds-input/pds-input.js +1 -1
  217. package/dist/collection/components/pds-input/stories/pds-input.stories.js +42 -0
  218. package/dist/collection/components/pds-link/pds-link.js +2 -2
  219. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  220. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
  221. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
  222. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
  223. package/dist/collection/components/pds-modal/pds-modal.css +2 -2
  224. package/dist/collection/components/pds-modal/pds-modal.js +3 -3
  225. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
  226. package/dist/collection/components/pds-popover/pds-popover.css +3 -0
  227. package/dist/collection/components/pds-popover/pds-popover.js +226 -17
  228. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -1
  229. package/dist/collection/components/pds-popover/popover-interface.js +2 -0
  230. package/dist/collection/components/pds-popover/popover-interface.js.map +1 -0
  231. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +1 -1
  232. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  233. package/dist/collection/components/pds-property/pds-property.js +1 -1
  234. package/dist/collection/components/pds-radio/pds-radio.js +10 -4
  235. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
  236. package/dist/collection/components/pds-row/pds-row.js +1 -1
  237. package/dist/collection/components/pds-select/pds-select.css +1 -1
  238. package/dist/collection/components/pds-select/pds-select.js +19 -2
  239. package/dist/collection/components/pds-select/pds-select.js.map +1 -1
  240. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  241. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  242. package/dist/collection/components/pds-switch/pds-switch.js +7 -4
  243. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
  244. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  245. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +1 -1
  246. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  247. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +1 -1
  248. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  249. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +1 -1
  250. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  251. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +1 -1
  252. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  253. package/dist/collection/components/pds-table/pds-table.css +1 -1
  254. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +5 -2
  255. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  256. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  257. package/dist/collection/components/pds-tabs/pds-tabs.js +15 -4
  258. package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -1
  259. package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +1 -1
  260. package/dist/collection/components/pds-text/pds-text.js +1 -1
  261. package/dist/collection/components/pds-textarea/pds-textarea.css +1 -1
  262. package/dist/collection/components/pds-textarea/pds-textarea.js +8 -5
  263. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  264. package/dist/collection/components/pds-toast/pds-toast.js +3 -3
  265. package/dist/collection/components/pds-tooltip/pds-tooltip.css +1 -1
  266. package/dist/collection/components/pds-tooltip/pds-tooltip.js +3 -3
  267. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  268. package/dist/collection/utils/form.js +15 -0
  269. package/dist/collection/utils/form.js.map +1 -1
  270. package/dist/collection/utils/types.js.map +1 -1
  271. package/dist/docs.json +825 -84
  272. package/dist/esm/form-DwjNklzi.js +47 -0
  273. package/dist/esm/form-DwjNklzi.js.map +1 -0
  274. package/dist/esm/{index-BVCWKPy3.js → index-Bf1dou5H.js} +5 -2
  275. package/dist/esm/index-Bf1dou5H.js.map +1 -0
  276. package/dist/esm/{index-DrJ5r5Pu.js → index-D4zJBIgl.js} +6 -4
  277. package/dist/esm/index-D4zJBIgl.js.map +1 -0
  278. package/dist/esm/index.js +1 -1
  279. package/dist/esm/loader.js +3 -3
  280. package/dist/esm/mock-pds-modal.entry.js +3 -3
  281. package/dist/esm/mock-pds-modal.entry.js.map +1 -1
  282. package/dist/esm/pds-accordion.entry.js +2 -2
  283. package/dist/esm/pds-alert.entry.js +1 -1
  284. package/dist/esm/pds-avatar.entry.js +2 -2
  285. package/dist/esm/pds-box.entry.js +1 -1
  286. package/dist/esm/pds-button.entry.js +8 -5
  287. package/dist/esm/pds-button.entry.js.map +1 -1
  288. package/dist/esm/pds-checkbox.entry.js +9 -6
  289. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  290. package/dist/esm/pds-chip.entry.js +4 -4
  291. package/dist/esm/pds-chip.entry.js.map +1 -1
  292. package/dist/esm/pds-combobox.entry.js +719 -51
  293. package/dist/esm/pds-combobox.entry.js.map +1 -1
  294. package/dist/esm/pds-copytext.entry.js +5 -5
  295. package/dist/esm/pds-copytext.entry.js.map +1 -1
  296. package/dist/esm/pds-divider.entry.js +1 -1
  297. package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
  298. package/dist/esm/pds-dropdown-menu-separator.entry.js +2 -2
  299. package/dist/esm/pds-dropdown-menu-separator.entry.js.map +1 -1
  300. package/dist/esm/pds-dropdown-menu.entry.js +2 -2
  301. package/dist/esm/pds-dropdown-menu.entry.js.map +1 -1
  302. package/dist/esm/pds-filter.entry.js +486 -0
  303. package/dist/esm/pds-filter.entry.js.map +1 -0
  304. package/dist/esm/pds-filters.entry.js +18 -0
  305. package/dist/esm/pds-filters.entry.js.map +1 -0
  306. package/dist/esm/pds-icon.entry.js +1 -1
  307. package/dist/esm/pds-image.entry.js +3 -3
  308. package/dist/esm/pds-input.entry.js +5 -5
  309. package/dist/esm/pds-input.entry.js.map +1 -1
  310. package/dist/esm/pds-link.entry.js +4 -4
  311. package/dist/esm/pds-loader.entry.js +2 -2
  312. package/dist/esm/pds-modal-content.entry.js +3 -3
  313. package/dist/esm/pds-modal-footer.entry.js +2 -2
  314. package/dist/esm/pds-modal-header.entry.js +2 -2
  315. package/dist/esm/pds-modal.entry.js +5 -5
  316. package/dist/esm/pds-modal.entry.js.map +1 -1
  317. package/dist/esm/pds-popover.entry.js +118 -13
  318. package/dist/esm/pds-popover.entry.js.map +1 -1
  319. package/dist/esm/pds-progress.entry.js +2 -2
  320. package/dist/esm/pds-property.entry.js +2 -2
  321. package/dist/esm/pds-radio.entry.js +12 -6
  322. package/dist/esm/pds-radio.entry.js.map +1 -1
  323. package/dist/esm/pds-row.entry.js +2 -2
  324. package/dist/esm/pds-select.entry.js +21 -6
  325. package/dist/esm/pds-select.entry.js.map +1 -1
  326. package/dist/esm/pds-sortable-item.entry.js +3 -3
  327. package/dist/esm/pds-sortable.entry.js +2 -2
  328. package/dist/esm/pds-switch.entry.js +9 -6
  329. package/dist/esm/pds-switch.entry.js.map +1 -1
  330. package/dist/esm/pds-tab.entry.js +5 -5
  331. package/dist/esm/pds-tab.entry.js.map +1 -1
  332. package/dist/esm/pds-table-body.entry.js +2 -2
  333. package/dist/esm/pds-table-cell.entry.js +4 -4
  334. package/dist/esm/pds-table-cell.entry.js.map +1 -1
  335. package/dist/esm/pds-table-head-cell.entry.js +5 -5
  336. package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
  337. package/dist/esm/pds-table-head.entry.js +3 -3
  338. package/dist/esm/pds-table-head.entry.js.map +1 -1
  339. package/dist/esm/pds-table-row.entry.js +3 -3
  340. package/dist/esm/pds-table-row.entry.js.map +1 -1
  341. package/dist/esm/pds-table.entry.js +2 -2
  342. package/dist/esm/pds-table.entry.js.map +1 -1
  343. package/dist/esm/pds-tabpanel.entry.js +2 -2
  344. package/dist/esm/pds-tabs.entry.js +15 -5
  345. package/dist/esm/pds-tabs.entry.js.map +1 -1
  346. package/dist/esm/pds-text.entry.js +2 -2
  347. package/dist/esm/pds-textarea.entry.js +11 -8
  348. package/dist/esm/pds-textarea.entry.js.map +1 -1
  349. package/dist/esm/pds-toast.entry.js +4 -4
  350. package/dist/esm/pds-tooltip.entry.js +5 -5
  351. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  352. package/dist/esm/pine-core.js +3 -3
  353. package/dist/esm-es5/form-DwjNklzi.js +2 -0
  354. package/dist/esm-es5/form-DwjNklzi.js.map +1 -0
  355. package/dist/esm-es5/{index-BVCWKPy3.js → index-Bf1dou5H.js} +2 -2
  356. package/dist/esm-es5/index-Bf1dou5H.js.map +1 -0
  357. package/dist/esm-es5/index-D4zJBIgl.js +2 -0
  358. package/dist/esm-es5/index-D4zJBIgl.js.map +1 -0
  359. package/dist/esm-es5/index.js +1 -1
  360. package/dist/esm-es5/loader.js +1 -1
  361. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  362. package/dist/esm-es5/mock-pds-modal.entry.js.map +1 -1
  363. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  364. package/dist/esm-es5/pds-alert.entry.js +1 -1
  365. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  366. package/dist/esm-es5/pds-box.entry.js +1 -1
  367. package/dist/esm-es5/pds-button.entry.js +1 -1
  368. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  369. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  370. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  371. package/dist/esm-es5/pds-chip.entry.js +1 -1
  372. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  373. package/dist/esm-es5/pds-combobox.entry.js +2 -2
  374. package/dist/esm-es5/pds-combobox.entry.js.map +1 -1
  375. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  376. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  377. package/dist/esm-es5/pds-divider.entry.js +1 -1
  378. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  379. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  380. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js.map +1 -1
  381. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  382. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -1
  383. package/dist/esm-es5/pds-filter.entry.js +2 -0
  384. package/dist/esm-es5/pds-filter.entry.js.map +1 -0
  385. package/dist/esm-es5/pds-filters.entry.js +2 -0
  386. package/dist/esm-es5/pds-filters.entry.js.map +1 -0
  387. package/dist/esm-es5/pds-icon.entry.js +1 -1
  388. package/dist/esm-es5/pds-image.entry.js +1 -1
  389. package/dist/esm-es5/pds-input.entry.js +1 -1
  390. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  391. package/dist/esm-es5/pds-link.entry.js +1 -1
  392. package/dist/esm-es5/pds-loader.entry.js +1 -1
  393. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  394. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  395. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  396. package/dist/esm-es5/pds-modal.entry.js +1 -1
  397. package/dist/esm-es5/pds-modal.entry.js.map +1 -1
  398. package/dist/esm-es5/pds-popover.entry.js +1 -1
  399. package/dist/esm-es5/pds-popover.entry.js.map +1 -1
  400. package/dist/esm-es5/pds-progress.entry.js +1 -1
  401. package/dist/esm-es5/pds-property.entry.js +1 -1
  402. package/dist/esm-es5/pds-radio.entry.js +1 -1
  403. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  404. package/dist/esm-es5/pds-row.entry.js +1 -1
  405. package/dist/esm-es5/pds-select.entry.js +1 -1
  406. package/dist/esm-es5/pds-select.entry.js.map +1 -1
  407. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  408. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  409. package/dist/esm-es5/pds-switch.entry.js +1 -1
  410. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  411. package/dist/esm-es5/pds-tab.entry.js +1 -1
  412. package/dist/esm-es5/pds-tab.entry.js.map +1 -1
  413. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  414. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  415. package/dist/esm-es5/pds-table-cell.entry.js.map +1 -1
  416. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  417. package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
  418. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  419. package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
  420. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  421. package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
  422. package/dist/esm-es5/pds-table.entry.js +1 -1
  423. package/dist/esm-es5/pds-table.entry.js.map +1 -1
  424. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  425. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  426. package/dist/esm-es5/pds-tabs.entry.js.map +1 -1
  427. package/dist/esm-es5/pds-text.entry.js +1 -1
  428. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  429. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  430. package/dist/esm-es5/pds-toast.entry.js +1 -1
  431. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  432. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  433. package/dist/esm-es5/pine-core.js +1 -1
  434. package/dist/pine-core/index.esm.js +1 -1
  435. package/dist/pine-core/mock-pds-modal.entry.esm.js.map +1 -1
  436. package/dist/pine-core/p-00346c62.system.entry.js +2 -0
  437. package/dist/pine-core/p-00346c62.system.entry.js.map +1 -0
  438. package/dist/pine-core/{p-72b05928.system.entry.js → p-0486ecc6.system.entry.js} +2 -2
  439. package/dist/pine-core/{p-72b05928.system.entry.js.map → p-0486ecc6.system.entry.js.map} +1 -1
  440. package/dist/pine-core/p-07e129db.entry.js +2 -0
  441. package/dist/pine-core/{p-540cfd70.entry.js → p-1009009c.entry.js} +2 -2
  442. package/dist/pine-core/{p-349a8869.entry.js → p-100de2b7.entry.js} +2 -2
  443. package/dist/pine-core/p-1b932ee3.entry.js +2 -0
  444. package/dist/pine-core/p-1b932ee3.entry.js.map +1 -0
  445. package/dist/pine-core/{p-e2887e78.entry.js → p-1b9d4482.entry.js} +2 -2
  446. package/dist/pine-core/p-1c32ffb3.entry.js +2 -0
  447. package/dist/pine-core/p-1c32ffb3.entry.js.map +1 -0
  448. package/dist/pine-core/p-20466115.entry.js +2 -0
  449. package/dist/pine-core/p-20466115.entry.js.map +1 -0
  450. package/dist/pine-core/{p-dfc5ab34.system.entry.js → p-2054b5cb.system.entry.js} +2 -2
  451. package/dist/pine-core/{p-8726c99d.system.entry.js → p-2597bc59.system.entry.js} +2 -2
  452. package/dist/pine-core/{p-5a709348.entry.js → p-25cb810d.entry.js} +2 -2
  453. package/dist/pine-core/{p-a1b51557.system.entry.js → p-25cf2860.system.entry.js} +2 -2
  454. package/dist/pine-core/{p-54183d70.system.entry.js → p-2aab28b1.system.entry.js} +2 -2
  455. package/dist/pine-core/p-2b102034.system.entry.js +2 -0
  456. package/dist/pine-core/p-2b102034.system.entry.js.map +1 -0
  457. package/dist/pine-core/p-2b12bc55.system.entry.js +2 -0
  458. package/dist/pine-core/p-2efc646c.system.entry.js +2 -0
  459. package/dist/pine-core/{p-ecb9edf8.entry.js → p-2fb6f9d5.entry.js} +2 -2
  460. package/dist/pine-core/p-2fd7f74e.entry.js +2 -0
  461. package/dist/pine-core/{p-39488f2c.system.entry.js → p-302849cf.system.entry.js} +2 -2
  462. package/dist/pine-core/{p-51d83489.system.entry.js → p-307f415a.system.entry.js} +2 -2
  463. package/dist/pine-core/p-378df5eb.system.entry.js +2 -0
  464. package/dist/pine-core/{p-e08f492a.entry.js → p-39648ce2.entry.js} +2 -2
  465. package/dist/pine-core/p-3dce3bc0.system.entry.js +2 -0
  466. package/dist/pine-core/p-3dce3bc0.system.entry.js.map +1 -0
  467. package/dist/pine-core/{p-5f5b19f4.entry.js → p-41e2fe3a.entry.js} +2 -2
  468. package/dist/pine-core/p-449ebe39.system.entry.js +2 -0
  469. package/dist/pine-core/p-45d574f1.system.entry.js +2 -0
  470. package/dist/pine-core/p-45d574f1.system.entry.js.map +1 -0
  471. package/dist/pine-core/p-465e3418.system.entry.js +2 -0
  472. package/dist/pine-core/p-465e3418.system.entry.js.map +1 -0
  473. package/dist/pine-core/p-4xv5UVkx.system.js.map +1 -0
  474. package/dist/pine-core/p-538b3902.system.entry.js +2 -0
  475. package/dist/pine-core/p-538b3902.system.entry.js.map +1 -0
  476. package/dist/pine-core/{p-c13ef6a7.system.entry.js → p-55d06d0a.system.entry.js} +3 -3
  477. package/dist/pine-core/{p-075eecf9.entry.js → p-5ac7af9e.entry.js} +2 -2
  478. package/dist/pine-core/p-61a25ab2.entry.js +2 -0
  479. package/dist/pine-core/p-61a25ab2.entry.js.map +1 -0
  480. package/dist/pine-core/p-6381a811.system.entry.js +4 -0
  481. package/dist/pine-core/p-6381a811.system.entry.js.map +1 -0
  482. package/dist/pine-core/p-6c36cab6.entry.js +2 -0
  483. package/dist/pine-core/p-6c36cab6.entry.js.map +1 -0
  484. package/dist/pine-core/p-6ed297cb.entry.js +2 -0
  485. package/dist/pine-core/p-6ed297cb.entry.js.map +1 -0
  486. package/dist/pine-core/p-708e963c.system.entry.js +2 -0
  487. package/dist/pine-core/p-708e963c.system.entry.js.map +1 -0
  488. package/dist/pine-core/p-7090d42d.system.entry.js +2 -0
  489. package/dist/pine-core/p-7090d42d.system.entry.js.map +1 -0
  490. package/dist/pine-core/{p-4deb7b8c.entry.js → p-725c350c.entry.js} +2 -2
  491. package/dist/pine-core/{p-4deb7b8c.entry.js.map → p-725c350c.entry.js.map} +1 -1
  492. package/dist/pine-core/{p-b2b1b7a9.system.entry.js → p-73a2e028.system.entry.js} +2 -2
  493. package/dist/pine-core/p-75187352.system.entry.js +2 -0
  494. package/dist/pine-core/p-75187352.system.entry.js.map +1 -0
  495. package/dist/pine-core/p-786967e8.entry.js +2 -0
  496. package/dist/pine-core/p-79422986.entry.js +2 -0
  497. package/dist/pine-core/p-79422986.entry.js.map +1 -0
  498. package/dist/pine-core/p-81bc089e.entry.js +2 -0
  499. package/dist/pine-core/p-81bc089e.entry.js.map +1 -0
  500. package/dist/pine-core/p-85c41629.entry.js +2 -0
  501. package/dist/pine-core/p-85c41629.entry.js.map +1 -0
  502. package/dist/pine-core/p-86263a62.entry.js +2 -0
  503. package/dist/pine-core/p-86263a62.entry.js.map +1 -0
  504. package/dist/pine-core/p-875d5d5a.system.entry.js +2 -0
  505. package/dist/pine-core/p-87ed43d5.entry.js +2 -0
  506. package/dist/pine-core/p-87ed43d5.entry.js.map +1 -0
  507. package/dist/pine-core/{p-c8122bea.entry.js → p-88773b86.entry.js} +2 -2
  508. package/dist/pine-core/p-8b4fb3f0.entry.js +2 -0
  509. package/dist/pine-core/p-8b4fb3f0.entry.js.map +1 -0
  510. package/dist/pine-core/p-8b5fc4b4.system.entry.js +2 -0
  511. package/dist/pine-core/p-8b5fc4b4.system.entry.js.map +1 -0
  512. package/dist/pine-core/{p-e89cb1f2.system.entry.js → p-8f69dd71.system.entry.js} +2 -2
  513. package/dist/pine-core/p-94183716.entry.js +2 -0
  514. package/dist/pine-core/p-94183716.entry.js.map +1 -0
  515. package/dist/pine-core/p-96c27dba.entry.js +2 -0
  516. package/dist/pine-core/p-96c27dba.entry.js.map +1 -0
  517. package/dist/pine-core/p-9766923f.entry.js +2 -0
  518. package/dist/pine-core/p-9766923f.entry.js.map +1 -0
  519. package/dist/pine-core/p-9b335a9f.entry.js +2 -0
  520. package/dist/pine-core/p-9b335a9f.entry.js.map +1 -0
  521. package/dist/pine-core/p-9c579956.system.entry.js +2 -0
  522. package/dist/pine-core/p-9c579956.system.entry.js.map +1 -0
  523. package/dist/pine-core/p-9cf2b7a6.entry.js +2 -0
  524. package/dist/pine-core/p-9cf2b7a6.entry.js.map +1 -0
  525. package/dist/pine-core/{p-Dh7jcLgJ.system.js.map → p-B-Doh1Wu.system.js.map} +1 -1
  526. package/dist/pine-core/{p-B1fiSdbt.system.js.map → p-BEgEi4w5.system.js.map} +1 -1
  527. package/dist/pine-core/p-BG99uNIQ.system.js +2 -0
  528. package/dist/pine-core/p-BG99uNIQ.system.js.map +1 -0
  529. package/dist/pine-core/p-BHavepTY.system.js +2 -0
  530. package/dist/pine-core/p-BHavepTY.system.js.map +1 -0
  531. package/dist/pine-core/{p-_E9ZEzfO.system.js.map → p-BIjeWHX_.system.js.map} +1 -1
  532. package/dist/pine-core/{p-EYhpJx2s.system.js.map → p-BJjdD3yf.system.js.map} +1 -1
  533. package/dist/pine-core/p-BLC5kuro.system.js.map +1 -0
  534. package/dist/pine-core/p-BPjnTOEL.system.js +2 -0
  535. package/dist/pine-core/{p-De9tROL-.system.js.map → p-BPjnTOEL.system.js.map} +1 -1
  536. package/dist/pine-core/{p-D05FrqXr.system.js.map → p-BRIdBthP.system.js.map} +1 -1
  537. package/dist/pine-core/{p-BVCWKPy3.js → p-Bf1dou5H.js} +2 -2
  538. package/dist/pine-core/p-Bf1dou5H.js.map +1 -0
  539. package/dist/pine-core/{p-Kj_j7PHx.system.js.map → p-BkPtASB1.system.js.map} +1 -1
  540. package/dist/pine-core/p-Bkfqi7zE.system.js.map +1 -0
  541. package/dist/pine-core/p-ByzULH8m.system.js.map +1 -0
  542. package/dist/pine-core/p-C1KChp5Q.system.js.map +1 -0
  543. package/dist/pine-core/p-C2W-sHx5.system.js.map +1 -0
  544. package/dist/pine-core/{p-CE6b_LzB.system.js.map → p-C3iAHQC6.system.js.map} +1 -1
  545. package/dist/pine-core/{p-ACQU83St.system.js.map → p-CCQd5PVN.system.js.map} +1 -1
  546. package/dist/pine-core/{p-ChslVme6.system.js.map → p-CG2PKUWT.system.js.map} +1 -1
  547. package/dist/pine-core/p-CIBXMJd-.system.js.map +1 -0
  548. package/dist/pine-core/p-CJNB_wrl.system.js.map +1 -0
  549. package/dist/pine-core/p-CSa_b_JX.system.js.map +1 -0
  550. package/dist/pine-core/p-Cid662up.system.js.map +1 -0
  551. package/dist/pine-core/{p-CWdEolqa.system.js.map → p-Cl47ROcT.system.js.map} +1 -1
  552. package/dist/pine-core/{p-0KTU2Jt-.system.js.map → p-CnPN6prI.system.js.map} +1 -1
  553. package/dist/pine-core/p-Cqzmj3D8.system.js.map +1 -0
  554. package/dist/pine-core/{p-B1FQkx7R.system.js.map → p-Ctdx1tCG.system.js.map} +1 -1
  555. package/dist/pine-core/{p-3gYSFJIn.system.js.map → p-CwNRZQss.system.js.map} +1 -1
  556. package/dist/pine-core/p-Cxlv_2hD.system.js.map +1 -0
  557. package/dist/pine-core/{p-B_C-mRjx.system.js → p-Cxvdulqq.system.js} +2 -2
  558. package/dist/pine-core/p-Cxvdulqq.system.js.map +1 -0
  559. package/dist/pine-core/p-D0foS5EP.system.js.map +1 -0
  560. package/dist/pine-core/p-D4zJBIgl.js +2 -0
  561. package/dist/pine-core/p-D4zJBIgl.js.map +1 -0
  562. package/dist/pine-core/{p-MBv7PsKc.system.js.map → p-D52TGCLt.system.js.map} +1 -1
  563. package/dist/pine-core/{p-CHJgq_z7.system.js.map → p-D7B3vOdC.system.js.map} +1 -1
  564. package/dist/pine-core/p-DCjZr2HA.system.js.map +1 -0
  565. package/dist/pine-core/p-DN3VK2yy.system.js.map +1 -0
  566. package/dist/pine-core/{p-Df_3qA_L.system.js.map → p-DOqVoXeA.system.js.map} +1 -1
  567. package/dist/pine-core/p-DW3lkDNz.system.js.map +1 -0
  568. package/dist/pine-core/p-DfrSuf6X.system.js.map +1 -0
  569. package/dist/pine-core/{p-CLoi4eKt.system.js.map → p-DmWU0f_O.system.js.map} +1 -1
  570. package/dist/pine-core/p-DpemOPFJ.system.js.map +1 -0
  571. package/dist/pine-core/p-DpzRSULT.system.js.map +1 -0
  572. package/dist/pine-core/{p-DYb5Y47j.system.js.map → p-Dq7Wu9rr.system.js.map} +1 -1
  573. package/dist/pine-core/p-DtdXdmNp.system.js.map +1 -0
  574. package/dist/pine-core/p-Dw05F6Xg.system.js.map +1 -0
  575. package/dist/pine-core/p-Dw7zXw_6.system.js.map +1 -0
  576. package/dist/pine-core/p-DwjNklzi.js +2 -0
  577. package/dist/pine-core/p-DwjNklzi.js.map +1 -0
  578. package/dist/pine-core/p-GrmqKqN8.system.js.map +1 -0
  579. package/dist/pine-core/p-HHZU8rBT.system.js.map +1 -0
  580. package/dist/pine-core/{p-C5Y492i0.system.js.map → p-M-zMP2QX.system.js.map} +1 -1
  581. package/dist/pine-core/p-WWWd_vEd.system.js +2 -0
  582. package/dist/pine-core/p-WWWd_vEd.system.js.map +1 -0
  583. package/dist/pine-core/p-a2708028.entry.js +2 -0
  584. package/dist/pine-core/p-a2708028.entry.js.map +1 -0
  585. package/dist/pine-core/{p-72053224.entry.js → p-a2cb65df.entry.js} +3 -3
  586. package/dist/pine-core/{p-52d37cc1.entry.js → p-a3785977.entry.js} +2 -2
  587. package/dist/pine-core/p-a645818a.entry.js +2 -0
  588. package/dist/pine-core/p-a707a7da.system.entry.js +2 -0
  589. package/dist/pine-core/p-a707a7da.system.entry.js.map +1 -0
  590. package/dist/pine-core/{p-f583e5d4.entry.js → p-a9cfaa1f.entry.js} +2 -2
  591. package/dist/pine-core/p-acd87a10.entry.js +2 -0
  592. package/dist/pine-core/p-acd87a10.entry.js.map +1 -0
  593. package/dist/pine-core/p-ae4ec5cf.system.entry.js +2 -0
  594. package/dist/pine-core/p-ae4ec5cf.system.entry.js.map +1 -0
  595. package/dist/pine-core/p-b23dd01c.entry.js +2 -0
  596. package/dist/pine-core/p-b23dd01c.entry.js.map +1 -0
  597. package/dist/pine-core/p-b669e1d9.entry.js +2 -0
  598. package/dist/pine-core/p-b9aafec7.system.entry.js +2 -0
  599. package/dist/pine-core/p-b9aafec7.system.entry.js.map +1 -0
  600. package/dist/pine-core/{p-52cb152b.system.entry.js → p-bc2fecd4.system.entry.js} +2 -2
  601. package/dist/pine-core/{p-e3fb0bc2.system.entry.js → p-bc637bed.system.entry.js} +2 -2
  602. package/dist/pine-core/{p-b6ea3332.entry.js → p-be5ef841.entry.js} +2 -2
  603. package/dist/pine-core/p-c3579585.system.entry.js +2 -0
  604. package/dist/pine-core/p-c3579585.system.entry.js.map +1 -0
  605. package/dist/pine-core/{p-fcb39155.system.entry.js → p-c3f84df8.system.entry.js} +2 -2
  606. package/dist/pine-core/p-c44d3551.entry.js +2 -0
  607. package/dist/pine-core/{p-e8d76117.entry.js → p-c55fc47e.entry.js} +2 -2
  608. package/dist/pine-core/p-cffc98ae.entry.js +3 -0
  609. package/dist/pine-core/p-cffc98ae.entry.js.map +1 -0
  610. package/dist/pine-core/{p-5e8badb9.entry.js → p-d1b27fa4.entry.js} +2 -2
  611. package/dist/pine-core/p-d2b15290.system.entry.js +2 -0
  612. package/dist/pine-core/p-d2b15290.system.entry.js.map +1 -0
  613. package/dist/pine-core/p-d4d22aee.entry.js +2 -0
  614. package/dist/pine-core/p-d4d22aee.entry.js.map +1 -0
  615. package/dist/pine-core/{p-5da82e8c.system.entry.js → p-dace69e7.system.entry.js} +2 -2
  616. package/dist/pine-core/p-db12273e.system.entry.js +2 -0
  617. package/dist/pine-core/p-e34c1224.system.entry.js +2 -0
  618. package/dist/pine-core/p-e34c1224.system.entry.js.map +1 -0
  619. package/dist/pine-core/p-e5adbf74.system.entry.js +2 -0
  620. package/dist/pine-core/p-e5adbf74.system.entry.js.map +1 -0
  621. package/dist/pine-core/p-e6085566.system.entry.js +2 -0
  622. package/dist/pine-core/p-e6085566.system.entry.js.map +1 -0
  623. package/dist/pine-core/p-e683e197.system.entry.js +2 -0
  624. package/dist/pine-core/p-e683e197.system.entry.js.map +1 -0
  625. package/dist/pine-core/p-e6b051e8.system.entry.js +2 -0
  626. package/dist/pine-core/p-e6b051e8.system.entry.js.map +1 -0
  627. package/dist/pine-core/{p-f55b9f90.system.entry.js → p-e702a8dc.system.entry.js} +2 -2
  628. package/dist/pine-core/{p-6db1e029.system.entry.js → p-ee583234.system.entry.js} +2 -2
  629. package/dist/pine-core/p-f15cd180.entry.js +2 -0
  630. package/dist/pine-core/p-f15cd180.entry.js.map +1 -0
  631. package/dist/pine-core/{p-0066d249.entry.js → p-f5d78141.entry.js} +2 -2
  632. package/dist/pine-core/p-f61ee383.system.entry.js +2 -0
  633. package/dist/pine-core/p-f61ee383.system.entry.js.map +1 -0
  634. package/dist/pine-core/p-f6d0bd39.entry.js +2 -0
  635. package/dist/pine-core/p-f6d0bd39.entry.js.map +1 -0
  636. package/dist/pine-core/{p-52af1890.system.entry.js → p-f911dde3.system.entry.js} +2 -2
  637. package/dist/pine-core/p-f92d7570.system.entry.js +2 -0
  638. package/dist/pine-core/p-f92d7570.system.entry.js.map +1 -0
  639. package/dist/pine-core/{p-BZoPY2dP.system.js.map → p-iazk4jjL.system.js.map} +1 -1
  640. package/dist/pine-core/{p-CqzGa2j0.system.js.map → p-k9JOparb.system.js.map} +1 -1
  641. package/dist/pine-core/{p-B7S-9dbT.system.js.map → p-kcOuXqWo.system.js.map} +1 -1
  642. package/dist/pine-core/{p-c0df3222.entry.js.map → p-ozqEY4Zc.system.js.map} +1 -1
  643. package/dist/pine-core/{p-CqK-uhv8.system.js.map → p-yaM1kuaC.system.js.map} +1 -1
  644. package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
  645. package/dist/pine-core/pds-checkbox.entry.esm.js.map +1 -1
  646. package/dist/pine-core/pds-chip.entry.esm.js.map +1 -1
  647. package/dist/pine-core/pds-combobox.entry.esm.js.map +1 -1
  648. package/dist/pine-core/pds-copytext.entry.esm.js.map +1 -1
  649. package/dist/pine-core/pds-dropdown-menu-separator.entry.esm.js.map +1 -1
  650. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -1
  651. package/dist/pine-core/pds-filter.entry.esm.js.map +1 -0
  652. package/dist/pine-core/pds-filters.entry.esm.js.map +1 -0
  653. package/dist/pine-core/pds-input.entry.esm.js.map +1 -1
  654. package/dist/pine-core/pds-modal.entry.esm.js.map +1 -1
  655. package/dist/pine-core/pds-popover.entry.esm.js.map +1 -1
  656. package/dist/pine-core/pds-radio.entry.esm.js.map +1 -1
  657. package/dist/pine-core/pds-select.entry.esm.js.map +1 -1
  658. package/dist/pine-core/pds-switch.entry.esm.js.map +1 -1
  659. package/dist/pine-core/pds-tab.entry.esm.js.map +1 -1
  660. package/dist/pine-core/pds-table-cell.entry.esm.js.map +1 -1
  661. package/dist/pine-core/pds-table-head-cell.entry.esm.js.map +1 -1
  662. package/dist/pine-core/pds-table-head.entry.esm.js.map +1 -1
  663. package/dist/pine-core/pds-table-row.entry.esm.js.map +1 -1
  664. package/dist/pine-core/pds-table.entry.esm.js.map +1 -1
  665. package/dist/pine-core/pds-tabs.entry.esm.js.map +1 -1
  666. package/dist/pine-core/pds-textarea.entry.esm.js.map +1 -1
  667. package/dist/pine-core/pds-tooltip.entry.esm.js.map +1 -1
  668. package/dist/pine-core/pine-core.css +1 -1
  669. package/dist/pine-core/pine-core.esm.js +1 -1
  670. package/dist/pine-core/pine-core.js +1 -1
  671. package/dist/types/components/pds-button/pds-button.d.ts +1 -1
  672. package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +1 -0
  673. package/dist/types/components/pds-chip/pds-chip.d.ts +3 -2
  674. package/dist/types/components/pds-combobox/pds-combobox.d.ts +84 -5
  675. package/dist/types/components/pds-filters/pds-filter/filter-interface.d.ts +19 -0
  676. package/dist/types/components/pds-filters/pds-filter/pds-filter.d.ts +133 -0
  677. package/dist/types/components/pds-filters/pds-filters.d.ts +11 -0
  678. package/dist/types/components/pds-popover/pds-popover.d.ts +33 -2
  679. package/dist/types/components/pds-popover/popover-interface.d.ts +8 -0
  680. package/dist/types/components/pds-radio/pds-radio.d.ts +3 -0
  681. package/dist/types/components/pds-select/pds-select.d.ts +6 -0
  682. package/dist/types/components/pds-switch/pds-switch.d.ts +1 -0
  683. package/dist/types/components/pds-tabs/pds-tabs.d.ts +1 -0
  684. package/dist/types/components/pds-textarea/pds-textarea.d.ts +1 -0
  685. package/dist/types/components.d.ts +227 -12
  686. package/dist/types/utils/form.d.ts +9 -0
  687. package/dist/types/utils/types.d.ts +2 -0
  688. package/hydrate/index.js +1529 -146
  689. package/hydrate/index.mjs +1529 -146
  690. package/package.json +2 -2
  691. package/dist/cjs/form-Bx4nzJBo.js.map +0 -1
  692. package/dist/cjs/index-DVaLegMK.js.map +0 -1
  693. package/dist/cjs/index-g-uSeICs.js.map +0 -1
  694. package/dist/esm/form-DTL_39D_.js +0 -32
  695. package/dist/esm/form-DTL_39D_.js.map +0 -1
  696. package/dist/esm/index-BVCWKPy3.js.map +0 -1
  697. package/dist/esm/index-DrJ5r5Pu.js.map +0 -1
  698. package/dist/esm-es5/form-DTL_39D_.js +0 -2
  699. package/dist/esm-es5/form-DTL_39D_.js.map +0 -1
  700. package/dist/esm-es5/index-BVCWKPy3.js.map +0 -1
  701. package/dist/esm-es5/index-DrJ5r5Pu.js +0 -2
  702. package/dist/esm-es5/index-DrJ5r5Pu.js.map +0 -1
  703. package/dist/pine-core/p-00616fc9.entry.js +0 -2
  704. package/dist/pine-core/p-00616fc9.entry.js.map +0 -1
  705. package/dist/pine-core/p-023d8b71.system.entry.js +0 -2
  706. package/dist/pine-core/p-023d8b71.system.entry.js.map +0 -1
  707. package/dist/pine-core/p-051ff780.system.entry.js +0 -2
  708. package/dist/pine-core/p-051ff780.system.entry.js.map +0 -1
  709. package/dist/pine-core/p-0TIvNV5c.system.js.map +0 -1
  710. package/dist/pine-core/p-0de9f8da.system.entry.js +0 -2
  711. package/dist/pine-core/p-0de9f8da.system.entry.js.map +0 -1
  712. package/dist/pine-core/p-14a52961.system.entry.js +0 -2
  713. package/dist/pine-core/p-14a52961.system.entry.js.map +0 -1
  714. package/dist/pine-core/p-232a2043.entry.js +0 -2
  715. package/dist/pine-core/p-25190921.entry.js +0 -2
  716. package/dist/pine-core/p-25190921.entry.js.map +0 -1
  717. package/dist/pine-core/p-297afc49.system.entry.js +0 -2
  718. package/dist/pine-core/p-297afc49.system.entry.js.map +0 -1
  719. package/dist/pine-core/p-2e19f167.system.entry.js +0 -2
  720. package/dist/pine-core/p-2e19f167.system.entry.js.map +0 -1
  721. package/dist/pine-core/p-318fd0cf.entry.js +0 -2
  722. package/dist/pine-core/p-318fd0cf.entry.js.map +0 -1
  723. package/dist/pine-core/p-346561a6.system.entry.js +0 -2
  724. package/dist/pine-core/p-346561a6.system.entry.js.map +0 -1
  725. package/dist/pine-core/p-3pEJO0vO.system.js.map +0 -1
  726. package/dist/pine-core/p-41d1b164.entry.js +0 -2
  727. package/dist/pine-core/p-41d1b164.entry.js.map +0 -1
  728. package/dist/pine-core/p-44087d1c.entry.js +0 -2
  729. package/dist/pine-core/p-44087d1c.entry.js.map +0 -1
  730. package/dist/pine-core/p-464dd476.entry.js +0 -2
  731. package/dist/pine-core/p-464dd476.entry.js.map +0 -1
  732. package/dist/pine-core/p-47670150.entry.js +0 -3
  733. package/dist/pine-core/p-47670150.entry.js.map +0 -1
  734. package/dist/pine-core/p-4bbf3e31.entry.js +0 -2
  735. package/dist/pine-core/p-4bbf3e31.entry.js.map +0 -1
  736. package/dist/pine-core/p-4c81420c.entry.js +0 -2
  737. package/dist/pine-core/p-4c81420c.entry.js.map +0 -1
  738. package/dist/pine-core/p-503cab1f.entry.js +0 -2
  739. package/dist/pine-core/p-503cab1f.entry.js.map +0 -1
  740. package/dist/pine-core/p-50c9e865.entry.js +0 -2
  741. package/dist/pine-core/p-50c9e865.entry.js.map +0 -1
  742. package/dist/pine-core/p-5708f95a.entry.js +0 -2
  743. package/dist/pine-core/p-651861ff.entry.js +0 -2
  744. package/dist/pine-core/p-651861ff.entry.js.map +0 -1
  745. package/dist/pine-core/p-66b10d29.entry.js +0 -2
  746. package/dist/pine-core/p-6d4d4705.system.entry.js +0 -2
  747. package/dist/pine-core/p-6d4d4705.system.entry.js.map +0 -1
  748. package/dist/pine-core/p-6f4a6d0b.entry.js +0 -2
  749. package/dist/pine-core/p-6f4a6d0b.entry.js.map +0 -1
  750. package/dist/pine-core/p-7004d1ea.system.entry.js +0 -2
  751. package/dist/pine-core/p-71169b66.system.entry.js +0 -2
  752. package/dist/pine-core/p-71169b66.system.entry.js.map +0 -1
  753. package/dist/pine-core/p-73158adf.system.entry.js +0 -2
  754. package/dist/pine-core/p-73158adf.system.entry.js.map +0 -1
  755. package/dist/pine-core/p-77336705.entry.js +0 -2
  756. package/dist/pine-core/p-77336705.entry.js.map +0 -1
  757. package/dist/pine-core/p-7cb4f0de.entry.js +0 -2
  758. package/dist/pine-core/p-7cb4f0de.entry.js.map +0 -1
  759. package/dist/pine-core/p-84949a12.entry.js +0 -2
  760. package/dist/pine-core/p-84949a12.entry.js.map +0 -1
  761. package/dist/pine-core/p-8722865f.system.entry.js +0 -2
  762. package/dist/pine-core/p-8722865f.system.entry.js.map +0 -1
  763. package/dist/pine-core/p-8999b63d.system.entry.js +0 -2
  764. package/dist/pine-core/p-8999b63d.system.entry.js.map +0 -1
  765. package/dist/pine-core/p-8ab7f0d7.system.entry.js +0 -4
  766. package/dist/pine-core/p-8ab7f0d7.system.entry.js.map +0 -1
  767. package/dist/pine-core/p-8d7abc83.entry.js +0 -2
  768. package/dist/pine-core/p-8d7abc83.entry.js.map +0 -1
  769. package/dist/pine-core/p-92c52409.system.entry.js +0 -2
  770. package/dist/pine-core/p-92c52409.system.entry.js.map +0 -1
  771. package/dist/pine-core/p-98fe56d9.entry.js +0 -2
  772. package/dist/pine-core/p-98fe56d9.entry.js.map +0 -1
  773. package/dist/pine-core/p-BEn3hirk.system.js +0 -2
  774. package/dist/pine-core/p-BEn3hirk.system.js.map +0 -1
  775. package/dist/pine-core/p-BG7_qxVr.system.js +0 -2
  776. package/dist/pine-core/p-BG7_qxVr.system.js.map +0 -1
  777. package/dist/pine-core/p-BGbUqsWH.system.js +0 -2
  778. package/dist/pine-core/p-BGbUqsWH.system.js.map +0 -1
  779. package/dist/pine-core/p-BKFboaI5.system.js.map +0 -1
  780. package/dist/pine-core/p-BRygGju8.system.js.map +0 -1
  781. package/dist/pine-core/p-BVCWKPy3.js.map +0 -1
  782. package/dist/pine-core/p-BVKCNX0X.system.js.map +0 -1
  783. package/dist/pine-core/p-B_C-mRjx.system.js.map +0 -1
  784. package/dist/pine-core/p-C0zqu7Gr.system.js.map +0 -1
  785. package/dist/pine-core/p-CCQUgOoR.system.js.map +0 -1
  786. package/dist/pine-core/p-CJT--ZXC.system.js.map +0 -1
  787. package/dist/pine-core/p-CQ8f8GnD.system.js.map +0 -1
  788. package/dist/pine-core/p-CcXaBX2A.system.js.map +0 -1
  789. package/dist/pine-core/p-CgyVIfOY.system.js.map +0 -1
  790. package/dist/pine-core/p-Cmzqpibo.system.js.map +0 -1
  791. package/dist/pine-core/p-Co5XZmTN.system.js.map +0 -1
  792. package/dist/pine-core/p-CpdNWpfd.system.js.map +0 -1
  793. package/dist/pine-core/p-Czoq9yJM.system.js.map +0 -1
  794. package/dist/pine-core/p-D9_z2w3q.system.js.map +0 -1
  795. package/dist/pine-core/p-DHmJZxQk.system.js.map +0 -1
  796. package/dist/pine-core/p-DTL_39D_.js +0 -2
  797. package/dist/pine-core/p-DTL_39D_.js.map +0 -1
  798. package/dist/pine-core/p-DXuK7cEc.system.js.map +0 -1
  799. package/dist/pine-core/p-De9tROL-.system.js +0 -2
  800. package/dist/pine-core/p-DrJ5r5Pu.js +0 -2
  801. package/dist/pine-core/p-DrJ5r5Pu.js.map +0 -1
  802. package/dist/pine-core/p-IhWWc2L_.system.js.map +0 -1
  803. package/dist/pine-core/p-UsEwlBJ0.system.js.map +0 -1
  804. package/dist/pine-core/p-WkrM7Vv0.system.js.map +0 -1
  805. package/dist/pine-core/p-a04556e4.system.entry.js +0 -2
  806. package/dist/pine-core/p-a04556e4.system.entry.js.map +0 -1
  807. package/dist/pine-core/p-a54f1d9e.entry.js +0 -2
  808. package/dist/pine-core/p-a54f1d9e.entry.js.map +0 -1
  809. package/dist/pine-core/p-a9895385.system.entry.js +0 -2
  810. package/dist/pine-core/p-a9895385.system.entry.js.map +0 -1
  811. package/dist/pine-core/p-aa645f28.system.entry.js +0 -2
  812. package/dist/pine-core/p-aa645f28.system.entry.js.map +0 -1
  813. package/dist/pine-core/p-ac37cf0d.entry.js +0 -2
  814. package/dist/pine-core/p-ac37cf0d.entry.js.map +0 -1
  815. package/dist/pine-core/p-ba187a35.entry.js +0 -2
  816. package/dist/pine-core/p-ba187a35.entry.js.map +0 -1
  817. package/dist/pine-core/p-bb8ef74a.system.entry.js +0 -2
  818. package/dist/pine-core/p-be939cb0.entry.js +0 -2
  819. package/dist/pine-core/p-c0df3222.entry.js +0 -2
  820. package/dist/pine-core/p-c1099665.system.entry.js +0 -2
  821. package/dist/pine-core/p-c2ffb466.system.entry.js +0 -2
  822. package/dist/pine-core/p-cd785026.system.entry.js +0 -2
  823. package/dist/pine-core/p-d8d8fe07.system.entry.js +0 -2
  824. package/dist/pine-core/p-d8d8fe07.system.entry.js.map +0 -1
  825. package/dist/pine-core/p-da367b5e.system.entry.js +0 -2
  826. package/dist/pine-core/p-da367b5e.system.entry.js.map +0 -1
  827. package/dist/pine-core/p-dc19ce6c.system.entry.js +0 -2
  828. package/dist/pine-core/p-dc19ce6c.system.entry.js.map +0 -1
  829. package/dist/pine-core/p-deb8a499.system.entry.js +0 -2
  830. package/dist/pine-core/p-deb8a499.system.entry.js.map +0 -1
  831. package/dist/pine-core/p-e65a7d1c.system.entry.js +0 -2
  832. package/dist/pine-core/p-efa788ea.entry.js +0 -2
  833. package/dist/pine-core/p-f880adaa.entry.js +0 -2
  834. package/dist/pine-core/p-fd091234.system.entry.js +0 -2
  835. package/dist/pine-core/p-fd091234.system.entry.js.map +0 -1
  836. package/dist/pine-core/p-m6UZWRsP.system.js.map +0 -1
  837. package/dist/pine-core/p-pQqXEKPh.system.js.map +0 -1
  838. /package/dist/pine-core/{p-66b10d29.entry.js.map → p-07e129db.entry.js.map} +0 -0
  839. /package/dist/pine-core/{p-540cfd70.entry.js.map → p-1009009c.entry.js.map} +0 -0
  840. /package/dist/pine-core/{p-349a8869.entry.js.map → p-100de2b7.entry.js.map} +0 -0
  841. /package/dist/pine-core/{p-e2887e78.entry.js.map → p-1b9d4482.entry.js.map} +0 -0
  842. /package/dist/pine-core/{p-dfc5ab34.system.entry.js.map → p-2054b5cb.system.entry.js.map} +0 -0
  843. /package/dist/pine-core/{p-8726c99d.system.entry.js.map → p-2597bc59.system.entry.js.map} +0 -0
  844. /package/dist/pine-core/{p-5a709348.entry.js.map → p-25cb810d.entry.js.map} +0 -0
  845. /package/dist/pine-core/{p-a1b51557.system.entry.js.map → p-25cf2860.system.entry.js.map} +0 -0
  846. /package/dist/pine-core/{p-54183d70.system.entry.js.map → p-2aab28b1.system.entry.js.map} +0 -0
  847. /package/dist/pine-core/{p-c2ffb466.system.entry.js.map → p-2b12bc55.system.entry.js.map} +0 -0
  848. /package/dist/pine-core/{p-cd785026.system.entry.js.map → p-2efc646c.system.entry.js.map} +0 -0
  849. /package/dist/pine-core/{p-ecb9edf8.entry.js.map → p-2fb6f9d5.entry.js.map} +0 -0
  850. /package/dist/pine-core/{p-efa788ea.entry.js.map → p-2fd7f74e.entry.js.map} +0 -0
  851. /package/dist/pine-core/{p-39488f2c.system.entry.js.map → p-302849cf.system.entry.js.map} +0 -0
  852. /package/dist/pine-core/{p-51d83489.system.entry.js.map → p-307f415a.system.entry.js.map} +0 -0
  853. /package/dist/pine-core/{p-bb8ef74a.system.entry.js.map → p-378df5eb.system.entry.js.map} +0 -0
  854. /package/dist/pine-core/{p-e08f492a.entry.js.map → p-39648ce2.entry.js.map} +0 -0
  855. /package/dist/pine-core/{p-5f5b19f4.entry.js.map → p-41e2fe3a.entry.js.map} +0 -0
  856. /package/dist/pine-core/{p-7004d1ea.system.entry.js.map → p-449ebe39.system.entry.js.map} +0 -0
  857. /package/dist/pine-core/{p-c13ef6a7.system.entry.js.map → p-55d06d0a.system.entry.js.map} +0 -0
  858. /package/dist/pine-core/{p-075eecf9.entry.js.map → p-5ac7af9e.entry.js.map} +0 -0
  859. /package/dist/pine-core/{p-b2b1b7a9.system.entry.js.map → p-73a2e028.system.entry.js.map} +0 -0
  860. /package/dist/pine-core/{p-be939cb0.entry.js.map → p-786967e8.entry.js.map} +0 -0
  861. /package/dist/pine-core/{p-e65a7d1c.system.entry.js.map → p-875d5d5a.system.entry.js.map} +0 -0
  862. /package/dist/pine-core/{p-c8122bea.entry.js.map → p-88773b86.entry.js.map} +0 -0
  863. /package/dist/pine-core/{p-e89cb1f2.system.entry.js.map → p-8f69dd71.system.entry.js.map} +0 -0
  864. /package/dist/pine-core/{p-72053224.entry.js.map → p-a2cb65df.entry.js.map} +0 -0
  865. /package/dist/pine-core/{p-52d37cc1.entry.js.map → p-a3785977.entry.js.map} +0 -0
  866. /package/dist/pine-core/{p-f880adaa.entry.js.map → p-a645818a.entry.js.map} +0 -0
  867. /package/dist/pine-core/{p-f583e5d4.entry.js.map → p-a9cfaa1f.entry.js.map} +0 -0
  868. /package/dist/pine-core/{p-5708f95a.entry.js.map → p-b669e1d9.entry.js.map} +0 -0
  869. /package/dist/pine-core/{p-52cb152b.system.entry.js.map → p-bc2fecd4.system.entry.js.map} +0 -0
  870. /package/dist/pine-core/{p-e3fb0bc2.system.entry.js.map → p-bc637bed.system.entry.js.map} +0 -0
  871. /package/dist/pine-core/{p-b6ea3332.entry.js.map → p-be5ef841.entry.js.map} +0 -0
  872. /package/dist/pine-core/{p-fcb39155.system.entry.js.map → p-c3f84df8.system.entry.js.map} +0 -0
  873. /package/dist/pine-core/{p-232a2043.entry.js.map → p-c44d3551.entry.js.map} +0 -0
  874. /package/dist/pine-core/{p-e8d76117.entry.js.map → p-c55fc47e.entry.js.map} +0 -0
  875. /package/dist/pine-core/{p-5e8badb9.entry.js.map → p-d1b27fa4.entry.js.map} +0 -0
  876. /package/dist/pine-core/{p-5da82e8c.system.entry.js.map → p-dace69e7.system.entry.js.map} +0 -0
  877. /package/dist/pine-core/{p-c1099665.system.entry.js.map → p-db12273e.system.entry.js.map} +0 -0
  878. /package/dist/pine-core/{p-f55b9f90.system.entry.js.map → p-e702a8dc.system.entry.js.map} +0 -0
  879. /package/dist/pine-core/{p-6db1e029.system.entry.js.map → p-ee583234.system.entry.js.map} +0 -0
  880. /package/dist/pine-core/{p-0066d249.entry.js.map → p-f5d78141.entry.js.map} +0 -0
  881. /package/dist/pine-core/{p-52af1890.system.entry.js.map → p-f911dde3.system.entry.js.map} +0 -0
@@ -0,0 +1,2 @@
1
+ import{r as o,c as r,h as t,H as e,g as n}from"./p-Bf1dou5H.js";import{h as i}from"./p-tJa4KYNO.js";import{b as d,f as s}from"./p-D4zJBIgl.js";const a=":host{--pds-button-background:var(--color-background-default);--pds-button-border:var(--pine-border);--pds-button-border-radius:var(--pine-border-radius-full);--pds-button-border-radius-start-end:var(--pine-border-radius-full);--pds-button-border-radius-start-start:var(--pine-border-radius-full);--pds-button-border-radius-end-end:var(--pine-border-radius-full);--pds-button-border-radius-end-start:var(--pine-border-radius-full);--pds-button-min-height:var(--pine-dimension-450);--pds-button-outline-offset:var(--pine-border-width);--color-border-default:transparent;--color-border-disabled:transparent;--color-border-focus:transparent;--color-border-hover:transparent;--button-loader-color:var(--color-text-default);display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}:host([full-width=true]){display:-ms-flexbox;display:flex;width:100%}:host([full-width=true]) a,:host([full-width=true]) button{-ms-flex-pack:center;justify-content:center;width:100%}:host([full-width=true]) .pds-button__content{-ms-flex-pack:center;justify-content:center;text-align:center}:host([loading=true]){cursor:wait;pointer-events:none}:host([disabled=true]){pointer-events:none}.pds-button{--pds-loader-color:var(--color-text-default);-ms-flex-align:center;align-items:center;background-color:var(--pds-button-background, var(--color-background-default));border:var(--pds-button-border);border-color:var(--color-border-default);border-radius:var(--pds-button-border-radius);border-end-end-radius:var(--pds-button-border-radius-end-end, var(--pds-button-border-radius));border-end-start-radius:var(--pds-button-border-radius-end-start, var(--pds-button-border-radius));border-start-end-radius:var(--pds-button-border-radius-start-end, var(--pds-button-border-radius));border-start-start-radius:var(--pds-button-border-radius-start-start, var(--pds-button-border-radius));-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--color-text-default);cursor:pointer;display:-ms-flexbox;display:flex;font:var(--pine-typography-body-brand-label);letter-spacing:var(--pine-letter-spacing);min-height:var(--pds-button-min-height);padding:calc(var(--pine-dimension-xs) - var(--pine-border-width)) var(--pine-dimension-sm);position:relative;text-decoration:none}.pds-button pds-icon{color:currentColor;fill:currentColor}.pds-button:hover{background-color:var(--color-background-hover);border-color:var(--color-border-hover)}.pds-button:focus-visible{border-color:var(--color-border-focus);-webkit-box-shadow:var(--pds-button-box-shadow-focus, none);box-shadow:var(--pds-button-box-shadow-focus, none);outline:var(--pds-button-outline-focus, var(--pine-outline-focus));outline-offset:var(--pds-button-outline-offset)}.pds-button:disabled{background-color:var(--color-background-disabled);border-color:var(--color-border-disabled);color:var(--color-text-disabled);pointer-events:none}.pds-button--primary{--color-background-default:var(--pine-color-primary);--color-background-hover:var(--pine-color-primary-hover);--color-background-disabled:var(--pine-color-primary-disabled);--color-border-default:var(--pine-color-primary);--color-border-hover:var(--pine-color-primary-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-primary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--accent{--color-background-default:var(--pine-color-accent);--color-background-hover:var(--pine-color-accent-hover);--color-background-disabled:var(--pine-color-accent-disabled);--color-border-default:var(--pine-color-accent);--color-border-hover:var(--pine-color-accent-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-accent-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive{--color-background-default:var(--pine-color-danger);--color-background-hover:var(--pine-color-danger-hover);--color-background-disabled:var(--pine-color-danger-disabled);--color-border-default:var(--pine-color-danger);--color-border-hover:var(--pine-color-danger-hover);--color-text-default:var(--pine-color-text-primary);--color-text-disabled:var(--pine-color-text-danger-disabled);--color-outline:var(--pine-color-focus-ring-danger);--button-loader-color:var(--pine-color-text-primary)}.pds-button--destructive:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-button--secondary,.pds-button--disclosure{--color-background-default:var(--pine-color-secondary);--color-background-hover:var(--pine-color-secondary-hover);--color-background-disabled:var(--pine-color-secondary-disabled);--color-border-disabled:var(--pine-color-border-disabled);--color-border-focus:var(--pine-color-border);--color-border-hover:var(--pine-color-border-hover);--color-border-default:var(--pine-color-border);--color-text-default:var(--pine-color-text-secondary);--color-text-disabled:var(--pine-color-text-secondary-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary)}.pds-button--secondary:hover,.pds-button--disclosure:hover{background-color:var(--pine-color-secondary-hover)}.pds-button--filter{--color-background-default:var(--pine-color-white);--color-background-hover:var(--pine-color-grey-100);--color-background-disabled:var(--pine-color-white);--color-border-default:transparent;--color-border-hover:transparent;--color-border-focus:transparent;--color-text-default:var(--pine-color-text-secondary);--color-text-hover:var(--pine-color-text-hover);--color-text-disabled:var(--pine-color-text-disabled);--color-outline:var(--pine-color-focus-ring);--button-loader-color:var(--pine-color-text-secondary);--pds-button-border-radius:var(--pine-dimension-125);--pds-button-border-radius-start-end:var(--pine-dimension-125);--pds-button-border-radius-start-start:var(--pine-dimension-125);--pds-button-border-radius-end-end:var(--pine-dimension-125);--pds-button-border-radius-end-start:var(--pine-dimension-125);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-button--filter:hover{color:var(--color-text-hover)}.pds-button--unstyled{--color-background-default:transparent;--color-background-hover:transparent;--color-background-disabled:transparent;--color-text-default:inherit;--button-loader-color:inherit;border-width:var(--pine-dimension-none);margin:var(--pine-dimension-none);min-height:auto;padding:var(--pine-dimension-none);width:inherit}.pds-button__content{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;gap:var(--pine-dimension-xs);position:relative;width:100%}.pds-button__icon{display:-ms-inline-flexbox;display:inline-flex}.pds-button__text{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;white-space:nowrap}.pds-button__icon--hidden,.pds-button__text--hidden{opacity:0}.pds-button__loader{height:var(--pine-dimension-250);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--pine-dimension-250)}.pds-button--loading{cursor:wait;pointer-events:none}.pds-button--loading .pds-button__loader pds-loader{--loader-color:var(--button-loader-color)}.pds-button--icon-only{-ms-flex-align:center;align-items:center;border-radius:var(--pine-border-radius-full);height:var(--button-dimension);-ms-flex-pack:center;justify-content:center;min-height:var(--button-dimension);min-width:var(--button-dimension);padding:var(--pine-dimension-xs);width:var(--button-dimension)}.pds-button--icon-only .pds-button__content{height:100%;-ms-flex-pack:center;justify-content:center;width:100%}.pds-button--icon-only .pds-button__text--hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";const l=class{constructor(t){o(this,t);this.pdsClick=r(this,"pdsClick");this.disabled=false;this.fullWidth=false;this.icon=null;this.iconOnly=false;this.loading=false;this.type="button";this.variant="primary";this.handleClick=o=>{if(this.loading){o.preventDefault();return}if(this.disabled){o.preventDefault();return}if(!this.href&&this.type!="button"){if(i(this.el)){const r=this.el.closest("form");if(r){o.preventDefault();const t=document.createElement("button");t.type=this.type;t.style.display="none";r.appendChild(t);t.click();t.remove()}}}this.pdsClick.emit(o)}}handleFormKeyDown(o){if(o.key!=="Enter"||this.type!=="submit"||this.href||this.disabled){return}const r=o.target;if(!r||typeof r.matches!=="function"){return}const t=this.el.closest("form");if(!t||!r||!t.contains(r)){return}const e=r.matches('input:not([type="submit"]):not([type="button"]):not([type="reset"])')||r.matches("pds-input")||r.matches("pds-select")||r.matches("pds-switch")||r.matches("pds-checkbox")||r.matches("pds-radio");if(e){const r=Array.from(t.querySelectorAll('pds-button, button[type="submit"], input[type="submit"]'));const e=r.filter((o=>{if(o.tagName.toLowerCase()==="pds-button"){const r=o;return r.type==="submit"&&!r.disabled}else{return!o.hasAttribute("disabled")}}));if(e.length>0&&e[0]===this.el){o.preventDefault();this.el.click()}}}classNames(){const o=["pds-button"];if(this.variant){o.push("pds-button--"+this.variant)}if(this.iconOnly){o.push("pds-button--icon-only")}if(this.loading){o.push("pds-button--loading")}return o.join(" ")}hasSlotContent(o){const r=this.el.querySelectorAll(`[slot="${o}"]`);return r.length>0}renderStartContent(){const o=this.icon&&this.variant!=="disclosure"&&this.variant!=="filter";const r=this.hasSlotContent("start");if(this.variant==="filter"){return t("pds-icon",{class:this.loading?"pds-button__icon--hidden":"",icon:d,part:"icon","aria-hidden":"true"})}else if(Boolean(o)){return t("pds-icon",{class:this.loading?"pds-button__icon--hidden":"",name:this.icon,part:"icon","aria-hidden":"true"})}else if(Boolean(r)){return t("span",{class:`pds-button__icon ${this.loading?"pds-button__icon--hidden":""}`},t("slot",{name:"start"}))}return null}renderEndContent(){if(this.iconOnly){return null}if(this.variant==="disclosure"){return t("pds-icon",{class:this.loading?"pds-button__icon--hidden":"",icon:s,part:"caret","aria-hidden":"true"})}else if(this.hasSlotContent("end")){return t("span",{class:`pds-button__icon ${this.loading?"pds-button__icon--hidden":""}`},t("slot",{name:"end"}))}return null}render(){const o={class:this.classNames(),part:"button"};const r=()=>{if(this.href){return Object.assign(Object.assign({},o),{href:this.disabled?null:this.href,target:this.target})}return Object.assign(Object.assign({},o),{"aria-busy":this.loading?"true":null,"aria-live":this.loading?"polite":null,disabled:this.disabled,name:this.name,type:this.type,value:this.value})};const n=this.href?"a":"button";const i=this.loading||this.iconOnly;const d=t("div",{class:"pds-button__content",part:"button-content"},this.renderStartContent(),t("span",{class:`pds-button__text ${i?"pds-button__text--hidden":""}`,part:"button-text"},t("slot",null)),this.loading&&t("span",{class:"pds-button__loader"},t("pds-loader",{"is-loading":true,size:"var(--pine-font-size-body-2xl)",variant:"spinner",exportparts:"loader-svg"},"Loading...")),this.renderEndContent());return t(e,{"aria-disabled":this.disabled?"true":null,id:this.componentId,onClick:this.handleClick,variant:this.variant},t(n,Object.assign({},r()),d))}get el(){return n(this)}};l.style=a;export{l as pds_button};
2
+ //# sourceMappingURL=p-f15cd180.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsButtonCss","PdsButton","constructor","hostRef","this","disabled","fullWidth","icon","iconOnly","loading","type","variant","handleClick","ev","preventDefault","href","hasShadowDom","el","form","closest","fakeButton","document","createElement","style","display","appendChild","click","remove","pdsClick","emit","handleFormKeyDown","event","key","target","matches","contains","isFormInput","allSubmitButtons","Array","from","querySelectorAll","enabledSubmitButtons","filter","button","tagName","toLowerCase","pdsButton","hasAttribute","length","classNames","push","join","hasSlotContent","slotName","elements","renderStartContent","hasIcon","hasStartSlot","h","class","addCircle","part","Boolean","name","renderEndContent","caretDown","render","commonProps","attributes","Object","assign","value","ContentElement","hideText","content","size","exportparts","Host","id","componentId","onClick"],"sources":["src/components/pds-button/pds-button.scss?tag=pds-button&encapsulation=shadow","src/components/pds-button/pds-button.tsx"],"sourcesContent":[":host {\n --pds-button-background: var(--color-background-default);\n --pds-button-border: var(--pine-border);\n --pds-button-border-radius: var(--pine-border-radius-full);\n --pds-button-border-radius-start-end: var(--pine-border-radius-full);\n --pds-button-border-radius-start-start: var(--pine-border-radius-full);\n --pds-button-border-radius-end-end: var(--pine-border-radius-full);\n --pds-button-border-radius-end-start: var(--pine-border-radius-full);\n --pds-button-min-height: var(--pine-dimension-450);\n --pds-button-outline-offset: var(--pine-border-width);\n --color-border-default: transparent;\n --color-border-disabled: transparent;\n --color-border-focus: transparent;\n --color-border-hover: transparent;\n --button-loader-color: var(--color-text-default);\n\n display: inline-flex;\n vertical-align: middle;\n}\n\n:host([full-width=\"true\"]) {\n display: flex;\n width: 100%;\n\n a,\n button {\n justify-content: center;\n width: 100%;\n }\n\n .pds-button__content {\n justify-content: center;\n text-align: center;\n }\n}\n\n:host([loading=\"true\"]) {\n cursor: wait;\n pointer-events: none;\n}\n\n:host([disabled=\"true\"]) {\n pointer-events: none;\n}\n\n.pds-button {\n --pds-loader-color: var(--color-text-default);\n align-items: center;\n background-color: var(--pds-button-background, var(--color-background-default));\n border: var(--pds-button-border);\n border-color: var(--color-border-default);\n border-radius: var(--pds-button-border-radius);\n /* stylelint-disable-next-line order/properties-alphabetical-order */\n border-end-end-radius: var(--pds-button-border-radius-end-end, var(--pds-button-border-radius));\n border-end-start-radius: var(--pds-button-border-radius-end-start, var(--pds-button-border-radius));\n border-start-end-radius: var(--pds-button-border-radius-start-end, var(--pds-button-border-radius));\n border-start-start-radius: var(--pds-button-border-radius-start-start, var(--pds-button-border-radius));\n box-sizing: border-box;\n color: var(--color-text-default);\n cursor: pointer;\n display: flex;\n font: var(--pine-typography-body-brand-label);\n letter-spacing: var(--pine-letter-spacing);\n min-height: var(--pds-button-min-height);\n padding: calc(var(--pine-dimension-xs) - var(--pine-border-width)) var(--pine-dimension-sm);\n position: relative;\n text-decoration: none;\n\n pds-icon {\n color: currentColor;\n fill: currentColor;\n }\n\n &:hover {\n background-color: var(--color-background-hover);\n border-color: var(--color-border-hover);\n }\n\n &:focus-visible {\n border-color: var(--color-border-focus);\n box-shadow: var(--pds-button-box-shadow-focus, none);\n outline: var(--pds-button-outline-focus, var(--pine-outline-focus));\n outline-offset: var(--pds-button-outline-offset);\n }\n\n &:disabled {\n background-color: var(--color-background-disabled);\n border-color: var(--color-border-disabled);\n color: var(--color-text-disabled);\n pointer-events: none;\n }\n}\n\n.pds-button--primary {\n --color-background-default: var(--pine-color-primary);\n --color-background-hover: var(--pine-color-primary-hover);\n --color-background-disabled: var(--pine-color-primary-disabled);\n --color-border-default: var(--pine-color-primary);\n --color-border-hover: var(--pine-color-primary-hover);\n --color-text-default: var(--pine-color-text-primary);\n --color-text-disabled: var(--pine-color-text-primary-disabled);\n --color-outline: var(--pine-color-focus-ring);\n --button-loader-color: var(--pine-color-text-primary);\n}\n\n.pds-button--accent {\n --color-background-default: var(--pine-color-accent);\n --color-background-hover: var(--pine-color-accent-hover);\n --color-background-disabled: var(--pine-color-accent-disabled);\n --color-border-default: var(--pine-color-accent);\n --color-border-hover: var(--pine-color-accent-hover);\n --color-text-default: var(--pine-color-text-primary);\n --color-text-disabled: var(--pine-color-text-accent-disabled);\n --color-outline: var(--pine-color-focus-ring);\n --button-loader-color: var(--pine-color-text-primary);\n}\n\n.pds-button--destructive {\n --color-background-default: var(--pine-color-danger);\n --color-background-hover: var(--pine-color-danger-hover);\n --color-background-disabled: var(--pine-color-danger-disabled);\n --color-border-default: var(--pine-color-danger);\n --color-border-hover: var(--pine-color-danger-hover);\n --color-text-default: var(--pine-color-text-primary);\n --color-text-disabled: var(--pine-color-text-danger-disabled);\n --color-outline: var(--pine-color-focus-ring-danger);\n --button-loader-color: var(--pine-color-text-primary);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n}\n\n.pds-button--secondary,\n.pds-button--disclosure {\n --color-background-default: var(--pine-color-secondary);\n --color-background-hover: var(--pine-color-secondary-hover);\n --color-background-disabled: var(--pine-color-secondary-disabled);\n --color-border-disabled: var(--pine-color-border-disabled);\n --color-border-focus: var(--pine-color-border);\n --color-border-hover: var(--pine-color-border-hover);\n --color-border-default: var(--pine-color-border);\n --color-text-default: var(--pine-color-text-secondary);\n --color-text-disabled: var(--pine-color-text-secondary-disabled);\n --color-outline: var(--pine-color-focus-ring);\n --button-loader-color: var(--pine-color-text-secondary);\n\n &:hover {\n background-color: var(--pine-color-secondary-hover);\n }\n}\n\n.pds-button--filter {\n --color-background-default: var(--pine-color-white);\n --color-background-hover: var(--pine-color-grey-100);\n --color-background-disabled: var(--pine-color-white);\n --color-border-default: transparent;\n --color-border-hover: transparent;\n --color-border-focus: transparent;\n --color-text-default: var(--pine-color-text-secondary);\n --color-text-hover: var(--pine-color-text-hover);\n --color-text-disabled: var(--pine-color-text-disabled);\n --color-outline: var(--pine-color-focus-ring);\n --button-loader-color: var(--pine-color-text-secondary);\n --pds-button-border-radius: var(--pine-dimension-125);\n --pds-button-border-radius-start-end: var(--pine-dimension-125);\n --pds-button-border-radius-start-start: var(--pine-dimension-125);\n --pds-button-border-radius-end-end: var(--pine-dimension-125);\n --pds-button-border-radius-end-start: var(--pine-dimension-125);\n padding: var(--pine-dimension-xs) var(--pine-dimension-sm);\n\n &:hover {\n color: var(--color-text-hover);\n }\n}\n\n.pds-button--unstyled {\n --color-background-default: transparent;\n --color-background-hover: transparent;\n --color-background-disabled: transparent;\n --color-text-default: inherit;\n --button-loader-color: inherit;\n border-width: var(--pine-dimension-none);\n margin: var(--pine-dimension-none);\n min-height: auto;\n padding: var(--pine-dimension-none);\n width: inherit;\n}\n\n.pds-button__content {\n align-items: center;\n display: inline-flex;\n gap: var(--pine-dimension-xs);\n position: relative;\n width: 100%;\n}\n\n.pds-button__icon {\n display: inline-flex;\n}\n\n.pds-button__text {\n align-items: center;\n display: inline-flex;\n white-space: nowrap;\n}\n\n.pds-button__icon--hidden,\n.pds-button__text--hidden {\n opacity: 0;\n}\n\n.pds-button__loader {\n height: var(--pine-dimension-250);\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: var(--pine-dimension-250);\n}\n\n.pds-button--loading {\n cursor: wait;\n pointer-events: none;\n\n .pds-button__loader {\n pds-loader {\n --loader-color: var(--button-loader-color);\n }\n }\n}\n\n.pds-button--icon-only {\n align-items: center;\n border-radius: var(--pine-border-radius-full);\n height: var(--button-dimension);\n justify-content: center;\n min-height: var(--button-dimension);\n min-width: var(--button-dimension);\n padding: var(--pine-dimension-xs);\n width: var(--button-dimension);\n\n .pds-button__content {\n height: 100%;\n justify-content: center;\n width: 100%;\n }\n\n .pds-button__text--hidden {\n border: 0;\n clip: rect(0 0 0 0);\n clip-path: polygon(0 0, 0 0, 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n }\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Listen, Prop } from '@stencil/core';\nimport { hasShadowDom } from '../../utils/utils';\n\nimport { caretDown, addCircle } from '@pine-ds/icons/icons';\n\n/**\n * @part button - Exposes the button element for styling.\n * @part button-content - Exposes the button content for styling.\n * @part button-text - Exposes the button text for styling.\n * @part caret - Exposes the caret icon component for styling. Appears only on the disclosure variant.\n * @part icon - Exposes the icon component for styling.\n * @part loader-svg - Exposes the loader SVG element for color customization. Appears only when loading.\n * @slot (default) - Button text.\n * @slot start - Content to display before the button text.\n * @slot end - Content to display after the button text.\n*/\n\n@Component({\n tag: 'pds-button',\n styleUrls: ['pds-button.scss'],\n shadow: true,\n})\nexport class PdsButton {\n @Element() el: HTMLPdsButtonElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines the button's disabled state.\n * @defaultValue false\n */\n @Prop() disabled? = false;\n\n /**\n * Determines if the button should take up the full width of its container.\n * @defaultValue false\n */\n @Prop() fullWidth? = false;\n\n /**\n * If provided, renders the component as an anchor (`<a>`) element instead of a button.\n * When using href, button-specific props (type, name, value, loading) will be ignored.\n */\n @Prop() href?: string;\n\n /**\n * Displays a leading icon in the button. DEPRECATED.\n * @defaultValue null\n * @deprecated Use `start` slot instead.\n */\n @Prop() icon?: string = null;\n\n /**\n * When true, displays only the icon and visually hides the text (keeping it accessible).\n */\n @Prop() iconOnly? = false;\n\n /**\n * Determines if the button is in a loading state.\n * When true, displays a loader and hides the button text.\n * @defaultValue false\n */\n @Prop() loading? = false;\n\n /**\n * Provides the button with a submittable name.\n */\n @Prop() name?: string;\n\n /**\n * Specifies where to open the linked document when href is provided.\n * Only applies when href is set.\n */\n @Prop() target?: '_blank' | '_self' | '_parent' | '_top';\n\n /**\n * Provides button with a type.\n * @defaultValue button\n */\n @Prop() type?: 'button' | 'reset' | 'submit' = 'button';\n\n /**\n * Provides button with a submittable value\n */\n @Prop() value?: string;\n\n /**\n * Sets the style variant of the button.\n * @defaultValue primary\n */\n @Prop() variant: 'primary' | 'secondary' | 'accent' | 'disclosure' | 'destructive' | 'unstyled' | 'filter' = 'primary';\n\n @Event() pdsClick: EventEmitter;\n\n /**\n * Listen for Enter key presses on form inputs to trigger submit\n */\n @Listen('keydown', { target: 'body' })\n\n handleFormKeyDown(event: KeyboardEvent) {\n // Only handle Enter key for submit buttons that are not disabled\n if (event.key !== 'Enter' || this.type !== 'submit' || this.href || this.disabled) {\n return;\n }\n\n const target = event.target as Element;\n\n // Ensure event.target is an Element with matches method before proceeding\n if (!target || typeof target.matches !== 'function') {\n return;\n }\n const form = this.el.closest('form');\n\n // Check if the Enter key was pressed in a form input within the same form\n if (!form || !target || !form.contains(target)) {\n return;\n }\n\n // Check if target is a form input element (exclude reset buttons)\n const isFormInput = target.matches('input:not([type=\"submit\"]):not([type=\"button\"]):not([type=\"reset\"])') ||\n target.matches('pds-input') ||\n target.matches('pds-select') ||\n target.matches('pds-switch') ||\n target.matches('pds-checkbox') ||\n target.matches('pds-radio');\n\n if (isFormInput) {\n // Find all submit buttons in the form and check their actual properties\n const allSubmitButtons = Array.from(form.querySelectorAll('pds-button, button[type=\"submit\"], input[type=\"submit\"]'));\n const enabledSubmitButtons = allSubmitButtons.filter(button => {\n if (button.tagName.toLowerCase() === 'pds-button') {\n const pdsButton = button as HTMLPdsButtonElement;\n return pdsButton.type === 'submit' && !pdsButton.disabled;\n } else {\n return !button.hasAttribute('disabled');\n }\n });\n\n // Only synthesize click if this button is strictly the first enabled submit button\n if (enabledSubmitButtons.length > 0 && enabledSubmitButtons[0] === this.el) {\n event.preventDefault();\n this.el.click();\n }\n }\n }\n\n\n private handleClick = (ev: Event) => {\n if (this.loading) {\n ev.preventDefault();\n return;\n }\n\n // Prevent form submission for disabled buttons\n if (this.disabled) {\n ev.preventDefault();\n return;\n }\n\n if (!this.href && this.type != 'button') {\n // Handle form submission for Shadow DOM buttons\n if (hasShadowDom(this.el)) {\n const form = this.el.closest('form');\n if (form) {\n ev.preventDefault();\n\n const fakeButton = document.createElement('button');\n fakeButton.type = this.type;\n fakeButton.style.display = 'none';\n form.appendChild(fakeButton);\n fakeButton.click();\n fakeButton.remove();\n }\n }\n }\n this.pdsClick.emit(ev);\n };\n\n private classNames() {\n const classNames = ['pds-button'];\n\n if (this.variant) {\n classNames.push('pds-button--' + this.variant);\n }\n\n if (this.iconOnly) {\n classNames.push('pds-button--icon-only');\n }\n\n if (this.loading) {\n classNames.push('pds-button--loading');\n }\n\n return classNames.join(' ');\n }\n\n private hasSlotContent(slotName: string): boolean {\n const elements = this.el.querySelectorAll(`[slot=\"${slotName}\"]`);\n return elements.length > 0;\n }\n\n private renderStartContent() {\n const hasIcon = this.icon && this.variant !== 'disclosure' && this.variant !== 'filter';\n const hasStartSlot = this.hasSlotContent('start');\n\n if (this.variant === 'filter') {\n return (\n <pds-icon class={this.loading ? 'pds-button__icon--hidden' : ''} icon={addCircle} part=\"icon\" aria-hidden=\"true\"></pds-icon>\n );\n } else if (Boolean(hasIcon)) {\n return (\n <pds-icon class={this.loading ? 'pds-button__icon--hidden' : ''} name={this.icon} part=\"icon\" aria-hidden=\"true\"></pds-icon>\n );\n } else if (Boolean(hasStartSlot)) {\n return <span class={`pds-button__icon ${this.loading ? 'pds-button__icon--hidden' : ''}`}><slot name=\"start\" /></span>;\n }\n\n return null;\n }\n\n private renderEndContent() {\n if (this.iconOnly) {\n return null;\n }\n\n if (this.variant === 'disclosure') {\n return (\n <pds-icon class={this.loading ? 'pds-button__icon--hidden' : ''} icon={caretDown} part=\"caret\" aria-hidden=\"true\"></pds-icon>\n );\n } else if (this.hasSlotContent('end')) {\n return <span class={`pds-button__icon ${this.loading ? 'pds-button__icon--hidden' : ''}`}><slot name=\"end\" /></span>;\n }\n\n return null;\n }\n\n render() {\n // Common props for both button and anchor elements\n const commonProps = {\n class: this.classNames(),\n part: 'button',\n };\n\n const attributes = () => {\n if (this.href) {\n return {\n // Anchor element props\n ...commonProps,\n href: this.disabled ? null : this.href,\n target: this.target,\n };\n }\n\n return {\n // Button element props\n ...commonProps,\n 'aria-busy': this.loading ? 'true' : null,\n 'aria-live': this.loading ? 'polite' : null,\n 'disabled': this.disabled,\n 'name': this.name,\n 'type': this.type,\n 'value': this.value,\n };\n };\n\n const ContentElement = this.href ? 'a' : 'button';\n\n // Hide text when loading or iconOnly is true\n const hideText = this.loading || this.iconOnly;\n\n const content = (\n <div class=\"pds-button__content\" part=\"button-content\">\n {this.renderStartContent()}\n\n <span class={`pds-button__text ${hideText ? 'pds-button__text--hidden' : ''}`} part=\"button-text\">\n <slot />\n </span>\n\n {this.loading && (\n <span class=\"pds-button__loader\">\n <pds-loader is-loading={true} size=\"var(--pine-font-size-body-2xl)\" variant=\"spinner\" exportparts=\"loader-svg\">\n Loading...\n </pds-loader>\n </span>\n )}\n\n {this.renderEndContent()}\n </div>\n );\n\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n id={this.componentId}\n onClick={this.handleClick}\n variant={this.variant}\n >\n <ContentElement {...attributes()}>\n {content}\n </ContentElement>\n </Host>\n );\n }\n}\n"],"mappings":"+IAAA,MAAMA,EAAe,gyP,MCsBRC,EAAS,MALtB,WAAAC,CAAAC,G,2CAiBUC,KAAQC,SAAI,MA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js";const n=".pds-divider{background:var(--pine-color-border);border:0;display:-ms-flexbox;display:flex;height:var(--pine-border-width);margin:0;width:100%}.pds-divider--vertical{height:100%;width:1px}.pds-divider--offset-xxs{margin:0 calc(var(--pine-dimension-2xs) * -1);padding:0 var(--pine-dimension-2xs)}.pds-divider--offset-xxs.pds-divider--vertical{margin:calc(var(--pine-dimension-2xs) * -1) 0;padding:var(--pine-dimension-2xs) 0}.pds-divider--offset-xs{margin:0 calc(var(--pine-dimension-xs) * -1);padding:0 var(--pine-dimension-xs)}.pds-divider--offset-xs.pds-divider--vertical{margin:calc(var(--pine-dimension-xs) * -1) 0;padding:var(--pine-dimension-xs) 0}.pds-divider--offset-sm{margin:0 calc(var(--pine-dimension-sm) * -1);padding:0 var(--pine-dimension-sm)}.pds-divider--offset-sm.pds-divider--vertical{margin:calc(var(--pine-dimension-sm) * -1) 0;padding:var(--pine-dimension-sm) 0}.pds-divider--offset-md{margin:0 calc(var(--pine-dimension-md) * -1);padding:0 var(--pine-dimension-md)}.pds-divider--offset-md.pds-divider--vertical{margin:calc(var(--pine-dimension-md) * -1) 0;padding:var(--pine-dimension-md) 0}.pds-divider--offset-lg{margin:0 calc(var(--pine-dimension-lg) * -1);padding:0 var(--pine-dimension-lg)}.pds-divider--offset-lg.pds-divider--vertical{margin:calc(var(--pine-dimension-lg) * -1) 0;padding:var(--pine-dimension-lg) 0}.pds-divider--offset-xl{margin:0 calc(var(--pine-dimension-xl) * -1);padding:0 var(--pine-dimension-xl)}.pds-divider--offset-xl.pds-divider--vertical{margin:calc(var(--pine-dimension-xl) * -1) 0;padding:var(--pine-dimension-xl) 0}.pds-divider--offset-xxl{margin:0 calc(var(--pine-dimension-2xl) * -1);padding:0 var(--pine-dimension-2xl)}.pds-divider--offset-xxl.pds-divider--vertical{margin:calc(var(--pine-dimension-2xl) * -1) 0;padding:var(--pine-dimension-2xl) 0}@media (max-width: 767px){.pds-divider--vertical{display:none}}";const s=class{constructor(d){i(this,d);this.vertical=false}classNames(){const i=["pds-divider"];if(this.vertical){i.push("pds-divider--vertical")}if(this.offset){const d="pds-divider--offset-"+this.offset;i.push(d)}return i.join(" ")}render(){return d(e,{key:"c3a01882db1119b8397353aaed193813cba0bfb8",id:this.componentId},d("hr",{key:"fe20a28dbd2f10cec125df4dbb4ba7a2837628f1",class:this.classNames()}))}};s.style=n;export{s as pds_divider};
2
- //# sourceMappingURL=p-0066d249.entry.js.map
1
+ import{r as i,h as d,H as e}from"./p-Bf1dou5H.js";const n=".pds-divider{background:var(--pine-color-border);border:0;display:-ms-flexbox;display:flex;height:var(--pine-border-width);margin:0;width:100%}.pds-divider--vertical{height:100%;width:1px}.pds-divider--offset-xxs{margin:0 calc(var(--pine-dimension-2xs) * -1);padding:0 var(--pine-dimension-2xs)}.pds-divider--offset-xxs.pds-divider--vertical{margin:calc(var(--pine-dimension-2xs) * -1) 0;padding:var(--pine-dimension-2xs) 0}.pds-divider--offset-xs{margin:0 calc(var(--pine-dimension-xs) * -1);padding:0 var(--pine-dimension-xs)}.pds-divider--offset-xs.pds-divider--vertical{margin:calc(var(--pine-dimension-xs) * -1) 0;padding:var(--pine-dimension-xs) 0}.pds-divider--offset-sm{margin:0 calc(var(--pine-dimension-sm) * -1);padding:0 var(--pine-dimension-sm)}.pds-divider--offset-sm.pds-divider--vertical{margin:calc(var(--pine-dimension-sm) * -1) 0;padding:var(--pine-dimension-sm) 0}.pds-divider--offset-md{margin:0 calc(var(--pine-dimension-md) * -1);padding:0 var(--pine-dimension-md)}.pds-divider--offset-md.pds-divider--vertical{margin:calc(var(--pine-dimension-md) * -1) 0;padding:var(--pine-dimension-md) 0}.pds-divider--offset-lg{margin:0 calc(var(--pine-dimension-lg) * -1);padding:0 var(--pine-dimension-lg)}.pds-divider--offset-lg.pds-divider--vertical{margin:calc(var(--pine-dimension-lg) * -1) 0;padding:var(--pine-dimension-lg) 0}.pds-divider--offset-xl{margin:0 calc(var(--pine-dimension-xl) * -1);padding:0 var(--pine-dimension-xl)}.pds-divider--offset-xl.pds-divider--vertical{margin:calc(var(--pine-dimension-xl) * -1) 0;padding:var(--pine-dimension-xl) 0}.pds-divider--offset-xxl{margin:0 calc(var(--pine-dimension-2xl) * -1);padding:0 var(--pine-dimension-2xl)}.pds-divider--offset-xxl.pds-divider--vertical{margin:calc(var(--pine-dimension-2xl) * -1) 0;padding:var(--pine-dimension-2xl) 0}@media (max-width: 767px){.pds-divider--vertical{display:none}}";const s=class{constructor(d){i(this,d);this.vertical=false}classNames(){const i=["pds-divider"];if(this.vertical){i.push("pds-divider--vertical")}if(this.offset){const d="pds-divider--offset-"+this.offset;i.push(d)}return i.join(" ")}render(){return d(e,{key:"c3a01882db1119b8397353aaed193813cba0bfb8",id:this.componentId},d("hr",{key:"fe20a28dbd2f10cec125df4dbb4ba7a2837628f1",class:this.classNames()}))}};s.style=n;export{s as pds_divider};
2
+ //# sourceMappingURL=p-f5d78141.entry.js.map
@@ -0,0 +1,2 @@
1
+ System.register(["./p-Cxvdulqq.system.js"],(function(e){"use strict";var s,t,a;return{setters:[function(e){s=e.r;t=e.h;a=e.H}],execute:function(){var d=":host{display:block}.pds-filters{-ms-flex-align:start;align-items:flex-start;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-100)}";var f=e("pds_filters",function(){function e(e){s(this,e)}e.prototype.render=function(){return t(a,{key:"7007a635d3866781dfd67bd2d3b2dab46d36cffc",id:this.componentId},t("div",{key:"e6eb4c76bfb39050aaa01ad297df995de7df484b",class:"pds-filters"},t("slot",{key:"543c83c7422b3e1e9a2446618fe8119d76478df4"})))};return e}());f.style=d}}}));
2
+ //# sourceMappingURL=p-f61ee383.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsFiltersCss","PdsFilters","exports","class_1","prototype","render","h","Host","key","id","this","componentId","class"],"sources":["src/components/pds-filters/pds-filters.scss?tag=pds-filters&encapsulation=shadow","src/components/pds-filters/pds-filters.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.pds-filters {\n align-items: flex-start;\n display: flex;\n flex-wrap: wrap;\n gap: var(--pine-dimension-100);\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\nimport type { BasePdsProps } from '@utils/interfaces';\n\n/**\n * @slot (default) - Container for pds-filter components.\n */\n\n@Component({\n tag: 'pds-filters',\n styleUrl: 'pds-filters.scss',\n shadow: true,\n})\nexport class PdsFilters implements BasePdsProps {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n render() {\n return (\n <Host id={this.componentId}>\n <div class=\"pds-filters\">\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"kJAAA,IAAMA,EAAgB,iL,ICYTC,EAAUC,EAAA,yB,wBAMrBC,EAAAC,UAAAC,OAAA,WACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,GAAIC,KAAKC,aACbL,EAAK,OAAAE,IAAA,2CAAAI,MAAM,eACTN,EAAa,QAAAE,IAAA,8C,WAVA,I","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as t,h as s,H as i,g as o}from"./p-Bf1dou5H.js";import{c}from"./p-DnUJodVd.js";const a=":host{--color-background-interactive:var(--pine-color-grey-200);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--pine-color-background-container);inset-inline-start:var(--pine-dimension-none);position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}";const r=class{constructor(s){e(this,s);this.pdsTableRowSelected=t(this,"pdsTableRowSelected");this.handleClick=()=>{this.isSelected=!this.isSelected;this.handleSelect(this.isSelected)};this.handleSelect=e=>{this.indeterminate=false;if(!c("pds-table-head",this.hostElement)){const t=Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);this.pdsTableRowSelected.emit({rowIndex:t,isSelected:e})}};this.generateUniqueId=()=>{const e=Math.random().toString(36).substring(2,8);const t=(new Date).toISOString().replace(/[:.]/g,"-");const s=`${e}-${t}`;return s}}classNames(){const e=[];if(this.isSelected){e.push("is-selected")}return e.join(" ")}componentWillRender(){this.tableRef=this.hostElement.closest("pds-table");if(this.tableRef&&this.tableRef.fixedColumn){const e=this.hostElement.querySelector("pds-table-cell");e===null||e===void 0?void 0:e.classList.add("is-fixed")}}componentWillLoad(){if(this.isSelected){this.handleSelect(this.isSelected)}}render(){return s(i,{key:"cffeb199c48f2a06af70a2e5a5b41a21649c24c7",class:this.classNames(),role:"row",part:"row"},this.tableRef&&this.tableRef.selectable&&s("pds-table-cell",{key:"02a80cd54efe360550e636f7bc0f11e3de59af1c",part:this.tableRef.fixedColumn?"checkbox-cell":"checkbox-cell",class:this.tableRef.selectable?"has-checkbox":""},s("pds-checkbox",{key:"a8cd6c303ec35f71e0a97f130c5d53a2e81a3e4a",componentId:this.generateUniqueId(),onClick:this.handleClick,indeterminate:this.indeterminate,label:"Select Row",hideLabel:true,checked:this.isSelected,part:"row-checkbox"})),s("slot",{key:"820a502627ffc329f650f7f0110e34ae3f096357"}))}get hostElement(){return o(this)}};r.style=a;export{r as pds_table_row};
2
+ //# sourceMappingURL=p-f6d0bd39.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsTableRowCss","PdsTableRow","constructor","hostRef","this","handleClick","isSelected","handleSelect","indeterminate","closest","hostElement","rowIndex","Array","from","parentNode","children","indexOf","pdsTableRowSelected","emit","generateUniqueId","randomString","Math","random","toString","substring","timestamp","Date","toISOString","replace","uniqueId","classNames","push","join","componentWillRender","tableRef","fixedColumn","tableCell","querySelector","classList","add","componentWillLoad","render","h","Host","key","class","role","part","selectable","componentId","onClick","label","hideLabel","checked"],"sources":["src/components/pds-table/pds-table-row/pds-table-row.scss?tag=pds-table-row&encapsulation=shadow","src/components/pds-table/pds-table-row/pds-table-row.tsx"],"sourcesContent":[":host {\n --color-background-interactive: var(--pine-color-grey-200);\n\n border-color: inherit;\n display: table-row;\n vertical-align: inherit;\n\n // used for pds-checkbox-cell\n // because it is in the ShadowDom\n &::part(checkbox-cell) {\n background-color: var(--pine-color-background-container);\n inset-inline-start: var(--pine-dimension-none);\n position: sticky;\n z-index: var(--pine-z-index-raised);\n }\n}\n\n:host(:hover),\n:host(:hover)::part(checkbox-cell),\n:host(:hover) ::slotted(pds-table-cell),\n:host(.is-selected),\n:host(.is-selected)::part(checkbox-cell),\n:host(.is-selected) ::slotted(pds-table-cell) {\n background: var(--color-background-interactive);\n}\n","import { Component, Element, Host, h, Event, EventEmitter, Prop } from '@stencil/core';\n\nimport { closest } from '../../../utils/closest';\n\n@Component({\n tag: 'pds-table-row',\n styleUrls: ['pds-table-row.scss'],\n shadow: true,\n})\nexport class PdsTableRow {\n @Element() hostElement: HTMLPdsTableRowElement;\n private tableRef: HTMLPdsTableElement;\n\n /**\n * Determines if the row selected is in an indeterminate state.\n */\n @Prop({ mutable: true }) indeterminate?: boolean;\n\n /**\n * Determines if the table row is currently selected.\n */\n @Prop({ mutable: true }) isSelected?: boolean;\n\n /**\n * Event that is emitted when the checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableRowSelected: EventEmitter<{ rowIndex: number; isSelected: boolean; }>;\n\n private handleClick = () => {\n this.isSelected = !this.isSelected; // Toggle the selected state\n this.handleSelect(this.isSelected);\n }\n\n private handleSelect = (isSelected: boolean) => {\n this.indeterminate = false;\n\n if (!closest('pds-table-head', this.hostElement)) {\n const rowIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement)\n this.pdsTableRowSelected.emit({\n rowIndex,\n isSelected,\n })\n }\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.isSelected) {\n classNames.push(\"is-selected\");\n }\n\n return classNames.join(' ');\n }\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-cell');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n\n componentWillLoad() {\n if (this.isSelected) {\n this.handleSelect(this.isSelected);\n }\n }\n\n private generateUniqueId = () => {\n const randomString = Math.random().toString(36).substring(2, 8);\n const timestamp = new Date().toISOString().replace(/[:.]/g, '-');\n const uniqueId = `${randomString}-${timestamp}`;\n\n return uniqueId;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"row\"\n part=\"row\"\n >\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-cell part={this.tableRef.fixedColumn ? 'checkbox-cell' : 'checkbox-cell'} class={this.tableRef.selectable ? 'has-checkbox' : ''} >\n <pds-checkbox\n componentId={this.generateUniqueId()}\n onClick={this.handleClick}\n indeterminate={this.indeterminate}\n label={\"Select Row\"}\n hideLabel={true}\n checked={this.isSelected}\n part=\"row-checkbox\"\n />\n </pds-table-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"+FAAA,MAAMA,EAAiB,gkB,MCSVC,EAAW,MALxB,WAAAC,CAAAC,G,iEAwBUC,KAAWC,YAAG,KACpBD,KAAKE,YAAcF,KAAKE,WACxBF,KAAKG,aAAaH,KAAKE,WAAW,EAG5BF,KAAAG,aAAgBD,IACtBF,KAAKI,cAAgB,MAErB,IAAKC,EAAQ,iBAAkBL,KAAKM,aAAc,CAChD,MAAMC,EAAWC,MAAMC,KAAKT,KAAKM,YAAYI,WAAWC,UAAUC,QAAQZ,KAAKM,aAC/EN,KAAKa,oBAAoBC,KAAK,CAC5BP,WACAL,c,GA8BEF,KAAgBe,iBAAG,KACzB,MAAMC,EAAeC,KAAKC,SAASC,SAAS,IAAIC,UAAU,EAAG,GAC7D,MAAMC,GAAY,IAAIC,MAAOC,cAAcC,QAAQ,QAAS,KAC5D,MAAMC,EAAW,GAAGT,KAAgBK,IAEpC,OAAOI,CAAQ,CA2BlB,CAzDS,UAAAC,GACN,MAAMA,EAAa,GAEnB,GAAI1B,KAAKE,WAAY,CACnBwB,EAAWC,KAAK,c,CAGlB,OAAOD,EAAWE,KAAK,K,CAGzB,mBAAAC,GACE7B,KAAK8B,SAAW9B,KAAKM,YAAYD,QAAQ,aAEzC,GAAIL,KAAK8B,UAAY9B,KAAK8B,SAASC,YAAa,CAC9C,MAAMC,EAAYhC,KAAKM,YAAY2B,cAAc,kBACjDD,IAAS,MAATA,SAAS,SAATA,EAAWE,UAAUC,IAAI,W,EAI7B,iBAAAC,GACE,GAAIpC,KAAKE,WAAY,CACnBF,KAAKG,aAAaH,KAAKE,W,EAY3B,MAAAmC,GACE,OACEC,EAACC,EACC,CAAAC,IAAA,2CAAAC,MAAOzC,KAAK0B,aACZgB,KAAK,MACLC,KAAK,OAEJ3C,KAAK8B,UAAY9B,KAAK8B,SAASc,YAC9BN,EAAA,kBAAAE,IAAA,2CAAgBG,KAAM3C,KAAK8B,SAASC,YAAc,gBAAkB,gBAAiBU,MAAOzC,KAAK8B,SAASc,WAAa,eAAiB,IACtIN,EAAA,gBAAAE,IAAA,2CACEK,YAAa7C,KAAKe,mBAClB+B,QAAS9C,KAAKC,YACdG,cAAeJ,KAAKI,cACpB2C,MAAO,aACPC,UAAW,KACXC,QAASjD,KAAKE,WACdyC,KAAK,kBAIXL,EAAa,QAAAE,IAAA,6C","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- System.register(["./p-B_C-mRjx.system.js"],(function(r){"use strict";var e,o,i,a,s;return{setters:[function(r){e=r.r;o=r.c;i=r.h;a=r.H;s=r.g}],execute:function(){var l=":host{--pine-alert-color-background:var(--pine-color-grey-150);--pine-alert-color-border:var(--pine-color-grey-300);--pine-alert-color-dismiss:var(--pine-color-grey-900);--pine-alert-color-dismiss-hover:var(--pine-color-grey-300);--pine-alert-color-icon:var(--pine-color-grey-700);--pine-alert-color-text:var(--pine-color-grey-950);--pine-alert-color-danger-background:var(--pine-color-red-150);--pine-alert-color-danger-border:var(--pine-color-red-300);--pine-alert-color-danger-dismiss:var(--pine-color-red-900);--pine-alert-color-danger-dismiss-hover:var(--pine-color-red-300);--pine-alert-color-danger-icon:var(--pine-color-red-700);--pine-alert-color-danger-text:var(--pine-color-red-950);--pine-alert-color-info-background:var(--pine-color-blue-150);--pine-alert-color-info-border:var(--pine-color-blue-300);--pine-alert-color-info-dismiss:var(--pine-color-blue-900);--pine-alert-color-info-dismiss-hover:var(--pine-color-blue-300);--pine-alert-color-info-icon:var(--pine-color-blue-700);--pine-alert-color-info-text:var(--pine-color-blue-950);--pine-alert-color-success-background:var(--pine-color-green-150);--pine-alert-color-success-border:var(--pine-color-green-300);--pine-alert-color-success-dismiss:var(--pine-color-green-900);--pine-alert-color-success-dismiss-hover:var(--pine-color-green-300);--pine-alert-color-success-icon:var(--pine-color-green-700);--pine-alert-color-success-text:var(--pine-color-green-950);--pine-alert-color-warning-background:var(--pine-color-yellow-150);--pine-alert-color-warning-border:var(--pine-color-yellow-300);--pine-alert-color-warning-dismiss:var(--pine-color-yellow-900);--pine-alert-color-warning-dismiss-hover:var(--pine-color-yellow-300);--pine-alert-color-warning-icon:var(--pine-color-yellow-700);--pine-alert-color-warning-text:var(--pine-color-yellow-950)}";var n=":host{display:block;line-height:1;width:100%}.pds-alert__container{--pds-alert-icon-size:var(--pine-dimension-sm);--pds-alert-border-dismiss-outline:2px solid var(--pds-alert-color-dismiss);--pds-alert-background:var(--pine-alert-color-background);--pds-alert-border-color:var(--pine-alert-color-border);--pds-alert-color-icon:var(--pine-alert-color-icon);--pds-alert-color-text:var(--pine-alert-color-text);--pds-alert-color-dismiss:var(--pine-alert-color-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-dismiss-hover)}.pds-alert__container--danger{--pds-alert-background:var(--pine-alert-color-danger-background);--pds-alert-border-color:var(--pine-alert-color-danger-border);--pds-alert-color-icon:var(--pine-alert-color-danger-icon);--pds-alert-color-text:var(--pine-alert-color-danger-text);--pds-alert-color-dismiss:var(--pine-alert-color-danger-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-danger-dismiss-hover)}.pds-alert__container--info{--pds-alert-background:var(--pine-alert-color-info-background);--pds-alert-border-color:var(--pine-alert-color-info-border);--pds-alert-color-icon:var(--pine-alert-color-info-icon);--pds-alert-color-text:var(--pine-alert-color-info-text);--pds-alert-color-dismiss:var(--pine-alert-color-info-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-info-dismiss-hover)}.pds-alert__container--success{--pds-alert-background:var(--pine-alert-color-success-background);--pds-alert-border-color:var(--pine-alert-color-success-border);--pds-alert-color-icon:var(--pine-alert-color-success-icon);--pds-alert-color-text:var(--pine-alert-color-success-text);--pds-alert-color-dismiss:var(--pine-alert-color-success-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-success-dismiss-hover)}.pds-alert__container--warning{--pds-alert-background:var(--pine-alert-color-warning-background);--pds-alert-border-color:var(--pine-alert-color-warning-border);--pds-alert-color-icon:var(--pine-alert-color-warning-icon);--pds-alert-color-text:var(--pine-alert-color-warning-text);--pds-alert-color-dismiss:var(--pine-alert-color-warning-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-warning-dismiss-hover)}.pds-alert__icon{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-alert__icon--small{-webkit-margin-before:calc(var(--pine-dimension-2xs) / 2);margin-block-start:calc(var(--pine-dimension-2xs) / 2)}.pds-alert__content-wrapper{-ms-flex:1;flex:1;min-width:0;overflow:hidden;width:100%}.pds-alert__dismiss{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;height:var(--pine-dimension-250);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs);width:var(--pine-dimension-250)}.pds-alert__dismiss:hover{background:var(--pds-alert-background-dismiss-hover);opacity:0.8}.pds-alert__dismiss:focus-visible{outline:var(--pds-alert-border-dismiss-outline)}.pds-alert__description--small{-ms-flex:1 1 auto;flex:1 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-alert__actions{-webkit-margin-before:var(--pine-dimension-sm);margin-block-start:var(--pine-dimension-sm)}.pds-alert__actions--small{-ms-flex-negative:0;flex-shrink:0;-webkit-margin-start:auto;margin-inline-start:auto;white-space:nowrap}";var t=r("pds_alert",function(){function r(r){var i=this;e(this,r);this.pdsAlertDismissClick=o(this,"pdsAlertDismissClick");this.small=false;this.dismissible=false;this.variant="default";this.hasActionsContent=false;this.handleCloseClick=function(){i.pdsAlertDismissClick.emit()}}r.prototype.componentWillRender=function(){var r=this.el.querySelector('[slot="actions"]');this.hasActionsContent=!!r};r.prototype.renderActions=function(r){return i("pds-box",{class:r?"pds-alert__actions--small":"pds-alert__actions",gap:"sm",flex:r?"none":undefined,"align-items":r?undefined:"center"},i("slot",{name:"actions"}))};r.prototype.renderContent=function(){if(this.small){return i("pds-box",{display:"flex",gap:"md","align-items":"center"},i("pds-text",{truncate:this.small,class:"pds-alert__description--small",color:"var(--pds-alert-color-text)",tag:"p"},i("slot",null)),this.hasActionsContent&&this.renderActions(true))}return i("div",null,i("pds-text",{class:"pds-alert__description",color:"var(--pds-alert-color-text)",tag:"p"},i("slot",null)),this.hasActionsContent&&this.renderActions(false))};r.prototype.render=function(){var r={danger:"warning-filled",default:"info-circle-filled",info:"info-circle-filled",success:"check-circle-filled",warning:"info-circle-filled"};var e=r[this.variant]||r.default;return i(a,{key:"ccb4b954c20b4fedfe1336737a412753bf3c78a2",class:"pds-alert",id:this.componentId,variant:this.variant},i("pds-box",{key:"6feafdc553ab9854542cb53035486a0caa1f3348",class:"pds-alert__container pds-alert__container--".concat(this.variant),"background-color":"var(--pds-alert-background)","border-color":"var(--pds-alert-border-color)","border-radius":"md",border:true,display:"block",padding:"md"},i("pds-box",{key:"86b160e97ac4724434b09cd832f7cdc61834a520",gap:"sm",display:"flex"},i("pds-icon",{key:"c2f61f894b3f63915259e298dd9d973b719880c9",class:"pds-alert__icon ".concat(this.small?"pds-alert__icon--small":""),color:"var(--pds-alert-color-icon)",icon:e,size:"var(--pds-alert-icon-size)"}),i("pds-box",{key:"07926a4d7d6a1795edd2055ce9ae3d853982fe98",class:"pds-alert__content-wrapper",direction:"column",gap:"xs",flex:"grow"},this.heading&&!this.small&&i("pds-text",{key:"2267241b05890cb4b955cd5418b26f30abd0503c",class:"pds-alert__heading",color:"var(--pds-alert-color-text)",size:"h5",tag:"h3",weight:"medium"},this.heading),this.renderContent()),this.dismissible&&i("button",{key:"bdc435db71e60d9233e97821ea10012f509cae26",class:"pds-alert__dismiss",type:"button","aria-label":"Dismiss alert",onClick:this.handleCloseClick},i("pds-icon",{key:"22f013acfafafa6c32da9aa696bef8a8d3c633c0",icon:"remove",size:"var(--pds-alert-icon-size)","aria-hidden":"true",color:"var(--pds-alert-color-dismiss)"})))))};Object.defineProperty(r.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return r}());t.style=l+n}}}));
2
- //# sourceMappingURL=p-52af1890.system.entry.js.map
1
+ System.register(["./p-Cxvdulqq.system.js"],(function(r){"use strict";var e,o,i,a,s;return{setters:[function(r){e=r.r;o=r.c;i=r.h;a=r.H;s=r.g}],execute:function(){var l=":host{--pine-alert-color-background:var(--pine-color-grey-150);--pine-alert-color-border:var(--pine-color-grey-300);--pine-alert-color-dismiss:var(--pine-color-grey-900);--pine-alert-color-dismiss-hover:var(--pine-color-grey-300);--pine-alert-color-icon:var(--pine-color-grey-700);--pine-alert-color-text:var(--pine-color-grey-950);--pine-alert-color-danger-background:var(--pine-color-red-150);--pine-alert-color-danger-border:var(--pine-color-red-300);--pine-alert-color-danger-dismiss:var(--pine-color-red-900);--pine-alert-color-danger-dismiss-hover:var(--pine-color-red-300);--pine-alert-color-danger-icon:var(--pine-color-red-700);--pine-alert-color-danger-text:var(--pine-color-red-950);--pine-alert-color-info-background:var(--pine-color-blue-150);--pine-alert-color-info-border:var(--pine-color-blue-300);--pine-alert-color-info-dismiss:var(--pine-color-blue-900);--pine-alert-color-info-dismiss-hover:var(--pine-color-blue-300);--pine-alert-color-info-icon:var(--pine-color-blue-700);--pine-alert-color-info-text:var(--pine-color-blue-950);--pine-alert-color-success-background:var(--pine-color-green-150);--pine-alert-color-success-border:var(--pine-color-green-300);--pine-alert-color-success-dismiss:var(--pine-color-green-900);--pine-alert-color-success-dismiss-hover:var(--pine-color-green-300);--pine-alert-color-success-icon:var(--pine-color-green-700);--pine-alert-color-success-text:var(--pine-color-green-950);--pine-alert-color-warning-background:var(--pine-color-yellow-150);--pine-alert-color-warning-border:var(--pine-color-yellow-300);--pine-alert-color-warning-dismiss:var(--pine-color-yellow-900);--pine-alert-color-warning-dismiss-hover:var(--pine-color-yellow-300);--pine-alert-color-warning-icon:var(--pine-color-yellow-700);--pine-alert-color-warning-text:var(--pine-color-yellow-950)}";var n=":host{display:block;line-height:1;width:100%}.pds-alert__container{--pds-alert-icon-size:var(--pine-dimension-sm);--pds-alert-border-dismiss-outline:2px solid var(--pds-alert-color-dismiss);--pds-alert-background:var(--pine-alert-color-background);--pds-alert-border-color:var(--pine-alert-color-border);--pds-alert-color-icon:var(--pine-alert-color-icon);--pds-alert-color-text:var(--pine-alert-color-text);--pds-alert-color-dismiss:var(--pine-alert-color-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-dismiss-hover)}.pds-alert__container--danger{--pds-alert-background:var(--pine-alert-color-danger-background);--pds-alert-border-color:var(--pine-alert-color-danger-border);--pds-alert-color-icon:var(--pine-alert-color-danger-icon);--pds-alert-color-text:var(--pine-alert-color-danger-text);--pds-alert-color-dismiss:var(--pine-alert-color-danger-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-danger-dismiss-hover)}.pds-alert__container--info{--pds-alert-background:var(--pine-alert-color-info-background);--pds-alert-border-color:var(--pine-alert-color-info-border);--pds-alert-color-icon:var(--pine-alert-color-info-icon);--pds-alert-color-text:var(--pine-alert-color-info-text);--pds-alert-color-dismiss:var(--pine-alert-color-info-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-info-dismiss-hover)}.pds-alert__container--success{--pds-alert-background:var(--pine-alert-color-success-background);--pds-alert-border-color:var(--pine-alert-color-success-border);--pds-alert-color-icon:var(--pine-alert-color-success-icon);--pds-alert-color-text:var(--pine-alert-color-success-text);--pds-alert-color-dismiss:var(--pine-alert-color-success-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-success-dismiss-hover)}.pds-alert__container--warning{--pds-alert-background:var(--pine-alert-color-warning-background);--pds-alert-border-color:var(--pine-alert-color-warning-border);--pds-alert-color-icon:var(--pine-alert-color-warning-icon);--pds-alert-color-text:var(--pine-alert-color-warning-text);--pds-alert-color-dismiss:var(--pine-alert-color-warning-dismiss);--pds-alert-background-dismiss-hover:var(--pine-alert-color-warning-dismiss-hover)}.pds-alert__icon{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-alert__icon--small{-webkit-margin-before:calc(var(--pine-dimension-2xs) / 2);margin-block-start:calc(var(--pine-dimension-2xs) / 2)}.pds-alert__content-wrapper{-ms-flex:1;flex:1;min-width:0;overflow:hidden;width:100%}.pds-alert__dismiss{-ms-flex-align:center;align-items:center;background:none;border:0;border-radius:var(--pine-border-radius-full);cursor:pointer;display:-ms-flexbox;display:flex;height:var(--pine-dimension-250);-ms-flex-pack:center;justify-content:center;padding:var(--pine-dimension-xs);width:var(--pine-dimension-250)}.pds-alert__dismiss:hover{background:var(--pds-alert-background-dismiss-hover);opacity:0.8}.pds-alert__dismiss:focus-visible{outline:var(--pds-alert-border-dismiss-outline)}.pds-alert__description--small{-ms-flex:1 1 auto;flex:1 1 auto;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pds-alert__actions{-webkit-margin-before:var(--pine-dimension-sm);margin-block-start:var(--pine-dimension-sm)}.pds-alert__actions--small{-ms-flex-negative:0;flex-shrink:0;-webkit-margin-start:auto;margin-inline-start:auto;white-space:nowrap}";var t=r("pds_alert",function(){function r(r){var i=this;e(this,r);this.pdsAlertDismissClick=o(this,"pdsAlertDismissClick");this.small=false;this.dismissible=false;this.variant="default";this.hasActionsContent=false;this.handleCloseClick=function(){i.pdsAlertDismissClick.emit()}}r.prototype.componentWillRender=function(){var r=this.el.querySelector('[slot="actions"]');this.hasActionsContent=!!r};r.prototype.renderActions=function(r){return i("pds-box",{class:r?"pds-alert__actions--small":"pds-alert__actions",gap:"sm",flex:r?"none":undefined,"align-items":r?undefined:"center"},i("slot",{name:"actions"}))};r.prototype.renderContent=function(){if(this.small){return i("pds-box",{display:"flex",gap:"md","align-items":"center"},i("pds-text",{truncate:this.small,class:"pds-alert__description--small",color:"var(--pds-alert-color-text)",tag:"p"},i("slot",null)),this.hasActionsContent&&this.renderActions(true))}return i("div",null,i("pds-text",{class:"pds-alert__description",color:"var(--pds-alert-color-text)",tag:"p"},i("slot",null)),this.hasActionsContent&&this.renderActions(false))};r.prototype.render=function(){var r={danger:"warning-filled",default:"info-circle-filled",info:"info-circle-filled",success:"check-circle-filled",warning:"info-circle-filled"};var e=r[this.variant]||r.default;return i(a,{key:"ccb4b954c20b4fedfe1336737a412753bf3c78a2",class:"pds-alert",id:this.componentId,variant:this.variant},i("pds-box",{key:"6feafdc553ab9854542cb53035486a0caa1f3348",class:"pds-alert__container pds-alert__container--".concat(this.variant),"background-color":"var(--pds-alert-background)","border-color":"var(--pds-alert-border-color)","border-radius":"md",border:true,display:"block",padding:"md"},i("pds-box",{key:"86b160e97ac4724434b09cd832f7cdc61834a520",gap:"sm",display:"flex"},i("pds-icon",{key:"c2f61f894b3f63915259e298dd9d973b719880c9",class:"pds-alert__icon ".concat(this.small?"pds-alert__icon--small":""),color:"var(--pds-alert-color-icon)",icon:e,size:"var(--pds-alert-icon-size)"}),i("pds-box",{key:"07926a4d7d6a1795edd2055ce9ae3d853982fe98",class:"pds-alert__content-wrapper",direction:"column",gap:"xs",flex:"grow"},this.heading&&!this.small&&i("pds-text",{key:"2267241b05890cb4b955cd5418b26f30abd0503c",class:"pds-alert__heading",color:"var(--pds-alert-color-text)",size:"h5",tag:"h3",weight:"medium"},this.heading),this.renderContent()),this.dismissible&&i("button",{key:"bdc435db71e60d9233e97821ea10012f509cae26",class:"pds-alert__dismiss",type:"button","aria-label":"Dismiss alert",onClick:this.handleCloseClick},i("pds-icon",{key:"22f013acfafafa6c32da9aa696bef8a8d3c633c0",icon:"remove",size:"var(--pds-alert-icon-size)","aria-hidden":"true",color:"var(--pds-alert-color-dismiss)"})))))};Object.defineProperty(r.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});return r}());t.style=l+n}}}));
2
+ //# sourceMappingURL=p-f911dde3.system.entry.js.map
@@ -0,0 +1,2 @@
1
+ var __awaiter=this&&this.__awaiter||function(e,i,t,r){function n(e){return e instanceof t?e:new t((function(i){i(e)}))}return new(t||(t=Promise))((function(t,a){function s(e){try{l(r.next(e))}catch(e){a(e)}}function o(e){try{l(r["throw"](e))}catch(e){a(e)}}function l(e){e.done?t(e.value):n(e.value).then(s,o)}l((r=r.apply(e,i||[])).next())}))};var __generator=this&&this.__generator||function(e,i){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,n,a,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(i){return l([e,i])}}function l(o){if(r)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(t=0)),t)try{if(r=1,n&&(a=o[0]&2?n["return"]:o[0]?n["throw"]||((a=n["return"])&&a.call(n),0):n.next)&&!(a=a.call(n,o[1])).done)return a;if(n=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:t.label++;return{value:o[1],done:false};case 5:t.label++;n=o[1];o=[0];continue;case 7:o=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){t.label=o[1];break}if(o[0]===6&&t.label<a[1]){t.label=a[1];a=o;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(o);break}if(a[2])t.ops.pop();t.trys.pop();continue}o=i.call(e,t)}catch(e){o=[6,e];n=0}finally{r=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-Cxvdulqq.system.js","./p-BHavepTY.system.js","./p-BG6uGRQj.system.js","./p-BhQhw0S3.system.js","./p-BG99uNIQ.system.js"],(function(e){"use strict";var i,t,r,n,a,s,o,l,c,d,h,u,f;return{setters:[function(e){i=e.r;t=e.c;r=e.h;n=e.H;a=e.g},function(e){s=e.i;o=e.e;l=e.a;c=e.m},function(e){d=e.d},function(e){h=e.i;u=e.a},function(e){f=e.i}],execute:function(){var p=":host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}";var b=":host{--pine-input-color-background-danger:var(--pine-color-red-050)}";var v=":host{display:inline-block;width:100%}:host([aria-readonly=true]) textarea{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-readonly)}.pds-textarea{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.pds-textarea__label-wrapper{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.pds-textarea__action{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs);-webkit-margin-start:var(--pine-dimension-xs);margin-inline-start:var(--pine-dimension-xs)}label{display:block;-webkit-margin-after:var(--pine-dimension-xs);margin-block-end:var(--pine-dimension-xs)}.pds-textarea__label-wrapper label{-webkit-margin-after:0;margin-block-end:0}.pds-textarea__helper-message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-textarea__error-message{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-sm-medium);gap:var(--pine-dimension-2xs);-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-textarea__field-wrapper{display:inline-block;position:relative;width:100%}.pds-textarea__field{background-color:var(--pine-color-background-container);border:var(--pine-border);border-radius:calc(var(--pine-dimension-xs) * 1.25);-webkit-box-sizing:border-box;box-sizing:border-box;font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);min-height:calc(var(--pine-dimension-xl) * 2);min-width:calc(var(--pine-dimension-xl) * 2);padding:var(--pine-dimension-xs) var(--pine-dimension-sm);resize:both;width:100%}:host([max-length]) .pds-textarea__field{padding-bottom:calc(var(--pine-dimension-xs) + var(--pine-dimension-md))}.pds-textarea__field:hover:not(:disabled,.is-invalid){border:var(--pine-border-hover)}.pds-textarea__field:disabled{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-textarea__field:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-textarea__field::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field.is-invalid{background-color:var(--pine-input-color-background-danger);border-color:var(--pine-color-border-danger)}.pds-textarea__field.is-invalid:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-textarea__character-counter{background:color-mix(in srgb, var(--pine-color-background-container) 80%, transparent);border-radius:calc(var(--pine-dimension-2xs) * 0.5);color:var(--pine-color-text-readonly);font:var(--pine-typography-body-sm-medium);padding:calc(var(--pine-dimension-2xs) * 0.5) var(--pine-dimension-2xs);pointer-events:none;position:absolute;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;white-space:nowrap;z-index:var(--pine-z-index)}:host([aria-disabled=true]) .pds-textarea__character-counter{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-disabled)}:host([aria-readonly=true]) .pds-textarea__character-counter{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-readonly)}.pds-textarea__field.is-invalid~.pds-textarea__character-counter{background-color:var(--pine-input-color-background-danger)}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}";var x=e("pds_textarea",function(){function e(e){var r=this;i(this,e);this.pdsBlur=t(this,"pdsBlur");this.pdsFocus=t(this,"pdsFocus");this.pdsInput=t(this,"pdsInput");this.pdsTextareaChange=t(this,"pdsTextareaChange");this.inheritedAttributes={};this._type="textarea";this.disabled=false;this.invalid=false;this.name=this.componentId;this.readonly=false;this.required=false;this.value="";this.hasFocus=false;this.hasAction=false;this.onBlur=function(e){r.hasFocus=false;if(r.focusedValue!==r.value){r.emitValueChange(e)}r.pdsBlur.emit(e)};this.onFocus=function(e){r.hasFocus=true;r.focusedValue=r.value;r.pdsFocus.emit(e)};this.onInput=function(e){var i=e.target;if(i){if(r.maxLength&&i.value.length>r.maxLength){i.value=i.value.substring(0,r.maxLength)}r.value=i.value||""}r.emitInputChange(e);if(r.maxLength&&typeof ResizeObserver!=="undefined"){requestAnimationFrame((function(){r.updateCharacterCounterPosition()}))}};this.onTextareaChange=function(e){r.emitValueChange(e)}}e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeTextarea){this.nativeTextarea.focus()}return[2]}))}))};e.prototype.debounceChanged=function(){var e=this,i=e.pdsInput,t=e.debounce,r=e.originalPdsInput;this.pdsInput=t===undefined?r!==null&&r!==void 0?r:i:d(i,t)};e.prototype.valueChanged=function(){var e=this.nativeTextarea;var i=this.getValue();if(e&&e.value!==i){e.value=i}this.updateFormValue();if(this.maxLength&&typeof ResizeObserver!=="undefined"){this.updateCharacterCounterPosition()}};e.prototype.maxLengthChanged=function(){if(this.resizeObserver){this.resizeObserver.disconnect()}if(this.maxLength&&this.nativeTextarea){this.setupResizeObserver()}if(this.internals&&this.internals.setValidity&&this.nativeTextarea){var e=this.nativeTextarea.value.length>(this.maxLength||0);this.internals.setValidity({tooLong:e},e?"Value exceeds maxLength":"",this.nativeTextarea)}};e.prototype.emitInputChange=function(e){var i=this.value;this.pdsInput.emit({value:i,event:e})};e.prototype.emitValueChange=function(e){var i=e.target;s(i,this);var t=i.value;var r=t==null?t:t.toString();this.focusedValue=r;this.pdsTextareaChange.emit({value:r,event:e})};e.prototype.getValue=function(){return this.value||""};e.prototype.textareaClassNames=function(){var e=["pds-textarea__field"];if(this.invalid&&this.invalid===true){e.push("is-invalid")}return e.join(" ")};e.prototype.connectedCallback=function(){this.debounceChanged();if(this.el.attachInternals){this.internals=this.el.attachInternals()}};e.prototype.disconnectedCallback=function(){if(this.resizeObserver){this.resizeObserver.disconnect()}};e.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign(Object.assign({},h(this.el)),u(this.el));this.hasAction=this.el.querySelector('[slot="action"]')!==null};e.prototype.componentDidLoad=function(){var e=this;this.originalPdsInput=this.pdsInput;this.updateFormValue();this.setupResizeObserver();o(this.el,(function(){return e._type}))};e.prototype.setupResizeObserver=function(){var e=this;if(!this.maxLength||!this.nativeTextarea)return;if(typeof ResizeObserver!=="undefined"){this.resizeObserver=new ResizeObserver((function(){requestAnimationFrame((function(){e.updateCharacterCounterPosition()}))}));this.resizeObserver.observe(this.nativeTextarea);requestAnimationFrame((function(){e.updateCharacterCounterPosition()}))}};e.prototype.updateCharacterCounterPosition=function(){if(!this.characterCounter||!this.nativeTextarea)return;if(typeof ResizeObserver==="undefined")return;if(this.characterCounter.offsetWidth===0||this.characterCounter.offsetHeight===0){return}var e=this.nativeTextarea.offsetWidth;var i=this.nativeTextarea.offsetHeight;var t=this.characterCounter.offsetWidth;var r=this.characterCounter.offsetHeight;var n=e-t-8;var a=i-r-8;var s=Math.max(8,Math.min(n,e-t-8));var o=Math.max(8,Math.min(a,i-r-8));this.characterCounter.style.position="absolute";this.characterCounter.style.left="".concat(s,"px");this.characterCounter.style.top="".concat(o,"px");this.characterCounter.style.right="auto";this.characterCounter.style.bottom="auto"};e.prototype.renderCharacterCounter=function(){var e=this;if(!this.maxLength){return null}var i=this.getValue().length;return r("div",{class:"pds-textarea__character-counter",ref:function(i){return e.characterCounter=i},role:"status","aria-live":"polite","aria-label":"".concat(i," of ").concat(this.maxLength," characters")},i," / ",this.maxLength)};e.prototype.renderAction=function(){var e=this.el.querySelector('[slot="action"]')!==null;if(e){return r("div",{class:"pds-textarea__action",part:"action"},r("slot",{name:"action"}))}return null};e.prototype.updateFormValue=function(){if(this.internals&&this.internals.setFormValue){var e=this.getValue();this.internals.setFormValue(e||null);if(this.nativeTextarea&&this.internals&&this.internals.setValidity){this.internals.setValidity(this.nativeTextarea.validity,this.nativeTextarea.validationMessage,this.nativeTextarea)}}};e.prototype.formResetCallback=function(){this.value="";this.updateFormValue()};e.prototype.formDisabledCallback=function(e){this.disabled=e};e.prototype.formStateRestoreCallback=function(e){if(typeof e==="string"){this.value=e}else if(e instanceof FormData&&this.name){var i=e.get(this.name);if(typeof i==="string"){this.value=i}}};e.prototype.render=function(){var e=this;var i=this.getValue();return r(n,{key:"5ca3fed52ff7fd0b0497d01412bb7ca3746b2e7e","aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly?"true":null,"has-action":this.hasAction&&!this.hideLabel?"true":null},r("div",{key:"3761f27f234f9667ce8dffc77c5ede89159afaea",class:"pds-textarea"},this.label&&r("div",{key:"db533228166be7a303969703b2e92327e02e0b88",class:"pds-textarea__label-wrapper"},r("label",{key:"6e215f009e9297f5a1a415419f40064fd3168ad8",htmlFor:this.componentId},r("span",{key:"b48b3427bfdff3cef0ed18799cf64547b7e77e97",class:this.hideLabel?"visually-hidden":""},this.label)),!this.hideLabel&&this.renderAction()),r("div",{key:"23c4a2231dfd1b42e45d04f35e9dc2772d2df2fb",class:"pds-textarea__field-wrapper"},r("textarea",Object.assign({key:"7081f83eacc8dd5fdef8774b3887eb6109281aa6",ref:function(i){return e.nativeTextarea=i},"aria-describedby":l(this.componentId,this.invalid,this.helperMessage),"aria-invalid":this.invalid?"true":undefined,autocomplete:this.autocomplete,class:this.textareaClassNames(),disabled:this.disabled,id:this.componentId,maxlength:this.maxLength,name:this.name,placeholder:this.placeholder,readOnly:this.readonly,required:this.required,rows:this.rows,onBlur:this.onBlur,onChange:this.onTextareaChange,onFocus:this.onFocus,onInput:this.onInput},this.inheritedAttributes),i),this.renderCharacterCounter()),this.helperMessage&&r("p",{key:"237e251d35403fc4225123ac56476b656ab9ad48",class:"pds-textarea__helper-message",id:c(this.componentId,"helper")},this.helperMessage),this.invalid&&r("p",{key:"f4102e758212c00074bfbd144d311fa4fedf5b49","aria-live":"assertive",class:"pds-textarea__error-message",id:c(this.componentId,"error")},r("pds-icon",{key:"92535a264a990ff133a1e6dde709236b3157b2d0",icon:f,size:"small"}),this.errorMessage)))};Object.defineProperty(e,"formAssociated",{get:function(){return true},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{debounce:["debounceChanged"],value:["valueChanged"],maxLength:["maxLengthChanged"]}},enumerable:false,configurable:true});return e}());x.style=p+(b+v)}}}));
2
+ //# sourceMappingURL=p-f92d7570.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["labelCss","pdsInputTokensCss","pdsTextareaCss","PdsTextarea","exports","class_1","hostRef","_this","this","inheritedAttributes","_type","disabled","invalid","name","componentId","readonly","required","value","hasFocus","hasAction","onBlur","ev","focusedValue","emitValueChange","pdsBlur","emit","onFocus","pdsFocus","onInput","input","target","maxLength","length","substring","emitInputChange","ResizeObserver","requestAnimationFrame","updateCharacterCounterPosition","onTextareaChange","prototype","setFocus","nativeTextarea","focus","debounceChanged","_a","pdsInput","debounce","originalPdsInput","undefined","debounceEvent","valueChanged","getValue","updateFormValue","maxLengthChanged","resizeObserver","disconnect","setupResizeObserver","internals","setValidity","isTooLong","tooLong","event","textarea","isRequired","newValue","toString","pdsTextareaChange","textareaClassNames","classNames","push","join","connectedCallback","el","attachInternals","disconnectedCallback","componentWillLoad","Object","assign","inheritAriaAttributes","inheritAttributes","querySelector","componentDidLoad","exposeTypeProperty","observe","characterCounter","offsetWidth","offsetHeight","textareaWidth","textareaHeight","counterWidth","counterHeight","rightPosition","bottomPosition","finalLeft","Math","max","min","finalTop","style","position","left","concat","top","right","bottom","renderCharacterCounter","currentLength","h","class","ref","role","renderAction","part","setFormValue","validity","validationMessage","formResetCallback","formDisabledCallback","formStateRestoreCallback","state","FormData","get","render","Host","key","hideLabel","label","htmlFor","assignDescription","helperMessage","autocomplete","id","maxlength","placeholder","readOnly","rows","onChange","messageId","icon","danger","size","errorMessage"],"sources":["src/global/styles/utils/label.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-input/pds-input.tokens.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-textarea/pds-textarea.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-textarea/pds-textarea.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n","@use '~@kajabi-ui/styles/dist/pine/components/pds-input/pds-input.tokens'\n",":host {\n display: inline-block;\n width: 100%;\n}\n\n:host([aria-readonly=\"true\"]) {\n textarea {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-readonly);\n }\n}\n\n.pds-textarea {\n display: flex;\n flex-direction: column;\n}\n\n.pds-textarea__label-wrapper {\n align-items: center;\n display: flex;\n justify-content: space-between;\n}\n\n.pds-textarea__action {\n align-items: center;\n display: flex;\n gap: var(--pine-dimension-xs);\n margin-inline-start: var(--pine-dimension-xs);\n}\n\nlabel {\n display: block;\n margin-block-end: var(--pine-dimension-xs);\n}\n\n// When label is inside wrapper, remove its margin\n.pds-textarea__label-wrapper label {\n margin-block-end: 0;\n}\n\n.pds-textarea__helper-message {\n color: var(--pine-color-text-message);\n font: var(--pine-typography-body-sm-medium);\n margin-block-start: var(--pine-dimension-2xs);\n}\n\n.pds-textarea__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n font: var(--pine-typography-body-sm-medium);\n gap: var(--pine-dimension-2xs);\n margin-block-start: var(--pine-dimension-2xs);\n}\n\n.pds-textarea__field-wrapper {\n display: inline-block;\n position: relative;\n width: 100%;\n}\n\n.pds-textarea__field {\n background-color: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: calc(var(--pine-dimension-xs) * 1.25);\n box-sizing: border-box;\n font: var(--pine-typography-body);\n letter-spacing: var(--pine-letter-spacing);\n min-height: calc(var(--pine-dimension-xl) * 2);\n min-width: calc(var(--pine-dimension-xl) * 2);\n padding: var(--pine-dimension-xs) var(--pine-dimension-sm);\n resize: both;\n width: 100%;\n\n // Add bottom padding when character counter is present\n :host([max-length]) & {\n padding-bottom: calc(var(--pine-dimension-xs) + var(--pine-dimension-md));\n }\n\n &:hover:not(:disabled, .is-invalid) {\n border: var(--pine-border-hover);\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n &:focus-visible {\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-border-width);\n }\n\n &::placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &.is-invalid {\n background-color: var(--pine-input-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n.pds-textarea__character-counter {\n background: color-mix(in srgb, var(--pine-color-background-container) 80%, transparent);\n border-radius: calc(var(--pine-dimension-2xs) * 0.5);\n color: var(--pine-color-text-readonly);\n font: var(--pine-typography-body-sm-medium);\n padding: calc(var(--pine-dimension-2xs) * 0.5) var(--pine-dimension-2xs);\n pointer-events: none;\n position: absolute;\n user-select: none;\n white-space: nowrap;\n z-index: var(--pine-z-index);\n\n // Match textarea disabled state\n :host([aria-disabled=\"true\"]) & {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-disabled);\n }\n\n // Match textarea readonly state\n :host([aria-readonly=\"true\"]) & {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-readonly);\n }\n\n // Match textarea invalid state - target when field has is-invalid class\n .pds-textarea__field.is-invalid ~ & {\n background-color: var(--pine-input-color-background-danger);\n }\n}\n\n.visually-hidden {\n border: 0;\n clip: rect(0 0 0 0);\n clip-path: polygon(0 0, 0 0, 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { assignDescription, isRequired, messageId, exposeTypeProperty } from '../../utils/form';\nimport { TextareaChangeEventDetail, TextareaInputEventDetail } from './textarea-interface';\nimport { debounceEvent } from '@utils/utils';\nimport type { Attributes } from '@utils/attributes';\nimport { inheritAttributes, inheritAriaAttributes } from '@utils/attributes';\nimport { danger } from '@pine-ds/icons/icons';\n\n/**\n * @slot action - Content to be displayed in the label area, typically for help icons or links\n */\n@Component({\n tag: 'pds-textarea',\n styleUrls: [\n '../../global/styles/utils/label.scss',\n '../pds-input/pds-input.tokens.scss',\n 'pds-textarea.scss'\n ],\n shadow: true,\n formAssociated: true,\n})\nexport class PdsTextarea {\n\n private nativeTextarea?: HTMLTextAreaElement\n private focusedValue?: string | null;\n private inheritedAttributes: Attributes = {};\n private originalPdsInput?: EventEmitter<TextareaInputEventDetail>;\n private internals?: ElementInternals;\n private resizeObserver?: ResizeObserver;\n private characterCounter?: HTMLElement;\n private readonly _type = 'textarea' as const;\n\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() pdsBlur!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the input has focus.\n */\n @Event() pdsFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when a keyboard input occurs.\n *\n * For elements that accept text input (`type=text`, `type=tel`, etc.), the interface\n * is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,\n * the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If\n * the input is cleared on edit, the type is `null`.\n */\n @Event() pdsInput: EventEmitter<TextareaInputEventDetail>;\n\n /**\n * Event emitted whenever the value of the textarea changes.\n *\n * This event will not emit when programmatically setting the `value` property.\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n /**\n * Sets focus on the native `textarea` in the `pds-textarea`. Use this method instead of the global\n * `textarea.focus()`.\n */\n @Method()\n async setFocus() {\n if (this.nativeTextarea) {\n this.nativeTextarea.focus();\n }\n }\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines whether or not the textarea is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * The amount of time, in milliseconds, to wait to trigger the event after each keystroke.\n */\n @Prop() debounce?: number;\n\n /**\n * Displays an error message below the textarea field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the textarea field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Determines whether or not the textarea is invalid or throws an error.\n * @defaultValue false\n */\n @Prop({mutable: true}) invalid = false; // eslint-disable-line @stencil-community/strict-mutable\n\n /**\n * Text to be displayed as the textarea label.\n */\n @Prop() label?: string;\n\n /**\n * Visually hides the label text for instances where only the textarea should be displayed. Label remains accessible to assistive technology such as screen readers.\n * Note: When true, the action slot is also hidden to maintain a minimal UI.\n */\n @Prop() hideLabel: boolean;\n\n /**\n * Specifies the name. Submitted with the form name/value pair. This value will mirror the componentId.\n */\n @Prop() name: string = this.componentId;\n\n /**\n * Specifies a short hint that describes the expected value of the textarea.\n */\n @Prop() placeholder?: string;\n\n /**\n * Determines whether or not the textarea is readonly.\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Determines whether or not the textarea is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * Sets number of rows of text visible without needing to scroll in the textarea.\n */\n @Prop() rows?: number;\n\n /**\n * Specifies the maximum number of characters allowed in the textarea. When set, displays a character counter.\n */\n @Prop({ reflect: true }) maxLength?: number;\n\n /**\n * The value of the textarea.\n */\n @Prop({mutable: true}) value?: string | null = '';\n\n @State() hasFocus = false;\n\n\n /**\n * If true, the textarea has action content in the label area\n */\n @State() hasAction = false;\n\n @Watch('debounce')\n protected debounceChanged() {\n const { pdsInput, debounce, originalPdsInput } = this;\n\n this.pdsInput = debounce === undefined ? originalPdsInput ?? pdsInput : debounceEvent(pdsInput, debounce);\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n const nativeTextarea = this.nativeTextarea;\n const value = this.getValue();\n\n if (nativeTextarea && nativeTextarea.value !== value) {\n nativeTextarea.value = value;\n }\n\n // Update form value for Form Associated Custom Elements API\n this.updateFormValue();\n\n // Update character counter position in case content changes affect sizing\n if (this.maxLength && typeof ResizeObserver !== 'undefined') {\n this.updateCharacterCounterPosition();\n }\n }\n\n @Watch('maxLength')\n protected maxLengthChanged() {\n // Setup or teardown ResizeObserver based on maxLength\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n\n if (this.maxLength && this.nativeTextarea) {\n this.setupResizeObserver();\n }\n\n // Update ElementInternals validity when maxLength changes\n if (this.internals && this.internals.setValidity && this.nativeTextarea) {\n const isTooLong = this.nativeTextarea.value.length > (this.maxLength || 0);\n this.internals.setValidity(\n { tooLong: isTooLong },\n isTooLong ? 'Value exceeds maxLength' : '',\n this.nativeTextarea\n );\n }\n }\n\n /**\n * Emits an `pdsInput` event.\n */\n private emitInputChange(event?: Event) {\n const { value } = this;\n this.pdsInput.emit({ value, event });\n }\n\n /**\n * Emits an `pdsTextareaChange` event.\n */\n private emitValueChange(event?: Event) {\n const textarea = event.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n const { value } = textarea;\n\n // Checks for both null and undefined values\n const newValue = value == null ? value : value.toString();\n this.focusedValue = newValue;\n this.pdsTextareaChange.emit({ value: newValue, event });\n }\n\n private getValue(): string {\n return this.value || '';\n }\n\n private onBlur = (ev: FocusEvent) => {\n this.hasFocus = false;\n\n if (this.focusedValue !== this.value) {\n this.emitValueChange(ev);\n }\n\n this.pdsBlur.emit(ev);\n };\n\n private onFocus = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.focusedValue = this.value;\n\n this.pdsFocus.emit(ev);\n };\n\n private onInput = (ev: Event) => {\n const input = ev.target as HTMLTextAreaElement | null;\n if (input) {\n // Handle maxLength validation\n if (this.maxLength && input.value.length > this.maxLength) {\n // Prevent input beyond maxLength\n input.value = input.value.substring(0, this.maxLength);\n }\n this.value = input.value || '';\n }\n this.emitInputChange(ev);\n\n // Update counter position when content changes\n if (this.maxLength && typeof ResizeObserver !== 'undefined') {\n // Use requestAnimationFrame to ensure DOM is updated\n requestAnimationFrame(() => {\n this.updateCharacterCounterPosition();\n });\n }\n };\n\n private onTextareaChange = (ev: Event) => {\n this.emitValueChange(ev);\n };\n\n private textareaClassNames() {\n const classNames = ['pds-textarea__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n connectedCallback() {\n this.debounceChanged();\n // Initialize ElementInternals for form association\n if (this.el.attachInternals) {\n this.internals = this.el.attachInternals();\n }\n }\n\n disconnectedCallback() {\n // Clean up ResizeObserver\n if (this.resizeObserver) {\n this.resizeObserver.disconnect();\n }\n }\n\n componentWillLoad() {\n this.inheritedAttributes = {\n ...inheritAriaAttributes(this.el),\n ...inheritAttributes(this.el),\n };\n this.hasAction = this.el.querySelector('[slot=\"action\"]') !== null;\n }\n\n componentDidLoad() {\n this.originalPdsInput = this.pdsInput;\n // Set initial form value\n this.updateFormValue();\n\n // Setup ResizeObserver for character counter positioning\n this.setupResizeObserver();\n\n // Expose type property on the element instance to match native form element behavior\n exposeTypeProperty(this.el, () => this._type);\n }\n\n /**\n * Sets up ResizeObserver to track textarea resize for character counter positioning\n */\n private setupResizeObserver() {\n if (!this.maxLength || !this.nativeTextarea) return;\n\n // ResizeObserver may not be available in test environments\n if (typeof ResizeObserver !== 'undefined') {\n this.resizeObserver = new ResizeObserver(() => {\n // Use requestAnimationFrame to ensure DOM updates are complete\n requestAnimationFrame(() => {\n this.updateCharacterCounterPosition();\n });\n });\n\n this.resizeObserver.observe(this.nativeTextarea);\n\n // Initial positioning with a small delay to ensure counter is rendered\n requestAnimationFrame(() => {\n this.updateCharacterCounterPosition();\n });\n }\n }\n\n /**\n * Updates character counter position to stay within textarea boundaries during resize\n */\n private updateCharacterCounterPosition() {\n if (!this.characterCounter || !this.nativeTextarea) return;\n\n // Skip positioning in test environments where ResizeObserver isn't available\n if (typeof ResizeObserver === 'undefined') return;\n\n // Ensure the character counter has been rendered and has dimensions\n if (this.characterCounter.offsetWidth === 0 || this.characterCounter.offsetHeight === 0) {\n // Counter not ready or component hidden - return and let resize/input observers handle positioning later\n return;\n }\n\n // Position based on textarea's actual dimensions (which change during manual resize)\n const textareaWidth = this.nativeTextarea.offsetWidth;\n const textareaHeight = this.nativeTextarea.offsetHeight;\n const counterWidth = this.characterCounter.offsetWidth;\n const counterHeight = this.characterCounter.offsetHeight;\n\n // Calculate position within textarea boundaries with padding from edges\n const rightPosition = textareaWidth - counterWidth - 8;\n const bottomPosition = textareaHeight - counterHeight - 8;\n\n // Ensure counter stays within textarea boundaries even when resized very small\n const finalLeft = Math.max(8, Math.min(rightPosition, textareaWidth - counterWidth - 8));\n const finalTop = Math.max(8, Math.min(bottomPosition, textareaHeight - counterHeight - 8));\n\n // Apply absolute positioning within the field wrapper\n this.characterCounter.style.position = 'absolute';\n this.characterCounter.style.left = `${finalLeft}px`;\n this.characterCounter.style.top = `${finalTop}px`;\n this.characterCounter.style.right = 'auto';\n this.characterCounter.style.bottom = 'auto';\n }\n\n /**\n * Renders the character counter when maxLength is set\n */\n private renderCharacterCounter() {\n if (!this.maxLength) {\n return null;\n }\n\n const currentLength = this.getValue().length;\n return (\n <div\n class=\"pds-textarea__character-counter\"\n ref={(el) => this.characterCounter = el}\n role=\"status\"\n aria-live=\"polite\"\n aria-label={`${currentLength} of ${this.maxLength} characters`}\n >\n {currentLength} / {this.maxLength}\n </div>\n );\n }\n\n private renderAction() {\n const hasAction = this.el.querySelector('[slot=\"action\"]') !== null;\n if (hasAction) {\n return (\n <div class=\"pds-textarea__action\" part=\"action\">\n <slot name=\"action\"></slot>\n </div>\n );\n }\n return null;\n }\n\n /**\n * Updates the form value using ElementInternals API\n */\n private updateFormValue() {\n if (this.internals && this.internals.setFormValue) {\n const value = this.getValue();\n this.internals.setFormValue(value || null);\n\n // Set validity based on native textarea validation\n if (this.nativeTextarea && this.internals && this.internals.setValidity) {\n this.internals.setValidity(\n this.nativeTextarea.validity,\n this.nativeTextarea.validationMessage,\n this.nativeTextarea\n );\n }\n }\n }\n\n\n /**\n * Form Associated Custom Elements API: Called when the form is reset\n */\n formResetCallback() {\n this.value = '';\n this.updateFormValue();\n }\n\n /**\n * Form Associated Custom Elements API: Called when the form is disabled\n */\n formDisabledCallback(disabled: boolean) {\n this.disabled = disabled;\n }\n\n /**\n * Form Associated Custom Elements API: Called to restore form state\n */\n formStateRestoreCallback(state: string | FormData | null) {\n if (typeof state === 'string') {\n this.value = state;\n } else if (state instanceof FormData && this.name) {\n // Extract value from FormData using the textarea's name\n const value = state.get(this.name);\n if (typeof value === 'string') {\n this.value = value;\n }\n }\n }\n\n render() {\n const value = this.getValue();\n\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n aria-readonly={this.readonly ? 'true' : null}\n has-action={this.hasAction && !this.hideLabel ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <div class=\"pds-textarea__label-wrapper\">\n <label htmlFor={this.componentId}>\n <span class={this.hideLabel ? 'visually-hidden' : ''}>\n {this.label}\n </span>\n </label>\n {!this.hideLabel && this.renderAction()}\n </div>\n }\n <div class=\"pds-textarea__field-wrapper\">\n <textarea\n ref={(el) => this.nativeTextarea = el }\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n autocomplete={this.autocomplete}\n class={this.textareaClassNames()}\n disabled={this.disabled}\n id={this.componentId}\n maxlength={this.maxLength}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n rows={this.rows}\n onBlur={this.onBlur}\n onChange={this.onTextareaChange}\n onFocus={this.onFocus}\n onInput={this.onInput}\n {...this.inheritedAttributes}\n >\n {value}\n </textarea>\n {this.renderCharacterCounter()}\n </div>\n {this.helperMessage &&\n <p\n class=\"pds-textarea__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.invalid &&\n <p\n aria-live=\"assertive\"\n class=\"pds-textarea__error-message\"\n id={messageId(this.componentId, 'error')}\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"w0DAAA,IAAMA,EAAW,qTCAjB,IAAMC,EAAoB,wECA1B,IAAMC,EAA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,GAAO,OAAAjE,EAAKkC,eAAiB+B,CAAtB,EACK,mBAAAwD,EAAkBxH,KAAKM,YAAaN,KAAKI,QAASJ,KAAKyH,eAAc,eACzEzH,KAAKI,QAAU,OAASoC,UACtCkF,aAAc1H,KAAK0H,aACnBtB,MAAOpG,KAAK2D,qBACZxD,SAAUH,KAAKG,SACfwH,GAAI3H,KAAKM,YACTsH,UAAW5H,KAAKuB,UAChBlB,KAAML,KAAKK,KACXwH,YAAa7H,KAAK6H,YAClBC,SAAU9H,KAAKO,SACfC,SAAUR,KAAKQ,SACfuH,KAAM/H,KAAK+H,KACXnH,OAAQZ,KAAKY,OACboH,SAAUhI,KAAK8B,iBACfZ,QAASlB,KAAKkB,QACdE,QAASpB,KAAKoB,SACVpB,KAAKC,qBAERQ,GAEFT,KAAKiG,0BAEPjG,KAAKyH,eACJtB,EAAA,KAAAiB,IAAA,2CACEhB,MAAM,+BACNuB,GAAIM,EAAUjI,KAAKM,YAAa,WAE/BN,KAAKyH,eAGTzH,KAAKI,SACJ+F,EAAA,KAAAiB,IAAA,uDACY,YACVhB,MAAM,8BACNuB,GAAIM,EAAUjI,KAAKM,YAAa,UAEhC6F,EAAA,YAAAiB,IAAA,2CAAUc,KAAMC,EAAQC,KAAK,UAC5BpI,KAAKqI,e,sZAjgBI,I","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"p-BZoPY2dP.system.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":[],"mappings":";;;;;;;;;;;;MAAA,MAAM,WAAW,GAAG,y4JAAy4J;;YCOh5J,QAAQ,wBAAA,MAAA;MALrB,IAAA,WAAA,CAAA,OAAA,EAAA;;;MAYE;;;;MAIG;MACK,QAAA,IAAW,CAAA,WAAA,GAAY,IAAI;MAEnC;;;;MAIG;MACK,QAAA,IAAQ,CAAA,QAAA,GAAW,IAAI;MAO/B;;;;;;MAMG;MACK,QAAA,IAAI,CAAA,IAAA,GAAqC,SAAS;MAE1D;;MAEG;MACM,QAAA,IAAS,CAAA,SAAA,GAAY,IAAI;MAElC;;MAEG;MACM,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;MA+GzC;UAlGC,gBAAgB,GAAA;MACd,QAAA,IAAI,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE;kBACrB,IAAI,CAAC,iBAAiB,EAAE;;;UAI5B,oBAAoB,GAAA;cAClB,IAAI,CAAC,OAAO,EAAE;;MAIhB,IAAA,oBAAoB,CAAC,WAAmB,EAAA;MACtC,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;MACrB,YAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC;MACtC,YAAA,IAAI,CAAC,YAAY,GAAG,SAAS;;MAE/B,QAAA,IAAI,WAAW,GAAG,CAAC,EAAE;kBACnB,IAAI,CAAC,iBAAiB,EAAE;;;MAK5B,IAAA,MAAM,OAAO,GAAA;;MAEX,QAA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AAiB,GAAG;;UAG3E,MAAM,GAAA;MACJ,QAAA,QACE,EAAC,IAAI,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAC,MAAM,EAAE,CAAC,IAAI,CAAC,SAAS,EAAA,EAC3B,CAAA,CAAA,KAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,KAAK,EAAE;MACL,gBAAA,WAAW,EAAE,IAAI;sBACjB,CAAC,CAAA,WAAA,EAAc,IAAI,CAAC,IAAI,CAAA,CAAE,GAAG,IAAI,CAAC,IAAI,KAAK,SAAS;sBACpD,0BAA0B,EAAE,IAAI,CAAC;MAClC,aAAA,EACD,IAAI,EAAC,OAAO,EAAA,WAAA,EACF,QAAQ,EAAA,EAEjB,IAAI,CAAC,UAAU,EAAE,EAElB,CAAM,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,KAAK,EAAC,oBAAoB,EAAA,EAC9B,CAAA,CAAA,MAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,CAAa,CACR,EAEN,IAAI,CAAC,WAAW,KACf,CAAA,CAAA,QAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EACE,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,mBAAmB,EACzB,OAAO,EAAE,MAAK;sBACZ,IAAI,CAAC,OAAO,EAAE;mBACf,gBACU,iBAAiB,EAAA,EAE5B,CAAU,CAAA,UAAA,EAAA,EAAA,GAAA,EAAA,0CAAA,EAAA,IAAI,EAAC,QAAQ,EAAA,CAAG,CACnB,CACV,CACG,CACD;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"p-iazk4jjL.system.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":[],"mappings":";;;;;;;;;;;;MAAA,MAAM,WAAW,GAAG,y4JAAy4J;;YCOh5J,QAAQ,wBAAA,MAAA;MALrB,IAAA,WAAA,CAAA,OAAA,EAAA;;;MAYE;;;;MAIG;MACK,QAAA,IAAW,CAAA,WAAA,GAAY,IAAI;MAEnC;;;;MAIG;MACK,QAAA,IAAQ,CAAA,QAAA,GAAW,IAAI;MAO/B;;;;;;MAMG;MACK,QAAA,IAAI,CAAA,IAAA,GAAqC,SAAS;MAE1D;;MAEG;MACM,QAAA,IAAS,CAAA,SAAA,GAAY,IAAI;MAElC;;MAEG;MACM,QAAA,IAAc,CAAA,cAAA,GAAY,KAAK;MA+GzC;UAlGC,gBAAgB,GAAA;MACd,QAAA,IAAI,IAAI,CAAC,QAAQ,GAAG,CAAC,EAAE;kBACrB,IAAI,CAAC,iBAAiB,EAAE;;;UAI5B,oBAAoB,GAAA;cAClB,IAAI,CAAC,OAAO,EAAE;;MAIhB,IAAA,oBAAoB,CAAC,WAAmB,EAAA;MACtC,QAAA,IAAI,IAAI,CAAC,YAAY,EAAE;MACrB,YAAA,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,YAAY,CAAC;MACtC,YAAA,IAAI,CAAC,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