@pine-ds/core 1.0.2 → 1.0.3

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 (612) hide show
  1. package/dist/cjs/index-33465846.js +24 -0
  2. package/dist/cjs/index-33465846.js.map +1 -0
  3. package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
  4. package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
  5. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  6. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  7. package/dist/cjs/pds-button.cjs.entry.js +1 -1
  8. package/dist/cjs/pds-chip.cjs.entry.js +1 -1
  9. package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
  10. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  11. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  12. package/dist/cjs/pds-link.cjs.entry.js +1 -1
  13. package/dist/cjs/pds-radio.cjs.entry.js +1 -1
  14. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  15. package/dist/cjs/pds-row.cjs.entry.js +4 -4
  16. package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
  17. package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
  18. package/dist/cjs/pds-table-head-cell.cjs.entry.js +1 -1
  19. package/dist/cjs/pds-textarea.cjs.entry.js +1 -1
  20. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  21. package/dist/collection/components/pds-accordion/stories/pds-accordion.stories.js +1 -1
  22. package/dist/collection/components/pds-box/pds-box.css +3 -2
  23. package/dist/collection/components/pds-radio/pds-radio.css +1 -1
  24. package/dist/collection/components/pds-row/pds-row.css +16 -14
  25. package/dist/collection/components/pds-row/pds-row.js +3 -3
  26. package/dist/collection/components/pds-row/pds-row.js.map +1 -1
  27. package/dist/collection/components/pds-textarea/pds-textarea.css +2 -1
  28. package/dist/docs.json +1 -1
  29. package/dist/esm/index-bdeab80c.js +14 -0
  30. package/dist/esm/index-bdeab80c.js.map +1 -0
  31. package/dist/esm/pds-accordion.entry.js +1 -1
  32. package/dist/esm/pds-avatar.entry.js +1 -1
  33. package/dist/esm/pds-box.entry.js +1 -1
  34. package/dist/esm/pds-box.entry.js.map +1 -1
  35. package/dist/esm/pds-button.entry.js +1 -1
  36. package/dist/esm/pds-chip.entry.js +1 -1
  37. package/dist/esm/pds-copytext.entry.js +1 -1
  38. package/dist/esm/pds-icon.entry.js +1 -1
  39. package/dist/esm/pds-icon.entry.js.map +1 -1
  40. package/dist/esm/pds-link.entry.js +1 -1
  41. package/dist/esm/pds-radio.entry.js +1 -1
  42. package/dist/esm/pds-radio.entry.js.map +1 -1
  43. package/dist/esm/pds-row.entry.js +4 -4
  44. package/dist/esm/pds-row.entry.js.map +1 -1
  45. package/dist/esm/pds-sortable-item.entry.js +1 -1
  46. package/dist/esm/pds-table-head-cell.entry.js +1 -1
  47. package/dist/esm/pds-textarea.entry.js +1 -1
  48. package/dist/esm/pds-textarea.entry.js.map +1 -1
  49. package/dist/esm-es5/index-bdeab80c.js +2 -0
  50. package/dist/esm-es5/index-bdeab80c.js.map +1 -0
  51. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  52. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  53. package/dist/esm-es5/pds-box.entry.js +1 -1
  54. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  55. package/dist/esm-es5/pds-button.entry.js +1 -1
  56. package/dist/esm-es5/pds-chip.entry.js +1 -1
  57. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  58. package/dist/esm-es5/pds-icon.entry.js +1 -1
  59. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  60. package/dist/esm-es5/pds-link.entry.js +1 -1
  61. package/dist/esm-es5/pds-radio.entry.js +1 -1
  62. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  63. package/dist/esm-es5/pds-row.entry.js +1 -1
  64. package/dist/esm-es5/pds-row.entry.js.map +1 -1
  65. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  66. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  67. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  68. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  69. package/dist/pine-core/p-0af86d62.entry.js +2 -0
  70. package/dist/pine-core/p-0af86d62.entry.js.map +1 -0
  71. package/dist/pine-core/{p-5df59e63.system.entry.js → p-12e537ba.system.entry.js} +2 -2
  72. package/dist/pine-core/{p-52e6f836.entry.js → p-1330a135.entry.js} +2 -2
  73. package/dist/pine-core/p-1330a135.entry.js.map +1 -0
  74. package/dist/pine-core/{p-51f81513.entry.js → p-1ae7f6a1.entry.js} +2 -2
  75. package/dist/pine-core/p-2250dc45.entry.js +2 -0
  76. package/dist/pine-core/p-2250dc45.entry.js.map +1 -0
  77. package/dist/pine-core/{p-bbaaa246.system.entry.js → p-2af2432d.system.entry.js} +2 -2
  78. package/dist/pine-core/{p-70481699.entry.js → p-30ca2db1.entry.js} +2 -2
  79. package/dist/pine-core/p-30cb97ee.system.entry.js +2 -0
  80. package/dist/pine-core/p-30cb97ee.system.entry.js.map +1 -0
  81. package/dist/pine-core/p-320e4c53.system.entry.js +2 -0
  82. package/dist/pine-core/p-320e4c53.system.entry.js.map +1 -0
  83. package/dist/pine-core/p-3ca20edb.system.entry.js +2 -0
  84. package/dist/pine-core/p-3ca20edb.system.entry.js.map +1 -0
  85. package/dist/pine-core/{p-bec6d20b.system.entry.js → p-3caa5870.system.entry.js} +2 -2
  86. package/dist/pine-core/p-3caa5870.system.entry.js.map +1 -0
  87. package/dist/pine-core/{p-c3de3fb3.system.entry.js → p-3e527956.system.entry.js} +2 -2
  88. package/dist/pine-core/p-466a165f.entry.js +2 -0
  89. package/dist/pine-core/p-466a165f.entry.js.map +1 -0
  90. package/dist/pine-core/{p-0eb4e674.entry.js → p-51651124.entry.js} +2 -2
  91. package/dist/pine-core/{p-7546babc.entry.js → p-564e8159.entry.js} +2 -2
  92. package/dist/pine-core/p-5f9fa644.system.entry.js +2 -0
  93. package/dist/pine-core/p-5f9fa644.system.entry.js.map +1 -0
  94. package/dist/pine-core/p-5ffec55d.system.js +2 -0
  95. package/dist/pine-core/p-5ffec55d.system.js.map +1 -0
  96. package/dist/pine-core/p-7611d073.system.js +1 -1
  97. package/dist/pine-core/{p-bc4bbda0.entry.js → p-825cdc06.entry.js} +2 -2
  98. package/dist/pine-core/{p-de79befb.system.entry.js → p-860ceab3.system.entry.js} +2 -2
  99. package/dist/pine-core/{p-f12c58dc.system.entry.js → p-98735309.system.entry.js} +2 -2
  100. package/dist/pine-core/{p-ad891586.system.entry.js → p-9a05b9ce.system.entry.js} +2 -2
  101. package/dist/pine-core/{p-b103a7a9.entry.js → p-b129ad2e.entry.js} +2 -2
  102. package/dist/pine-core/p-b7897f94.js +2 -0
  103. package/dist/pine-core/p-b7897f94.js.map +1 -0
  104. package/dist/pine-core/{p-75951ef3.system.entry.js → p-bb099830.system.entry.js} +2 -2
  105. package/dist/pine-core/{p-6e315022.entry.js → p-bc3782a0.entry.js} +2 -2
  106. package/dist/pine-core/{p-e3455d30.system.entry.js → p-d99998a4.system.entry.js} +2 -2
  107. package/dist/pine-core/{p-d0828f12.entry.js → p-e94b733c.entry.js} +2 -2
  108. package/dist/pine-core/p-edbc3b8d.entry.js +2 -0
  109. package/dist/pine-core/p-edbc3b8d.entry.js.map +1 -0
  110. package/dist/pine-core/pine-core.esm.js +1 -1
  111. package/dist/pine-core/svg/access-key.svg +1 -1
  112. package/dist/pine-core/svg/add-circle.svg +1 -1
  113. package/dist/pine-core/svg/add-image.svg +1 -1
  114. package/dist/pine-core/svg/add-small.svg +1 -1
  115. package/dist/pine-core/svg/add-square.svg +1 -1
  116. package/dist/pine-core/svg/add.svg +1 -1
  117. package/dist/pine-core/svg/advanced.svg +1 -1
  118. package/dist/pine-core/svg/ai-sparkle.svg +1 -1
  119. package/dist/pine-core/svg/ai-writer-filled.svg +1 -1
  120. package/dist/pine-core/svg/ai-writer.svg +1 -1
  121. package/dist/pine-core/svg/align-center.svg +1 -1
  122. package/dist/pine-core/svg/align-justify.svg +1 -1
  123. package/dist/pine-core/svg/align-left.svg +1 -1
  124. package/dist/pine-core/svg/align-right.svg +1 -1
  125. package/dist/pine-core/svg/app-store.svg +1 -1
  126. package/dist/pine-core/svg/archive.svg +1 -1
  127. package/dist/pine-core/svg/arrow-corner.svg +1 -1
  128. package/dist/pine-core/svg/arrow-down.svg +1 -1
  129. package/dist/pine-core/svg/arrow-left.svg +1 -1
  130. package/dist/pine-core/svg/arrow-right.svg +1 -1
  131. package/dist/pine-core/svg/arrow-up.svg +1 -1
  132. package/dist/pine-core/svg/assessment.svg +1 -1
  133. package/dist/pine-core/svg/at-sign.svg +1 -1
  134. package/dist/pine-core/svg/attach.svg +1 -1
  135. package/dist/pine-core/svg/automations.svg +1 -1
  136. package/dist/pine-core/svg/ban.svg +1 -1
  137. package/dist/pine-core/svg/bank.svg +1 -1
  138. package/dist/pine-core/svg/bell.svg +1 -1
  139. package/dist/pine-core/svg/block.svg +1 -1
  140. package/dist/pine-core/svg/blog-filled.svg +1 -1
  141. package/dist/pine-core/svg/blog.svg +1 -1
  142. package/dist/pine-core/svg/bold.svg +1 -1
  143. package/dist/pine-core/svg/broadcast.svg +1 -1
  144. package/dist/pine-core/svg/button.svg +1 -1
  145. package/dist/pine-core/svg/calendar-date.svg +1 -1
  146. package/dist/pine-core/svg/calendar-schedule.svg +1 -1
  147. package/dist/pine-core/svg/calendar-simple.svg +1 -1
  148. package/dist/pine-core/svg/card-amex.svg +1 -0
  149. package/dist/pine-core/svg/card-android.svg +1 -0
  150. package/dist/pine-core/svg/card-apple.svg +1 -0
  151. package/dist/pine-core/svg/card-diners-club.svg +1 -0
  152. package/dist/pine-core/svg/card-discover.svg +1 -0
  153. package/dist/pine-core/svg/card-generic.svg +1 -0
  154. package/dist/pine-core/svg/card-gpay.svg +1 -0
  155. package/dist/pine-core/svg/card-mastercard.svg +1 -0
  156. package/dist/pine-core/svg/card-paypal.svg +1 -0
  157. package/dist/pine-core/svg/card-stripe.svg +1 -0
  158. package/dist/pine-core/svg/card-update.svg +1 -1
  159. package/dist/pine-core/svg/card-visa.svg +1 -0
  160. package/dist/pine-core/svg/caret-down.svg +1 -1
  161. package/dist/pine-core/svg/caret-left.svg +1 -1
  162. package/dist/pine-core/svg/caret-right.svg +1 -1
  163. package/dist/pine-core/svg/caret-up.svg +1 -1
  164. package/dist/pine-core/svg/cart-add.svg +1 -1
  165. package/dist/pine-core/svg/cart.svg +1 -1
  166. package/dist/pine-core/svg/certificate.svg +1 -1
  167. package/dist/pine-core/svg/chart-filled.svg +1 -0
  168. package/dist/pine-core/svg/chart.svg +1 -0
  169. package/dist/pine-core/svg/check-circle-filled.svg +1 -1
  170. package/dist/pine-core/svg/check-circle.svg +1 -1
  171. package/dist/pine-core/svg/check.svg +1 -1
  172. package/dist/pine-core/svg/circle-1.svg +1 -1
  173. package/dist/pine-core/svg/circle-2.svg +1 -1
  174. package/dist/pine-core/svg/circle-3.svg +1 -1
  175. package/dist/pine-core/svg/circle-4.svg +1 -1
  176. package/dist/pine-core/svg/circle-5.svg +1 -1
  177. package/dist/pine-core/svg/circle-6.svg +1 -1
  178. package/dist/pine-core/svg/circle-7.svg +1 -1
  179. package/dist/pine-core/svg/circle-8.svg +1 -1
  180. package/dist/pine-core/svg/circle-9.svg +1 -1
  181. package/dist/pine-core/svg/circle-a.svg +1 -0
  182. package/dist/pine-core/svg/circle-b.svg +1 -0
  183. package/dist/pine-core/svg/circle-dashed.svg +1 -0
  184. package/dist/pine-core/svg/clock.svg +1 -1
  185. package/dist/pine-core/svg/closed-captions.svg +1 -1
  186. package/dist/pine-core/svg/cloud-upload.svg +1 -1
  187. package/dist/pine-core/svg/code-block.svg +1 -1
  188. package/dist/pine-core/svg/code.svg +1 -1
  189. package/dist/pine-core/svg/color.svg +1 -1
  190. package/dist/pine-core/svg/columns.svg +1 -1
  191. package/dist/pine-core/svg/comment-no.svg +1 -0
  192. package/dist/pine-core/svg/comment.svg +1 -1
  193. package/dist/pine-core/svg/connect.svg +1 -1
  194. package/dist/pine-core/svg/contact.svg +1 -1
  195. package/dist/pine-core/svg/conversation.svg +1 -1
  196. package/dist/pine-core/svg/copy.svg +1 -1
  197. package/dist/pine-core/svg/coupon.svg +1 -1
  198. package/dist/pine-core/svg/course.svg +1 -1
  199. package/dist/pine-core/svg/creator-studio-filled.svg +1 -1
  200. package/dist/pine-core/svg/creator-studio.svg +1 -1
  201. package/dist/pine-core/svg/cursor-pointer.svg +1 -1
  202. package/dist/pine-core/svg/cursor.svg +1 -1
  203. package/dist/pine-core/svg/custom-field.svg +1 -1
  204. package/dist/pine-core/svg/customize.svg +1 -1
  205. package/dist/pine-core/svg/danger-filled.svg +1 -1
  206. package/dist/pine-core/svg/danger.svg +1 -1
  207. package/dist/pine-core/svg/delete-circle.svg +1 -1
  208. package/dist/pine-core/svg/delete-key.svg +1 -1
  209. package/dist/pine-core/svg/delete-x.svg +1 -1
  210. package/dist/pine-core/svg/dollar.svg +1 -0
  211. package/dist/pine-core/svg/dot-menu-horizontal.svg +1 -1
  212. package/dist/pine-core/svg/down-small.svg +1 -1
  213. package/dist/pine-core/svg/download.svg +1 -1
  214. package/dist/pine-core/svg/downsell.svg +1 -1
  215. package/dist/pine-core/svg/draft.svg +1 -1
  216. package/dist/pine-core/svg/drawer-collapse.svg +1 -1
  217. package/dist/pine-core/svg/drawer-expand.svg +1 -1
  218. package/dist/pine-core/svg/drop.svg +1 -1
  219. package/dist/pine-core/svg/duplicate.svg +1 -1
  220. package/dist/pine-core/svg/editor-filled.svg +1 -0
  221. package/dist/pine-core/svg/editor.svg +1 -0
  222. package/dist/pine-core/svg/email-activity.svg +1 -1
  223. package/dist/pine-core/svg/emoji.svg +1 -1
  224. package/dist/pine-core/svg/enlarge-vertical.svg +1 -1
  225. package/dist/pine-core/svg/enlarge.svg +1 -1
  226. package/dist/pine-core/svg/expand.svg +1 -1
  227. package/dist/pine-core/svg/favorite.svg +1 -1
  228. package/dist/pine-core/svg/feedback.svg +1 -1
  229. package/dist/pine-core/svg/file-money.svg +1 -1
  230. package/dist/pine-core/svg/file.svg +1 -1
  231. package/dist/pine-core/svg/filter.svg +1 -1
  232. package/dist/pine-core/svg/flag.svg +1 -1
  233. package/dist/pine-core/svg/flash-filled.svg +1 -1
  234. package/dist/pine-core/svg/flash.svg +1 -1
  235. package/dist/pine-core/svg/floppy-disk.svg +1 -1
  236. package/dist/pine-core/svg/folder-group.svg +1 -1
  237. package/dist/pine-core/svg/folder.svg +1 -1
  238. package/dist/pine-core/svg/form-field.svg +1 -1
  239. package/dist/pine-core/svg/form-filled.svg +1 -1
  240. package/dist/pine-core/svg/form.svg +1 -1
  241. package/dist/pine-core/svg/fullscreen.svg +1 -1
  242. package/dist/pine-core/svg/funnel.svg +1 -1
  243. package/dist/pine-core/svg/gear-filled.svg +1 -0
  244. package/dist/pine-core/svg/gear.svg +1 -0
  245. package/dist/pine-core/svg/grant-offer.svg +1 -1
  246. package/dist/pine-core/svg/handle-2-vertical.svg +1 -1
  247. package/dist/pine-core/svg/handle-2.svg +1 -1
  248. package/dist/pine-core/svg/handle.svg +1 -1
  249. package/dist/pine-core/svg/hashtag.svg +1 -1
  250. package/dist/pine-core/svg/hd-video.svg +1 -1
  251. package/dist/pine-core/svg/heading-1.svg +1 -1
  252. package/dist/pine-core/svg/heading-2.svg +1 -1
  253. package/dist/pine-core/svg/heading-3.svg +1 -1
  254. package/dist/pine-core/svg/heading-4.svg +1 -1
  255. package/dist/pine-core/svg/heading-5.svg +1 -1
  256. package/dist/pine-core/svg/heading-6.svg +1 -1
  257. package/dist/pine-core/svg/heading-large.svg +1 -1
  258. package/dist/pine-core/svg/heading-small.svg +1 -1
  259. package/dist/pine-core/svg/headset.svg +1 -1
  260. package/dist/pine-core/svg/help-filled.svg +1 -1
  261. package/dist/pine-core/svg/help.svg +1 -0
  262. package/dist/pine-core/svg/home-alt.svg +1 -1
  263. package/dist/pine-core/svg/home-filled.svg +1 -0
  264. package/dist/pine-core/svg/home.svg +1 -0
  265. package/dist/pine-core/svg/horizontal-line.svg +1 -1
  266. package/dist/pine-core/svg/image.svg +1 -1
  267. package/dist/pine-core/svg/info-circle-filled.svg +1 -1
  268. package/dist/pine-core/svg/info-circle.svg +1 -1
  269. package/dist/pine-core/svg/ios-battery.svg +1 -1
  270. package/dist/pine-core/svg/ios-data.svg +1 -1
  271. package/dist/pine-core/svg/ios-wifi.svg +1 -1
  272. package/dist/pine-core/svg/italic.svg +1 -1
  273. package/dist/pine-core/svg/kajabi-filled.svg +1 -1
  274. package/dist/pine-core/svg/kajabi.svg +1 -0
  275. package/dist/pine-core/svg/klarna.svg +1 -0
  276. package/dist/pine-core/svg/lab.svg +1 -1
  277. package/dist/pine-core/svg/launch.svg +1 -1
  278. package/dist/pine-core/svg/layout-grid.svg +1 -1
  279. package/dist/pine-core/svg/layout-list.svg +1 -1
  280. package/dist/pine-core/svg/left-small.svg +1 -1
  281. package/dist/pine-core/svg/list-bullet.svg +1 -1
  282. package/dist/pine-core/svg/list-details.svg +1 -0
  283. package/dist/pine-core/svg/list-numbers.svg +1 -1
  284. package/dist/pine-core/svg/location.svg +1 -1
  285. package/dist/pine-core/svg/lock-alt.svg +1 -1
  286. package/dist/pine-core/svg/lock.svg +1 -1
  287. package/dist/pine-core/svg/logo-afterpay.svg +1 -1
  288. package/dist/pine-core/svg/logo-facebook-round.svg +1 -0
  289. package/dist/pine-core/svg/{facebook.svg → logo-facebook.svg} +1 -1
  290. package/dist/pine-core/svg/logo-instagram.svg +1 -0
  291. package/dist/pine-core/svg/logo-linkedin.svg +1 -0
  292. package/dist/pine-core/svg/logo-tiktok.svg +1 -0
  293. package/dist/pine-core/svg/logo-twitter-x.svg +1 -0
  294. package/dist/pine-core/svg/logo-twitter.svg +1 -0
  295. package/dist/pine-core/svg/{youtube.svg → logo-youtube.svg} +1 -1
  296. package/dist/pine-core/svg/loop.svg +1 -1
  297. package/dist/pine-core/svg/mail-filled.svg +1 -1
  298. package/dist/pine-core/svg/mail-open.svg +1 -1
  299. package/dist/pine-core/svg/mail.svg +1 -1
  300. package/dist/pine-core/svg/map.svg +1 -1
  301. package/dist/pine-core/svg/mapped.svg +1 -1
  302. package/dist/pine-core/svg/margin-left.svg +1 -1
  303. package/dist/pine-core/svg/margin-right.svg +1 -1
  304. package/dist/pine-core/svg/marker-filled.svg +1 -1
  305. package/dist/pine-core/svg/marker.svg +1 -1
  306. package/dist/pine-core/svg/megaphone-filled.svg +1 -0
  307. package/dist/pine-core/svg/megaphone.svg +1 -0
  308. package/dist/pine-core/svg/menu-alt.svg +1 -1
  309. package/dist/pine-core/svg/menu-bordered.svg +1 -0
  310. package/dist/pine-core/svg/menu.svg +1 -1
  311. package/dist/pine-core/svg/merge.svg +1 -1
  312. package/dist/pine-core/svg/microphone-off.svg +1 -1
  313. package/dist/pine-core/svg/microphone.svg +1 -1
  314. package/dist/pine-core/svg/{website-filled.svg → monitor-filled.svg} +1 -1
  315. package/dist/pine-core/svg/monitor.svg +1 -0
  316. package/dist/pine-core/svg/more-menu-filled.svg +1 -0
  317. package/dist/pine-core/svg/more-menu.svg +1 -0
  318. package/dist/pine-core/svg/move-left.svg +1 -1
  319. package/dist/pine-core/svg/move-right.svg +1 -1
  320. package/dist/pine-core/svg/multi-pay.svg +1 -1
  321. package/dist/pine-core/svg/newsletter-2.svg +1 -1
  322. package/dist/pine-core/svg/newsletter.svg +1 -1
  323. package/dist/pine-core/svg/one-off-session.svg +1 -1
  324. package/dist/pine-core/svg/one-time.svg +1 -1
  325. package/dist/pine-core/svg/packages.svg +1 -0
  326. package/dist/pine-core/svg/pause-circle.svg +1 -1
  327. package/dist/pine-core/svg/pause.svg +1 -1
  328. package/dist/pine-core/svg/payout.svg +1 -1
  329. package/dist/pine-core/svg/pen.svg +1 -1
  330. package/dist/pine-core/svg/phone-portrait.svg +1 -1
  331. package/dist/pine-core/svg/phone-toolbar-filled.svg +1 -1
  332. package/dist/pine-core/svg/phone-toolbar.svg +1 -1
  333. package/dist/pine-core/svg/play-circle.svg +1 -1
  334. package/dist/pine-core/svg/play-outline.svg +1 -1
  335. package/dist/pine-core/svg/play-store.svg +1 -1
  336. package/dist/pine-core/svg/play.svg +1 -1
  337. package/dist/pine-core/svg/plug.svg +1 -1
  338. package/dist/pine-core/svg/premium.svg +1 -1
  339. package/dist/pine-core/svg/present.svg +1 -1
  340. package/dist/pine-core/svg/preview-off.svg +1 -1
  341. package/dist/pine-core/svg/preview-on.svg +1 -1
  342. package/dist/pine-core/svg/product-filled.svg +1 -0
  343. package/dist/pine-core/svg/product.svg +1 -0
  344. package/dist/pine-core/svg/question-circle.svg +1 -1
  345. package/dist/pine-core/svg/quote.svg +1 -1
  346. package/dist/pine-core/svg/redo.svg +1 -1
  347. package/dist/pine-core/svg/refresh.svg +1 -1
  348. package/dist/pine-core/svg/remove-circle.svg +1 -1
  349. package/dist/pine-core/svg/remove.svg +1 -1
  350. package/dist/pine-core/svg/rename.svg +1 -1
  351. package/dist/pine-core/svg/reset-password.svg +1 -1
  352. package/dist/pine-core/svg/restore.svg +1 -1
  353. package/dist/pine-core/svg/right-small.svg +1 -1
  354. package/dist/pine-core/svg/rocket-filled.svg +1 -0
  355. package/dist/pine-core/svg/rocket.svg +1 -0
  356. package/dist/pine-core/svg/round-dollar.svg +1 -1
  357. package/dist/pine-core/svg/rows.svg +1 -1
  358. package/dist/pine-core/svg/scissor.svg +1 -1
  359. package/dist/pine-core/svg/screen-share-off.svg +1 -1
  360. package/dist/pine-core/svg/screen-share-on.svg +1 -1
  361. package/dist/pine-core/svg/search-small.svg +1 -1
  362. package/dist/pine-core/svg/search.svg +1 -1
  363. package/dist/pine-core/svg/send-message.svg +1 -1
  364. package/dist/pine-core/svg/sequences.svg +1 -1
  365. package/dist/pine-core/svg/share.svg +1 -1
  366. package/dist/pine-core/svg/skipped.svg +1 -1
  367. package/dist/pine-core/svg/slash-divider.svg +1 -1
  368. package/dist/pine-core/svg/speaker.svg +1 -1
  369. package/dist/pine-core/svg/stack.svg +1 -1
  370. package/dist/pine-core/svg/star.svg +1 -1
  371. package/dist/pine-core/svg/stop.svg +1 -1
  372. package/dist/pine-core/svg/stopwatch.svg +1 -1
  373. package/dist/pine-core/svg/strikethrough.svg +1 -1
  374. package/dist/pine-core/svg/subscript.svg +1 -1
  375. package/dist/pine-core/svg/subscriptions.svg +1 -1
  376. package/dist/pine-core/svg/super-admin.svg +1 -1
  377. package/dist/pine-core/svg/superscript.svg +1 -1
  378. package/dist/pine-core/svg/sync.svg +1 -1
  379. package/dist/pine-core/svg/tablet-landscape.svg +1 -1
  380. package/dist/pine-core/svg/tablet-portrait.svg +1 -1
  381. package/dist/pine-core/svg/tag-filled.svg +1 -0
  382. package/dist/pine-core/svg/tag.svg +1 -0
  383. package/dist/pine-core/svg/text-styles.svg +1 -1
  384. package/dist/pine-core/svg/theme-store-filled.svg +1 -1
  385. package/dist/pine-core/svg/theme-store.svg +1 -1
  386. package/dist/pine-core/svg/thumb-down-filled.svg +1 -0
  387. package/dist/pine-core/svg/thumb-down.svg +1 -0
  388. package/dist/pine-core/svg/thumb-up-filled.svg +1 -0
  389. package/dist/pine-core/svg/thumb-up.svg +1 -0
  390. package/dist/pine-core/svg/trash.svg +1 -1
  391. package/dist/pine-core/svg/trophy.svg +1 -0
  392. package/dist/pine-core/svg/underline.svg +1 -1
  393. package/dist/pine-core/svg/undo.svg +1 -1
  394. package/dist/pine-core/svg/unlock.svg +1 -1
  395. package/dist/pine-core/svg/unmapped.svg +1 -1
  396. package/dist/pine-core/svg/up-small.svg +1 -1
  397. package/dist/pine-core/svg/upload.svg +1 -1
  398. package/dist/pine-core/svg/url.svg +1 -1
  399. package/dist/pine-core/svg/user-circle-filled.svg +1 -0
  400. package/dist/pine-core/svg/user-circle.svg +1 -0
  401. package/dist/pine-core/svg/user-filled.svg +1 -1
  402. package/dist/pine-core/svg/user-star-filled.svg +1 -0
  403. package/dist/pine-core/svg/user-star.svg +1 -0
  404. package/dist/pine-core/svg/user.svg +1 -1
  405. package/dist/pine-core/svg/users-alt.svg +1 -0
  406. package/dist/pine-core/svg/users.svg +1 -1
  407. package/dist/pine-core/svg/video-off.svg +1 -1
  408. package/dist/pine-core/svg/video-on.svg +1 -1
  409. package/dist/pine-core/svg/warning-filled.svg +1 -1
  410. package/dist/pine-core/svg/warning.svg +1 -1
  411. package/dist/pine-core/svg/window-paragraph.svg +1 -1
  412. package/dist/pine-core/svg/world.svg +1 -1
  413. package/dist/pine-core/svg/wrench.svg +1 -1
  414. package/dist/types/components/pds-row/pds-row.d.ts +3 -3
  415. package/package.json +1 -1
  416. package/components/custom-elements.d.ts +0 -2
  417. package/components/index.d.ts +0 -92
  418. package/components/index.js +0 -32
  419. package/components/index.js.map +0 -1
  420. package/components/index2.js +0 -14
  421. package/components/index2.js.map +0 -1
  422. package/components/package.json +0 -9
  423. package/components/pds-accordion.d.ts +0 -11
  424. package/components/pds-accordion.js +0 -74
  425. package/components/pds-accordion.js.map +0 -1
  426. package/components/pds-avatar.d.ts +0 -11
  427. package/components/pds-avatar.js +0 -103
  428. package/components/pds-avatar.js.map +0 -1
  429. package/components/pds-box.d.ts +0 -11
  430. package/components/pds-box.js +0 -124
  431. package/components/pds-box.js.map +0 -1
  432. package/components/pds-button.d.ts +0 -11
  433. package/components/pds-button.js +0 -8
  434. package/components/pds-button.js.map +0 -1
  435. package/components/pds-button2.js +0 -84
  436. package/components/pds-button2.js.map +0 -1
  437. package/components/pds-checkbox.d.ts +0 -11
  438. package/components/pds-checkbox.js +0 -8
  439. package/components/pds-checkbox.js.map +0 -1
  440. package/components/pds-checkbox2.js +0 -86
  441. package/components/pds-checkbox2.js.map +0 -1
  442. package/components/pds-chip.d.ts +0 -11
  443. package/components/pds-chip.js +0 -78
  444. package/components/pds-chip.js.map +0 -1
  445. package/components/pds-copytext.d.ts +0 -11
  446. package/components/pds-copytext.js +0 -88
  447. package/components/pds-copytext.js.map +0 -1
  448. package/components/pds-divider.d.ts +0 -11
  449. package/components/pds-divider.js +0 -54
  450. package/components/pds-divider.js.map +0 -1
  451. package/components/pds-icon.js +0 -8
  452. package/components/pds-icon.js.map +0 -1
  453. package/components/pds-icon2.js +0 -359
  454. package/components/pds-icon2.js.map +0 -1
  455. package/components/pds-image.d.ts +0 -11
  456. package/components/pds-image.js +0 -55
  457. package/components/pds-image.js.map +0 -1
  458. package/components/pds-input.d.ts +0 -11
  459. package/components/pds-input.js +0 -72
  460. package/components/pds-input.js.map +0 -1
  461. package/components/pds-label.js +0 -39
  462. package/components/pds-label.js.map +0 -1
  463. package/components/pds-link.d.ts +0 -11
  464. package/components/pds-link.js +0 -65
  465. package/components/pds-link.js.map +0 -1
  466. package/components/pds-progress.d.ts +0 -11
  467. package/components/pds-progress.js +0 -49
  468. package/components/pds-progress.js.map +0 -1
  469. package/components/pds-radio.d.ts +0 -11
  470. package/components/pds-radio.js +0 -78
  471. package/components/pds-radio.js.map +0 -1
  472. package/components/pds-row.d.ts +0 -11
  473. package/components/pds-row.js +0 -72
  474. package/components/pds-row.js.map +0 -1
  475. package/components/pds-sortable-item.d.ts +0 -11
  476. package/components/pds-sortable-item.js +0 -58
  477. package/components/pds-sortable-item.js.map +0 -1
  478. package/components/pds-sortable.d.ts +0 -11
  479. package/components/pds-sortable.js +0 -2722
  480. package/components/pds-sortable.js.map +0 -1
  481. package/components/pds-switch.d.ts +0 -11
  482. package/components/pds-switch.js +0 -82
  483. package/components/pds-switch.js.map +0 -1
  484. package/components/pds-tab.d.ts +0 -11
  485. package/components/pds-tab.js +0 -53
  486. package/components/pds-tab.js.map +0 -1
  487. package/components/pds-table-body.d.ts +0 -11
  488. package/components/pds-table-body.js +0 -36
  489. package/components/pds-table-body.js.map +0 -1
  490. package/components/pds-table-cell.d.ts +0 -11
  491. package/components/pds-table-cell.js +0 -8
  492. package/components/pds-table-cell.js.map +0 -1
  493. package/components/pds-table-cell2.js +0 -72
  494. package/components/pds-table-cell2.js.map +0 -1
  495. package/components/pds-table-head-cell.d.ts +0 -11
  496. package/components/pds-table-head-cell.js +0 -8
  497. package/components/pds-table-head-cell.js.map +0 -1
  498. package/components/pds-table-head-cell2.js +0 -96
  499. package/components/pds-table-head-cell2.js.map +0 -1
  500. package/components/pds-table-head.d.ts +0 -11
  501. package/components/pds-table-head.js +0 -56
  502. package/components/pds-table-head.js.map +0 -1
  503. package/components/pds-table-row.d.ts +0 -11
  504. package/components/pds-table-row.js +0 -78
  505. package/components/pds-table-row.js.map +0 -1
  506. package/components/pds-table.d.ts +0 -11
  507. package/components/pds-table.js +0 -100
  508. package/components/pds-table.js.map +0 -1
  509. package/components/pds-tabpanel.d.ts +0 -11
  510. package/components/pds-tabpanel.js +0 -45
  511. package/components/pds-tabpanel.js.map +0 -1
  512. package/components/pds-tabs.d.ts +0 -11
  513. package/components/pds-tabs.js +0 -119
  514. package/components/pds-tabs.js.map +0 -1
  515. package/components/pds-textarea.d.ts +0 -11
  516. package/components/pds-textarea.js +0 -82
  517. package/components/pds-textarea.js.map +0 -1
  518. package/components/pds-tooltip.d.ts +0 -11
  519. package/components/pds-tooltip.js +0 -178
  520. package/components/pds-tooltip.js.map +0 -1
  521. package/dist/cjs/index-f034f06e.js +0 -24
  522. package/dist/cjs/index-f034f06e.js.map +0 -1
  523. package/dist/esm/index-c6934caf.js +0 -14
  524. package/dist/esm/index-c6934caf.js.map +0 -1
  525. package/dist/esm-es5/index-c6934caf.js +0 -2
  526. package/dist/esm-es5/index-c6934caf.js.map +0 -1
  527. package/dist/pine-core/p-1632460c.entry.js +0 -2
  528. package/dist/pine-core/p-1632460c.entry.js.map +0 -1
  529. package/dist/pine-core/p-2eacced7.system.entry.js +0 -2
  530. package/dist/pine-core/p-2eacced7.system.entry.js.map +0 -1
  531. package/dist/pine-core/p-2fe87b9d.entry.js +0 -2
  532. package/dist/pine-core/p-2fe87b9d.entry.js.map +0 -1
  533. package/dist/pine-core/p-3e673113.system.entry.js +0 -2
  534. package/dist/pine-core/p-3e673113.system.entry.js.map +0 -1
  535. package/dist/pine-core/p-403a20e8.js +0 -2
  536. package/dist/pine-core/p-403a20e8.js.map +0 -1
  537. package/dist/pine-core/p-52e6f836.entry.js.map +0 -1
  538. package/dist/pine-core/p-674edd62.system.js +0 -2
  539. package/dist/pine-core/p-674edd62.system.js.map +0 -1
  540. package/dist/pine-core/p-6aa28287.system.entry.js +0 -2
  541. package/dist/pine-core/p-6aa28287.system.entry.js.map +0 -1
  542. package/dist/pine-core/p-75c441ef.system.entry.js +0 -2
  543. package/dist/pine-core/p-75c441ef.system.entry.js.map +0 -1
  544. package/dist/pine-core/p-809648ee.entry.js +0 -2
  545. package/dist/pine-core/p-809648ee.entry.js.map +0 -1
  546. package/dist/pine-core/p-9a129745.entry.js +0 -2
  547. package/dist/pine-core/p-9a129745.entry.js.map +0 -1
  548. package/dist/pine-core/p-bec6d20b.system.entry.js.map +0 -1
  549. package/dist/pine-core/svg/analytics-filled.svg +0 -1
  550. package/dist/pine-core/svg/analytics-outline.svg +0 -1
  551. package/dist/pine-core/svg/card-bw-amex.svg +0 -1
  552. package/dist/pine-core/svg/card-bw-apple-card.svg +0 -1
  553. package/dist/pine-core/svg/card-bw-diners-club.svg +0 -1
  554. package/dist/pine-core/svg/card-bw-discover.svg +0 -1
  555. package/dist/pine-core/svg/card-bw-gpay-card.svg +0 -1
  556. package/dist/pine-core/svg/card-bw-mastercard.svg +0 -1
  557. package/dist/pine-core/svg/card-bw-paypal.svg +0 -1
  558. package/dist/pine-core/svg/card-bw-stripe.svg +0 -1
  559. package/dist/pine-core/svg/card-bw-visa.svg +0 -1
  560. package/dist/pine-core/svg/contacts-filled.svg +0 -1
  561. package/dist/pine-core/svg/contacts-outline.svg +0 -1
  562. package/dist/pine-core/svg/credit-card.svg +0 -1
  563. package/dist/pine-core/svg/dashboard-filled.svg +0 -1
  564. package/dist/pine-core/svg/dashboard-outline.svg +0 -1
  565. package/dist/pine-core/svg/dollar-sign.svg +0 -1
  566. package/dist/pine-core/svg/facebook-2.svg +0 -1
  567. package/dist/pine-core/svg/help-outline.svg +0 -1
  568. package/dist/pine-core/svg/instagram.svg +0 -1
  569. package/dist/pine-core/svg/kajabi-outlined.svg +0 -1
  570. package/dist/pine-core/svg/linkedin.svg +0 -1
  571. package/dist/pine-core/svg/logo-klarna.svg +0 -1
  572. package/dist/pine-core/svg/marketing-filled.svg +0 -1
  573. package/dist/pine-core/svg/marketing-outline.svg +0 -1
  574. package/dist/pine-core/svg/menu-2.svg +0 -1
  575. package/dist/pine-core/svg/partners-filled.svg +0 -1
  576. package/dist/pine-core/svg/partners-outline.svg +0 -1
  577. package/dist/pine-core/svg/products-filled.svg +0 -1
  578. package/dist/pine-core/svg/products-outline.svg +0 -1
  579. package/dist/pine-core/svg/sales-filled.svg +0 -1
  580. package/dist/pine-core/svg/sales-outline.svg +0 -1
  581. package/dist/pine-core/svg/series.svg +0 -1
  582. package/dist/pine-core/svg/settings-filled.svg +0 -1
  583. package/dist/pine-core/svg/settings-outline.svg +0 -1
  584. package/dist/pine-core/svg/sparkle-filled.svg +0 -1
  585. package/dist/pine-core/svg/sparkle.svg +0 -1
  586. package/dist/pine-core/svg/thumbs-down-filled.svg +0 -1
  587. package/dist/pine-core/svg/thumbs-down.svg +0 -1
  588. package/dist/pine-core/svg/thumbs-up-filled.svg +0 -1
  589. package/dist/pine-core/svg/thumbs-up.svg +0 -1
  590. package/dist/pine-core/svg/tiktok.svg +0 -1
  591. package/dist/pine-core/svg/twitter.svg +0 -1
  592. package/dist/pine-core/svg/users-wm.svg +0 -1
  593. package/dist/pine-core/svg/website-outline.svg +0 -1
  594. package/hydrate/index.d.ts +0 -218
  595. package/hydrate/index.js +0 -13120
  596. package/hydrate/package.json +0 -6
  597. /package/dist/pine-core/{p-5df59e63.system.entry.js.map → p-12e537ba.system.entry.js.map} +0 -0
  598. /package/dist/pine-core/{p-51f81513.entry.js.map → p-1ae7f6a1.entry.js.map} +0 -0
  599. /package/dist/pine-core/{p-bbaaa246.system.entry.js.map → p-2af2432d.system.entry.js.map} +0 -0
  600. /package/dist/pine-core/{p-70481699.entry.js.map → p-30ca2db1.entry.js.map} +0 -0
  601. /package/dist/pine-core/{p-c3de3fb3.system.entry.js.map → p-3e527956.system.entry.js.map} +0 -0
  602. /package/dist/pine-core/{p-0eb4e674.entry.js.map → p-51651124.entry.js.map} +0 -0
  603. /package/dist/pine-core/{p-7546babc.entry.js.map → p-564e8159.entry.js.map} +0 -0
  604. /package/dist/pine-core/{p-bc4bbda0.entry.js.map → p-825cdc06.entry.js.map} +0 -0
  605. /package/dist/pine-core/{p-de79befb.system.entry.js.map → p-860ceab3.system.entry.js.map} +0 -0
  606. /package/dist/pine-core/{p-f12c58dc.system.entry.js.map → p-98735309.system.entry.js.map} +0 -0
  607. /package/dist/pine-core/{p-ad891586.system.entry.js.map → p-9a05b9ce.system.entry.js.map} +0 -0
  608. /package/dist/pine-core/{p-b103a7a9.entry.js.map → p-b129ad2e.entry.js.map} +0 -0
  609. /package/dist/pine-core/{p-75951ef3.system.entry.js.map → p-bb099830.system.entry.js.map} +0 -0
  610. /package/dist/pine-core/{p-6e315022.entry.js.map → p-bc3782a0.entry.js.map} +0 -0
  611. /package/dist/pine-core/{p-e3455d30.system.entry.js.map → p-d99998a4.system.entry.js.map} +0 -0
  612. /package/dist/pine-core/{p-d0828f12.entry.js.map → p-e94b733c.entry.js.map} +0 -0
@@ -1,78 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { d as defineCustomElement$3 } from './pds-checkbox2.js';
3
- import { d as defineCustomElement$2 } from './pds-table-cell2.js';
4
-
5
- const pdsTableRowCss = ":host{--color-background-fixed:var(--pine-color-white);--color-background-interactive:var(--pine-color-grey-200);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--color-background-fixed);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host(:hover),:host(:hover)::part(checkbox-cell),:host(:hover) ::slotted(pds-table-cell),:host(.is-selected),:host(.is-selected)::part(checkbox-cell),:host(.is-selected) ::slotted(pds-table-cell){background:var(--color-background-interactive)}";
6
- const PdsTableRowStyle0 = pdsTableRowCss;
7
-
8
- const PdsTableRow$1 = /*@__PURE__*/ proxyCustomElement(class PdsTableRow extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.__attachShadow();
13
- this.pdsTableRowSelected = createEvent(this, "pdsTableRowSelected", 7);
14
- this.handleCheckboxClick = () => {
15
- this.isSelected = !this.isSelected; // Toggle the selected state
16
- const selectedIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);
17
- this.pdsTableRowSelected.emit({ rowIndex: selectedIndex, isSelected: this.isSelected });
18
- };
19
- this.generateUniqueId = () => {
20
- const randomString = Math.random().toString(36).substring(2, 8);
21
- const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
22
- const uniqueId = `${randomString}-${timestamp}`;
23
- return uniqueId;
24
- };
25
- this.isSelected = false;
26
- }
27
- classNames() {
28
- const classNames = [];
29
- if (this.isSelected) {
30
- classNames.push("is-selected");
31
- }
32
- return classNames.join(' ');
33
- }
34
- componentWillRender() {
35
- this.tableRef = this.hostElement.closest('pds-table');
36
- if (this.tableRef && this.tableRef.fixedColumn) {
37
- const tableCell = this.hostElement.querySelector('pds-table-cell');
38
- tableCell === null || tableCell === void 0 ? void 0 : tableCell.classList.add("is-fixed");
39
- }
40
- }
41
- render() {
42
- return (h(Host, { key: '9ef478c127a101b918e3e444109a0a3b72d809d6', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: 'f7ecba3776fe1a5606ea66bc43f495e03635803f', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: '6e4ebaa953542cb476f141818375b3ba8b490b2c', componentId: this.generateUniqueId(), onClick: this.handleCheckboxClick, label: "Select Row", labelHidden: true, checked: this.isSelected }))), h("slot", { key: '4ccbd6b1a81d420dec05acb4f7a404ee670959b3' })));
43
- }
44
- get hostElement() { return this; }
45
- static get style() { return PdsTableRowStyle0; }
46
- }, [1, "pds-table-row", {
47
- "isSelected": [32]
48
- }]);
49
- function defineCustomElement$1() {
50
- if (typeof customElements === "undefined") {
51
- return;
52
- }
53
- const components = ["pds-table-row", "pds-checkbox", "pds-table-cell"];
54
- components.forEach(tagName => { switch (tagName) {
55
- case "pds-table-row":
56
- if (!customElements.get(tagName)) {
57
- customElements.define(tagName, PdsTableRow$1);
58
- }
59
- break;
60
- case "pds-checkbox":
61
- if (!customElements.get(tagName)) {
62
- defineCustomElement$3();
63
- }
64
- break;
65
- case "pds-table-cell":
66
- if (!customElements.get(tagName)) {
67
- defineCustomElement$2();
68
- }
69
- break;
70
- } });
71
- }
72
-
73
- const PdsTableRow = PdsTableRow$1;
74
- const defineCustomElement = defineCustomElement$1;
75
-
76
- export { PdsTableRow, defineCustomElement };
77
-
78
- //# sourceMappingURL=pds-table-row.js.map
@@ -1 +0,0 @@
1
- {"file":"pds-table-row.js","mappings":";;;;AAAA,MAAM,cAAc,GAAG,uiBAAuiB,CAAC;AAC/jB,0BAAe,cAAc;;MCMhBA,aAAW;;;;;;QAcd,wBAAmB,GAAG;YAC5B,IAAI,CAAC,UAAU,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC;YACnC,MAAM,aAAa,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YACjG,IAAI,CAAC,mBAAmB,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,CAAC,CAAC;SACzF,CAAA;QAqBO,qBAAgB,GAAG;YACzB,MAAM,YAAY,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC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YAAY,EACnB,WAAW,EAAE,IAAI,EACjB,OAAO,EAAE,IAAI,CAAC,UAAU,GACxB,CACa,CAClB,EACD,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTableRow"],"sources":["src/components/pds-table/pds-table-row/pds-table-row.scss?tag=pds-table-row&encapsulation=shadow","src/components/pds-table/pds-table-row/pds-table-row.tsx"],"sourcesContent":[":host {\n --color-background-fixed: var(--pine-color-white);\n --color-background-interactive: var(--pine-color-grey-200);\n\n border-color: inherit;\n display: table-row;\n vertical-align: inherit;\n\n // used for pds-checkbox-cell\n // because it is in the ShadowDom\n &::part(checkbox-cell) {\n background-color: var(--color-background-fixed);\n left: 0;\n position: sticky;\n z-index: 1;\n }\n}\n\n:host(:hover),\n:host(:hover)::part(checkbox-cell),\n:host(:hover) ::slotted(pds-table-cell),\n:host(.is-selected),\n:host(.is-selected)::part(checkbox-cell),\n:host(.is-selected) ::slotted(pds-table-cell) {\n background: var(--color-background-interactive);\n}\n","import { Component, Element, Host, h, Event, EventEmitter, State } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-row',\n styleUrl: 'pds-table-row.scss',\n shadow: true,\n})\nexport class PdsTableRow {\n @Element() hostElement: HTMLPdsTableRowElement;\n tableRef: HTMLPdsTableElement;\n\n /**\n * Event that is emitted when the checkbox is clicked, carrying the selected value.\n */\n @Event() pdsTableRowSelected: EventEmitter<{ rowIndex: number; isSelected: boolean; }>;\n\n /**\n * A local state to track whether the row is currently selected.\n */\n @State() isSelected: boolean = false;\n\n private handleCheckboxClick = () => {\n this.isSelected = !this.isSelected; // Toggle the selected state\n const selectedIndex = Array.from(this.hostElement.parentNode.children).indexOf(this.hostElement);\n this.pdsTableRowSelected.emit({ rowIndex: selectedIndex, isSelected: this.isSelected });\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.isSelected) {\n classNames.push(\"is-selected\");\n }\n\n return classNames.join(' ');\n }\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n\n if (this.tableRef && this.tableRef.fixedColumn) {\n const tableCell = this.hostElement.querySelector('pds-table-cell');\n tableCell?.classList.add(\"is-fixed\");\n }\n }\n\n private generateUniqueId = () => {\n const randomString = Math.random().toString(36).substring(2, 8);\n const timestamp = new Date().toISOString().replace(/[:.]/g, '-');\n const uniqueId = `${randomString}-${timestamp}`;\n\n return uniqueId;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"row\"\n >\n {this.tableRef && this.tableRef.selectable && (\n <pds-table-cell part={this.tableRef.fixedColumn ? 'checkbox-cell' : ''} class={this.tableRef.selectable ? 'has-checkbox' : ''} >\n <pds-checkbox\n componentId={this.generateUniqueId()}\n onClick={this.handleCheckboxClick}\n label={\"Select Row\"}\n labelHidden={true}\n checked={this.isSelected}\n />\n </pds-table-cell>\n )}\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../dist/types/components";
2
-
3
- interface PdsTable extends Components.PdsTable, HTMLElement {}
4
- export const PdsTable: {
5
- prototype: PdsTable;
6
- new (): PdsTable;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,100 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const pdsTableCss = ":host{--color-background-default:var(--pine-color-white);background:var(--color-background-default);border-collapse:separate;-webkit-box-sizing:border-box;box-sizing:border-box;display:table;width:100%}:host(.is-responsive){background-attachment:local, local, scroll, scroll;background-image:-webkit-gradient(linear, left top, right top, from(var(--color-background-default)), to(var(--color-background-default))), -webkit-gradient(linear, left top, right top, from(var(--color-background-default)), to(var(--color-background-default))), -webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0))), -webkit-gradient(linear, right top, left top, from(rgba(0, 0, 0, 0.1)), to(rgba(255, 255, 255, 0)));background-image:linear-gradient(to right, var(--color-background-default), var(--color-background-default)), linear-gradient(to right, var(--color-background-default), var(--color-background-default)), linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)), linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));background-position:left center, right center, left center, right center;background-repeat:no-repeat;background-size:4px 100%, 4px 100%, 4px 100%, 4px 100%;display:block;margin:0 auto;max-width:-webkit-fit-content;max-width:-moz-fit-content;max-width:fit-content;overflow-x:auto;white-space:nowrap}";
4
- const PdsTableStyle0 = pdsTableCss;
5
-
6
- const PdsTable$1 = /*@__PURE__*/ proxyCustomElement(class PdsTable extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this.compact = undefined;
12
- this.componentId = undefined;
13
- this.responsive = undefined;
14
- this.fixedColumn = undefined;
15
- this.selectable = undefined;
16
- this.sortingColumn = null;
17
- this.sortingDirection = 'asc';
18
- }
19
- componentWillLoad() {
20
- this.sortingColumn = null;
21
- }
22
- classNames() {
23
- const classNames = ['pds-table'];
24
- if (this.compact) {
25
- classNames.push('is-compact');
26
- }
27
- if (this.responsive) {
28
- classNames.push('is-responsive');
29
- }
30
- return classNames.join(' ');
31
- }
32
- sortTable(column, direction) {
33
- const tableBody = this.el.querySelector('pds-table-body');
34
- // Get the rows in the table body
35
- const tableRows = Array.from(tableBody.querySelectorAll('pds-table-row'));
36
- // Find the column index based on the column name
37
- const columnHeaderCells = Array.from(this.el.querySelectorAll('pds-table-head-cell[sortable]'));
38
- const columnHeaderCell = columnHeaderCells.find((cell) => cell.innerText.trim() === column);
39
- if (!columnHeaderCell) {
40
- console.warn(`Column "${column}" not found.`);
41
- return;
42
- }
43
- const columnIndex = columnHeaderCells.indexOf(columnHeaderCell);
44
- // Sort the rows based on the content of the specified column
45
- tableRows.sort((a, b) => {
46
- const valueA = a.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();
47
- const valueB = b.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();
48
- if (direction === 'asc') {
49
- return valueA.localeCompare(valueB);
50
- }
51
- else {
52
- return valueB.localeCompare(valueA);
53
- }
54
- });
55
- // Clear and append the sorted rows back to the table body
56
- tableBody.innerHTML = '';
57
- tableRows.forEach((row) => {
58
- tableBody.appendChild(row);
59
- });
60
- }
61
- handleTableSort(event) {
62
- const { direction } = event.detail;
63
- this.sortTable(event.detail.column, direction);
64
- this.sortingColumn = event.detail.column;
65
- this.sortingDirection = direction;
66
- }
67
- render() {
68
- return (h(Host, { key: 'ce58b1bccc1ff7ee6e38198e63a19fd88f2877e6', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable }, h("slot", { key: 'b748a8befdd212d16c2e6780551a8c11b1843faf' })));
69
- }
70
- get el() { return this; }
71
- static get style() { return PdsTableStyle0; }
72
- }, [1, "pds-table", {
73
- "compact": [4],
74
- "componentId": [1, "component-id"],
75
- "responsive": [4],
76
- "fixedColumn": [4, "fixed-column"],
77
- "selectable": [4],
78
- "sortingColumn": [32],
79
- "sortingDirection": [32]
80
- }, [[0, "pdsTableSort", "handleTableSort"]]]);
81
- function defineCustomElement$1() {
82
- if (typeof customElements === "undefined") {
83
- return;
84
- }
85
- const components = ["pds-table"];
86
- components.forEach(tagName => { switch (tagName) {
87
- case "pds-table":
88
- if (!customElements.get(tagName)) {
89
- customElements.define(tagName, PdsTable$1);
90
- }
91
- break;
92
- } });
93
- }
94
-
95
- const PdsTable = PdsTable$1;
96
- const defineCustomElement = defineCustomElement$1;
97
-
98
- export { PdsTable, defineCustomElement };
99
-
100
- //# sourceMappingURL=pds-table.js.map
@@ -1 +0,0 @@
1
- {"file":"pds-table.js","mappings":";;AAAA,MAAM,WAAW,GAAG,s2CAAs2C,CAAC;AAC33C,uBAAe,WAAW;;MCMbA,UAAQ;;;;;;;;;;6BA6BqB,IAAI;gCACA,KAAK;;IAEjD,iBAAiB;QACf,IAAI,CAAC,aAAa,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C,GAAG,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;YAElG,IAAI,SAAS,KAAK,KAAK,EAAE;gBACvB,OAAO,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;aACrC;iBAAM;gBACL,OAAO,MAAM,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;aACrC;SACF,CAAC,CAAC;;QAGH,SAAS,CAAC,SAAS,GAAG,EAAE,CAAC;QACzB,SAAS,CAAC,OAAO,CAAC,CAAC,GAAG;YACpB,SAAS,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;SAC5B,CAAC,CAAC;KACJ;IAGD,eAAe,CAAC,KAAiE;QAC/E,MAAM,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC,MAAM,CAAC;QACnC,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAC/C,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC;QACzC,IAAI,CAAC,gBAAgB,GAAG,SAAS,CAAC;KACnC;IAED,MAAM;QACJ,QACE,EAAC,IAAI,qDACH,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAC,MAAM,EACX,UAAU,EAAE,IAAI,CAAC,UAAU,IAE3B,8DAAa,CACR,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTable"],"sources":["src/components/pds-table/pds-table.scss?tag=pds-table&encapsulation=shadow","src/components/pds-table/pds-table.tsx"],"sourcesContent":[":host {\n --color-background-default: var(--pine-color-white);\n\n background: var(--color-background-default);\n border-collapse: separate;\n box-sizing: border-box;\n display: table;\n width: 100%;\n}\n\n:host(.is-responsive) {\n background-attachment: local, local, scroll, scroll;\n background-image: linear-gradient(to right, var(--color-background-default), var(--color-background-default)),\n linear-gradient(to right, var(--color-background-default), var(--color-background-default)),\n linear-gradient(to right, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0)),\n linear-gradient(to left, rgba(0, 0, 0, 0.1), rgba(255, 255, 255, 0));\n background-position: left center, right center, left center, right center;\n background-repeat: no-repeat;\n background-size: 4px 100%, 4px 100%, 4px 100%, 4px 100%;\n display: block;\n margin: 0 auto;\n max-width: fit-content;\n overflow-x: auto;\n white-space: nowrap;\n}\n","import { Component, Element, Host, h, Prop, State, Listen } from '@stencil/core';\n\n@Component({\n tag: 'pds-table',\n styleUrl: 'pds-table.scss',\n shadow: true,\n})\nexport class PdsTable {\n @Element() el: HTMLPdsTableElement;\n tableRef: HTMLElement;\n\n /**\n * Determines if table displays compact which reduces the spacing of table cells.\n */\n @Prop() compact: boolean;\n\n /**\n * A unique identifier used for the table `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Enables the table to be responsive by horizontally scrolling on smaller screens.\n */\n @Prop() responsive: boolean;\n\n /**\n * Determines if table displays fixed column which fixes the first column of the table.\n */\n @Prop() fixedColumn: boolean;\n\n /**\n * Determines if table displays checkboxes for selectable rows.\n */\n @Prop() selectable: boolean;\n\n @State() sortingColumn: string | null = null;\n @State() sortingDirection: 'asc' | 'desc' = 'asc';\n\n componentWillLoad() {\n this.sortingColumn = null;\n }\n\n private classNames() {\n const classNames = ['pds-table'];\n\n if (this.compact) {\n classNames.push('is-compact');\n }\n\n if (this.responsive) {\n classNames.push('is-responsive');\n }\n\n return classNames.join(' ');\n }\n\n private sortTable(column: string, direction: 'asc' | 'desc') {\n const tableBody = this.el.querySelector('pds-table-body');\n\n // Get the rows in the table body\n const tableRows = Array.from(tableBody.querySelectorAll('pds-table-row'));\n\n // Find the column index based on the column name\n const columnHeaderCells: HTMLElement[] = Array.from(\n this.el.querySelectorAll('pds-table-head-cell[sortable]')\n );\n\n const columnHeaderCell = columnHeaderCells.find(\n (cell) => cell.innerText.trim() === column\n );\n\n if (!columnHeaderCell) {\n console.warn(`Column \"${column}\" not found.`);\n return;\n }\n\n const columnIndex = columnHeaderCells.indexOf(columnHeaderCell);\n\n // Sort the rows based on the content of the specified column\n tableRows.sort((a, b) => {\n const valueA = a.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();\n const valueB = b.querySelector(`pds-table-cell:nth-child(${columnIndex + 1})`).textContent.trim();\n\n if (direction === 'asc') {\n return valueA.localeCompare(valueB);\n } else {\n return valueB.localeCompare(valueA);\n }\n });\n\n // Clear and append the sorted rows back to the table body\n tableBody.innerHTML = '';\n tableRows.forEach((row) => {\n tableBody.appendChild(row);\n });\n }\n\n @Listen('pdsTableSort')\n handleTableSort(event: CustomEvent<{ column: string; direction: 'asc' | 'desc' }>) {\n const { direction } = event.detail;\n this.sortTable(event.detail.column, direction);\n this.sortingColumn = event.detail.column;\n this.sortingDirection = direction;\n }\n\n render() {\n return (\n <Host\n class={this.classNames()}\n id={this.componentId}\n role=\"grid\"\n selectable={this.selectable}\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../dist/types/components";
2
-
3
- interface PdsTabpanel extends Components.PdsTabpanel, HTMLElement {}
4
- export const PdsTabpanel: {
5
- prototype: PdsTabpanel;
6
- new (): PdsTabpanel;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,45 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const pdsTabpanelCss = ":host{display:block}.pds-tabpanel{display:none;margin-top:var(--spacing-panel-margin-top);padding:var(--spacing-panel-padding)}.pds-tabpanel.is-active{display:block}";
4
- const PdsTabpanelStyle0 = pdsTabpanelCss;
5
-
6
- const PdsTabpanel$1 = /*@__PURE__*/ proxyCustomElement(class PdsTabpanel extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.name = undefined;
11
- this.parentComponentId = undefined;
12
- this.variant = undefined;
13
- this.selected = false;
14
- }
15
- render() {
16
- return (h(Host, { key: 'b8619019429f7430c66df0cc41d177d40b59a6e6', slot: "tabpanels" }, h("div", { key: '10a9c2cbf35a60aec932287a839fcca456c41d4c', 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: '50593c1f0174dd44b2a51cc94e89cdd1cee7a8ab' }))));
17
- }
18
- get el() { return this; }
19
- static get style() { return PdsTabpanelStyle0; }
20
- }, [4, "pds-tabpanel", {
21
- "name": [1],
22
- "parentComponentId": [1, "parent-component-id"],
23
- "variant": [1],
24
- "selected": [1028]
25
- }]);
26
- function defineCustomElement$1() {
27
- if (typeof customElements === "undefined") {
28
- return;
29
- }
30
- const components = ["pds-tabpanel"];
31
- components.forEach(tagName => { switch (tagName) {
32
- case "pds-tabpanel":
33
- if (!customElements.get(tagName)) {
34
- customElements.define(tagName, PdsTabpanel$1);
35
- }
36
- break;
37
- } });
38
- }
39
-
40
- const PdsTabpanel = PdsTabpanel$1;
41
- const defineCustomElement = defineCustomElement$1;
42
-
43
- export { PdsTabpanel, defineCustomElement };
44
-
45
- //# sourceMappingURL=pds-tabpanel.js.map
@@ -1 +0,0 @@
1
- {"file":"pds-tabpanel.js","mappings":";;AAAA,MAAM,cAAc,GAAG,uKAAuK,CAAC;AAC/L,0BAAe,cAAc;;MCMhBA,aAAW;;;;;;;wBAwBY,KAAK;;IAEvC,MAAM;QACJ,QACE,EAAC,IAAI,qDAAC,IAAI,EAAC,WAAW,IACpB,4DACE,IAAI,EAAC,UAAU,EACf,EAAE,EAAE,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,GAAG,QAAQ,EACxD,QAAQ,EAAC,GAAG,qBACK,IAAI,CAAC,iBAAiB,GAAG,IAAI,GAAG,IAAI,CAAC,IAAI,EAC1D,KAAK,EAAE,IAAI,CAAC,QAAQ,GAAG,wBAAwB,GAAG,cAAc,IAEhE,8DAAQ,CACJ,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTabpanel"],"sources":["src/components/pds-tabs/pds-tabpanel/pds-tabpanel.scss?tag=pds-tabpanel","src/components/pds-tabs/pds-tabpanel/pds-tabpanel.tsx"],"sourcesContent":[":host {\n display: block;\n}\n\n.pds-tabpanel {\n display: none;\n margin-top: var(--spacing-panel-margin-top);\n padding: var(--spacing-panel-padding);\n\n &.is-active {\n display: block;\n }\n}\n","import { Component, Element, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-tabpanel',\n styleUrl: 'pds-tabpanel.scss',\n shadow: false,\n})\nexport class PdsTabpanel {\n @Element() el: HTMLPdsTabpanelElement;\n\n /**\n * Sets the related tab name, this name must match a `pds-tab`'s tab name property\n */\n @Prop() name!: string;\n\n /**\n * Keeps track of the parentComponentId unique id, this property is passed by parent component\n */\n /** @internal */\n @Prop() parentComponentId: string;\n\n /**\n * Keeps track of if the expected tab variant, this property is passed by parent component\n */\n /** @internal */\n @Prop() variant: string;\n\n /**\n * Keeps track of the tabpanel selected state, this property is passed by parent component\n */\n /** @internal */\n @Prop({mutable: true}) selected = false; // eslint-disable-line @stencil-community/strict-mutable\n\n render() {\n return (\n <Host slot=\"tabpanels\">\n <div\n role=\"tabpanel\"\n id={this.parentComponentId + \"__\" + this.name + '-panel'}\n tabindex=\"0\"\n aria-labelledby={this.parentComponentId + \"__\" + this.name}\n class={this.selected ? \"pds-tabpanel is-active\" : \"pds-tabpanel\"}\n >\n <slot />\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../dist/types/components";
2
-
3
- interface PdsTabs extends Components.PdsTabs, HTMLElement {}
4
- export const PdsTabs: {
5
- prototype: PdsTabs;
6
- new (): PdsTabs;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,119 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
-
3
- const pdsTabsCss = ":host{--spacing-panel-margin-top:0;--spacing-panel-padding:0;--outline:2px solid var(--pine-color-blue-200);--spacing-gap-availability:var(--pine-spacing-100);--spacing-gap-default:var(--pine-spacing-300);--spacing-gap-filter:var(--pine-spacing-200);display:block}.pds-tabs__tablist{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--spacing-gap-default)}:host(.pds-tabs--availability) .pds-tabs__tablist{gap:var(--spacing-gap-availability)}:host(.pds-tabs--filter) .pds-tabs__tablist{gap:var(--spacing-gap-filter)}";
4
- const PdsTabsStyle0 = pdsTabsCss;
5
-
6
- const PdsTabs$1 = /*@__PURE__*/ proxyCustomElement(class PdsTabs extends HTMLElement {
7
- constructor() {
8
- super();
9
- this.__registerHost();
10
- this.__attachShadow();
11
- this.tablistLabel = undefined;
12
- this.componentId = undefined;
13
- this.variant = undefined;
14
- this.activeTabName = undefined;
15
- this.activeTabIndex = undefined;
16
- }
17
- tabClickHandler(event) {
18
- if (this.componentId === event.detail[1]) {
19
- this.activeTabIndex = event.detail[0];
20
- this.activeTabName = this.tabs[this.activeTabIndex].name;
21
- }
22
- }
23
- handleKeyDown(ev) {
24
- const keySet = ["ArrowLeft", "ArrowRight", "Home", "End"];
25
- if (keySet.includes(ev.key)) {
26
- ev.preventDefault();
27
- this.moveActiveTab(ev.key);
28
- }
29
- }
30
- moveActiveTab(key) {
31
- const firstTabNumber = 0;
32
- const lastTabNumber = this.tabs.length - 1;
33
- let moveFocusTo = null;
34
- switch (key) {
35
- case 'ArrowLeft':
36
- moveFocusTo = (this.activeTabIndex === firstTabNumber) ? lastTabNumber : (this.activeTabIndex + (-1));
37
- break;
38
- case 'ArrowRight':
39
- moveFocusTo = (this.activeTabIndex === lastTabNumber) ? firstTabNumber : (this.activeTabIndex + 1);
40
- break;
41
- case 'Home':
42
- moveFocusTo = firstTabNumber;
43
- break;
44
- case 'End':
45
- moveFocusTo = lastTabNumber;
46
- break;
47
- }
48
- // Move focus to the button element within `pds-tab`
49
- this.tabs[moveFocusTo].children[0].focus();
50
- this.activeTabName = this.tabs[moveFocusTo].name;
51
- this.activeTabIndex = moveFocusTo;
52
- }
53
- findAllChildren() {
54
- this.tabs = this.el.querySelectorAll('pds-tab');
55
- this.tabPanels = this.el.querySelectorAll('pds-tabpanel');
56
- }
57
- propGeneration(child, index = 0) {
58
- child.parentComponentId = this.componentId.toString();
59
- child.variant = this.variant.toString();
60
- child.selected = (this.activeTabName === child.name) ? true : false;
61
- child['index'] = index;
62
- }
63
- passPropsToChildren() {
64
- this.tabs.forEach((child, index) => {
65
- if (this.activeTabName === child.name)
66
- this.activeTabIndex = index;
67
- this.propGeneration(child, index);
68
- });
69
- this.tabPanels.forEach((child) => {
70
- this.propGeneration(child);
71
- });
72
- }
73
- classNames() {
74
- let className = `pds-tabs`;
75
- if (this.variant && this.variant != 'primary') {
76
- const variantClassName = `pds-tabs--${this.variant}`;
77
- className += ' ' + variantClassName;
78
- }
79
- return className;
80
- }
81
- ;
82
- componentWillLoad() {
83
- this.findAllChildren();
84
- }
85
- componentWillRender() {
86
- this.passPropsToChildren();
87
- }
88
- render() {
89
- return (h(Host, { key: '92748fc6123067ba04f9cc81ea949366fb1c2a8f', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: '809cbe1ed4e973db39ea69be9e30ac54881564af', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, h("slot", { key: 'b23af8a48dee0528cc9f7d2b84a42411e2b14e6d', name: "tabs" })), h("slot", { key: 'fdb46b7125f735531b13c1ac82a08f27998e7511', name: "tabpanels" })));
90
- }
91
- get el() { return this; }
92
- static get style() { return PdsTabsStyle0; }
93
- }, [1, "pds-tabs", {
94
- "tablistLabel": [1, "tablist-label"],
95
- "componentId": [1, "component-id"],
96
- "variant": [1],
97
- "activeTabName": [1025, "active-tab-name"],
98
- "activeTabIndex": [1026, "active-tab-index"]
99
- }, [[16, "pdsTabClick", "tabClickHandler"], [0, "keydown", "handleKeyDown"]]]);
100
- function defineCustomElement$1() {
101
- if (typeof customElements === "undefined") {
102
- return;
103
- }
104
- const components = ["pds-tabs"];
105
- components.forEach(tagName => { switch (tagName) {
106
- case "pds-tabs":
107
- if (!customElements.get(tagName)) {
108
- customElements.define(tagName, PdsTabs$1);
109
- }
110
- break;
111
- } });
112
- }
113
-
114
- const PdsTabs = PdsTabs$1;
115
- const defineCustomElement = defineCustomElement$1;
116
-
117
- export { PdsTabs, defineCustomElement };
118
-
119
- //# sourceMappingURL=pds-tabs.js.map
@@ -1 +0,0 @@
1
- {"file":"pds-tabs.js","mappings":";;AAAA,MAAM,UAAU,GAAG,+hBAA+hB,CAAC;AACnjB,sBAAe,UAAU;;MCUZA,SAAO;;;;;;;;;;;IAmClB,eAAe,CAAC,KAAuB;QACrC,IAAI,IAAI,CAAC,WAAW,KAAK,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE;YACxC,IAAI,CAAC,cAAc,GAAG,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;YACtC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,IAAI,CAAC;SAC1D;KACF;IAGD,aAAa,CAAC,EAAiB;QAC7B,MAAM,MAAM,GAAG,CAAC,WAAW,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,CAAC,CAAC;QAE1D,IAAI,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE;YAC3B,EAAE,CAAC,cAAc,EAAE,CAAC;YACpB,IAAI,CAAC,aAAa,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;SAC5B;KACF;IAEO,aAAa,CAAC,GAAW;QAC/B,MAAM,cAAc,GAAG,CAAC,CAAC;QACzB,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,GAA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ation=shadow","src/components/pds-tabs/pds-tabs.tsx"],"sourcesContent":[":host {\n /**\n * @prop --spacing-panel-margin-top: Optional margin-top for panels\n */\n --spacing-panel-margin-top: 0;\n /**\n * @prop --spacing-panel-padding: Optional padding for panels\n */\n --spacing-panel-padding: 0;\n\n --outline: 2px solid var(--pine-color-blue-200);\n\n --spacing-gap-availability: var(--pine-spacing-100);\n --spacing-gap-default: var(--pine-spacing-300);\n --spacing-gap-filter: var(--pine-spacing-200);\n\n display: block;\n}\n\n.pds-tabs__tablist {\n display: flex;\n flex-wrap: wrap;\n gap: var(--spacing-gap-default);\n}\n\n:host(.pds-tabs--availability) .pds-tabs__tablist {\n gap: var(--spacing-gap-availability);\n}\n\n:host(.pds-tabs--filter) .pds-tabs__tablist {\n gap: var(--spacing-gap-filter);\n}\n","import { Component, Element, Host, h, Prop, Listen } from '@stencil/core';\n\n /**\n * @slot tabs - Content is placed within the `div[role=\"tablist\"]` element as children\n * @slot tabpanels - Content is placed directly after the `div[role=\"tablist\"]` element as siblings\n */\n@Component({\n tag: 'pds-tabs',\n styleUrl: 'pds-tabs.scss',\n shadow: true,\n})\nexport class PdsTabs {\n private tabs;\n private tabPanels;\n\n @Element() el: HTMLPdsTabsElement;\n\n /**\n * Sets the aria-label attached to the tablist element\n */\n @Prop() tablistLabel!: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Sets tabs variant styles as outlined in Figma documentation\n */\n @Prop() variant!: 'primary' | 'availability' | 'filter';\n\n /**\n * Sets the starting active tab name and maintains the name as the component re-renders\n */\n @Prop({mutable: true}) activeTabName!: string;\n\n /**\n * Sets the starting active tab index number and maintains the index number as the component re-renders\n */\n /** @internal */\n @Prop({mutable: true}) activeTabIndex: number;\n\n @Listen('pdsTabClick', {\n target: 'body',\n })\n tabClickHandler(event: CustomEvent<any>) {\n if (this.componentId === event.detail[1]) {\n this.activeTabIndex = event.detail[0];\n this.activeTabName = this.tabs[this.activeTabIndex].name;\n }\n }\n\n @Listen('keydown', {})\n handleKeyDown(ev: KeyboardEvent) {\n const keySet = [\"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\"];\n\n if (keySet.includes(ev.key)) {\n ev.preventDefault();\n this.moveActiveTab(ev.key);\n }\n }\n\n private moveActiveTab(key: string) {\n const firstTabNumber = 0;\n const lastTabNumber = this.tabs.length - 1;\n\n let moveFocusTo = null;\n\n switch (key) {\n case 'ArrowLeft':\n moveFocusTo = (this.activeTabIndex === firstTabNumber) ? lastTabNumber : (this.activeTabIndex + (-1));\n break;\n case 'ArrowRight':\n moveFocusTo = (this.activeTabIndex === lastTabNumber) ? firstTabNumber : (this.activeTabIndex + 1);\n break;\n case 'Home':\n moveFocusTo = firstTabNumber;\n break;\n case 'End':\n moveFocusTo = lastTabNumber;\n break;\n }\n\n // Move focus to the button element within `pds-tab`\n this.tabs[moveFocusTo].children[0].focus();\n this.activeTabName = this.tabs[moveFocusTo].name;\n this.activeTabIndex = moveFocusTo;\n }\n\n private findAllChildren() {\n this.tabs = this.el.querySelectorAll('pds-tab');\n this.tabPanels = this.el.querySelectorAll('pds-tabpanel');\n }\n\n private propGeneration(child, index = 0) {\n child.parentComponentId = this.componentId.toString();\n child.variant = this.variant.toString();\n child.selected = (this.activeTabName === child.name) ? true : false;\n child['index'] = index;\n }\n\n private passPropsToChildren() {\n this.tabs.forEach((child, index) => {\n if (this.activeTabName === child.name) this.activeTabIndex = index;\n this.propGeneration(child, index);\n });\n\n this.tabPanels.forEach((child) => {\n this.propGeneration(child);\n });\n }\n\n private classNames() {\n let className = `pds-tabs`;\n if (this.variant && this.variant != 'primary') {\n const variantClassName = `pds-tabs--${this.variant}`;\n className += ' ' + variantClassName;\n }\n\n return className;\n };\n\n componentWillLoad() {\n this.findAllChildren();\n }\n\n componentWillRender() {\n this.passPropsToChildren();\n }\n\n render() {\n return (\n <Host active-tab-name={this.activeTabName} class={this.classNames()} id={this.componentId}>\n <div class=\"pds-tabs__tablist\" role=\"tablist\" aria-label={this.tablistLabel}>\n <slot name=\"tabs\" />\n </div>\n <slot name=\"tabpanels\" />\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../dist/types/components";
2
-
3
- interface PdsTextarea extends Components.PdsTextarea, HTMLElement {}
4
- export const PdsTextarea: {
5
- prototype: PdsTextarea;
6
- new (): PdsTextarea;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,82 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
- import { i as isRequired, P as PdsLabel, a as assignDescription, m as messageId } from './pds-label.js';
3
-
4
- const pdsTextareaCss = ":host{--box-shadow-focus:0 0 0 2px var(--color-focus-visible-outline);--box-shadow-focus-error:0 0 0 2px var(--color-focus-visible-outline-error);--color:var(--pine-color-charcoal-400);--color-background:var(--pine-color-white);--color-background-disabled:var(--pine-color-grey-200);--color-border-default:var(--pine-color-grey-400);--color-border-error:var(--pine-color-red-300);--color-border-focus-visible:var(--pine-color-grey-300);--color-border-hover:var(--pine-color-grey-500);--color-disabled-default:var(--pine-color-charcoal-200);--color-error-default:var(--pine-color-red-300);--color-focus-visible-outline:var(--pine-color-primary-200);--color-focus-visible-outline-error:var(--pine-color-red-200);--color-placeholder-default:var(--pine-color-charcoal-200);--font-size-field:var(--pine-font-size-100);--font-size-helper-message:var(--pine-font-size-075);--font-size-label:var(--pine-font-size-100);--font-weight-field:var(--pine-font-weight-normal);--font-weight-helper-message:var(--pine-font-weight-normal);--font-weight-label:var(--pine-font-weight-medium);--line-height-field:var(--pine-line-height-150);--line-height-helper-message:var(--pine-line-height-125);--line-height-label:var(--pine-line-height-150);--spacing-margin-block-end-label:var(--pine-spacing-100);--spacing-margin-block-start-helper-message:var(--pine-spacing-100);--spacing-padding-block-field:var(--pine-spacing-100);--spacing-padding-inline-field:var(--pine-spacing-200);display:inline}.pds-textarea{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}label{display:block;font-size:var(--font-size-label);font-weight:var(--font-weight-label);line-height:var(--line-height-label);-webkit-margin-after:var(--spacing-margin-block-end-label);margin-block-end:var(--spacing-margin-block-end-label)}.pds-textarea__field{background-color:var(--color-background);border:var(--pine-border-interactive);border-radius:var(--pine-border-radius-md);font-family:inherit;font-size:var(--font-size-field);font-weight:var(--font-weight-field);line-height:var(--line-height-field);padding:var(--spacing-padding-block-field) var(--spacing-padding-inline-field)}.pds-textarea__field:hover:not(:disabled,.is-invalid){border-color:var(--color-border-hover)}.pds-textarea__field:disabled{background-color:var(--color-background-disabled);color:var(--color-disabled-default);cursor:not-allowed}.pds-textarea__field:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}.pds-textarea__field::-webkit-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::-moz-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field:-ms-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::-ms-input-placeholder{color:var(--color-placeholder-default)}.pds-textarea__field::placeholder{color:var(--color-placeholder-default)}.pds-textarea__field.is-invalid{border-color:var(--color-border-error)}.pds-textarea__field.is-invalid:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error)}.pds-textarea__error-message,.pds-textarea__helper-message{font-size:var(--font-size-helper-message);font-weight:var(--font-weight-helper-message);line-height:var(--line-height-helper-message);-webkit-margin-before:var(--spacing-margin-block-start-helper-message);margin-block-start:var(--spacing-margin-block-start-helper-message)}.pds-textarea__error-message{color:var(--color-error-default)}";
5
- const PdsTextareaStyle0 = pdsTextareaCss;
6
-
7
- const PdsTextarea$1 = /*@__PURE__*/ proxyCustomElement(class PdsTextarea extends HTMLElement {
8
- constructor() {
9
- super();
10
- this.__registerHost();
11
- this.__attachShadow();
12
- this.pdsTextareaChange = createEvent(this, "pdsTextareaChange", 7);
13
- this.onTextareaChange = (ev) => {
14
- const textarea = ev.target;
15
- isRequired(textarea, this);
16
- if (textarea) {
17
- this.value = textarea.innerHTML;
18
- }
19
- this.pdsTextareaChange.emit({ value: this.value, event: ev });
20
- };
21
- this.componentId = undefined;
22
- this.disabled = false;
23
- this.errorMessage = undefined;
24
- this.helperMessage = undefined;
25
- this.invalid = false;
26
- this.label = undefined;
27
- this.name = this.componentId;
28
- this.placeholder = undefined;
29
- this.readonly = false;
30
- this.required = false;
31
- this.rows = undefined;
32
- this.value = undefined;
33
- }
34
- textareaClassNames() {
35
- const classNames = ['pds-textarea__field'];
36
- if (this.invalid && this.invalid === true) {
37
- classNames.push('is-invalid');
38
- }
39
- return classNames.join(' ');
40
- }
41
- render() {
42
- return (h(Host, { key: 'a6f6eb13665857ec8762d454d79ff216e2062a66', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'fa77f9c7c29f214ee4d8ddb8e1e48d4d16b6a47e', class: "pds-textarea" }, this.label &&
43
- h(PdsLabel, { key: '75c242138f5c2a33a82feaa775dae0c05843d2c1', htmlFor: this.componentId, text: this.label }), h("textarea", { key: '8bebb57b878c745e07ebfc18afd2aaf7d2da66a5', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
44
- h("p", { key: 'b9a83aeb83b0cf4232359154d36a8ec48b0a3638', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
45
- h("p", { key: 'ee70c7aa56b8a8e18de58394c04140065670f8db', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, this.errorMessage))));
46
- }
47
- get el() { return this; }
48
- static get style() { return PdsTextareaStyle0; }
49
- }, [1, "pds-textarea", {
50
- "componentId": [1, "component-id"],
51
- "disabled": [4],
52
- "errorMessage": [1, "error-message"],
53
- "helperMessage": [1, "helper-message"],
54
- "invalid": [1028],
55
- "label": [1],
56
- "name": [1],
57
- "placeholder": [1],
58
- "readonly": [4],
59
- "required": [4],
60
- "rows": [2],
61
- "value": [1025]
62
- }]);
63
- function defineCustomElement$1() {
64
- if (typeof customElements === "undefined") {
65
- return;
66
- }
67
- const components = ["pds-textarea"];
68
- components.forEach(tagName => { switch (tagName) {
69
- case "pds-textarea":
70
- if (!customElements.get(tagName)) {
71
- customElements.define(tagName, PdsTextarea$1);
72
- }
73
- break;
74
- } });
75
- }
76
-
77
- const PdsTextarea = PdsTextarea$1;
78
- const defineCustomElement = defineCustomElement$1;
79
-
80
- export { PdsTextarea, defineCustomElement };
81
-
82
- //# sourceMappingURL=pds-textarea.js.map
@@ -1 +0,0 @@
1
- {"file":"pds-textarea.js","mappings":";;;AAAA,MAAM,cAAc,GAAG,+7GAA+7G,CAAC;AACv9G,0BAAe,cAAc;;MCShBA,aAAW;;;;;;QAwEd,qBAAgB,GAAG,CAAC,EAAS;YACnC,MAAM,QAAQ,GAAG,EAAE,CAAC,MAA6B,CAAC;YAClD,UAAU,CAAC,QAAQ,EAAE,IAAI,CAAC,CAAC;YAE3B,IAAI,QAAQ,EAAE;gBACZ,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,SAAS,CAAC;aACjC;YAED,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,EAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,EAAC,CAAC,CAAC;SAC7D,CAAC;;wBArEiB,KAAK;;;uBAgBS,KAAK;;oBAUf,IAAI,CAAC,WAAW;;wBAWpB,KAAK;wBAML,KAAK;;;;IA4BhB,kBAAkB;QACxB,MAAM,UAAU,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAE3C,IAAI,IAAI,CAAC,OAAO,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,EAAE;YACzC,UAAU,CAAC,IA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;;;;;;","names":["PdsTextarea"],"sources":["src/components/pds-textarea/pds-textarea.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-textarea/pds-textarea.tsx"],"sourcesContent":[":host {\n --box-shadow-focus: 0 0 0 2px var(--color-focus-visible-outline);\n --box-shadow-focus-error: 0 0 0 2px var(--color-focus-visible-outline-error);\n\n --color: var(--pine-color-charcoal-400);\n --color-background: var(--pine-color-white);\n --color-background-disabled: var(--pine-color-grey-200);\n --color-border-default: var(--pine-color-grey-400);\n --color-border-error: var(--pine-color-red-300);\n --color-border-focus-visible: var(--pine-color-grey-300);\n --color-border-hover: var(--pine-color-grey-500);\n --color-disabled-default: var(--pine-color-charcoal-200);\n --color-error-default: var(--pine-color-red-300);\n --color-focus-visible-outline: var(--pine-color-primary-200);\n --color-focus-visible-outline-error: var(--pine-color-red-200);\n --color-placeholder-default: var(--pine-color-charcoal-200);\n\n --font-size-field: var(--pine-font-size-100);\n --font-size-helper-message: var(--pine-font-size-075);\n --font-size-label: var(--pine-font-size-100);\n --font-weight-field: var(--pine-font-weight-normal);\n --font-weight-helper-message: var(--pine-font-weight-normal);\n --font-weight-label: var(--pine-font-weight-medium);\n\n --line-height-field: var(--pine-line-height-150);\n --line-height-helper-message: var(--pine-line-height-125);\n --line-height-label: var(--pine-line-height-150);\n\n --spacing-margin-block-end-label: var(--pine-spacing-100);\n --spacing-margin-block-start-helper-message: var(--pine-spacing-100);\n --spacing-padding-block-field: var(--pine-spacing-100);\n --spacing-padding-inline-field: var(--pine-spacing-200);\n\n display: inline;\n}\n\n.pds-textarea {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\n display: block;\n font-size: var(--font-size-label);\n font-weight: var(--font-weight-label);\n line-height: var(--line-height-label);\n margin-block-end: var(--spacing-margin-block-end-label);\n}\n\n.pds-textarea__field {\n background-color: var(--color-background);\n border: var(--pine-border-interactive);\n border-radius: var(--pine-border-radius-md);\n font-family: inherit;\n font-size: var(--font-size-field);\n font-weight: var(--font-weight-field);\n line-height: var(--line-height-field);\n padding: var(--spacing-padding-block-field) var(--spacing-padding-inline-field);\n\n &:hover:not(:disabled, .is-invalid) {\n border-color: var(--color-border-hover);\n }\n\n &:disabled {\n background-color: var(--color-background-disabled);\n color: var(--color-disabled-default);\n cursor: not-allowed;\n }\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n }\n\n &::placeholder {\n color: var(--color-placeholder-default);\n }\n\n &.is-invalid {\n border-color: var(--color-border-error);\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n }\n }\n}\n\n.pds-textarea__error-message,\n.pds-textarea__helper-message {\n font-size: var(--font-size-helper-message);\n font-weight: var(--font-weight-helper-message);\n line-height: var(--line-height-helper-message);\n margin-block-start: var(--spacing-margin-block-start-helper-message);\n}\n\n.pds-textarea__error-message {\n color: var(--color-error-default);\n}\n","import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail } from './textarea-interface';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-textarea',\n styleUrl: 'pds-textarea.scss',\n shadow: true,\n})\nexport class PdsTextarea {\n @Element() el: HTMLPdsTextareaElement;\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 textarea is disabled\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Specifies the error text and provides an error-themed treatment to the field\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a hint or description of the textarea\n */\n @Prop() helperMessage?: string;\n\n /**\n * Indicates whether or not the textarea is invalid or throws an error\n * @defaultValue false\n */\n @Prop({mutable: true}) invalid = false; // eslint-disable-line @stencil-community/strict-mutable\n\n /**\n * Text to be displayed as the textarea label\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name, submitted with the form name/value pair. This value will mirror the componentId\n */\n @Prop() name: string = this.componentId;\n\n /**\n * Specifies a short hint that describes the expected value of the textarea\n */\n @Prop() placeholder?: string;\n\n /**\n * Indicates whether or not the textarea is readonly\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Indicates whether or not the textarea is required\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * Sets number of rows of text visible without needing to scroll in the textarea\n */\n @Prop() rows?: number;\n\n /**\n * The value of the textarea\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Event emitted whenever the value of the textarea changes\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n private onTextareaChange = (ev: Event) => {\n const textarea = ev.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n if (textarea) {\n this.value = textarea.innerHTML;\n }\n\n this.pdsTextareaChange.emit({value: this.value, event: ev});\n };\n\n private textareaClassNames() {\n const classNames = ['pds-textarea__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n }\n <textarea\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n class={this.textareaClassNames()}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n rows={this.rows}\n onChange={this.onTextareaChange}\n >{this.value}</textarea>\n {this.helperMessage &&\n <p\n class=\"pds-textarea__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.invalid &&\n <p\n aria-live=\"assertive\"\n class=\"pds-textarea__error-message\"\n id={messageId(this.componentId, 'error')}\n >\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../dist/types/components";
2
-
3
- interface PdsTooltip extends Components.PdsTooltip, HTMLElement {}
4
- export const PdsTooltip: {
5
- prototype: PdsTooltip;
6
- new (): PdsTooltip;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;