@pine-ds/core 3.1.0 → 3.3.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 (705) hide show
  1. package/components/index.d.ts +20 -0
  2. package/components/index.js +10 -0
  3. package/components/index.js.map +1 -1
  4. package/components/index2.js +1 -1
  5. package/components/index2.js.map +1 -1
  6. package/components/mock-pds-modal.d.ts +11 -0
  7. package/components/mock-pds-modal.js +108 -0
  8. package/components/mock-pds-modal.js.map +1 -0
  9. package/components/pds-alert.d.ts +11 -0
  10. package/components/pds-alert.js +107 -0
  11. package/components/pds-alert.js.map +1 -0
  12. package/components/pds-avatar.js +1 -1
  13. package/components/pds-box.js +1 -110
  14. package/components/pds-box.js.map +1 -1
  15. package/components/pds-box2.js +115 -0
  16. package/components/pds-box2.js.map +1 -0
  17. package/components/pds-button2.js +1 -1
  18. package/components/pds-button2.js.map +1 -1
  19. package/components/pds-checkbox2.js +3 -3
  20. package/components/pds-chip.js +21 -6
  21. package/components/pds-chip.js.map +1 -1
  22. package/components/pds-copytext.js +1 -1
  23. package/components/pds-divider.js +1 -1
  24. package/components/pds-dropdown-menu-item.d.ts +11 -0
  25. package/components/pds-dropdown-menu-item.js +117 -0
  26. package/components/pds-dropdown-menu-item.js.map +1 -0
  27. package/components/pds-dropdown-menu-separator.d.ts +11 -0
  28. package/components/pds-dropdown-menu-separator.js +44 -0
  29. package/components/pds-dropdown-menu-separator.js.map +1 -0
  30. package/components/pds-dropdown-menu.d.ts +11 -0
  31. package/components/pds-dropdown-menu.js +1600 -0
  32. package/components/pds-dropdown-menu.js.map +1 -0
  33. package/components/pds-image.js +2 -2
  34. package/components/pds-input.js +98 -21
  35. package/components/pds-input.js.map +1 -1
  36. package/components/pds-link.js +1 -67
  37. package/components/pds-link.js.map +1 -1
  38. package/components/pds-link2.js +85 -0
  39. package/components/pds-link2.js.map +1 -0
  40. package/components/pds-loader2.js +1 -1
  41. package/components/pds-modal-content.d.ts +11 -0
  42. package/components/pds-modal-content.js +111 -0
  43. package/components/pds-modal-content.js.map +1 -0
  44. package/components/pds-modal-footer.d.ts +11 -0
  45. package/components/pds-modal-footer.js +35 -0
  46. package/components/pds-modal-footer.js.map +1 -0
  47. package/components/pds-modal-header.d.ts +11 -0
  48. package/components/pds-modal-header.js +35 -0
  49. package/components/pds-modal-header.js.map +1 -0
  50. package/components/pds-modal.d.ts +11 -0
  51. package/components/pds-modal.js +278 -0
  52. package/components/pds-modal.js.map +1 -0
  53. package/components/pds-popover.js +33 -1
  54. package/components/pds-popover.js.map +1 -1
  55. package/components/pds-progress.js +1 -1
  56. package/components/pds-radio.js +3 -3
  57. package/components/pds-row.js +1 -1
  58. package/components/pds-select.js +3 -3
  59. package/components/pds-select.js.map +1 -1
  60. package/components/pds-sortable-item.js +1 -1
  61. package/components/pds-sortable.js +1 -1
  62. package/components/pds-switch.js +3 -3
  63. package/components/pds-tab.js +3 -3
  64. package/components/pds-table-body.js +1 -1
  65. package/components/pds-table-cell2.js +2 -2
  66. package/components/pds-table-head-cell2.js +2 -2
  67. package/components/pds-table-head.js +1 -1
  68. package/components/pds-table-row.js +1 -1
  69. package/components/pds-table.js +1 -1
  70. package/components/pds-tabpanel.js +1 -1
  71. package/components/pds-tabs.js +1 -1
  72. package/components/pds-text.js +1 -53
  73. package/components/pds-text.js.map +1 -1
  74. package/components/pds-text2.js +58 -0
  75. package/components/pds-text2.js.map +1 -0
  76. package/components/pds-textarea.js +4 -4
  77. package/components/pds-toast.d.ts +11 -0
  78. package/components/pds-toast.js +137 -0
  79. package/components/pds-toast.js.map +1 -0
  80. package/components/pds-tooltip.js +299 -81
  81. package/components/pds-tooltip.js.map +1 -1
  82. package/components/utils.js +3 -2
  83. package/components/utils.js.map +1 -1
  84. package/dist/cjs/{index-CG2Rr2io.js → index-B0qLG6KJ.js} +3 -3
  85. package/dist/cjs/index-B0qLG6KJ.js.map +1 -0
  86. package/dist/cjs/loader.cjs.js +1 -1
  87. package/dist/cjs/mock-pds-modal.cjs.entry.js +86 -0
  88. package/dist/cjs/mock-pds-modal.cjs.entry.js.map +1 -0
  89. package/dist/cjs/mock-pds-modal.entry.cjs.js.map +1 -0
  90. package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
  91. package/dist/cjs/pds-alert.cjs.entry.js +66 -0
  92. package/dist/cjs/pds-alert.cjs.entry.js.map +1 -0
  93. package/dist/cjs/pds-alert.entry.cjs.js.map +1 -0
  94. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  95. package/dist/cjs/pds-box.cjs.entry.js +2 -2
  96. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  97. package/dist/cjs/pds-box.entry.cjs.js.map +1 -1
  98. package/dist/cjs/pds-button.cjs.entry.js +3 -3
  99. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  100. package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
  101. package/dist/cjs/pds-checkbox.cjs.entry.js +4 -4
  102. package/dist/cjs/pds-chip.cjs.entry.js +21 -7
  103. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  104. package/dist/cjs/pds-chip.entry.cjs.js.map +1 -1
  105. package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
  106. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  107. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +82 -0
  108. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js.map +1 -0
  109. package/dist/cjs/pds-dropdown-menu-item.entry.cjs.js.map +1 -0
  110. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +25 -0
  111. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js.map +1 -0
  112. package/dist/cjs/pds-dropdown-menu-separator.entry.cjs.js.map +1 -0
  113. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +1574 -0
  114. package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +1 -0
  115. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -0
  116. package/dist/cjs/pds-image.cjs.entry.js +2 -2
  117. package/dist/cjs/pds-input.cjs.entry.js +88 -21
  118. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  119. package/dist/cjs/pds-input.entry.cjs.js.map +1 -1
  120. package/dist/cjs/pds-link.cjs.entry.js +16 -4
  121. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  122. package/dist/cjs/pds-link.entry.cjs.js.map +1 -1
  123. package/dist/cjs/pds-loader.cjs.entry.js +1 -1
  124. package/dist/cjs/pds-modal-content.cjs.entry.js +93 -0
  125. package/dist/cjs/pds-modal-content.cjs.entry.js.map +1 -0
  126. package/dist/cjs/pds-modal-content.entry.cjs.js.map +1 -0
  127. package/dist/cjs/pds-modal-footer.cjs.entry.js +20 -0
  128. package/dist/cjs/pds-modal-footer.cjs.entry.js.map +1 -0
  129. package/dist/cjs/pds-modal-footer.entry.cjs.js.map +1 -0
  130. package/dist/cjs/pds-modal-header.cjs.entry.js +20 -0
  131. package/dist/cjs/pds-modal-header.cjs.entry.js.map +1 -0
  132. package/dist/cjs/pds-modal-header.entry.cjs.js.map +1 -0
  133. package/dist/cjs/pds-modal.cjs.entry.js +253 -0
  134. package/dist/cjs/pds-modal.cjs.entry.js.map +1 -0
  135. package/dist/cjs/pds-modal.entry.cjs.js.map +1 -0
  136. package/dist/cjs/pds-popover.cjs.entry.js +33 -1
  137. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -1
  138. package/dist/cjs/pds-popover.entry.cjs.js.map +1 -1
  139. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  140. package/dist/cjs/pds-radio.cjs.entry.js +4 -4
  141. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  142. package/dist/cjs/pds-select.cjs.entry.js +3 -4
  143. package/dist/cjs/pds-select.cjs.entry.js.map +1 -1
  144. package/dist/cjs/pds-select.entry.cjs.js.map +1 -1
  145. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  146. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  147. package/dist/cjs/pds-switch.cjs.entry.js +4 -4
  148. package/dist/cjs/pds-tab.cjs.entry.js +3 -3
  149. package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
  150. package/dist/cjs/pds-table-cell.cjs.entry.js +2 -2
  151. package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -3
  152. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  153. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  154. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  155. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  156. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  157. package/dist/cjs/pds-text.cjs.entry.js +2 -2
  158. package/dist/cjs/pds-text.cjs.entry.js.map +1 -1
  159. package/dist/cjs/pds-text.entry.cjs.js.map +1 -1
  160. package/dist/cjs/pds-textarea.cjs.entry.js +6 -6
  161. package/dist/cjs/pds-toast.cjs.entry.js +104 -0
  162. package/dist/cjs/pds-toast.cjs.entry.js.map +1 -0
  163. package/dist/cjs/pds-toast.entry.cjs.js.map +1 -0
  164. package/dist/cjs/pds-tooltip.cjs.entry.js +297 -79
  165. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  166. package/dist/cjs/pds-tooltip.entry.cjs.js.map +1 -1
  167. package/dist/cjs/pine-core.cjs.js +1 -1
  168. package/dist/cjs/{utils-CQKIgzWg.js → utils-jWx-Mf12.js} +5 -4
  169. package/dist/cjs/utils-jWx-Mf12.js.map +1 -0
  170. package/dist/collection/collection-manifest.json +10 -0
  171. package/dist/collection/components/pds-alert/pds-alert.css +108 -0
  172. package/dist/collection/components/pds-alert/pds-alert.js +198 -0
  173. package/dist/collection/components/pds-alert/pds-alert.js.map +1 -0
  174. package/dist/collection/components/pds-alert/pds-alert.tokens.css +32 -0
  175. package/dist/collection/components/pds-alert/stories/pds-alert.stories.js +97 -0
  176. package/dist/collection/components/pds-avatar/pds-avatar.js +1 -1
  177. package/dist/collection/components/pds-box/pds-box.js +8 -8
  178. package/dist/collection/components/pds-box/pds-box.js.map +1 -1
  179. package/dist/collection/components/pds-button/pds-button.css +17 -5
  180. package/dist/collection/components/pds-checkbox/pds-checkbox.js +3 -3
  181. package/dist/collection/components/pds-chip/pds-chip.css +48 -11
  182. package/dist/collection/components/pds-chip/pds-chip.js +42 -9
  183. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  184. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +18 -1
  185. package/dist/collection/components/pds-copytext/pds-copytext.js +1 -1
  186. package/dist/collection/components/pds-divider/pds-divider.js +1 -1
  187. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.css +68 -0
  188. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +219 -0
  189. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js.map +1 -0
  190. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.css +4 -0
  191. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +72 -0
  192. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js.map +1 -0
  193. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.css +16 -0
  194. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +328 -0
  195. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js.map +1 -0
  196. package/dist/collection/components/pds-dropdown-menu/stories/pds-dropdown-menu.stories.js +44 -0
  197. package/dist/collection/components/pds-image/pds-image.js +2 -2
  198. package/dist/collection/components/pds-input/pds-input.css +167 -43
  199. package/dist/collection/components/pds-input/pds-input.js +212 -21
  200. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  201. package/dist/collection/components/pds-input/stories/pds-input.stories.js +84 -0
  202. package/dist/collection/components/pds-link/pds-link.css +20 -1
  203. package/dist/collection/components/pds-link/pds-link.js +33 -2
  204. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  205. package/dist/collection/components/pds-link/stories/pds-link.stories.js +15 -2
  206. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  207. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.css +27 -0
  208. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +125 -0
  209. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js.map +1 -0
  210. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.css +8 -0
  211. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +18 -0
  212. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js.map +1 -0
  213. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.css +8 -0
  214. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +18 -0
  215. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js.map +1 -0
  216. package/dist/collection/components/pds-modal/pds-modal.css +79 -0
  217. package/dist/collection/components/pds-modal/pds-modal.js +426 -0
  218. package/dist/collection/components/pds-modal/pds-modal.js.map +1 -0
  219. package/dist/collection/components/pds-modal/stories/pds-modal.stories.js +415 -0
  220. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +256 -0
  221. package/dist/collection/components/pds-modal/test/mock-pds-modal.js.map +1 -0
  222. package/dist/collection/components/pds-popover/pds-popover.js +33 -1
  223. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -1
  224. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  225. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  226. package/dist/collection/components/pds-row/pds-row.js +1 -1
  227. package/dist/collection/components/pds-select/pds-select.css +34 -4
  228. package/dist/collection/components/pds-select/pds-select.js +20 -2
  229. package/dist/collection/components/pds-select/pds-select.js.map +1 -1
  230. package/dist/collection/components/pds-select/stories/pds-select.stories.js +2 -0
  231. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  232. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  233. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  234. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  235. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  236. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  237. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  238. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  239. package/dist/collection/components/pds-table/pds-table.js +1 -1
  240. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  241. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  242. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  243. package/dist/collection/components/pds-text/pds-text.js +2 -2
  244. package/dist/collection/components/pds-text/pds-text.js.map +1 -1
  245. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
  246. package/dist/collection/components/pds-toast/pds-toast.css +153 -0
  247. package/dist/collection/components/pds-toast/pds-toast.js +263 -0
  248. package/dist/collection/components/pds-toast/pds-toast.js.map +1 -0
  249. package/dist/collection/components/pds-toast/stories/pds-toast.stories.js +103 -0
  250. package/dist/collection/components/pds-tooltip/pds-tooltip.css +2 -12
  251. package/dist/collection/components/pds-tooltip/pds-tooltip.js +227 -26
  252. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  253. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +7 -3
  254. package/dist/collection/utils/interfaces.js +2 -0
  255. package/dist/collection/utils/interfaces.js.map +1 -0
  256. package/dist/collection/utils/overlay.js +66 -49
  257. package/dist/collection/utils/overlay.js.map +1 -1
  258. package/dist/collection/utils/utils.js +3 -2
  259. package/dist/collection/utils/utils.js.map +1 -1
  260. package/dist/docs.json +1816 -200
  261. package/dist/esm/{index-_4gljHh-.js → index-DpOSrebJ.js} +3 -3
  262. package/dist/esm/index-DpOSrebJ.js.map +1 -0
  263. package/dist/esm/loader.js +1 -1
  264. package/dist/esm/mock-pds-modal.entry.js +84 -0
  265. package/dist/esm/mock-pds-modal.entry.js.map +1 -0
  266. package/dist/esm/pds-accordion.entry.js +1 -1
  267. package/dist/esm/pds-alert.entry.js +64 -0
  268. package/dist/esm/pds-alert.entry.js.map +1 -0
  269. package/dist/esm/pds-avatar.entry.js +2 -2
  270. package/dist/esm/pds-box.entry.js +2 -2
  271. package/dist/esm/pds-box.entry.js.map +1 -1
  272. package/dist/esm/pds-button.entry.js +3 -3
  273. package/dist/esm/pds-button.entry.js.map +1 -1
  274. package/dist/esm/pds-checkbox.entry.js +4 -4
  275. package/dist/esm/pds-chip.entry.js +21 -7
  276. package/dist/esm/pds-chip.entry.js.map +1 -1
  277. package/dist/esm/pds-copytext.entry.js +2 -2
  278. package/dist/esm/pds-divider.entry.js +1 -1
  279. package/dist/esm/pds-dropdown-menu-item.entry.js +80 -0
  280. package/dist/esm/pds-dropdown-menu-item.entry.js.map +1 -0
  281. package/dist/esm/pds-dropdown-menu-separator.entry.js +23 -0
  282. package/dist/esm/pds-dropdown-menu-separator.entry.js.map +1 -0
  283. package/dist/esm/pds-dropdown-menu.entry.js +1572 -0
  284. package/dist/esm/pds-dropdown-menu.entry.js.map +1 -0
  285. package/dist/esm/pds-image.entry.js +2 -2
  286. package/dist/esm/pds-input.entry.js +88 -21
  287. package/dist/esm/pds-input.entry.js.map +1 -1
  288. package/dist/esm/pds-link.entry.js +16 -4
  289. package/dist/esm/pds-link.entry.js.map +1 -1
  290. package/dist/esm/pds-loader.entry.js +1 -1
  291. package/dist/esm/pds-modal-content.entry.js +91 -0
  292. package/dist/esm/pds-modal-content.entry.js.map +1 -0
  293. package/dist/esm/pds-modal-footer.entry.js +18 -0
  294. package/dist/esm/pds-modal-footer.entry.js.map +1 -0
  295. package/dist/esm/pds-modal-header.entry.js +18 -0
  296. package/dist/esm/pds-modal-header.entry.js.map +1 -0
  297. package/dist/esm/pds-modal.entry.js +251 -0
  298. package/dist/esm/pds-modal.entry.js.map +1 -0
  299. package/dist/esm/pds-popover.entry.js +33 -1
  300. package/dist/esm/pds-popover.entry.js.map +1 -1
  301. package/dist/esm/pds-progress.entry.js +1 -1
  302. package/dist/esm/pds-radio.entry.js +4 -4
  303. package/dist/esm/pds-row.entry.js +1 -1
  304. package/dist/esm/pds-select.entry.js +3 -4
  305. package/dist/esm/pds-select.entry.js.map +1 -1
  306. package/dist/esm/pds-sortable-item.entry.js +2 -2
  307. package/dist/esm/pds-sortable.entry.js +1 -1
  308. package/dist/esm/pds-switch.entry.js +4 -4
  309. package/dist/esm/pds-tab.entry.js +3 -3
  310. package/dist/esm/pds-table-body.entry.js +1 -1
  311. package/dist/esm/pds-table-cell.entry.js +2 -2
  312. package/dist/esm/pds-table-head-cell.entry.js +3 -3
  313. package/dist/esm/pds-table-head.entry.js +1 -1
  314. package/dist/esm/pds-table-row.entry.js +1 -1
  315. package/dist/esm/pds-table.entry.js +1 -1
  316. package/dist/esm/pds-tabpanel.entry.js +1 -1
  317. package/dist/esm/pds-tabs.entry.js +1 -1
  318. package/dist/esm/pds-text.entry.js +2 -2
  319. package/dist/esm/pds-text.entry.js.map +1 -1
  320. package/dist/esm/pds-textarea.entry.js +6 -6
  321. package/dist/esm/pds-toast.entry.js +102 -0
  322. package/dist/esm/pds-toast.entry.js.map +1 -0
  323. package/dist/esm/pds-tooltip.entry.js +297 -79
  324. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  325. package/dist/esm/pine-core.js +1 -1
  326. package/dist/esm/{utils-Dw9B1JDC.js → utils-DkabwBZT.js} +5 -4
  327. package/dist/esm/utils-DkabwBZT.js.map +1 -0
  328. package/dist/esm-es5/{index-_4gljHh-.js → index-DpOSrebJ.js} +1 -1
  329. package/dist/esm-es5/index-DpOSrebJ.js.map +1 -0
  330. package/dist/esm-es5/loader.js +1 -1
  331. package/dist/esm-es5/mock-pds-modal.entry.js +2 -0
  332. package/dist/esm-es5/mock-pds-modal.entry.js.map +1 -0
  333. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  334. package/dist/esm-es5/pds-alert.entry.js +2 -0
  335. package/dist/esm-es5/pds-alert.entry.js.map +1 -0
  336. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  337. package/dist/esm-es5/pds-box.entry.js +1 -1
  338. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  339. package/dist/esm-es5/pds-button.entry.js +1 -1
  340. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  341. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  342. package/dist/esm-es5/pds-chip.entry.js +1 -1
  343. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  344. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  345. package/dist/esm-es5/pds-divider.entry.js +1 -1
  346. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +2 -0
  347. package/dist/esm-es5/pds-dropdown-menu-item.entry.js.map +1 -0
  348. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +2 -0
  349. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js.map +1 -0
  350. package/dist/esm-es5/pds-dropdown-menu.entry.js +2 -0
  351. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -0
  352. package/dist/esm-es5/pds-image.entry.js +1 -1
  353. package/dist/esm-es5/pds-input.entry.js +1 -1
  354. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  355. package/dist/esm-es5/pds-link.entry.js +1 -1
  356. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  357. package/dist/esm-es5/pds-loader.entry.js +1 -1
  358. package/dist/esm-es5/pds-modal-content.entry.js +2 -0
  359. package/dist/esm-es5/pds-modal-content.entry.js.map +1 -0
  360. package/dist/esm-es5/pds-modal-footer.entry.js +2 -0
  361. package/dist/esm-es5/pds-modal-footer.entry.js.map +1 -0
  362. package/dist/esm-es5/pds-modal-header.entry.js +2 -0
  363. package/dist/esm-es5/pds-modal-header.entry.js.map +1 -0
  364. package/dist/esm-es5/pds-modal.entry.js +2 -0
  365. package/dist/esm-es5/pds-modal.entry.js.map +1 -0
  366. package/dist/esm-es5/pds-popover.entry.js +1 -1
  367. package/dist/esm-es5/pds-popover.entry.js.map +1 -1
  368. package/dist/esm-es5/pds-progress.entry.js +1 -1
  369. package/dist/esm-es5/pds-radio.entry.js +1 -1
  370. package/dist/esm-es5/pds-row.entry.js +1 -1
  371. package/dist/esm-es5/pds-select.entry.js +1 -1
  372. package/dist/esm-es5/pds-select.entry.js.map +1 -1
  373. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  374. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  375. package/dist/esm-es5/pds-switch.entry.js +1 -1
  376. package/dist/esm-es5/pds-tab.entry.js +1 -1
  377. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  378. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  379. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  380. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  381. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  382. package/dist/esm-es5/pds-table.entry.js +1 -1
  383. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  384. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  385. package/dist/esm-es5/pds-text.entry.js +1 -1
  386. package/dist/esm-es5/pds-text.entry.js.map +1 -1
  387. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  388. package/dist/esm-es5/pds-toast.entry.js +2 -0
  389. package/dist/esm-es5/pds-toast.entry.js.map +1 -0
  390. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  391. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  392. package/dist/esm-es5/pine-core.js +1 -1
  393. package/dist/esm-es5/utils-DkabwBZT.js +2 -0
  394. package/dist/esm-es5/utils-DkabwBZT.js.map +1 -0
  395. package/dist/pine-core/mock-pds-modal.entry.esm.js.map +1 -0
  396. package/dist/pine-core/{p-BjCOR1Nn.system.js.map → p--YvWqEjm.system.js.map} +1 -1
  397. package/dist/pine-core/p-00599bd8.entry.js +2 -0
  398. package/dist/pine-core/p-00599bd8.entry.js.map +1 -0
  399. package/dist/pine-core/{p-a14c8ab4.system.entry.js → p-03d8cb4c.system.entry.js} +2 -2
  400. package/dist/pine-core/{p-f94703c9.entry.js → p-04195bdb.entry.js} +2 -2
  401. package/dist/pine-core/p-065208a1.system.entry.js +2 -0
  402. package/dist/pine-core/p-065208a1.system.entry.js.map +1 -0
  403. package/dist/pine-core/p-07f45626.entry.js +2 -0
  404. package/dist/pine-core/p-07f45626.entry.js.map +1 -0
  405. package/dist/pine-core/{p-0486ad57.entry.js → p-0a11384e.entry.js} +2 -2
  406. package/dist/pine-core/p-0a87e2fc.system.entry.js +2 -0
  407. package/dist/pine-core/p-0a87e2fc.system.entry.js.map +1 -0
  408. package/dist/pine-core/p-0c30661b.system.entry.js +2 -0
  409. package/dist/pine-core/p-0c30661b.system.entry.js.map +1 -0
  410. package/dist/pine-core/{p-82e05dcf.entry.js → p-10e2feff.entry.js} +2 -2
  411. package/dist/pine-core/{p-d2110923.system.entry.js → p-111e7da2.system.entry.js} +2 -2
  412. package/dist/pine-core/{p-1178485a.system.entry.js → p-13481ef5.system.entry.js} +2 -2
  413. package/dist/pine-core/{p-1178485a.system.entry.js.map → p-13481ef5.system.entry.js.map} +1 -1
  414. package/dist/pine-core/{p-68de979e.entry.js → p-19c01019.entry.js} +2 -2
  415. package/dist/pine-core/p-1d395d27.entry.js +2 -0
  416. package/dist/pine-core/p-1d395d27.entry.js.map +1 -0
  417. package/dist/pine-core/{p-4ff0838c.entry.js → p-2007a0b5.entry.js} +2 -2
  418. package/dist/pine-core/{p-fed4c0c0.system.entry.js → p-27c0ffda.system.entry.js} +2 -2
  419. package/dist/pine-core/p-35917a1a.entry.js +2 -0
  420. package/dist/pine-core/p-39a31730.system.entry.js +2 -0
  421. package/dist/pine-core/p-39a31730.system.entry.js.map +1 -0
  422. package/dist/pine-core/p-3D0orTx_.system.js.map +1 -0
  423. package/dist/pine-core/p-3ea415b0.entry.js +2 -0
  424. package/dist/pine-core/p-3ea415b0.entry.js.map +1 -0
  425. package/dist/pine-core/p-44f10d3c.entry.js +2 -0
  426. package/dist/pine-core/p-44f10d3c.entry.js.map +1 -0
  427. package/dist/pine-core/p-47a7a65b.entry.js +2 -0
  428. package/dist/pine-core/p-47a7a65b.entry.js.map +1 -0
  429. package/dist/pine-core/{p-ca09f86a.system.entry.js → p-4b2aab79.system.entry.js} +2 -2
  430. package/dist/pine-core/p-513c16c7.entry.js +2 -0
  431. package/dist/pine-core/p-513c16c7.entry.js.map +1 -0
  432. package/dist/pine-core/{p-950427b2.entry.js → p-51cc93b3.entry.js} +2 -2
  433. package/dist/pine-core/p-5367f477.system.entry.js +2 -0
  434. package/dist/pine-core/{p-ceb48b05.system.entry.js → p-593df966.system.entry.js} +2 -2
  435. package/dist/pine-core/p-5a437fcd.system.entry.js +2 -0
  436. package/dist/pine-core/p-5a437fcd.system.entry.js.map +1 -0
  437. package/dist/pine-core/p-5c4aceb7.entry.js +2 -0
  438. package/dist/pine-core/p-5c4aceb7.entry.js.map +1 -0
  439. package/dist/pine-core/{p-598ade79.entry.js → p-5e1e7762.entry.js} +2 -2
  440. package/dist/pine-core/{p-9cdd57de.entry.js → p-60fbeb1c.entry.js} +2 -2
  441. package/dist/pine-core/p-624db3d6.system.entry.js +2 -0
  442. package/dist/pine-core/p-624db3d6.system.entry.js.map +1 -0
  443. package/dist/pine-core/p-65a875f6.entry.js +2 -0
  444. package/dist/pine-core/p-65a875f6.entry.js.map +1 -0
  445. package/dist/pine-core/{p-c0f0b368.system.entry.js → p-6a7936e7.system.entry.js} +2 -2
  446. package/dist/pine-core/{p-a97952fc.system.entry.js → p-73412ca9.system.entry.js} +2 -2
  447. package/dist/pine-core/{p-a97952fc.system.entry.js.map → p-73412ca9.system.entry.js.map} +1 -1
  448. package/dist/pine-core/{p-b390c427.entry.js → p-76e35041.entry.js} +2 -2
  449. package/dist/pine-core/{p-12bee2e5.entry.js → p-76f7cf21.entry.js} +2 -2
  450. package/dist/pine-core/{p-103b62a1.system.entry.js → p-78327c08.system.entry.js} +2 -2
  451. package/dist/pine-core/{p-792355e6.entry.js → p-78f29270.entry.js} +2 -2
  452. package/dist/pine-core/p-79cb7835.system.entry.js +2 -0
  453. package/dist/pine-core/p-79cb7835.system.entry.js.map +1 -0
  454. package/dist/pine-core/{p-fd9aa739.system.entry.js → p-7bb3a5d4.system.entry.js} +2 -2
  455. package/dist/pine-core/{p-e88d58f4.entry.js → p-80f36506.entry.js} +2 -2
  456. package/dist/pine-core/{p-eda0dc79.entry.js → p-8180b641.entry.js} +2 -2
  457. package/dist/pine-core/{p-85073252.system.entry.js → p-833b2170.system.entry.js} +2 -2
  458. package/dist/pine-core/p-86329612.entry.js +2 -0
  459. package/dist/pine-core/p-86329612.entry.js.map +1 -0
  460. package/dist/pine-core/p-8b6b0db7.entry.js +2 -0
  461. package/dist/pine-core/p-8b6b0db7.entry.js.map +1 -0
  462. package/dist/pine-core/p-8f06b020.entry.js +2 -0
  463. package/dist/pine-core/p-8f06b020.entry.js.map +1 -0
  464. package/dist/pine-core/p-942fa145.system.entry.js +2 -0
  465. package/dist/pine-core/p-942fa145.system.entry.js.map +1 -0
  466. package/dist/pine-core/{p-1d92261f.system.entry.js → p-959c8247.system.entry.js} +2 -2
  467. package/dist/pine-core/{p-5763df39.system.entry.js → p-96e9774e.system.entry.js} +2 -2
  468. package/dist/pine-core/{p-e281ac09.entry.js → p-99b5e1a5.entry.js} +2 -2
  469. package/dist/pine-core/p-9c01e81b.system.entry.js +2 -0
  470. package/dist/pine-core/p-9c01e81b.system.entry.js.map +1 -0
  471. package/dist/pine-core/p-9db1f179.entry.js +2 -0
  472. package/dist/pine-core/p-9db1f179.entry.js.map +1 -0
  473. package/dist/pine-core/p-A4_UN20E.system.js.map +1 -0
  474. package/dist/pine-core/p-B2gfQpwn.system.js.map +1 -0
  475. package/dist/pine-core/{p-CDhmuxC9.system.js.map → p-B5JFBYFw.system.js.map} +1 -1
  476. package/dist/pine-core/p-B5LBNcOw.system.js.map +1 -0
  477. package/dist/pine-core/{p-BJyPFOn0.system.js.map → p-BE1qV1Jc.system.js.map} +1 -1
  478. package/dist/pine-core/p-BEYGfY83.system.js.map +1 -0
  479. package/dist/pine-core/{p-B46WXJMn.system.js.map → p-BHZ6CSg4.system.js.map} +1 -1
  480. package/dist/pine-core/p-BHp2IZGP.system.js.map +1 -0
  481. package/dist/pine-core/{p-BSINexOf.system.js.map → p-BISuGf0f.system.js.map} +1 -1
  482. package/dist/pine-core/p-BPQAcMLl.system.js.map +1 -0
  483. package/dist/pine-core/{p-9niWVsdd.system.js.map → p-BaAcO8Mz.system.js.map} +1 -1
  484. package/dist/pine-core/p-BcuE4ZrB.system.js.map +1 -0
  485. package/dist/pine-core/{p-C94EgDFz.system.js → p-BhPuKJbQ.system.js} +2 -2
  486. package/dist/pine-core/p-BhPuKJbQ.system.js.map +1 -0
  487. package/dist/pine-core/p-BsL2GDnH.system.js +1 -1
  488. package/dist/pine-core/{p-DEsea81X.system.js.map → p-BwHnCFqU.system.js.map} +1 -1
  489. package/dist/pine-core/{p-DVVPJPOu.system.js.map → p-BxBtA60x.system.js.map} +1 -1
  490. package/dist/pine-core/{p-kMnJefdU.system.js.map → p-C0oRS1F9.system.js.map} +1 -1
  491. package/dist/pine-core/{p-eKz-xVcI.system.js.map → p-C2d75seA.system.js.map} +1 -1
  492. package/dist/pine-core/{p-BgcVBzVE.system.js.map → p-CGABEyvz.system.js.map} +1 -1
  493. package/dist/pine-core/{p-DkJgkLjR.system.js.map → p-CIc_XeAg.system.js.map} +1 -1
  494. package/dist/pine-core/p-CNYB6FL-.system.js.map +1 -0
  495. package/dist/pine-core/{p-BW-n3jjz.system.js.map → p-CNkajx9x.system.js.map} +1 -1
  496. package/dist/pine-core/{p-Dz6toWDZ.system.js.map → p-CS2nVL5p.system.js.map} +1 -1
  497. package/dist/pine-core/{p-BFPxUBwH.system.js.map → p-CTPMEWZT.system.js.map} +1 -1
  498. package/dist/pine-core/{p-Cg0JSYH5.system.js.map → p-CTWkFhWu.system.js.map} +1 -1
  499. package/dist/pine-core/{p-BoNavS-S.system.js.map → p-CcsZC7UR.system.js.map} +1 -1
  500. package/dist/pine-core/{p-D8WAvG2e.system.js.map → p-CdzfTGbZ.system.js.map} +1 -1
  501. package/dist/pine-core/p-CkoeYrxa.system.js.map +1 -0
  502. package/dist/pine-core/p-ClVQjta4.system.js.map +1 -0
  503. package/dist/pine-core/{p-C0cdB2AV.system.js.map → p-D2UtaGL2.system.js.map} +1 -1
  504. package/dist/pine-core/{p-YuC61pNM.system.js.map → p-DGyATOIf.system.js.map} +1 -1
  505. package/dist/pine-core/p-DMeT5CsE.system.js.map +1 -0
  506. package/dist/pine-core/p-DVhX1_nD.system.js.map +1 -0
  507. package/dist/pine-core/p-DeW-6a7f.system.js.map +1 -0
  508. package/dist/pine-core/{p-Cj21y714.system.js.map → p-DgTp_KeO.system.js.map} +1 -1
  509. package/dist/pine-core/p-DjXmy34u.system.js.map +1 -0
  510. package/dist/pine-core/p-DkabwBZT.js +2 -0
  511. package/dist/pine-core/p-DkabwBZT.js.map +1 -0
  512. package/dist/pine-core/{p-_4gljHh-.js → p-DpOSrebJ.js} +1 -1
  513. package/dist/pine-core/p-DpOSrebJ.js.map +1 -0
  514. package/dist/pine-core/{p-B4W0_y2p.system.js → p-DyDReOdO.system.js} +1 -1
  515. package/dist/pine-core/p-DyDReOdO.system.js.map +1 -0
  516. package/dist/pine-core/{p-IK9NvSRG.system.js.map → p-EqAbQY8l.system.js.map} +1 -1
  517. package/dist/pine-core/p-Ke8SGZqs.system.js.map +1 -0
  518. package/dist/pine-core/{p-CmTz2SvK.system.js.map → p-Mqxw-gWj.system.js.map} +1 -1
  519. package/dist/pine-core/{p-BVNW4NmT.system.js.map → p-PPIMiuZX.system.js.map} +1 -1
  520. package/dist/pine-core/p-PkSWq78_.system.js.map +1 -0
  521. package/dist/pine-core/{p-w3zTyPF1.system.js.map → p-UhZHDNH2.system.js.map} +1 -1
  522. package/dist/pine-core/p-a52b1413.entry.js +2 -0
  523. package/dist/pine-core/p-a52b1413.entry.js.map +1 -0
  524. package/dist/pine-core/{p-7b6b354a.system.entry.js → p-a556a328.system.entry.js} +2 -2
  525. package/dist/pine-core/{p-c7d4f436.system.entry.js → p-a98cda38.system.entry.js} +2 -2
  526. package/dist/pine-core/{p-c838b6ef.system.entry.js → p-ab7e4700.system.entry.js} +2 -2
  527. package/dist/pine-core/{p-6147b1ea.system.entry.js → p-aeaae417.system.entry.js} +2 -2
  528. package/dist/pine-core/{p-b902f535.entry.js → p-b2820acd.entry.js} +2 -2
  529. package/dist/pine-core/{p-f439922f.entry.js → p-bf699bad.entry.js} +2 -2
  530. package/dist/pine-core/{p-f439922f.entry.js.map → p-bf699bad.entry.js.map} +1 -1
  531. package/dist/pine-core/p-c1909a5d.system.entry.js +2 -0
  532. package/dist/pine-core/{p-9d0c1b2e.system.entry.js.map → p-c1909a5d.system.entry.js.map} +1 -1
  533. package/dist/pine-core/{p-e045e337.system.entry.js → p-c551191a.system.entry.js} +2 -2
  534. package/dist/pine-core/p-c5e1ed09.system.entry.js +2 -0
  535. package/dist/pine-core/p-c5e1ed09.system.entry.js.map +1 -0
  536. package/dist/pine-core/{p-596e0292.system.entry.js → p-cc21ddcc.system.entry.js} +2 -2
  537. package/dist/pine-core/p-d0adaca0.system.entry.js +2 -0
  538. package/dist/pine-core/p-d0adaca0.system.entry.js.map +1 -0
  539. package/dist/pine-core/{p-6ad460a7.entry.js → p-d28768d1.entry.js} +2 -2
  540. package/dist/pine-core/{p-5c396e75.entry.js → p-d35b3494.entry.js} +2 -2
  541. package/dist/pine-core/{p-98181fa8.system.entry.js → p-d553e05c.system.entry.js} +2 -2
  542. package/dist/pine-core/{p-a952d40c.system.entry.js → p-d6d453d8.system.entry.js} +2 -2
  543. package/dist/pine-core/p-dcda4ff5.system.entry.js +2 -0
  544. package/dist/pine-core/p-dcda4ff5.system.entry.js.map +1 -0
  545. package/dist/pine-core/p-ddcc4932.entry.js +2 -0
  546. package/dist/pine-core/{p-ed8c3064.system.entry.js → p-de550d9e.system.entry.js} +2 -2
  547. package/dist/pine-core/p-dfd5a5b6.system.entry.js +2 -0
  548. package/dist/pine-core/p-dfd5a5b6.system.entry.js.map +1 -0
  549. package/dist/pine-core/p-e562ad73.system.entry.js +2 -0
  550. package/dist/pine-core/p-e562ad73.system.entry.js.map +1 -0
  551. package/dist/pine-core/p-e9f004c5.entry.js +2 -0
  552. package/dist/pine-core/p-e9f004c5.entry.js.map +1 -0
  553. package/dist/pine-core/p-ef9ed75a.system.entry.js +2 -0
  554. package/dist/pine-core/p-ef9ed75a.system.entry.js.map +1 -0
  555. package/dist/pine-core/{p-4b59cae8.entry.js → p-f256dd8a.entry.js} +2 -2
  556. package/dist/pine-core/{p-4b59cae8.entry.js.map → p-f256dd8a.entry.js.map} +1 -1
  557. package/dist/pine-core/{p-b68cb43d.system.entry.js → p-f46c4618.system.entry.js} +2 -2
  558. package/dist/pine-core/p-f4fff209.system.entry.js +2 -0
  559. package/dist/pine-core/p-f4fff209.system.entry.js.map +1 -0
  560. package/dist/pine-core/{p-3ce8eb9f.entry.js → p-f6b226df.entry.js} +2 -2
  561. package/dist/pine-core/{p-6a716bff.entry.js → p-f99c59a8.entry.js} +2 -2
  562. package/dist/pine-core/{p-1b81a8ec.entry.js → p-fb1eb0c4.entry.js} +2 -2
  563. package/dist/pine-core/{p-8305cd4d.entry.js → p-fb2fb435.entry.js} +2 -2
  564. package/dist/pine-core/p-fd1ef1e1.entry.js +2 -0
  565. package/dist/pine-core/p-fd1ef1e1.entry.js.map +1 -0
  566. package/dist/pine-core/p-fdf3a5ff.entry.js +2 -0
  567. package/dist/pine-core/{p-d5838288.entry.js.map → p-fdf3a5ff.entry.js.map} +1 -1
  568. package/dist/pine-core/p-fed5f55e.system.entry.js +2 -0
  569. package/dist/pine-core/pds-alert.entry.esm.js.map +1 -0
  570. package/dist/pine-core/pds-box.entry.esm.js.map +1 -1
  571. package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
  572. package/dist/pine-core/pds-chip.entry.esm.js.map +1 -1
  573. package/dist/pine-core/pds-dropdown-menu-item.entry.esm.js.map +1 -0
  574. package/dist/pine-core/pds-dropdown-menu-separator.entry.esm.js.map +1 -0
  575. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -0
  576. package/dist/pine-core/pds-input.entry.esm.js.map +1 -1
  577. package/dist/pine-core/pds-link.entry.esm.js.map +1 -1
  578. package/dist/pine-core/pds-modal-content.entry.esm.js.map +1 -0
  579. package/dist/pine-core/pds-modal-footer.entry.esm.js.map +1 -0
  580. package/dist/pine-core/pds-modal-header.entry.esm.js.map +1 -0
  581. package/dist/pine-core/pds-modal.entry.esm.js.map +1 -0
  582. package/dist/pine-core/pds-popover.entry.esm.js.map +1 -1
  583. package/dist/pine-core/pds-select.entry.esm.js.map +1 -1
  584. package/dist/pine-core/pds-text.entry.esm.js.map +1 -1
  585. package/dist/pine-core/pds-toast.entry.esm.js.map +1 -0
  586. package/dist/pine-core/pds-tooltip.entry.esm.js.map +1 -1
  587. package/dist/pine-core/pine-core.esm.js +1 -1
  588. package/dist/types/components/pds-alert/pds-alert.d.ts +39 -0
  589. package/dist/types/components/pds-box/pds-box.d.ts +6 -6
  590. package/dist/types/components/pds-chip/pds-chip.d.ts +9 -1
  591. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.d.ts +43 -0
  592. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.d.ts +13 -0
  593. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu.d.ts +33 -0
  594. package/dist/types/components/pds-input/pds-input.d.ts +57 -9
  595. package/dist/types/components/pds-link/pds-link.d.ts +5 -0
  596. package/dist/types/components/pds-modal/pds-modal-content/pds-modal-content.d.ts +25 -0
  597. package/dist/types/components/pds-modal/pds-modal-footer/pds-modal-footer.d.ts +3 -0
  598. package/dist/types/components/pds-modal/pds-modal-header/pds-modal-header.d.ts +3 -0
  599. package/dist/types/components/pds-modal/pds-modal.d.ts +72 -0
  600. package/dist/types/components/pds-modal/test/mock-pds-modal.d.ts +63 -0
  601. package/dist/types/components/pds-select/pds-select.d.ts +4 -0
  602. package/dist/types/components/pds-toast/pds-toast.d.ts +57 -0
  603. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +31 -3
  604. package/dist/types/components.d.ts +609 -20
  605. package/dist/types/utils/interfaces.d.ts +6 -0
  606. package/dist/types/utils/overlay.d.ts +3 -3
  607. package/dist/types/utils/utils.d.ts +1 -1
  608. package/hydrate/index.js +3030 -280
  609. package/hydrate/index.mjs +3030 -280
  610. package/package.json +6 -2
  611. package/dist/cjs/index-CG2Rr2io.js.map +0 -1
  612. package/dist/cjs/utils-CQKIgzWg.js.map +0 -1
  613. package/dist/esm/index-_4gljHh-.js.map +0 -1
  614. package/dist/esm/utils-Dw9B1JDC.js.map +0 -1
  615. package/dist/esm-es5/index-_4gljHh-.js.map +0 -1
  616. package/dist/esm-es5/utils-Dw9B1JDC.js +0 -2
  617. package/dist/esm-es5/utils-Dw9B1JDC.js.map +0 -1
  618. package/dist/pine-core/p-13b9ed06.system.entry.js +0 -2
  619. package/dist/pine-core/p-1d690915.entry.js +0 -2
  620. package/dist/pine-core/p-294f9b1f.entry.js +0 -2
  621. package/dist/pine-core/p-38246e2f.entry.js +0 -2
  622. package/dist/pine-core/p-38246e2f.entry.js.map +0 -1
  623. package/dist/pine-core/p-38d2498e.system.entry.js +0 -2
  624. package/dist/pine-core/p-38d2498e.system.entry.js.map +0 -1
  625. package/dist/pine-core/p-433c6687.system.entry.js +0 -2
  626. package/dist/pine-core/p-433c6687.system.entry.js.map +0 -1
  627. package/dist/pine-core/p-4ccd2d5e.entry.js +0 -2
  628. package/dist/pine-core/p-4ccd2d5e.entry.js.map +0 -1
  629. package/dist/pine-core/p-4e7ca704.entry.js +0 -2
  630. package/dist/pine-core/p-4e7ca704.entry.js.map +0 -1
  631. package/dist/pine-core/p-6260135d.system.entry.js +0 -2
  632. package/dist/pine-core/p-6260135d.system.entry.js.map +0 -1
  633. package/dist/pine-core/p-82151ac5.entry.js +0 -2
  634. package/dist/pine-core/p-82151ac5.entry.js.map +0 -1
  635. package/dist/pine-core/p-8337c77c.entry.js +0 -2
  636. package/dist/pine-core/p-8337c77c.entry.js.map +0 -1
  637. package/dist/pine-core/p-953f619f.system.entry.js +0 -2
  638. package/dist/pine-core/p-9d0c1b2e.system.entry.js +0 -2
  639. package/dist/pine-core/p-B4W0_y2p.system.js.map +0 -1
  640. package/dist/pine-core/p-Bu94kuQa.system.js.map +0 -1
  641. package/dist/pine-core/p-C94EgDFz.system.js.map +0 -1
  642. package/dist/pine-core/p-CdkqpuKd.system.js.map +0 -1
  643. package/dist/pine-core/p-CnoLHUtr.system.js.map +0 -1
  644. package/dist/pine-core/p-Cz3zRtiB.system.js.map +0 -1
  645. package/dist/pine-core/p-DFmUOrRG.system.js.map +0 -1
  646. package/dist/pine-core/p-DhwO1z4v.system.js.map +0 -1
  647. package/dist/pine-core/p-Dv_jWtcr.system.js.map +0 -1
  648. package/dist/pine-core/p-Dw9B1JDC.js +0 -2
  649. package/dist/pine-core/p-Dw9B1JDC.js.map +0 -1
  650. package/dist/pine-core/p-_4gljHh-.js.map +0 -1
  651. package/dist/pine-core/p-d3ab594c.system.entry.js +0 -2
  652. package/dist/pine-core/p-d3ab594c.system.entry.js.map +0 -1
  653. package/dist/pine-core/p-d5838288.entry.js +0 -2
  654. package/dist/pine-core/p-d78bec50.system.entry.js +0 -2
  655. package/dist/pine-core/p-d78bec50.system.entry.js.map +0 -1
  656. package/dist/pine-core/p-d8e02aa9.system.entry.js +0 -2
  657. package/dist/pine-core/p-d8e02aa9.system.entry.js.map +0 -1
  658. package/dist/pine-core/p-f4898d4f.entry.js +0 -2
  659. package/dist/pine-core/p-f4898d4f.entry.js.map +0 -1
  660. /package/dist/pine-core/{p-a14c8ab4.system.entry.js.map → p-03d8cb4c.system.entry.js.map} +0 -0
  661. /package/dist/pine-core/{p-f94703c9.entry.js.map → p-04195bdb.entry.js.map} +0 -0
  662. /package/dist/pine-core/{p-0486ad57.entry.js.map → p-0a11384e.entry.js.map} +0 -0
  663. /package/dist/pine-core/{p-82e05dcf.entry.js.map → p-10e2feff.entry.js.map} +0 -0
  664. /package/dist/pine-core/{p-d2110923.system.entry.js.map → p-111e7da2.system.entry.js.map} +0 -0
  665. /package/dist/pine-core/{p-68de979e.entry.js.map → p-19c01019.entry.js.map} +0 -0
  666. /package/dist/pine-core/{p-4ff0838c.entry.js.map → p-2007a0b5.entry.js.map} +0 -0
  667. /package/dist/pine-core/{p-fed4c0c0.system.entry.js.map → p-27c0ffda.system.entry.js.map} +0 -0
  668. /package/dist/pine-core/{p-294f9b1f.entry.js.map → p-35917a1a.entry.js.map} +0 -0
  669. /package/dist/pine-core/{p-ca09f86a.system.entry.js.map → p-4b2aab79.system.entry.js.map} +0 -0
  670. /package/dist/pine-core/{p-950427b2.entry.js.map → p-51cc93b3.entry.js.map} +0 -0
  671. /package/dist/pine-core/{p-953f619f.system.entry.js.map → p-5367f477.system.entry.js.map} +0 -0
  672. /package/dist/pine-core/{p-ceb48b05.system.entry.js.map → p-593df966.system.entry.js.map} +0 -0
  673. /package/dist/pine-core/{p-598ade79.entry.js.map → p-5e1e7762.entry.js.map} +0 -0
  674. /package/dist/pine-core/{p-9cdd57de.entry.js.map → p-60fbeb1c.entry.js.map} +0 -0
  675. /package/dist/pine-core/{p-c0f0b368.system.entry.js.map → p-6a7936e7.system.entry.js.map} +0 -0
  676. /package/dist/pine-core/{p-b390c427.entry.js.map → p-76e35041.entry.js.map} +0 -0
  677. /package/dist/pine-core/{p-12bee2e5.entry.js.map → p-76f7cf21.entry.js.map} +0 -0
  678. /package/dist/pine-core/{p-103b62a1.system.entry.js.map → p-78327c08.system.entry.js.map} +0 -0
  679. /package/dist/pine-core/{p-792355e6.entry.js.map → p-78f29270.entry.js.map} +0 -0
  680. /package/dist/pine-core/{p-fd9aa739.system.entry.js.map → p-7bb3a5d4.system.entry.js.map} +0 -0
  681. /package/dist/pine-core/{p-e88d58f4.entry.js.map → p-80f36506.entry.js.map} +0 -0
  682. /package/dist/pine-core/{p-eda0dc79.entry.js.map → p-8180b641.entry.js.map} +0 -0
  683. /package/dist/pine-core/{p-85073252.system.entry.js.map → p-833b2170.system.entry.js.map} +0 -0
  684. /package/dist/pine-core/{p-1d92261f.system.entry.js.map → p-959c8247.system.entry.js.map} +0 -0
  685. /package/dist/pine-core/{p-5763df39.system.entry.js.map → p-96e9774e.system.entry.js.map} +0 -0
  686. /package/dist/pine-core/{p-e281ac09.entry.js.map → p-99b5e1a5.entry.js.map} +0 -0
  687. /package/dist/pine-core/{p-7b6b354a.system.entry.js.map → p-a556a328.system.entry.js.map} +0 -0
  688. /package/dist/pine-core/{p-c7d4f436.system.entry.js.map → p-a98cda38.system.entry.js.map} +0 -0
  689. /package/dist/pine-core/{p-c838b6ef.system.entry.js.map → p-ab7e4700.system.entry.js.map} +0 -0
  690. /package/dist/pine-core/{p-6147b1ea.system.entry.js.map → p-aeaae417.system.entry.js.map} +0 -0
  691. /package/dist/pine-core/{p-b902f535.entry.js.map → p-b2820acd.entry.js.map} +0 -0
  692. /package/dist/pine-core/{p-e045e337.system.entry.js.map → p-c551191a.system.entry.js.map} +0 -0
  693. /package/dist/pine-core/{p-596e0292.system.entry.js.map → p-cc21ddcc.system.entry.js.map} +0 -0
  694. /package/dist/pine-core/{p-6ad460a7.entry.js.map → p-d28768d1.entry.js.map} +0 -0
  695. /package/dist/pine-core/{p-5c396e75.entry.js.map → p-d35b3494.entry.js.map} +0 -0
  696. /package/dist/pine-core/{p-98181fa8.system.entry.js.map → p-d553e05c.system.entry.js.map} +0 -0
  697. /package/dist/pine-core/{p-a952d40c.system.entry.js.map → p-d6d453d8.system.entry.js.map} +0 -0
  698. /package/dist/pine-core/{p-1d690915.entry.js.map → p-ddcc4932.entry.js.map} +0 -0
  699. /package/dist/pine-core/{p-ed8c3064.system.entry.js.map → p-de550d9e.system.entry.js.map} +0 -0
  700. /package/dist/pine-core/{p-b68cb43d.system.entry.js.map → p-f46c4618.system.entry.js.map} +0 -0
  701. /package/dist/pine-core/{p-3ce8eb9f.entry.js.map → p-f6b226df.entry.js.map} +0 -0
  702. /package/dist/pine-core/{p-6a716bff.entry.js.map → p-f99c59a8.entry.js.map} +0 -0
  703. /package/dist/pine-core/{p-1b81a8ec.entry.js.map → p-fb1eb0c4.entry.js.map} +0 -0
  704. /package/dist/pine-core/{p-8305cd4d.entry.js.map → p-fb2fb435.entry.js.map} +0 -0
  705. /package/dist/pine-core/{p-13b9ed06.system.entry.js.map → p-fed5f55e.system.entry.js.map} +0 -0
@@ -50,27 +50,59 @@ export class PdsPopover {
50
50
  const offset = 8;
51
51
  switch (this.placement) {
52
52
  case 'top':
53
+ top = triggerRect.top - popoverRect.height - offset;
54
+ left = triggerRect.left + (triggerRect.width - popoverRect.width) / 2;
55
+ break;
56
+ case 'top-start':
53
57
  top = triggerRect.top - popoverRect.height - offset;
54
58
  left = triggerRect.left;
55
59
  break;
60
+ case 'top-end':
61
+ top = triggerRect.top - popoverRect.height - offset;
62
+ left = triggerRect.right - popoverRect.width;
63
+ break;
56
64
  case 'right':
65
+ top = triggerRect.top + (triggerRect.height - popoverRect.height) / 2;
66
+ left = triggerRect.right + offset;
67
+ break;
68
+ case 'right-start':
57
69
  top = triggerRect.top;
58
70
  left = triggerRect.right + offset;
59
71
  break;
72
+ case 'right-end':
73
+ top = triggerRect.bottom - popoverRect.height;
74
+ left = triggerRect.right + offset;
75
+ break;
60
76
  case 'bottom':
77
+ top = triggerRect.bottom + offset;
78
+ left = triggerRect.left + (triggerRect.width - popoverRect.width) / 2;
79
+ break;
80
+ case 'bottom-start':
61
81
  top = triggerRect.bottom + offset;
62
82
  left = triggerRect.left;
63
83
  break;
84
+ case 'bottom-end':
85
+ top = triggerRect.bottom + offset;
86
+ left = triggerRect.right - popoverRect.width;
87
+ break;
64
88
  case 'left':
89
+ top = triggerRect.top + (triggerRect.height - popoverRect.height) / 2;
90
+ left = triggerRect.left - popoverRect.width - offset;
91
+ break;
92
+ case 'left-start':
65
93
  top = triggerRect.top;
66
94
  left = triggerRect.left - popoverRect.width - offset;
67
95
  break;
96
+ case 'left-end':
97
+ top = triggerRect.bottom - popoverRect.height;
98
+ left = triggerRect.left - popoverRect.width - offset;
99
+ break;
68
100
  }
69
101
  popoverEl.style.top = `${top}px`;
70
102
  popoverEl.style.left = `${left}px`;
71
103
  }
72
104
  render() {
73
- return (h(Host, { key: '3bed0c38e97500efb2bffcef8321a6b38215c434' }, h("button", { key: '0db59e1815568cb980ce0bbe5ef3502177015a1d', class: "pds-popover__trigger", popoverTarget: this.componentId, popoverTargetAction: this.popoverTargetAction, onClick: this.handleClick }, this.text), h("div", { key: 'd8c70cd36614cb3fc83669a843b00af0d18b03d4', class: `pds-popover ${this.active ? 'pds-popover--active' : ''}`, id: this.componentId, popover: this.popoverType, style: { maxWidth: `${this.maxWidth}px` } }, h("slot", { key: 'e7408b199525e88c0e975f9cc3e96200f82ea23e' }))));
105
+ return (h(Host, { key: '35e5f4c21884f02b17dcb920e5c7ba73b8bed849' }, h("button", { key: '586880a84a4ad659a00500206e5b3c6c5e7e1a37', class: "pds-popover__trigger", popoverTarget: this.componentId, popoverTargetAction: this.popoverTargetAction, onClick: this.handleClick }, this.text), h("div", { key: 'fcb97e9b4033eef58bdca4915572b986dabde43c', class: `pds-popover ${this.active ? 'pds-popover--active' : ''}`, id: this.componentId, popover: this.popoverType, style: { maxWidth: `${this.maxWidth}px` } }, h("slot", { key: '1ffb626c69e06f17379ebf4ff4d5498f030909e8' }))));
74
106
  }
75
107
  static get is() { return "pds-popover"; }
76
108
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"pds-popover.js","sourceRoot":"","sources":["../../../src/components/pds-popover/pds-popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQjF,MAAM,OAAO,UAAU;IALvB;QAWE;;;WAGG;QACM,WAAM,GAAG,KAAK,CAAC;QAExB;;;WAGG;QACK,wBAAmB,GAA+B,MAAM,CAAC;QAEjE;;;WAGG;QACK,gBAAW,GAAsB,MAAM,CAAC;QAYhD;;;WAGG;QACK,aAAQ,GAAY,GAAG,CAAC;QAEhC;;;WAGG;QACsB,cAAS,GAAkB,OAAO,CAAC;KAiF7D;IA/EC,mBAAmB;QACjB,IAAI,CAAC,wBAAwB,EAAE,CAAC;IAClC,CAAC;IAKD,WAAW;QACT,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,CAAC;IAMD,YAAY;QACV,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAClC,CAAC;IACH,CAAC;IAEO,wBAAwB;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,uBAAuB,CAAgB,CAAC;QAC3F,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAgB,CAAC;QAElF,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS;YAAE,OAAO;QAErC,MAAM,WAAW,GAAG,SAAS,CAAC,qBAAqB,EAAE,CAAC;QACtD,MAAM,WAAW,GAAG,SAAS,CAAC,qBAAqB,EAAE,CAAC;QAEtD,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,MAAM,MAAM,GAAG,C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AAE;gBAEzC,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Listen, h, Prop, State } from '@stencil/core';\nimport { PlacementType } from '@utils/types';\n\n@Component({\n tag: 'pds-popover',\n styleUrl: 'pds-popover.scss',\n shadow: true,\n})\nexport class PdsPopover {\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsPopoverElement;\n\n /**\n * Determines when the popover is active\n * @defaultValue false\n */\n @State() active = false;\n\n /**\n * Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value.\n * @defaultValue \"show\"\n */\n @Prop() popoverTargetAction: 'show' | 'toggle' | 'hide' = 'show';\n\n /**\n * Determines the type of popover. Auto popovers can be \"light dismissed\" by clicking outside of the popover.\n * Manual popovers require the consumer to handle the visibility of the popover.\n */\n @Prop() popoverType: 'auto' | 'manual' = 'auto';\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Text that appears on the trigger element\n */\n @Prop() text: string;\n\n /**\n * Sets the maximum width of the popover content\n * @defaultValue 352\n */\n @Prop() maxWidth?: number = 352;\n\n /**\n * Determines the preferred position of the popover\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement: PlacementType = 'right';\n\n componentWillRender() {\n this.handlePopoverPositioning();\n }\n\n @Listen('click', {\n capture: true\n })\n handleClick() {\n this.active = !this.active;\n }\n\n @Listen('scroll', {\n target: 'window',\n capture: true\n })\n handleScroll() {\n if (this.active) {\n this.handlePopoverPositioning();\n }\n }\n\n private handlePopoverPositioning() {\n const triggerEl = this.el.shadowRoot.querySelector('.pds-popover__trigger') as HTMLElement;\n const popoverEl = this.el.shadowRoot.querySelector('div[popover]') as HTMLElement;\n\n if (!triggerEl || !popoverEl) return;\n\n const triggerRect = triggerEl.getBoundingClientRect();\n const popoverRect = popoverEl.getBoundingClientRect();\n\n let top = 0;\n let left = 0;\n const offset = 8\n\n switch (this.placement) {\n case 'top':\n top = triggerRect.top - popoverRect.height - offset;\n left = triggerRect.left;\n break;\n case 'right':\n top = triggerRect.top;\n left = triggerRect.right + offset;\n break;\n case 'bottom':\n top = triggerRect.bottom + offset;\n left = triggerRect.left;\n break;\n case 'left':\n top = triggerRect.top;\n left = triggerRect.left - popoverRect.width - offset;\n break;\n }\n\n popoverEl.style.top = `${top}px`;\n popoverEl.style.left = `${left}px`;\n }\n\n render() {\n return (\n <Host>\n <button\n class=\"pds-popover__trigger\"\n popoverTarget={this.componentId}\n popoverTargetAction={this.popoverTargetAction}\n onClick={this.handleClick}\n >\n {this.text}\n </button>\n <div\n class={`pds-popover ${this.active ? 'pds-popover--active' : ''}`}\n id={this.componentId}\n popover={this.popoverType}\n style={{ maxWidth: `${this.maxWidth}px` }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-popover.js","sourceRoot":"","sources":["../../../src/components/pds-popover/pds-popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQjF,MAAM,OAAO,UAAU;IALvB;QAWE;;;WAGG;QACM,WAAM,GAAG,KAAK,CAAC;QAExB;;;WAGG;QACK,wBAAmB,GAA+B,MAAM,CAAC;QAEjE;;;WAGG;QACK,gBAAW,GAAsB,MAAM,CAAC;QAYhD;;;WAGG;QACK,aAAQ,GAAY,GAAG,CAAC;QAEhC;;;WAGG;QACsB,cAAS,GAAkB,OAAO,CAAC;KAiH7D;IA/GC,mBAAmB;QACjB,IAAI,CAAC,wBAAwB,EAAE,C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, Listen, h, Prop, State } from '@stencil/core';\nimport { PlacementType } from '@utils/types';\n\n@Component({\n tag: 'pds-popover',\n styleUrl: 'pds-popover.scss',\n shadow: true,\n})\nexport class PdsPopover {\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsPopoverElement;\n\n /**\n * Determines when the popover is active\n * @defaultValue false\n */\n @State() active = false;\n\n /**\n * Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value.\n * @defaultValue \"show\"\n */\n @Prop() popoverTargetAction: 'show' | 'toggle' | 'hide' = 'show';\n\n /**\n * Determines the type of popover. Auto popovers can be \"light dismissed\" by clicking outside of the popover.\n * Manual popovers require the consumer to handle the visibility of the popover.\n */\n @Prop() popoverType: 'auto' | 'manual' = 'auto';\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Text that appears on the trigger element\n */\n @Prop() text: string;\n\n /**\n * Sets the maximum width of the popover content\n * @defaultValue 352\n */\n @Prop() maxWidth?: number = 352;\n\n /**\n * Determines the preferred position of the popover\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement: PlacementType = 'right';\n\n componentWillRender() {\n this.handlePopoverPositioning();\n }\n\n @Listen('click', {\n capture: true\n })\n handleClick() {\n this.active = !this.active;\n }\n\n @Listen('scroll', {\n target: 'window',\n capture: true\n })\n handleScroll() {\n if (this.active) {\n this.handlePopoverPositioning();\n }\n }\n\n private handlePopoverPositioning() {\n const triggerEl = this.el.shadowRoot.querySelector('.pds-popover__trigger') as HTMLElement;\n const popoverEl = this.el.shadowRoot.querySelector('div[popover]') as HTMLElement;\n\n if (!triggerEl || !popoverEl) return;\n\n const triggerRect = triggerEl.getBoundingClientRect();\n const popoverRect = popoverEl.getBoundingClientRect();\n\n let top = 0;\n let left = 0;\n const offset = 8\n\n switch (this.placement) {\n case 'top':\n top = triggerRect.top - popoverRect.height - offset;\n left = triggerRect.left + (triggerRect.width - popoverRect.width) / 2;\n break;\n case 'top-start':\n top = triggerRect.top - popoverRect.height - offset;\n left = triggerRect.left;\n break;\n case 'top-end':\n top = triggerRect.top - popoverRect.height - offset;\n left = triggerRect.right - popoverRect.width;\n break;\n case 'right':\n top = triggerRect.top + (triggerRect.height - popoverRect.height) / 2;\n left = triggerRect.right + offset;\n break;\n case 'right-start':\n top = triggerRect.top;\n left = triggerRect.right + offset;\n break;\n case 'right-end':\n top = triggerRect.bottom - popoverRect.height;\n left = triggerRect.right + offset;\n break;\n case 'bottom':\n top = triggerRect.bottom + offset;\n left = triggerRect.left + (triggerRect.width - popoverRect.width) / 2;\n break;\n case 'bottom-start':\n top = triggerRect.bottom + offset;\n left = triggerRect.left;\n break;\n case 'bottom-end':\n top = triggerRect.bottom + offset;\n left = triggerRect.right - popoverRect.width;\n break;\n case 'left':\n top = triggerRect.top + (triggerRect.height - popoverRect.height) / 2;\n left = triggerRect.left - popoverRect.width - offset;\n break;\n case 'left-start':\n top = triggerRect.top;\n left = triggerRect.left - popoverRect.width - offset;\n break;\n case 'left-end':\n top = triggerRect.bottom - popoverRect.height;\n left = triggerRect.left - popoverRect.width - offset;\n break;\n }\n\n popoverEl.style.top = `${top}px`;\n popoverEl.style.left = `${left}px`;\n }\n\n render() {\n return (\n <Host>\n <button\n class=\"pds-popover__trigger\"\n popoverTarget={this.componentId}\n popoverTargetAction={this.popoverTargetAction}\n onClick={this.handleClick}\n >\n {this.text}\n </button>\n <div\n class={`pds-popover ${this.active ? 'pds-popover--active' : ''}`}\n id={this.componentId}\n popover={this.popoverType}\n style={{ maxWidth: `${this.maxWidth}px` }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -18,7 +18,7 @@ export class PdsProgress {
18
18
  this.showPercent = false;
19
19
  }
20
20
  render() {
21
- return (h(Host, { key: 'a0a7cde165c1acc884366dfe7a368db5d7c4150e', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: 'c2a8f262e0a6393448a0bc8a05dc49f30c451754', class: "pds-progress" }, h("label", { key: '422c51d5b06ef6d99e23cb2721b861ba9611b1df', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: '57081cc95c8bb44d6fa26cd7d1f7933108982165', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: '37b88967a8584b43407314b0ba70faf4e43a9e5a', class: "pds-progress__percentage" }, this.percent, "%")));
21
+ return (h(Host, { key: '2a7768cc769f62579bfee6d8f9e6109d10df0aaf', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: '1eef3758e8c6e470f8cdd170e8d6c49e25bf9aa3', class: "pds-progress" }, h("label", { key: '5b75150a747a15379fdf0ee23b1be561e6d990e7', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: 'e20ad7d705d97ac11173ae515332fc1620a96328', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: '8bafb39b5976149b80e720952e625f60f1e3c73c', class: "pds-progress__percentage" }, this.percent, "%")));
22
22
  }
23
23
  static get is() { return "pds-progress"; }
24
24
  static get encapsulation() { return "shadow"; }
@@ -43,9 +43,9 @@ export class PdsRadio {
43
43
  return classNames.join(' ');
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '7366c979970c03d9c6b26d355ba2f14c2e040907', class: this.classNames() }, h("label", { key: 'c48405dc725f4d7b0a027e66c3b0b04e72843445', htmlFor: this.componentId }, h("input", { key: 'cd38a200a73572d2f07ada9bc1ec08cae0863044', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange }), h("span", { key: 'a21fb68b4326afb2bf25b08cf6022cd26f3c83ba', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
47
- h("div", { key: 'b4c201465e085096ac5fac05e43b01cee045310e', class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
48
- h("div", { key: '2c0475efbe1ebedd762de9d432864f5dab8f0448', class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '40ece3a429d9475c17f262d772cdb7332a7089b2', icon: danger, size: "small" }), this.errorMessage)));
46
+ return (h(Host, { key: '8c215fa4193cf8bd246cd83edf97b8316685714e', class: this.classNames() }, h("label", { key: '578530f26dd25f73ccbbb39c773290cd275920cf', htmlFor: this.componentId }, h("input", { key: '9ab61a2683246fae862feb5e432a0872288b7a87', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange }), h("span", { key: 'f48c47ddb347bf0d7388359665dbbf3abf1b4859', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
47
+ h("div", { key: 'b8dbb34af90eed82f69621ceaadd8da668f0b3de', class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
48
+ h("div", { key: 'e777e4f2397ba833aefb7e8cd4ab9a32ea93685a', class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '13bd73d91bb3d676757ac9f4dcfcef7d2a5fcc55', icon: danger, size: "small" }), this.errorMessage)));
49
49
  }
50
50
  static get is() { return "pds-radio"; }
51
51
  static get encapsulation() { return "scoped"; }
@@ -33,7 +33,7 @@ export class PdsRow {
33
33
  })), (this.minHeight && {
34
34
  'min-height': this.minHeight,
35
35
  }));
36
- return h(Host, { key: 'e898a1a24bbb1177b024d2c87d9388b136c8bde9', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
36
+ return h(Host, { key: '7641ed5798525661b1a100bfbce60ed271e76887', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
37
37
  }
38
38
  static get is() { return "pds-row"; }
39
39
  static get originalStyleUrls() {
@@ -1,3 +1,15 @@
1
+ :host {
2
+ --pds-select-background: var(--pine-color-background-container);
3
+ --pds-select-border: var(--pine-border);
4
+ --pds-select-border-radius: var(--pine-dimension-125);
5
+ --pds-select-border-radius-start-end: var(--pine-dimension-125);
6
+ --pds-select-border-radius-start-start: var(--pine-dimension-125);
7
+ --pds-select-border-radius-end-end: var(--pine-dimension-125);
8
+ --pds-select-border-radius-end-start: var(--pine-dimension-125);
9
+ --pds-select-min-height: 36px;
10
+ --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);
11
+ --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);
12
+ }
1
13
  :host .hidden,
2
14
  :host :host([hidden]) {
3
15
  display: none;
@@ -20,12 +32,17 @@ label {
20
32
 
21
33
  select {
22
34
  appearance: none;
23
- background: var(--pine-color-background-container);
24
- border: var(--pine-border);
25
- border-radius: var(--pine-dimension-125);
35
+ background-color: var(--pds-select-background);
36
+ border: var(--pds-select-border);
37
+ border-radius: var(--pds-select-border-radius);
38
+ border-bottom-left-radius: var(--pds-select-border-radius-end-start, var(--pds-select-border-radius));
39
+ border-bottom-right-radius: var(--pds-select-border-radius-end-end, var(--pds-select-border-radius));
40
+ border-top-left-radius: var(--pds-select-border-radius-start-start, var(--pds-select-border-radius));
41
+ border-top-right-radius: var(--pds-select-border-radius-start-end, var(--pds-select-border-radius));
26
42
  font: var(--pine-typography-body);
27
43
  grid-area: field;
28
44
  letter-spacing: var(--pine-letter-spacing);
45
+ min-height: var(--pds-select-min-height);
29
46
  padding: var(--pine-dimension-xs) var(--pine-dimension-150);
30
47
  padding-inline-end: var(--pine-dimension-450);
31
48
  position: relative;
@@ -84,8 +101,21 @@ select:has(~ .pds-select__message .pds-select__error-message):focus-visible {
84
101
  display: flex;
85
102
  grid-column: -1/-2;
86
103
  grid-row: 2/3;
87
- height: 2.5rem;
104
+ height: var(--pds-select-min-height);
88
105
  pointer-events: none;
89
106
  position: relative;
90
107
  z-index: 1;
108
+ }
109
+
110
+ .visually-hidden {
111
+ border: 0;
112
+ clip: rect(0 0 0 0);
113
+ clip-path: polygon(0 0, 0 0, 0 0);
114
+ height: 1px;
115
+ margin: -1px;
116
+ overflow: hidden;
117
+ padding: 0;
118
+ position: absolute;
119
+ white-space: nowrap;
120
+ width: 1px;
91
121
  }
@@ -114,8 +114,7 @@ export class PdsSelect {
114
114
  return classNames.join(' ');
115
115
  }
116
116
  render() {
117
- return (h(Host, { key: '6eea9a5492e4b7e415922bce0aa8f2295792a9e4', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames() }, h("div", { key: '3180e1eff494f846f395d9db6730926d86d1e54a', class: "pds-select" }, this.label &&
118
- h("label", { key: '90dc521ef10b81a9f58a0f0a2cfa4bc685312119', htmlFor: this.componentId }, this.label), h("select", { key: 'd6576d25601de6c41893568927b64e530bf9f266', autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onChange: this.onSelectUpdate, required: this.required, ref: (el) => (this.selectEl = el) }), h("div", { key: '87c53bb7bf315e170f60e5b58afcbf623d1aa65c', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: '8cafbc8cc8e23de0ab69b9d6b7d23c896df530b6', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: '48758d321edbd38ff6bd31ddd1902627202e196e', class: "pds-select__select-icon", icon: enlarge }))));
117
+ return (h(Host, { key: 'c0a0b391e6b5c35d5d3d7fce9d1f92583c582aa5', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames() }, h("div", { key: '4f91cfcfcc570cf79d8e6a2f86d741f471489591', class: "pds-select" }, !this.hideLabel && (h("label", { key: '21fa83cfdad6a46be1efa22ebc4df696ca49b7b1', htmlFor: this.componentId }, h("span", { key: '760e46f98327c3b8e9ceb48ee158202ce42b8bb6', class: this.hideLabel ? 'visually-hidden' : '' }, this.label))), h("select", { key: '78d92779624d84df9ae73515bbda74d9d44a8919', "aria-label": this.hideLabel ? this.label : undefined, autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onChange: this.onSelectUpdate, part: "select", required: this.required, ref: (el) => (this.selectEl = el) }), h("div", { key: '9a75bf791747df08018d59de49855410c6dc2312', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: '1a974b4e171971e922aa04e9a56d6e6f26635724', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: '9cbc569418617092229d660b34b2c17a2826c878', class: "pds-select__select-icon", icon: enlarge }))));
119
118
  }
120
119
  static get is() { return "pds-select"; }
121
120
  static get encapsulation() { return "shadow"; }
@@ -211,6 +210,25 @@ export class PdsSelect {
211
210
  "attribute": "error-message",
212
211
  "reflect": false
213
212
  },
213
+ "hideLabel": {
214
+ "type": "boolean",
215
+ "mutable": false,
216
+ "complexType": {
217
+ "original": "boolean",
218
+ "resolved": "boolean",
219
+ "references": {}
220
+ },
221
+ "required": false,
222
+ "optional": false,
223
+ "docs": {
224
+ "tags": [],
225
+ "text": "Visually hides the label text for instances where only the checkbox should be displayed. Label remains accessible to assistive technology such as screen readers."
226
+ },
227
+ "getter": false,
228
+ "setter": false,
229
+ "attribute": "hide-label",
230
+ "reflect": false
231
+ },
214
232
  "helperMessage": {
215
233
  "type": "string",
216
234
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"pds-select.js","sourceRoot":"","sources":["../../../src/components/pds-select/pds-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,SAAS,EAA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ventEmitter, Host, h, Prop, Watch } from '@stencil/core';\nimport { messageId } from '../../utils/form';\nimport { danger, enlarge } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-select',\n styleUrls: ['pds-select.tokens.scss', '../../global/styles/utils/label.scss', 'pds-select.scss'],\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\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 * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label?: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon icon={danger} size=\"small\"></pds-icon>\n {this.errorMessage}\n </p>\n );\n }\n\n private renderMessages() {\n if (!this.helperMessage && !this.errorMessage) return null;\n\n return (\n <div class=\"pds-select__message\">\n {this.getHelperMessage()}\n {this.getErrorMessage()}\n </div>\n );\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.classNames()}>\n <div class=\"pds-select\">\n {this.label &&\n <label htmlFor={this.componentId}>{this.label}</label>\n }\n <select\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\" icon={enlarge} />}\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-select.js","sourceRoot":"","sources":["../../../src/components/pds-select/pds-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAOvD,MAAM,OAAO,SAAS;IALtB;QAoBE;;;WAGG;QACK,aAAQ,GAAG,KAAK,CAAA;QA2BxB;;;WAGG;QACK,aAAQ,GAAG,KAAK,CAAC;QAOzB;;;WAGG;QACK,aAAQ,GAAG,KAAK,CAAC;QAoDzB;;UAEE;QACM,mBAAc,GAAG,CAAC,CAAQ,EAAE,EAAE;YACpC,MAAM,MAAM,GAAG,CAAC,CAAC,MAA2B,CAAA;YAE5C,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;iB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CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,IAAI,EAAC,QAAQ,EACb,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,EAAuB,CAAC,GAC9C;gBACV,2EAAiB,MAAM,EAAC,KAAK,EAAC,QAAQ,EAAC,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,aAAa,GAAG,EAAE,CAAC;oBAC3E,6DAAM,YAAY,EAAE,IAAI,CAAC,gBAAgB,GAAS,CAC9C;gBACL,IAAI,CAAC,cAAc,EAAE;gBACrB,CAAC,IAAI,CAAC,QAAQ,IAAI,iEAAU,KAAK,EAAC,yBAAyB,EAAC,IAAI,EAAE,OAAO,GAAI,CAC1E,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, h, Prop, Watch } from '@stencil/core';\nimport { messageId } from '../../utils/form';\nimport { danger, enlarge } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-select',\n styleUrls: ['pds-select.tokens.scss', '../../global/styles/utils/label.scss', 'pds-select.scss'],\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\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 * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Visually hides the label text for instances where only the checkbox should be displayed. Label remains accessible to assistive technology such as screen readers.\n */\n @Prop() hideLabel: boolean;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label?: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon icon={danger} size=\"small\"></pds-icon>\n {this.errorMessage}\n </p>\n );\n }\n\n private renderMessages() {\n if (!this.helperMessage && !this.errorMessage) return null;\n\n return (\n <div class=\"pds-select__message\">\n {this.getHelperMessage()}\n {this.getErrorMessage()}\n </div>\n );\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.classNames()}>\n <div class=\"pds-select\">\n {!this.hideLabel && (\n <label htmlFor={this.componentId}>\n <span class={this.hideLabel ? 'visually-hidden' : ''}>\n {this.label}\n </span>\n </label>\n )}\n <select\n aria-label={this.hideLabel ? this.label : undefined}\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n part=\"select\"\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\" icon={enlarge} />}\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -7,6 +7,7 @@ export default {
7
7
  autocomplete: null,
8
8
  disabled: false,
9
9
  errorMessage: null,
10
+ hideLabel: false,
10
11
  helperMessage: null,
11
12
  invalid: false,
12
13
  multiple: false,
@@ -52,6 +53,7 @@ const BaseTemplate = (args) =>
52
53
  disabled="${args.disabled}"
53
54
  error-message="${args.errorMessage}"
54
55
  helper-message="${args.helperMessage}"
56
+ hide-label="${args.hideLabel}"
55
57
  invalid="${args.invalid}"
56
58
  label="${args.label}"
57
59
  multiple="${args.multiple}"
@@ -25,7 +25,7 @@ export class PdsSortableItem {
25
25
  }
26
26
  }
27
27
  render() {
28
- return (h(Host, { key: '1a5e7d46d027bf6aa95b9d688e390ab42a40cc8d', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (h("div", { key: 'a6653d963a7a8f39937507dd94042943b4627686', class: "pds-sortable-item__handle" }, h("pds-icon", { key: 'a5c340eaf2f3f4d3fb4a0cc66371444d8844b078', icon: handleIcon }))), h("slot", { key: '647f24778a2450c040596c6bea279236b0148e0f' }), this.enableActions && (h("div", { key: '7b8c76b0519c21fe0bd29cb5ef3f213296f30ef4', class: "pds-sortable-item__actions" }, h("slot", { key: '636480cd939b04ed739a2e6a7dbc489680a18a57', name: "sortable-item-actions" })))));
28
+ return (h(Host, { key: 'b7817592ed6329f84e09ff5c5e200bc4305275bc', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (h("div", { key: 'c31df5f0c81bd684ac60690044e2409d0cbc7831', class: "pds-sortable-item__handle" }, h("pds-icon", { key: 'ff764a5ef70560c073474a7a51f45dd89df53190', icon: handleIcon }))), h("slot", { key: 'e1f33a5e56b37405b7e46bff24dc91e4ece71870' }), this.enableActions && (h("div", { key: '569563f7c7d5b069888a8c3ee8e50fd3d626b1b2', class: "pds-sortable-item__actions" }, h("slot", { key: '9ca544725723703ddac0de3f0bb9a4b0884d1571', name: "sortable-item-actions" })))));
29
29
  }
30
30
  static get is() { return "pds-sortable-item"; }
31
31
  static get encapsulation() { return "scoped"; }
@@ -44,7 +44,7 @@ export class PdsSortable {
44
44
  Sortable.create(this.el, sortableOptions);
45
45
  }
46
46
  render() {
47
- return (h(Host, { key: 'd120089730b34d5e787a34439f5d308e0c476c7a', class: this.classNames(), id: this.componentId }, h("slot", { key: 'b796c6aca1acde55085163049ecb869952cf8fb6' })));
47
+ return (h(Host, { key: 'c5353036ad9b108f742e55b1a28ebb449cf556d0', class: this.classNames(), id: this.componentId }, h("slot", { key: 'cb71736fb3388f5829476c5b4802d5aa5f811ac7' })));
48
48
  }
49
49
  static get is() { return "pds-sortable"; }
50
50
  static get encapsulation() { return "scoped"; }
@@ -43,9 +43,9 @@ export class PdsSwitch {
43
43
  this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '1ccbfafc2087558aae2fe82c9a97c640a9c3ab66', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("label", { key: '9cd218cace5c432f57f03514c91c27ba32eeb97f', htmlFor: this.componentId }, h("input", Object.assign({ key: 'ce995e0706a576dd36a4f1b31ca862ae614f7e2d', "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), h("span", { key: 'ea20d65944a429e24b8bd0ae58dafd7ece29e9a7', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
47
- h("div", { key: '45656b263c5169d0c6b60dd19e8537e0f12df342', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
48
- h("div", { key: '53ca563b419ce20ff4f4c81c90eee8f687e355b8', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'b8e38204aea3e9e1c542d5c945f57d389d800b66', icon: danger, size: "small" }), this.errorMessage)));
46
+ return (h(Host, { key: 'c91cd6368fff2cbcc6b4974505d94139fa2722c5', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("label", { key: 'e46f5f6a8073236ec0d55b2bcc8087dc32ad5a68', htmlFor: this.componentId }, h("input", Object.assign({ key: '9a2db3481c6c5e223819066df34bc220a139df03', "aria-describedby": assignDescription(this.componentId, this.invalid, this.errorMessage || this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, checked: this.checked, class: "pds-switch__input", disabled: this.disabled, id: this.componentId, name: this.name ? this.name : this.componentId, onChange: this.onSwitchUpdate, required: this.required, type: "checkbox", value: this.value }, this.inheritedAttributes)), h("span", { key: 'c3b138eb7b6800d01e5676e94c17988c8a52d4b2', class: this.hideLabel ? 'visually-hidden' : '' }, this.label)), this.helperMessage &&
47
+ h("div", { key: 'fcaaa0ea30c8ad155a0b43004e77549abf888a57', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
48
+ h("div", { key: '045311e393d47bebd536d8fbe220260d112ceb3f', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '035488794764ffaee3275edfa9a3e9fad2d11ddb', icon: danger, size: "small" }), this.errorMessage)));
49
49
  }
50
50
  static get is() { return "pds-switch"; }
51
51
  static get encapsulation() { return "shadow"; }
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class PdsTableBody {
3
3
  render() {
4
- return (h(Host, { key: 'c01028ed3108a0404ef3da77f1cf7a3b97a40b52', role: "rowgroup" }, h("slot", { key: 'f8491f02e732d28b01bc9cf2436c6edca3cbfc0e' })));
4
+ return (h(Host, { key: 'ac8d361f2d78eb929c17523843d2ca0ac53f6789', role: "rowgroup" }, h("slot", { key: '132782ab9466a9dbd4350247aae762d731e7aa71' })));
5
5
  }
6
6
  static get is() { return "pds-table-body"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -37,11 +37,11 @@ export class PdsTableCell {
37
37
  return classNames.join(' ');
38
38
  }
39
39
  render() {
40
- return (h(Host, { key: '4d7c288150875806711b91436c2673fb3cb55ee6', class: this.classNames(), role: "gridcell", style: this.tableRef &&
40
+ return (h(Host, { key: '801c1c1de26cb633280f308274861e8fd3629091', class: this.classNames(), role: "gridcell", style: this.tableRef &&
41
41
  this.tableRef.fixedColumn &&
42
42
  this.tableRef.selectable
43
43
  ? { '--fixed-cell-position': '40px' }
44
- : {} }, h("slot", { key: '817efadaba22b60410fffc5a41bcacc2d9656939' })));
44
+ : {} }, h("slot", { key: '0000fae3c9f199e3e80328afa7dd4347f429980b' })));
45
45
  }
46
46
  static get is() { return "pds-table-cell"; }
47
47
  static get encapsulation() { return "shadow"; }
@@ -32,7 +32,7 @@ export class PdsTableHead {
32
32
  }
33
33
  }
34
34
  render() {
35
- return (h(Host, { key: '13fc9ae7847a0fcb938b335b8b3c3aa6d243e387', role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: '960af222613758a88bd140a1d0aaec51114834df', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: '1b3bead263f15861010c2229b50dc8bcf9a08524', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected }))), h("slot", { key: '922d1b7aa67a44c91bbc70cc4d0e07abcada73aa' })));
35
+ return (h(Host, { key: '38eaecd17a328791e5993d020a490f63f67cd9d5', role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: '438086205f3e018f597c868e98f300d28c4f3384', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: '835bbe3c1f3a0fcb217f62cf862b9ea80ddff38e', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", hideLabel: true, checked: this.isSelected }))), h("slot", { key: 'aa5507016e20951eab86f62680720c54de5a5a86' })));
36
36
  }
37
37
  static get is() { return "pds-table-head"; }
38
38
  static get encapsulation() { return "shadow"; }
@@ -61,11 +61,11 @@ export class PdsTableHeadCell {
61
61
  return classNames.join(' ');
62
62
  }
63
63
  render() {
64
- return (h(Host, { key: '8b7b8472a8e7f05e8f5b3c7cc3de2cd45c7f3f57', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, style: this.tableRef &&
64
+ return (h(Host, { key: '2e75e9b8d1254ec21c786fd7e8304aaf38b26377', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, style: this.tableRef &&
65
65
  this.tableRef.fixedColumn &&
66
66
  this.tableRef.selectable
67
67
  ? { '--fixed-cell-position': '40px' }
68
- : {} }, h("slot", { key: '86266623f850b38494eb9f2cbca9baf54e082d7e' }), this.sortable && (h("pds-icon", { key: 'e1e7f058ecab154e50ae3200b75de55244b31428', icon: this.sortingDirection === 'asc' ? upSmall : downSmall }))));
68
+ : {} }, h("slot", { key: 'f9c7aae07eb7907a18dcf1a59813a2810341f2e9' }), this.sortable && (h("pds-icon", { key: 'd24a2f2c1db5bb15216ba64bc5a7299e18c23626', icon: this.sortingDirection === 'asc' ? upSmall : downSmall }))));
69
69
  }
70
70
  static get is() { return "pds-table-head-cell"; }
71
71
  static get encapsulation() { return "shadow"; }
@@ -43,7 +43,7 @@ export class PdsTableRow {
43
43
  }
44
44
  }
45
45
  render() {
46
- return (h(Host, { key: '8dfdc0200b16d9db1988eb655540eeae40baaffc', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: '120ea20f06308f95ea77e5c2f0664b673b367f3b', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: 'eaf6e41d00b5f5664d7ed99a993202c871822d0a', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected }))), h("slot", { key: 'e87e93a24e87b2a8faffd47fd4e4c1f22e63916c' })));
46
+ return (h(Host, { key: '651138280f94fd837a77e172c7e0ae5181ce8357', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: '739cd15863b52d60f9a00bffcf0d900b1ce1f545', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: '2b2000bc223fa72e2be0edea25e72e4d26a98fa1', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", hideLabel: true, checked: this.isSelected }))), h("slot", { key: '9d3be777c57b1ba4be066cc4ffa5496289fbdc02' })));
47
47
  }
48
48
  static get is() { return "pds-table-row"; }
49
49
  static get encapsulation() { return "shadow"; }
@@ -83,7 +83,7 @@ export class PdsTable {
83
83
  headerCheckbox.indeterminate = !allSelectedRows && !noneSelectedRows;
84
84
  }
85
85
  render() {
86
- return (h(Host, { key: '7208900f692fa61b763567f14cc505a9c0a8fd88', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable, tabindex: "0" }, h("slot", { key: '03f938219c8e0efd224b69e41db95f9f1b8b91c5' })));
86
+ return (h(Host, { key: '8fbd30502d23962edf8977e9d23b8e990f043e23', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable, tabindex: "0" }, h("slot", { key: '5041e5f588db255c747406c47bcfb3524cd58450' })));
87
87
  }
88
88
  static get is() { return "pds-table"; }
89
89
  static get encapsulation() { return "shadow"; }
@@ -11,9 +11,9 @@ export class PdsTab {
11
11
  this.pdsTabClick.emit([index, parentComponentId]);
12
12
  }
13
13
  render() {
14
- const availabilityTabEdgeInlineStart = (h("span", { key: 'f03f2a822bc603cf61483202ae9a249b8586ed02', class: "pds-tab-edge", role: "presentation" }));
15
- const availabilityTabEdgeInlineEnd = (h("span", { key: 'ccf11be9b997f174b555021cd50e07a4128c7182', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
16
- return (h(Host, { key: '8643374d23c0e3329f4f39f4ee5c025f95a06b30', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '469df7696312659dd0af97561fb92aad22f054c0', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, h("div", { key: 'e759f2c4d52db51f0b92bf4424bcc42d6b266e37', class: "pds-tab__content" }, h("slot", { key: '88226acf10ef132470aeefad0459dd377609b325' })))));
14
+ const availabilityTabEdgeInlineStart = (h("span", { key: 'cdf38229fcb4548cf188e401d8949f0fdddd8160', class: "pds-tab-edge", role: "presentation" }));
15
+ const availabilityTabEdgeInlineEnd = (h("span", { key: 'ffd68b6f2c2a521560495411455185d426d41446', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
16
+ return (h(Host, { key: 'afc723cff632012e447cecf9e4a2d7258b846d48', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: 'f7f814b9ef9ac505a741ce74abd91934116f975f', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, h("div", { key: '12fea0cfdf4a1e9acee497ff3e60cb276f6ae649', class: "pds-tab__content" }, h("slot", { key: 'bf4455e277526a453111542ce7c80a0621135f18' })))));
17
17
  }
18
18
  static get is() { return "pds-tab"; }
19
19
  static get originalStyleUrls() {
@@ -8,7 +8,7 @@ export class PdsTabpanel {
8
8
  this.selected = false; // eslint-disable-line @stencil-community/strict-mutable
9
9
  }
10
10
  render() {
11
- return (h(Host, { key: 'aef4969e26b1f6e98eebdba3bcfe7bebe2d75e52', slot: "tabpanels" }, h("div", { key: 'e90ebc7253b40a7c9d5e120584e8887855d3730c', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", { key: '79d03b545cf3fc73c54d660eb46661d5d1adbe64' }))));
11
+ return (h(Host, { key: '021d0c1f2fd740087bdd88069ac82455b8b5ede1', slot: "tabpanels" }, h("div", { key: '036aca9a0a29ba7cfc8aa0132eab027898a661f2', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", { key: 'd6b61e7b8af79204dbb5d3e421028715236a7bb1' }))));
12
12
  }
13
13
  static get is() { return "pds-tabpanel"; }
14
14
  static get originalStyleUrls() {
@@ -76,7 +76,7 @@ export class PdsTabs {
76
76
  this.passPropsToChildren();
77
77
  }
78
78
  render() {
79
- return (h(Host, { key: '33e22ebb5d4ae476cef5c4c95cb455b1c54fd083', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: '7219b9019640a50cfae5442b36ece10aff6a5e51', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, h("slot", { key: '32e2c4f0a1feec88f3693c720019b548932687ff', name: "tabs" })), h("slot", { key: '6235cfb2ef48346a96239c4a619c3ae900f6101e', name: "tabpanels" })));
79
+ return (h(Host, { key: 'ed163de5068114e7c7dd8314c7ed036859d0d0af', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: '4b0f2bce407b2ea5c7ceb1435f4f91531334557e', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, h("slot", { key: 'a61fb9bd35056f87233c1fec66dda175b201b265', name: "tabs" })), h("slot", { key: 'd78cc498b17ddd84015174802e4eb18fc5053ec2', name: "tabpanels" })));
80
80
  }
81
81
  static get is() { return "pds-tabs"; }
82
82
  static get encapsulation() { return "shadow"; }
@@ -17,7 +17,7 @@ export class PdsText {
17
17
  ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
18
18
  ${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}
19
19
  `;
20
- return (h(Tag, { key: '1c2ed722c094e0c6181fac5ea3ba2a2ef6751b33', style: this.color && setColor(this.color), class: typeClasses }, h("slot", { key: 'd1ba6f29df4f8b809a2a900c23c6c77480d3e3ca' })));
20
+ return (h(Tag, { key: '327e3b37535dd5eb28cf3ea0430e544261e570c0', style: this.color && setColor(this.color), class: typeClasses }, h("slot", { key: '97010a619baa6fd4a45e79ab9354097e99af0ae2' })));
21
21
  }
22
22
  static get is() { return "pds-text"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -203,7 +203,7 @@ export class PdsText {
203
203
  "getter": false,
204
204
  "setter": false,
205
205
  "attribute": "truncate",
206
- "reflect": false
206
+ "reflect": true
207
207
  }
208
208
  };
209
209
  }
@@ -1 +1 @@
1
- {"version":3,"file":"pds-text.js","sourceRoot":"","sources":["../../../src/components/pds-text/pds-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,MAAM,OAAO,OAAO;IALpB;QAsEE;;WAEG;QACK,QAAG,GAWF,GAAG,CAAC;KAyBd;IAlBC,MAAM;QACJ,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QAErB,MAAM,WAAW,GAAG;;QAEhB,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;QAC3F,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;QAC/F,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,kBAAkB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE;QACvF,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;QAC/F,IAAI,CAAC,UAAU,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,wBAAwB,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE;KAClH,CAAC;QAEF,OAAO,CACL,EAAC,GAAG,qDAAC,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,WAAW;YAChE,8DAAQ,CACJ,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Element } from '@stencil/core';\nimport { setColor } from '../../utils/utils';\n\n@Component({\n tag: 'pds-text',\n styleUrl: 'pds-text.scss',\n shadow: true,\n})\nexport class PdsText {\n @Element() el: HTMLPdsTextElement;\n /**\n * Sets the text alignment.\n */\n @Prop() align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Sets the text color.\n */\n @Prop() color?: string;\n\n /**\n * Sets the text decoration.\n */\n @Prop() decoration?:\n | 'strikethrough'\n | 'underline-dotted';\n\n /**\n * Set the bottom margin for the text.\n */\n @Prop() gutter?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs';\n\n /**\n * If set or `true`, the text will be italic.\n */\n @Prop() italic?: boolean;\n\n /**\n * Sets the font size.\n */\n @Prop() size?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6';\n\n /**\n * Sets the font weight.\n */\n @Prop() weight?:\n | 'extra-light'\n | 'light'\n | 'regular'\n | 'medium'\n | 'semibold'\n | 'bold';\n\n /**\n * Determines what semantic text tag to render.\n */\n @Prop() tag:\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'p'\n | 'code'\n | 'pre'\n | 'strong'\n | 'em' = \"p\";\n\n /**\n * If set or `true`, the text will be truncated. Must add a `width` to the element.\n */\n @Prop() truncate?: boolean;\n\n render() {\n const Tag = this.tag;\n\n const typeClasses = `\n pds-text\n ${this.align !== undefined && this.align.trim() !== '' ? `pds-text--align-${this.align}` : ''}\n ${this.gutter !== undefined && this.gutter.trim() !== '' ? `pds-text--gutter-${this.gutter}` : ''}\n ${this.size !== undefined && this.size.trim() !== '' ? `pds-text--size-${this.size}` : ''}\n ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}\n ${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}\n `;\n\n return (\n <Tag style={this.color && setColor(this.color)} class={typeClasses}>\n <slot />\n </Tag>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-text.js","sourceRoot":"","sources":["../../../src/components/pds-text/pds-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAO7C,MAAM,OAAO,OAAO;IALpB;QAsEE;;WAEG;QACK,QAAG,GAWF,GAAG,CAAC;KAyBd;IAlBC,MAAM;QACJ,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QAErB,MAAM,WAAW,GAAG;;QAEhB,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;QAC3F,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;QAC/F,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,kBAAkB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE;QACvF,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;QAC/F,IAAI,CAAC,UAAU,KAAK,SAAS,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,wBAAwB,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE;KAClH,CAAC;QAEF,OAAO,CACL,EAAC,GAAG,qDAAC,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,WAAW;YAChE,8DAAQ,CACJ,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop, Element } from '@stencil/core';\nimport { setColor } from '../../utils/utils';\n\n@Component({\n tag: 'pds-text',\n styleUrl: 'pds-text.scss',\n shadow: true,\n})\nexport class PdsText {\n @Element() el: HTMLPdsTextElement;\n /**\n * Sets the text alignment.\n */\n @Prop() align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Sets the text color.\n */\n @Prop() color?: string;\n\n /**\n * Sets the text decoration.\n */\n @Prop() decoration?:\n | 'strikethrough'\n | 'underline-dotted';\n\n /**\n * Set the bottom margin for the text.\n */\n @Prop() gutter?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs';\n\n /**\n * If set or `true`, the text will be italic.\n */\n @Prop() italic?: boolean;\n\n /**\n * Sets the font size.\n */\n @Prop() size?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs'\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6';\n\n /**\n * Sets the font weight.\n */\n @Prop() weight?:\n | 'extra-light'\n | 'light'\n | 'regular'\n | 'medium'\n | 'semibold'\n | 'bold';\n\n /**\n * Determines what semantic text tag to render.\n */\n @Prop() tag:\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'p'\n | 'code'\n | 'pre'\n | 'strong'\n | 'em' = \"p\";\n\n /**\n * If set or `true`, the text will be truncated. Must add a `width` to the element.\n */\n @Prop({ reflect: true }) truncate?: boolean;\n\n render() {\n const Tag = this.tag;\n\n const typeClasses = `\n pds-text\n ${this.align !== undefined && this.align.trim() !== '' ? `pds-text--align-${this.align}` : ''}\n ${this.gutter !== undefined && this.gutter.trim() !== '' ? `pds-text--gutter-${this.gutter}` : ''}\n ${this.size !== undefined && this.size.trim() !== '' ? `pds-text--size-${this.size}` : ''}\n ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}\n ${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}\n `;\n\n return (\n <Tag style={this.color && setColor(this.color)} class={typeClasses}>\n <slot />\n </Tag>\n );\n }\n}\n"]}
@@ -121,10 +121,10 @@ export class PdsTextarea {
121
121
  }
122
122
  render() {
123
123
  const value = this.getValue();
124
- return (h(Host, { key: '6c5edcf968b607f1fccc9992d1c4974e5be38e94', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null }, h("div", { key: 'f8d9eb6ec8ce7ed1a44c7802972a9bcb31d734a4', class: "pds-textarea" }, this.label &&
125
- h("label", { key: 'a7d3c200c40f61773b1139efe7ef86333975753e', htmlFor: this.componentId }, this.label), h("textarea", Object.assign({ key: '178f1393bce68322ce0597dd072bc5a60062f855', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, 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), value), this.helperMessage &&
126
- h("p", { key: 'a9d026ad670ae391a87d1ba6d183241ca2e52456', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
127
- h("p", { key: '0b794b20c024f40ee850183a797a8c3bcc0b600c', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: '889e8d84f53be8f963fd250f60fb54b35f46c7b5', icon: danger, size: "small" }), this.errorMessage))));
124
+ return (h(Host, { key: 'ebbf2c30176e11c92f04de02cad236496bc50a44', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null }, h("div", { key: '687811120416068af1b6d23a5fa8af149674669b', class: "pds-textarea" }, this.label &&
125
+ h("label", { key: '40fa708e95ff63881f3d41646bf99841625631d6', htmlFor: this.componentId }, this.label), h("textarea", Object.assign({ key: '543b7d6996b441b32f124f13025787c76340218d', ref: (el) => this.nativeTextarea = el, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, 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), value), this.helperMessage &&
126
+ h("p", { key: '47cd46e8c8c5daaa3ff6fa830e5dde3624403575', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
127
+ h("p", { key: 'd84d1aece21db4ef596c154919fe689d66f4bd66', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: 'cb4627c36e25e14f6699ad0cfddd4bf8528755e0', icon: danger, size: "small" }), this.errorMessage))));
128
128
  }
129
129
  static get is() { return "pds-textarea"; }
130
130
  static get encapsulation() { return "shadow"; }