@pine-ds/core 0.2.4 → 1.0.1

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 (531) hide show
  1. package/dist/cjs/{index-49f8049e.js → index-f034f06e.js} +3 -1
  2. package/dist/cjs/index-f034f06e.js.map +1 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  5. package/dist/cjs/pds-accordion.cjs.entry.js.map +1 -1
  6. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  7. package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
  8. package/dist/cjs/pds-box.cjs.entry.js +3 -3
  9. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  10. package/dist/cjs/pds-button.cjs.entry.js +2 -2
  11. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  12. package/dist/cjs/pds-checkbox_2.cjs.entry.js +2 -2
  13. package/dist/cjs/pds-checkbox_2.cjs.entry.js.map +1 -1
  14. package/dist/cjs/pds-chip.cjs.entry.js +2 -2
  15. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  16. package/dist/cjs/pds-copytext.cjs.entry.js +4 -18
  17. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  18. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  19. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
  20. package/dist/cjs/pds-image.cjs.entry.js +1 -1
  21. package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
  22. package/dist/cjs/pds-input.cjs.entry.js +1 -1
  23. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  24. package/dist/cjs/pds-link.cjs.entry.js +2 -2
  25. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  26. package/dist/cjs/pds-progress.cjs.entry.js +2 -2
  27. package/dist/cjs/pds-progress.cjs.entry.js.map +1 -1
  28. package/dist/cjs/pds-radio.cjs.entry.js +1 -1
  29. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  30. package/dist/cjs/pds-sortable-item.cjs.entry.js +13 -3
  31. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -1
  32. package/dist/cjs/pds-sortable.cjs.entry.js +3 -3
  33. package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -1
  34. package/dist/cjs/pds-switch.cjs.entry.js +1 -1
  35. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  36. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  37. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -1
  38. package/dist/cjs/pds-table-head-cell.cjs.entry.js +2 -2
  39. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
  40. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  41. package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
  42. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  43. package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
  44. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  45. package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
  46. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  47. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -1
  48. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  49. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -1
  50. package/dist/cjs/pds-textarea.cjs.entry.js +1 -1
  51. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  52. package/dist/cjs/pds-tooltip.cjs.entry.js +1 -1
  53. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  54. package/dist/cjs/pine-core.cjs.js +1 -1
  55. package/dist/collection/components/pds-accordion/pds-accordion.css +25 -39
  56. package/dist/collection/components/pds-avatar/pds-avatar.css +22 -19
  57. package/dist/collection/components/pds-box/pds-box.css +30 -30
  58. package/dist/collection/components/pds-box/pds-box.js +2 -2
  59. package/dist/collection/components/pds-box/pds-box.js.map +1 -1
  60. package/dist/collection/components/pds-button/pds-button.css +88 -81
  61. package/dist/collection/components/pds-button/stories/pds-button.stories.js +1 -0
  62. package/dist/collection/components/pds-checkbox/pds-checkbox.css +26 -28
  63. package/dist/collection/components/pds-chip/pds-chip.css +88 -94
  64. package/dist/collection/components/pds-copytext/pds-copytext.css +38 -33
  65. package/dist/collection/components/pds-copytext/pds-copytext.js +2 -16
  66. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
  67. package/dist/collection/components/pds-divider/pds-divider.css +36 -36
  68. package/dist/collection/components/pds-image/pds-image.css +2 -2
  69. package/dist/collection/components/pds-input/pds-input.css +45 -46
  70. package/dist/collection/components/pds-link/pds-link.css +19 -19
  71. package/dist/collection/components/pds-progress/pds-progress.css +20 -18
  72. package/dist/collection/components/pds-progress/pds-progress.js +2 -2
  73. package/dist/collection/components/pds-progress/pds-progress.js.map +1 -1
  74. package/dist/collection/components/pds-radio/pds-radio.css +28 -27
  75. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +17 -17
  76. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +15 -5
  77. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +1 -1
  78. package/dist/collection/components/pds-sortable/pds-sortable-item/stories/pds-sortable-item.stories.js +2 -2
  79. package/dist/collection/components/pds-sortable/pds-sortable.css +3 -3
  80. package/dist/collection/components/pds-sortable/pds-sortable.js +2 -2
  81. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
  82. package/dist/collection/components/pds-sortable/sortable-interface.js +2 -0
  83. package/dist/collection/components/pds-sortable/sortable-interface.js.map +1 -0
  84. package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +6 -6
  85. package/dist/collection/components/pds-switch/pds-switch.css +48 -48
  86. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +19 -19
  87. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +4 -4
  88. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +25 -25
  89. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +4 -4
  90. package/dist/collection/components/pds-table/pds-table.css +3 -3
  91. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +48 -43
  92. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +2 -2
  93. package/dist/collection/components/pds-tabs/pds-tabs.css +11 -11
  94. package/dist/collection/components/pds-textarea/pds-textarea.css +46 -47
  95. package/dist/collection/components/pds-tooltip/pds-tooltip.css +67 -67
  96. package/dist/docs.json +7 -7
  97. package/{components/index2.js → dist/esm/index-c6934caf.js} +3 -2
  98. package/dist/esm/index-c6934caf.js.map +1 -0
  99. package/dist/esm/loader.js +1 -1
  100. package/dist/esm/pds-accordion.entry.js +2 -2
  101. package/dist/esm/pds-accordion.entry.js.map +1 -1
  102. package/dist/esm/pds-avatar.entry.js +2 -2
  103. package/dist/esm/pds-avatar.entry.js.map +1 -1
  104. package/dist/esm/pds-box.entry.js +3 -3
  105. package/dist/esm/pds-box.entry.js.map +1 -1
  106. package/dist/esm/pds-button.entry.js +2 -2
  107. package/dist/esm/pds-button.entry.js.map +1 -1
  108. package/dist/esm/pds-checkbox_2.entry.js +2 -2
  109. package/dist/esm/pds-checkbox_2.entry.js.map +1 -1
  110. package/dist/esm/pds-chip.entry.js +2 -2
  111. package/dist/esm/pds-chip.entry.js.map +1 -1
  112. package/dist/esm/pds-copytext.entry.js +4 -18
  113. package/dist/esm/pds-copytext.entry.js.map +1 -1
  114. package/dist/esm/pds-divider.entry.js +1 -1
  115. package/dist/esm/pds-divider.entry.js.map +1 -1
  116. package/dist/esm/pds-image.entry.js +1 -1
  117. package/dist/esm/pds-image.entry.js.map +1 -1
  118. package/dist/esm/pds-input.entry.js +1 -1
  119. package/dist/esm/pds-input.entry.js.map +1 -1
  120. package/dist/esm/pds-link.entry.js +2 -2
  121. package/dist/esm/pds-link.entry.js.map +1 -1
  122. package/dist/esm/pds-progress.entry.js +2 -2
  123. package/dist/esm/pds-progress.entry.js.map +1 -1
  124. package/dist/esm/pds-radio.entry.js +1 -1
  125. package/dist/esm/pds-radio.entry.js.map +1 -1
  126. package/dist/esm/pds-sortable-item.entry.js +14 -4
  127. package/dist/esm/pds-sortable-item.entry.js.map +1 -1
  128. package/dist/esm/pds-sortable.entry.js +3 -3
  129. package/dist/esm/pds-sortable.entry.js.map +1 -1
  130. package/dist/esm/pds-switch.entry.js +1 -1
  131. package/dist/esm/pds-switch.entry.js.map +1 -1
  132. package/dist/esm/pds-tab.entry.js +1 -1
  133. package/dist/esm/pds-tab.entry.js.map +1 -1
  134. package/dist/esm/pds-table-head-cell.entry.js +2 -2
  135. package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
  136. package/dist/esm/pds-table-head.entry.js +1 -1
  137. package/dist/esm/pds-table-head.entry.js.map +1 -1
  138. package/dist/esm/pds-table-row.entry.js +1 -1
  139. package/dist/esm/pds-table-row.entry.js.map +1 -1
  140. package/dist/esm/pds-table.entry.js +1 -1
  141. package/dist/esm/pds-table.entry.js.map +1 -1
  142. package/dist/esm/pds-tabpanel.entry.js +1 -1
  143. package/dist/esm/pds-tabpanel.entry.js.map +1 -1
  144. package/dist/esm/pds-tabs.entry.js +1 -1
  145. package/dist/esm/pds-tabs.entry.js.map +1 -1
  146. package/dist/esm/pds-textarea.entry.js +1 -1
  147. package/dist/esm/pds-textarea.entry.js.map +1 -1
  148. package/dist/esm/pds-tooltip.entry.js +1 -1
  149. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  150. package/dist/esm/pine-core.js +1 -1
  151. package/dist/esm-es5/index-c6934caf.js +2 -0
  152. package/dist/esm-es5/index-c6934caf.js.map +1 -0
  153. package/dist/esm-es5/loader.js +1 -1
  154. package/dist/esm-es5/loader.js.map +1 -1
  155. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  156. package/dist/esm-es5/pds-accordion.entry.js.map +1 -1
  157. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  158. package/dist/esm-es5/pds-avatar.entry.js.map +1 -1
  159. package/dist/esm-es5/pds-box.entry.js +1 -1
  160. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  161. package/dist/esm-es5/pds-button.entry.js +1 -1
  162. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  163. package/dist/esm-es5/pds-checkbox_2.entry.js +1 -1
  164. package/dist/esm-es5/pds-checkbox_2.entry.js.map +1 -1
  165. package/dist/esm-es5/pds-chip.entry.js +1 -1
  166. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  167. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  168. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  169. package/dist/esm-es5/pds-divider.entry.js +1 -1
  170. package/dist/esm-es5/pds-divider.entry.js.map +1 -1
  171. package/dist/esm-es5/pds-image.entry.js +1 -1
  172. package/dist/esm-es5/pds-image.entry.js.map +1 -1
  173. package/dist/esm-es5/pds-input.entry.js +1 -1
  174. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  175. package/dist/esm-es5/pds-link.entry.js +1 -1
  176. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  177. package/dist/esm-es5/pds-progress.entry.js +1 -1
  178. package/dist/esm-es5/pds-progress.entry.js.map +1 -1
  179. package/dist/esm-es5/pds-radio.entry.js +1 -1
  180. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  181. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  182. package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -1
  183. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  184. package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
  185. package/dist/esm-es5/pds-switch.entry.js +1 -1
  186. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  187. package/dist/esm-es5/pds-tab.entry.js +1 -1
  188. package/dist/esm-es5/pds-tab.entry.js.map +1 -1
  189. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  190. package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
  191. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  192. package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
  193. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  194. package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
  195. package/dist/esm-es5/pds-table.entry.js +1 -1
  196. package/dist/esm-es5/pds-table.entry.js.map +1 -1
  197. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  198. package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -1
  199. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  200. package/dist/esm-es5/pds-tabs.entry.js.map +1 -1
  201. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  202. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  203. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  204. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  205. package/dist/esm-es5/pine-core.js +1 -1
  206. package/dist/esm-es5/pine-core.js.map +1 -1
  207. package/dist/pine-core/p-0a1e2528.system.entry.js +2 -0
  208. package/dist/pine-core/p-0a1e2528.system.entry.js.map +1 -0
  209. package/dist/pine-core/p-0a636312.system.entry.js +2 -0
  210. package/dist/pine-core/p-0a636312.system.entry.js.map +1 -0
  211. package/dist/pine-core/p-0eb4e674.entry.js +2 -0
  212. package/dist/pine-core/p-0eb4e674.entry.js.map +1 -0
  213. package/dist/pine-core/p-16e9d55b.entry.js +2 -0
  214. package/dist/pine-core/p-16e9d55b.entry.js.map +1 -0
  215. package/dist/pine-core/p-173f8d39.entry.js +2 -0
  216. package/dist/pine-core/p-173f8d39.entry.js.map +1 -0
  217. package/dist/pine-core/p-209bc3fd.entry.js +2 -0
  218. package/dist/pine-core/p-209bc3fd.entry.js.map +1 -0
  219. package/dist/pine-core/p-2e19ec3d.system.entry.js +2 -0
  220. package/dist/pine-core/p-2e19ec3d.system.entry.js.map +1 -0
  221. package/dist/pine-core/p-2eacced7.system.entry.js +2 -0
  222. package/dist/pine-core/p-2eacced7.system.entry.js.map +1 -0
  223. package/dist/pine-core/p-2fe87b9d.entry.js +2 -0
  224. package/dist/pine-core/p-2fe87b9d.entry.js.map +1 -0
  225. package/dist/pine-core/p-327e1afa.system.entry.js +2 -0
  226. package/dist/pine-core/p-327e1afa.system.entry.js.map +1 -0
  227. package/dist/pine-core/p-380e465b.entry.js +2 -0
  228. package/dist/pine-core/p-380e465b.entry.js.map +1 -0
  229. package/dist/pine-core/p-403a20e8.js +2 -0
  230. package/dist/pine-core/p-403a20e8.js.map +1 -0
  231. package/dist/pine-core/p-43783da1.system.entry.js +2 -0
  232. package/dist/pine-core/p-43783da1.system.entry.js.map +1 -0
  233. package/dist/pine-core/p-478689a0.system.entry.js +2 -0
  234. package/dist/pine-core/p-478689a0.system.entry.js.map +1 -0
  235. package/dist/pine-core/p-4f7ee11c.entry.js +2 -0
  236. package/dist/pine-core/p-4f7ee11c.entry.js.map +1 -0
  237. package/dist/pine-core/{p-6f2f7e92.entry.js → p-5073b1c0.entry.js} +2 -2
  238. package/dist/pine-core/{p-6f2f7e92.entry.js.map → p-5073b1c0.entry.js.map} +1 -1
  239. package/dist/pine-core/p-51f81513.entry.js +2 -0
  240. package/dist/pine-core/p-51f81513.entry.js.map +1 -0
  241. package/dist/pine-core/p-5df59e63.system.entry.js +2 -0
  242. package/dist/pine-core/p-5df59e63.system.entry.js.map +1 -0
  243. package/dist/pine-core/p-5f2b3f57.entry.js +2 -0
  244. package/dist/pine-core/p-5f2b3f57.entry.js.map +1 -0
  245. package/dist/pine-core/p-61ab207f.entry.js +2 -0
  246. package/dist/pine-core/p-61ab207f.entry.js.map +1 -0
  247. package/dist/pine-core/p-6370aa12.system.entry.js +2 -0
  248. package/dist/pine-core/p-6370aa12.system.entry.js.map +1 -0
  249. package/dist/pine-core/p-674edd62.system.js +2 -0
  250. package/dist/pine-core/p-674edd62.system.js.map +1 -0
  251. package/dist/pine-core/p-6aa28287.system.entry.js +2 -0
  252. package/dist/pine-core/p-6aa28287.system.entry.js.map +1 -0
  253. package/dist/pine-core/p-6e315022.entry.js +2 -0
  254. package/dist/pine-core/p-6e315022.entry.js.map +1 -0
  255. package/dist/pine-core/p-70481699.entry.js +2 -0
  256. package/dist/pine-core/p-70481699.entry.js.map +1 -0
  257. package/dist/pine-core/p-7546babc.entry.js +2 -0
  258. package/dist/pine-core/p-7546babc.entry.js.map +1 -0
  259. package/dist/pine-core/p-75951ef3.system.entry.js +2 -0
  260. package/dist/pine-core/p-75951ef3.system.entry.js.map +1 -0
  261. package/dist/pine-core/p-75c441ef.system.entry.js +2 -0
  262. package/dist/pine-core/p-75c441ef.system.entry.js.map +1 -0
  263. package/dist/pine-core/p-7611d073.system.js +1 -1
  264. package/dist/pine-core/p-7611d073.system.js.map +1 -1
  265. package/dist/pine-core/p-7f917c20.entry.js +2 -0
  266. package/dist/pine-core/p-7f917c20.entry.js.map +1 -0
  267. package/dist/pine-core/p-809648ee.entry.js +2 -0
  268. package/dist/pine-core/p-809648ee.entry.js.map +1 -0
  269. package/dist/pine-core/p-87c2ac18.entry.js +2 -0
  270. package/dist/pine-core/p-87c2ac18.entry.js.map +1 -0
  271. package/dist/pine-core/p-8c5e76d4.system.entry.js +2 -0
  272. package/dist/pine-core/p-8c5e76d4.system.entry.js.map +1 -0
  273. package/dist/pine-core/p-9a129745.entry.js +2 -0
  274. package/dist/pine-core/p-9a129745.entry.js.map +1 -0
  275. package/dist/pine-core/{p-29f5dffb.system.entry.js → p-9e33f4fb.system.entry.js} +2 -2
  276. package/dist/pine-core/{p-29f5dffb.system.entry.js.map → p-9e33f4fb.system.entry.js.map} +1 -1
  277. package/dist/pine-core/p-9f8a1aa6.entry.js +2 -0
  278. package/dist/pine-core/p-9f8a1aa6.entry.js.map +1 -0
  279. package/dist/pine-core/p-ad891586.system.entry.js +2 -0
  280. package/dist/pine-core/p-ad891586.system.entry.js.map +1 -0
  281. package/dist/pine-core/p-b103a7a9.entry.js +2 -0
  282. package/dist/pine-core/p-b103a7a9.entry.js.map +1 -0
  283. package/dist/pine-core/p-bbaaa246.system.entry.js +2 -0
  284. package/dist/pine-core/p-bbaaa246.system.entry.js.map +1 -0
  285. package/dist/pine-core/p-bc1cb8e2.entry.js +2 -0
  286. package/dist/pine-core/{p-de8abfde.system.entry.js.map → p-bc1cb8e2.entry.js.map} +1 -1
  287. package/dist/pine-core/p-bc4bbda0.entry.js +2 -0
  288. package/dist/pine-core/p-bc4bbda0.entry.js.map +1 -0
  289. package/dist/pine-core/p-bd5135c3.entry.js +2 -0
  290. package/dist/pine-core/p-bd5135c3.entry.js.map +1 -0
  291. package/dist/pine-core/p-c3de3fb3.system.entry.js +2 -0
  292. package/dist/pine-core/p-c3de3fb3.system.entry.js.map +1 -0
  293. package/dist/pine-core/p-c721d912.system.entry.js +2 -0
  294. package/dist/pine-core/p-c721d912.system.entry.js.map +1 -0
  295. package/dist/pine-core/p-cfb22651.system.entry.js +2 -0
  296. package/dist/pine-core/p-cfb22651.system.entry.js.map +1 -0
  297. package/dist/pine-core/p-d0828f12.entry.js +2 -0
  298. package/dist/pine-core/p-d0828f12.entry.js.map +1 -0
  299. package/dist/pine-core/p-dacd68cf.system.entry.js +2 -0
  300. package/dist/pine-core/p-dacd68cf.system.entry.js.map +1 -0
  301. package/dist/pine-core/p-de79befb.system.entry.js +2 -0
  302. package/dist/pine-core/p-de79befb.system.entry.js.map +1 -0
  303. package/dist/pine-core/p-e3455d30.system.entry.js +2 -0
  304. package/dist/pine-core/p-e3455d30.system.entry.js.map +1 -0
  305. package/dist/pine-core/p-ec56491f.system.entry.js +2 -0
  306. package/dist/pine-core/p-ec56491f.system.entry.js.map +1 -0
  307. package/dist/pine-core/p-ecbf0b15.system.entry.js +2 -0
  308. package/dist/pine-core/p-ecbf0b15.system.entry.js.map +1 -0
  309. package/dist/pine-core/p-f12c58dc.system.entry.js +2 -0
  310. package/dist/pine-core/p-f12c58dc.system.entry.js.map +1 -0
  311. package/dist/pine-core/p-ff9044ed.entry.js +2 -0
  312. package/dist/pine-core/p-ff9044ed.entry.js.map +1 -0
  313. package/dist/pine-core/pine-core.css +1 -1
  314. package/dist/pine-core/pine-core.esm.js +1 -1
  315. package/dist/pine-core/pine-core.esm.js.map +1 -1
  316. package/dist/types/components/pds-progress/pds-progress.d.ts +1 -1
  317. package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +4 -1
  318. package/dist/types/components/pds-sortable/sortable-interface.d.ts +7 -0
  319. package/dist/types/components.d.ts +4 -4
  320. package/package.json +2 -2
  321. package/components/custom-elements.d.ts +0 -2
  322. package/components/index.d.ts +0 -92
  323. package/components/index.js +0 -32
  324. package/components/index.js.map +0 -1
  325. package/components/index2.js.map +0 -1
  326. package/components/package.json +0 -9
  327. package/components/pds-accordion.d.ts +0 -11
  328. package/components/pds-accordion.js +0 -74
  329. package/components/pds-accordion.js.map +0 -1
  330. package/components/pds-avatar.d.ts +0 -11
  331. package/components/pds-avatar.js +0 -103
  332. package/components/pds-avatar.js.map +0 -1
  333. package/components/pds-box.d.ts +0 -11
  334. package/components/pds-box.js +0 -124
  335. package/components/pds-box.js.map +0 -1
  336. package/components/pds-button.d.ts +0 -11
  337. package/components/pds-button.js +0 -8
  338. package/components/pds-button.js.map +0 -1
  339. package/components/pds-button2.js +0 -84
  340. package/components/pds-button2.js.map +0 -1
  341. package/components/pds-checkbox.d.ts +0 -11
  342. package/components/pds-checkbox.js +0 -8
  343. package/components/pds-checkbox.js.map +0 -1
  344. package/components/pds-checkbox2.js +0 -86
  345. package/components/pds-checkbox2.js.map +0 -1
  346. package/components/pds-chip.d.ts +0 -11
  347. package/components/pds-chip.js +0 -78
  348. package/components/pds-chip.js.map +0 -1
  349. package/components/pds-copytext.d.ts +0 -11
  350. package/components/pds-copytext.js +0 -102
  351. package/components/pds-copytext.js.map +0 -1
  352. package/components/pds-divider.d.ts +0 -11
  353. package/components/pds-divider.js +0 -54
  354. package/components/pds-divider.js.map +0 -1
  355. package/components/pds-icon.js +0 -8
  356. package/components/pds-icon.js.map +0 -1
  357. package/components/pds-icon2.js +0 -359
  358. package/components/pds-icon2.js.map +0 -1
  359. package/components/pds-image.d.ts +0 -11
  360. package/components/pds-image.js +0 -55
  361. package/components/pds-image.js.map +0 -1
  362. package/components/pds-input.d.ts +0 -11
  363. package/components/pds-input.js +0 -72
  364. package/components/pds-input.js.map +0 -1
  365. package/components/pds-label.js +0 -39
  366. package/components/pds-label.js.map +0 -1
  367. package/components/pds-link.d.ts +0 -11
  368. package/components/pds-link.js +0 -65
  369. package/components/pds-link.js.map +0 -1
  370. package/components/pds-progress.d.ts +0 -11
  371. package/components/pds-progress.js +0 -49
  372. package/components/pds-progress.js.map +0 -1
  373. package/components/pds-radio.d.ts +0 -11
  374. package/components/pds-radio.js +0 -78
  375. package/components/pds-radio.js.map +0 -1
  376. package/components/pds-row.d.ts +0 -11
  377. package/components/pds-row.js +0 -72
  378. package/components/pds-row.js.map +0 -1
  379. package/components/pds-sortable-item.d.ts +0 -11
  380. package/components/pds-sortable-item.js +0 -48
  381. package/components/pds-sortable-item.js.map +0 -1
  382. package/components/pds-sortable.d.ts +0 -11
  383. package/components/pds-sortable.js +0 -2722
  384. package/components/pds-sortable.js.map +0 -1
  385. package/components/pds-switch.d.ts +0 -11
  386. package/components/pds-switch.js +0 -82
  387. package/components/pds-switch.js.map +0 -1
  388. package/components/pds-tab.d.ts +0 -11
  389. package/components/pds-tab.js +0 -53
  390. package/components/pds-tab.js.map +0 -1
  391. package/components/pds-table-body.d.ts +0 -11
  392. package/components/pds-table-body.js +0 -36
  393. package/components/pds-table-body.js.map +0 -1
  394. package/components/pds-table-cell.d.ts +0 -11
  395. package/components/pds-table-cell.js +0 -8
  396. package/components/pds-table-cell.js.map +0 -1
  397. package/components/pds-table-cell2.js +0 -72
  398. package/components/pds-table-cell2.js.map +0 -1
  399. package/components/pds-table-head-cell.d.ts +0 -11
  400. package/components/pds-table-head-cell.js +0 -8
  401. package/components/pds-table-head-cell.js.map +0 -1
  402. package/components/pds-table-head-cell2.js +0 -96
  403. package/components/pds-table-head-cell2.js.map +0 -1
  404. package/components/pds-table-head.d.ts +0 -11
  405. package/components/pds-table-head.js +0 -56
  406. package/components/pds-table-head.js.map +0 -1
  407. package/components/pds-table-row.d.ts +0 -11
  408. package/components/pds-table-row.js +0 -78
  409. package/components/pds-table-row.js.map +0 -1
  410. package/components/pds-table.d.ts +0 -11
  411. package/components/pds-table.js +0 -100
  412. package/components/pds-table.js.map +0 -1
  413. package/components/pds-tabpanel.d.ts +0 -11
  414. package/components/pds-tabpanel.js +0 -45
  415. package/components/pds-tabpanel.js.map +0 -1
  416. package/components/pds-tabs.d.ts +0 -11
  417. package/components/pds-tabs.js +0 -119
  418. package/components/pds-tabs.js.map +0 -1
  419. package/components/pds-textarea.d.ts +0 -11
  420. package/components/pds-textarea.js +0 -82
  421. package/components/pds-textarea.js.map +0 -1
  422. package/components/pds-tooltip.d.ts +0 -11
  423. package/components/pds-tooltip.js +0 -178
  424. package/components/pds-tooltip.js.map +0 -1
  425. package/dist/cjs/index-49f8049e.js.map +0 -1
  426. package/dist/esm/index-64c90183.js +0 -13
  427. package/dist/esm/index-64c90183.js.map +0 -1
  428. package/dist/esm-es5/index-64c90183.js +0 -2
  429. package/dist/esm-es5/index-64c90183.js.map +0 -1
  430. package/dist/pine-core/p-0afcc785.system.entry.js +0 -2
  431. package/dist/pine-core/p-0afcc785.system.entry.js.map +0 -1
  432. package/dist/pine-core/p-1400b1f0.system.entry.js +0 -2
  433. package/dist/pine-core/p-1400b1f0.system.entry.js.map +0 -1
  434. package/dist/pine-core/p-18abb120.entry.js +0 -2
  435. package/dist/pine-core/p-18abb120.entry.js.map +0 -1
  436. package/dist/pine-core/p-19f02715.system.entry.js +0 -2
  437. package/dist/pine-core/p-19f02715.system.entry.js.map +0 -1
  438. package/dist/pine-core/p-1b7c9a32.entry.js +0 -2
  439. package/dist/pine-core/p-1b7c9a32.entry.js.map +0 -1
  440. package/dist/pine-core/p-1e334408.system.entry.js +0 -2
  441. package/dist/pine-core/p-1e334408.system.entry.js.map +0 -1
  442. package/dist/pine-core/p-2052f3aa.system.entry.js +0 -2
  443. package/dist/pine-core/p-2052f3aa.system.entry.js.map +0 -1
  444. package/dist/pine-core/p-237f0b79.entry.js +0 -2
  445. package/dist/pine-core/p-237f0b79.entry.js.map +0 -1
  446. package/dist/pine-core/p-25284941.system.entry.js +0 -2
  447. package/dist/pine-core/p-25284941.system.entry.js.map +0 -1
  448. package/dist/pine-core/p-26477108.entry.js +0 -2
  449. package/dist/pine-core/p-26477108.entry.js.map +0 -1
  450. package/dist/pine-core/p-2a609e04.entry.js +0 -2
  451. package/dist/pine-core/p-2a609e04.entry.js.map +0 -1
  452. package/dist/pine-core/p-2c89ac70.system.entry.js +0 -2
  453. package/dist/pine-core/p-2c89ac70.system.entry.js.map +0 -1
  454. package/dist/pine-core/p-2fbe7bd7.system.entry.js +0 -2
  455. package/dist/pine-core/p-2fbe7bd7.system.entry.js.map +0 -1
  456. package/dist/pine-core/p-35a4815c.system.entry.js +0 -2
  457. package/dist/pine-core/p-35a4815c.system.entry.js.map +0 -1
  458. package/dist/pine-core/p-35d540e7.entry.js +0 -2
  459. package/dist/pine-core/p-35d540e7.entry.js.map +0 -1
  460. package/dist/pine-core/p-52c4ebbb.system.js +0 -2
  461. package/dist/pine-core/p-52c4ebbb.system.js.map +0 -1
  462. package/dist/pine-core/p-57e352da.entry.js +0 -2
  463. package/dist/pine-core/p-57e352da.entry.js.map +0 -1
  464. package/dist/pine-core/p-5966e442.entry.js +0 -2
  465. package/dist/pine-core/p-5966e442.entry.js.map +0 -1
  466. package/dist/pine-core/p-61ba006d.entry.js +0 -2
  467. package/dist/pine-core/p-61ba006d.entry.js.map +0 -1
  468. package/dist/pine-core/p-6a8d8d12.entry.js +0 -2
  469. package/dist/pine-core/p-6a8d8d12.entry.js.map +0 -1
  470. package/dist/pine-core/p-6b742f8e.system.entry.js +0 -2
  471. package/dist/pine-core/p-6b742f8e.system.entry.js.map +0 -1
  472. package/dist/pine-core/p-70860aa6.entry.js +0 -2
  473. package/dist/pine-core/p-70860aa6.entry.js.map +0 -1
  474. package/dist/pine-core/p-7293fa0b.system.entry.js +0 -2
  475. package/dist/pine-core/p-7293fa0b.system.entry.js.map +0 -1
  476. package/dist/pine-core/p-72fd05db.system.entry.js +0 -2
  477. package/dist/pine-core/p-72fd05db.system.entry.js.map +0 -1
  478. package/dist/pine-core/p-7543ee35.system.entry.js +0 -2
  479. package/dist/pine-core/p-7543ee35.system.entry.js.map +0 -1
  480. package/dist/pine-core/p-794322e8.system.entry.js +0 -2
  481. package/dist/pine-core/p-794322e8.system.entry.js.map +0 -1
  482. package/dist/pine-core/p-7fc3e294.entry.js +0 -2
  483. package/dist/pine-core/p-7fc3e294.entry.js.map +0 -1
  484. package/dist/pine-core/p-8196f142.entry.js +0 -2
  485. package/dist/pine-core/p-8196f142.entry.js.map +0 -1
  486. package/dist/pine-core/p-88a72515.js +0 -2
  487. package/dist/pine-core/p-88a72515.js.map +0 -1
  488. package/dist/pine-core/p-8b45381c.entry.js +0 -2
  489. package/dist/pine-core/p-8b45381c.entry.js.map +0 -1
  490. package/dist/pine-core/p-93859623.entry.js +0 -2
  491. package/dist/pine-core/p-93859623.entry.js.map +0 -1
  492. package/dist/pine-core/p-94688fce.system.entry.js +0 -2
  493. package/dist/pine-core/p-94688fce.system.entry.js.map +0 -1
  494. package/dist/pine-core/p-95bb614b.system.entry.js +0 -2
  495. package/dist/pine-core/p-95bb614b.system.entry.js.map +0 -1
  496. package/dist/pine-core/p-a0733832.entry.js +0 -2
  497. package/dist/pine-core/p-a0733832.entry.js.map +0 -1
  498. package/dist/pine-core/p-a6cc48e5.system.entry.js +0 -2
  499. package/dist/pine-core/p-a6cc48e5.system.entry.js.map +0 -1
  500. package/dist/pine-core/p-a913d9f3.entry.js +0 -2
  501. package/dist/pine-core/p-a913d9f3.entry.js.map +0 -1
  502. package/dist/pine-core/p-afef45f9.system.entry.js +0 -2
  503. package/dist/pine-core/p-afef45f9.system.entry.js.map +0 -1
  504. package/dist/pine-core/p-b5582d9f.entry.js +0 -2
  505. package/dist/pine-core/p-b5582d9f.entry.js.map +0 -1
  506. package/dist/pine-core/p-c3440b2d.entry.js +0 -2
  507. package/dist/pine-core/p-c3440b2d.entry.js.map +0 -1
  508. package/dist/pine-core/p-c3a29f5e.system.entry.js +0 -2
  509. package/dist/pine-core/p-c3a29f5e.system.entry.js.map +0 -1
  510. package/dist/pine-core/p-d074b0db.system.entry.js +0 -2
  511. package/dist/pine-core/p-d074b0db.system.entry.js.map +0 -1
  512. package/dist/pine-core/p-d479e9d1.entry.js +0 -2
  513. package/dist/pine-core/p-d479e9d1.entry.js.map +0 -1
  514. package/dist/pine-core/p-d53f0284.system.entry.js +0 -2
  515. package/dist/pine-core/p-d53f0284.system.entry.js.map +0 -1
  516. package/dist/pine-core/p-d54e620f.system.entry.js +0 -2
  517. package/dist/pine-core/p-d54e620f.system.entry.js.map +0 -1
  518. package/dist/pine-core/p-d5628be9.entry.js +0 -2
  519. package/dist/pine-core/p-d5628be9.entry.js.map +0 -1
  520. package/dist/pine-core/p-de8abfde.system.entry.js +0 -2
  521. package/dist/pine-core/p-df08eb9e.entry.js +0 -2
  522. package/dist/pine-core/p-df08eb9e.entry.js.map +0 -1
  523. package/dist/pine-core/p-e200c428.entry.js +0 -2
  524. package/dist/pine-core/p-e200c428.entry.js.map +0 -1
  525. package/dist/pine-core/p-ea2edef4.entry.js +0 -2
  526. package/dist/pine-core/p-ea2edef4.entry.js.map +0 -1
  527. package/dist/pine-core/p-f8c53e6f.system.entry.js +0 -2
  528. package/dist/pine-core/p-f8c53e6f.system.entry.js.map +0 -1
  529. package/hydrate/index.d.ts +0 -218
  530. package/hydrate/index.js +0 -13124
  531. package/hydrate/package.json +0 -6
@@ -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{--background-fixed:var(--pine-color-base-white);--background-interactive:var(--pine-color-neutral-grey-200);border-color:inherit;display:table-row;vertical-align:inherit}:host::part(checkbox-cell){background-color:var(--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(--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,4hBAA4hB,CAAC;AACpjB,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,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,IAAI,CAAC,QAAQ,CAAC,UAAU,KACxC,uEAAgB,IAAI,EAAE,IAAI,CAAC,QAAQ,CAAC,WAAW,GAAG,eAAe,GAAG,EAAE,EAAE,KAAK,EAAE,IAAI,CAAC,QAAQ,CAAC,UAAU,GAAG,cAAc,GAAG,EAAE,IAC3H,qEACE,WAAW,EAAE,IAAI,CAAC,gBAAgB,EAAE,EACpC,OAAO,EAAE,IAAI,CAAC,mBAAmB,EACjC,KAAK,EAAE,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 --background-fixed: var(--pine-color-base-white);\n --background-interactive: var(--pine-color-neutral-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(--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(--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{--background:var(--pine-color-base-white);background:var(--background);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(--background)), to(var(--background))), -webkit-gradient(linear, left top, right top, from(var(--background)), to(var(--background))), -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(--background), var(--background)), linear-gradient(to right, var(--background), var(--background)), 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 {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-table/pds-table.tsx"],"sourcesContent":[":host {\n --background: var(--pine-color-base-white);\n\n background: var(--background);\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(--background), var(--background)),\n linear-gradient(to right, var(--background), var(--background)),\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(--panel-margin-top);padding:var(--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,uJAAuJ,CAAC;AAC/K,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(--panel-margin-top);\n padding: var(--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{--panel-margin-top:0;--panel-padding:0;--gap-md:var(--pine-spacing-md);--gap-xs:var(--pine-spacing-xs);--gap-sm:16px var(--pine-spacing-sm);--outline:2px solid var(--pine-color-primary-200);display:block}.pds-tabs__tablist{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--gap-md)}:host(.pds-tabs--availability) .pds-tabs__tablist{gap:var(--gap-xs)}:host(.pds-tabs--filter) .pds-tabs__tablist{gap:var(--gap-sm)}";
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,8bAA8b,CAAC;AACld,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,CA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AAM,GAAG,CAChB,EACN,6DAAM,IAAI,EAAC,WAAW,GAAG,CACpB,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsTabs"],"sources":["src/components/pds-tabs/pds-tabs.scss?tag=pds-tabs&encapsulation=shadow","src/components/pds-tabs/pds-tabs.tsx"],"sourcesContent":[":host {\n /**\n * @prop --panel-margin-top: Optional margin-top for panels\n */\n --panel-margin-top: 0;\n\n /**\n * @prop --panel-padding: Optional padding for panels\n */\n --panel-padding: 0;\n\n --gap-md: var(--pine-spacing-md);\n --gap-xs: var(--pine-spacing-xs);\n --gap-sm: 16px var(--pine-spacing-sm);\n --outline: 2px solid var(--pine-color-primary-200);\n\n display: block;\n}\n\n.pds-tabs__tablist {\n display: flex;\n flex-wrap: wrap;\n gap: var(--gap-md);\n}\n\n:host(.pds-tabs--availability) .pds-tabs__tablist {\n gap: var(--gap-xs);\n}\n\n:host(.pds-tabs--filter) .pds-tabs__tablist {\n gap: var(--gap-sm);\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{--background-color:var(--pine-color-base-white);--background-color-disabled:var(--pine-color-neutral-grey-200);--color:var(--pine-color-neutral-charcoal-400);--color-error:var(--pine-color-red-300);--color-placeholder:var(--pine-color-neutral-charcoal-200);--color-disabled:var(--pine-color-neutral-charcoal-200);--border-color-default:var(--pine-color-neutral-grey-400);--border-color-hover:var(--pine-color-neutral-grey-500);--border-color-focus-visible:var(--pine-color-neutral-grey-300);--border-color-error:var(--pine-color-red-300);--box-shadow-focus:0 0 0 2px var(--focus-visible-outline-color);--box-shadow-focus-error:0 0 0 2px var(--focus-visible-outline-color-error);--focus-visible-outline-color:var(--pine-color-primary-200);--focus-visible-outline-color-error:var(--pine-color-red-200);--label-font-size:var(--pine-font-size-body);--label-font-weight:var(--pine-font-weight-medium);--label-line-height:var(--pine-line-height-md);--label-margin-block-end:var(--pine-spacing-xs);--field-font-size:var(--pine-font-size-body);--field-font-weight:var(--pine-font-weight-regular);--field-line-height:var(--pine-line-height-md);--field-padding-block:var(--pine-spacing-xs);--field-padding-inline:var(--pine-spacing-sm);--helper-message-font-size:var(--pine-font-size-body-xs);--helper-message-font-weight:var(--pine-font-weight-regular);--helper-message-line-height:var(--pine-line-height-sm);--helper-message-margin-block-start:var(--pine-spacing-xs);display:inline}.pds-textarea{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}label{display:block;font-size:var(--label-font-size);font-weight:var(--label-font-weight);line-height:var(--label-line-height);-webkit-margin-after:var(--label-margin-block-end);margin-block-end:var(--label-margin-block-end)}.pds-textarea__field{background-color:var(--background-color);border:var(--pine-border-interactive);border-radius:var(--pine-border-radius-md);font-family:inherit;font-size:var(--field-font-size);font-weight:var(--field-font-weight);line-height:var(--field-line-height);padding:var(--field-padding-block) var(--field-padding-inline)}.pds-textarea__field:hover:not(:disabled,.is-invalid){border-color:var(--border-color-hover)}.pds-textarea__field:disabled{background-color:var(--background-color-disabled);color:var(--color-disabled);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)}.pds-textarea__field::-moz-placeholder{color:var(--color-placeholder)}.pds-textarea__field:-ms-input-placeholder{color:var(--color-placeholder)}.pds-textarea__field::-ms-input-placeholder{color:var(--color-placeholder)}.pds-textarea__field::placeholder{color:var(--color-placeholder)}.pds-textarea__field.is-invalid{border-color:var(--color-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(--helper-message-font-size);font-weight:var(--helper-message-font-weight);line-height:var(--helper-message-line-height);-webkit-margin-after:0;margin-block-end:0;-webkit-margin-before:var(--helper-message-margin-block-start);margin-block-start:var(--helper-message-margin-block-start)}.pds-textarea__error-message{color:var(--color-error)}";
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,g4GAAg4G,CAAC;AACx5G,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,C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I,CAAC,WAAW,EAAE,OAAO,CAAC,IAEvC,IAAI,CAAC,YAAY,CAChB,CAEF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","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 --background-color: var(--pine-color-base-white);\n --background-color-disabled: var(--pine-color-neutral-grey-200);\n\n --color: var(--pine-color-neutral-charcoal-400);\n --color-error: var(--pine-color-red-300);\n --color-placeholder: var(--pine-color-neutral-charcoal-200);\n --color-disabled: var(--pine-color-neutral-charcoal-200);\n\n --border-color-default: var(--pine-color-neutral-grey-400);\n --border-color-hover: var(--pine-color-neutral-grey-500);\n --border-color-focus-visible: var(--pine-color-neutral-grey-300);\n --border-color-error: var(--pine-color-red-300);\n\n --box-shadow-focus: 0 0 0 2px var(--focus-visible-outline-color);\n --box-shadow-focus-error: 0 0 0 2px var(--focus-visible-outline-color-error);\n\n --focus-visible-outline-color: var(--pine-color-primary-200);\n --focus-visible-outline-color-error: var(--pine-color-red-200);\n\n --label-font-size: var(--pine-font-size-body);\n --label-font-weight: var(--pine-font-weight-medium);\n --label-line-height: var(--pine-line-height-md);\n --label-margin-block-end: var(--pine-spacing-xs);\n\n --field-font-size: var(--pine-font-size-body);\n --field-font-weight: var(--pine-font-weight-regular);\n --field-line-height: var(--pine-line-height-md);\n --field-padding-block: var(--pine-spacing-xs);\n --field-padding-inline: var(--pine-spacing-sm);\n\n --helper-message-font-size: var(--pine-font-size-body-xs);\n --helper-message-font-weight: var(--pine-font-weight-regular);\n --helper-message-line-height: var(--pine-line-height-sm);\n --helper-message-margin-block-start: var(--pine-spacing-xs);\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(--label-font-size);\n font-weight: var(--label-font-weight);\n line-height: var(--label-line-height);\n margin-block-end: var(--label-margin-block-end);\n}\n\n.pds-textarea__field {\n background-color: var(--background-color);\n border: var(--pine-border-interactive);\n border-radius: var(--pine-border-radius-md);\n font-family: inherit;\n font-size: var(--field-font-size);\n font-weight: var(--field-font-weight);\n line-height: var(--field-line-height);\n padding: var(--field-padding-block) var(--field-padding-inline);\n\n &:hover:not(:disabled, .is-invalid) {\n border-color: var(--border-color-hover);\n }\n\n &:disabled {\n background-color: var(--background-color-disabled);\n color: var(--color-disabled);\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);\n }\n\n &.is-invalid {\n border-color: var(--color-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(--helper-message-font-size);\n font-weight: var(--helper-message-font-weight);\n line-height: var(--helper-message-line-height);\n margin-block-end: 0;\n margin-block-start: var(--helper-message-margin-block-start);\n}\n\n.pds-textarea__error-message {\n color: var(--color-error);\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;