@pine-ds/core 0.0.2-alpha.0 → 0.0.2-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (276) hide show
  1. package/components/custom-elements.d.ts +2 -0
  2. package/components/index.d.ts +33 -0
  3. package/components/index.js +3 -0
  4. package/components/index.js.map +1 -0
  5. package/components/package.json +9 -0
  6. package/components/pds-avatar.d.ts +11 -0
  7. package/components/pds-avatar.js +98 -0
  8. package/components/pds-avatar.js.map +1 -0
  9. package/components/pds-button.d.ts +11 -0
  10. package/components/pds-button.js +8 -0
  11. package/components/pds-button.js.map +1 -0
  12. package/components/pds-button2.js +82 -0
  13. package/components/pds-button2.js.map +1 -0
  14. package/components/pds-checkbox.d.ts +11 -0
  15. package/components/pds-checkbox.js +83 -0
  16. package/components/pds-checkbox.js.map +1 -0
  17. package/components/pds-chip.d.ts +11 -0
  18. package/components/pds-chip.js +76 -0
  19. package/components/pds-chip.js.map +1 -0
  20. package/components/pds-copytext.d.ts +11 -0
  21. package/components/pds-copytext.js +100 -0
  22. package/components/pds-copytext.js.map +1 -0
  23. package/components/pds-divider.d.ts +11 -0
  24. package/components/pds-divider.js +53 -0
  25. package/components/pds-divider.js.map +1 -0
  26. package/components/pds-icon.js +8 -0
  27. package/components/pds-icon.js.map +1 -0
  28. package/components/pds-icon2.js +323 -0
  29. package/components/pds-icon2.js.map +1 -0
  30. package/components/pds-image.d.ts +11 -0
  31. package/components/pds-image.js +54 -0
  32. package/components/pds-image.js.map +1 -0
  33. package/components/pds-input.d.ts +11 -0
  34. package/components/pds-input.js +71 -0
  35. package/components/pds-input.js.map +1 -0
  36. package/components/pds-label.js +39 -0
  37. package/components/pds-label.js.map +1 -0
  38. package/components/pds-link.d.ts +11 -0
  39. package/components/pds-link.js +66 -0
  40. package/components/pds-link.js.map +1 -0
  41. package/components/pds-progress.d.ts +11 -0
  42. package/components/pds-progress.js +48 -0
  43. package/components/pds-progress.js.map +1 -0
  44. package/components/pds-radio.d.ts +11 -0
  45. package/components/pds-radio.js +77 -0
  46. package/components/pds-radio.js.map +1 -0
  47. package/components/pds-sortable-item.d.ts +11 -0
  48. package/components/pds-sortable-item.js +47 -0
  49. package/components/pds-sortable-item.js.map +1 -0
  50. package/components/pds-sortable.d.ts +11 -0
  51. package/components/pds-sortable.js +2724 -0
  52. package/components/pds-sortable.js.map +1 -0
  53. package/components/pds-switch.d.ts +11 -0
  54. package/components/pds-switch.js +81 -0
  55. package/components/pds-switch.js.map +1 -0
  56. package/components/pds-tab.d.ts +11 -0
  57. package/components/pds-tab.js +52 -0
  58. package/components/pds-tab.js.map +1 -0
  59. package/components/pds-tabpanel.d.ts +11 -0
  60. package/components/pds-tabpanel.js +44 -0
  61. package/components/pds-tabpanel.js.map +1 -0
  62. package/components/pds-tabs.d.ts +11 -0
  63. package/components/pds-tabs.js +118 -0
  64. package/components/pds-tabs.js.map +1 -0
  65. package/components/pds-textarea.d.ts +11 -0
  66. package/components/pds-textarea.js +81 -0
  67. package/components/pds-textarea.js.map +1 -0
  68. package/components/pds-tooltip.d.ts +11 -0
  69. package/components/pds-tooltip.js +177 -0
  70. package/components/pds-tooltip.js.map +1 -0
  71. package/dist/cjs/{index-13500e25.js → index-0b3b1872.js} +25 -17
  72. package/dist/cjs/index-0b3b1872.js.map +1 -0
  73. package/dist/cjs/loader.cjs.js +2 -2
  74. package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
  75. package/dist/cjs/pds-button.cjs.entry.js +1 -1
  76. package/dist/cjs/pds-checkbox.cjs.entry.js +2 -2
  77. package/dist/cjs/pds-chip.cjs.entry.js +1 -1
  78. package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
  79. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  80. package/dist/cjs/pds-icon.cjs.entry.js +37 -15
  81. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  82. package/dist/cjs/pds-image.cjs.entry.js +1 -1
  83. package/dist/cjs/pds-input.cjs.entry.js +2 -2
  84. package/dist/cjs/{pds-label-71ea2cad.js → pds-label-43804d0a.js} +2 -2
  85. package/dist/cjs/{pds-label-71ea2cad.js.map → pds-label-43804d0a.js.map} +1 -1
  86. package/dist/cjs/pds-link.cjs.entry.js +5 -2
  87. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  88. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  89. package/dist/cjs/pds-radio.cjs.entry.js +2 -2
  90. package/dist/cjs/pds-sortable-item.cjs.entry.js +1 -1
  91. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  92. package/dist/cjs/pds-switch.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  94. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  95. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  96. package/dist/cjs/pds-textarea.cjs.entry.js +2 -2
  97. package/dist/cjs/pds-tooltip.cjs.entry.js +1 -1
  98. package/dist/cjs/pine-core.cjs.js +3 -3
  99. package/dist/cjs/pine-core.cjs.js.map +1 -1
  100. package/dist/collection/collection-manifest.json +1 -1
  101. package/dist/collection/components/pds-link/pds-link.js +2 -1
  102. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  103. package/dist/docs.d.ts +1 -21
  104. package/dist/docs.json +2 -2
  105. package/dist/esm/{index-a58668b3.js → index-8f65139a.js} +25 -17
  106. package/dist/esm/index-8f65139a.js.map +1 -0
  107. package/dist/esm/loader.js +3 -3
  108. package/dist/esm/pds-avatar.entry.js +1 -1
  109. package/dist/esm/pds-button.entry.js +1 -1
  110. package/dist/esm/pds-checkbox.entry.js +2 -2
  111. package/dist/esm/pds-chip.entry.js +1 -1
  112. package/dist/esm/pds-copytext.entry.js +1 -1
  113. package/dist/esm/pds-divider.entry.js +1 -1
  114. package/dist/esm/pds-icon.entry.js +37 -15
  115. package/dist/esm/pds-icon.entry.js.map +1 -1
  116. package/dist/esm/pds-image.entry.js +1 -1
  117. package/dist/esm/pds-input.entry.js +2 -2
  118. package/dist/esm/{pds-label-a26dd876.js → pds-label-85f84612.js} +2 -2
  119. package/dist/esm/{pds-label-a26dd876.js.map → pds-label-85f84612.js.map} +1 -1
  120. package/dist/esm/pds-link.entry.js +5 -2
  121. package/dist/esm/pds-link.entry.js.map +1 -1
  122. package/dist/esm/pds-progress.entry.js +1 -1
  123. package/dist/esm/pds-radio.entry.js +2 -2
  124. package/dist/esm/pds-sortable-item.entry.js +1 -1
  125. package/dist/esm/pds-sortable.entry.js +1 -1
  126. package/dist/esm/pds-switch.entry.js +2 -2
  127. package/dist/esm/pds-tab.entry.js +1 -1
  128. package/dist/esm/pds-tabpanel.entry.js +1 -1
  129. package/dist/esm/pds-tabs.entry.js +1 -1
  130. package/dist/esm/pds-textarea.entry.js +2 -2
  131. package/dist/esm/pds-tooltip.entry.js +1 -1
  132. package/dist/esm/pine-core.js +4 -4
  133. package/dist/esm/pine-core.js.map +1 -1
  134. package/dist/esm-es5/index-8f65139a.js +3 -0
  135. package/dist/esm-es5/index-8f65139a.js.map +1 -0
  136. package/dist/esm-es5/loader.js +1 -1
  137. package/dist/esm-es5/loader.js.map +1 -1
  138. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  139. package/dist/esm-es5/pds-button.entry.js +1 -1
  140. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  141. package/dist/esm-es5/pds-chip.entry.js +1 -1
  142. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  143. package/dist/esm-es5/pds-divider.entry.js +1 -1
  144. package/dist/esm-es5/pds-icon.entry.js +1 -1
  145. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  146. package/dist/esm-es5/pds-image.entry.js +1 -1
  147. package/dist/esm-es5/pds-input.entry.js +1 -1
  148. package/dist/esm-es5/{pds-label-a26dd876.js → pds-label-85f84612.js} +2 -2
  149. package/dist/esm-es5/pds-link.entry.js +1 -1
  150. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  151. package/dist/esm-es5/pds-progress.entry.js +1 -1
  152. package/dist/esm-es5/pds-radio.entry.js +1 -1
  153. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  154. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  155. package/dist/esm-es5/pds-switch.entry.js +1 -1
  156. package/dist/esm-es5/pds-tab.entry.js +1 -1
  157. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  158. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  159. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  160. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  161. package/dist/esm-es5/pine-core.js +1 -1
  162. package/dist/esm-es5/pine-core.js.map +1 -1
  163. package/dist/pine-core/p-0532f829.entry.js +2 -0
  164. package/dist/pine-core/p-0532f829.entry.js.map +1 -0
  165. package/dist/pine-core/{p-f2c3035d.system.entry.js → p-09573d54.system.entry.js} +2 -2
  166. package/dist/pine-core/{p-f09892d3.system.entry.js → p-150e12a5.system.entry.js} +2 -2
  167. package/dist/pine-core/{p-c8a41b43.system.entry.js → p-1a307cc4.system.entry.js} +2 -2
  168. package/dist/pine-core/{p-4fc42ff3.system.entry.js → p-1cb9fddf.system.entry.js} +2 -2
  169. package/dist/pine-core/{p-79d7e0b1.system.entry.js → p-237709cc.system.entry.js} +2 -2
  170. package/dist/pine-core/{p-8f62c812.entry.js → p-23b8d1bb.entry.js} +2 -2
  171. package/dist/pine-core/{p-22dd8116.entry.js → p-2847bd57.entry.js} +2 -2
  172. package/dist/pine-core/{p-f3af6d74.system.entry.js → p-34b29411.system.entry.js} +2 -2
  173. package/dist/pine-core/p-3d2843f8.system.js +2 -0
  174. package/dist/pine-core/{p-c4dbae0e.system.js.map → p-3d2843f8.system.js.map} +1 -1
  175. package/dist/pine-core/{p-73262287.system.entry.js → p-403d43d5.system.entry.js} +2 -2
  176. package/dist/pine-core/{p-669d948a.system.entry.js → p-4472b337.system.entry.js} +2 -2
  177. package/dist/pine-core/{p-f168654a.entry.js → p-465b7120.entry.js} +2 -2
  178. package/dist/pine-core/{p-401cd4bc.entry.js → p-5787d0c0.entry.js} +2 -2
  179. package/dist/pine-core/{p-7bc01826.entry.js → p-59334e35.entry.js} +2 -2
  180. package/dist/pine-core/{p-85f6a94e.system.entry.js → p-5d7bad14.system.entry.js} +2 -2
  181. package/dist/pine-core/{p-331cbf1d.entry.js → p-60930784.entry.js} +2 -2
  182. package/dist/pine-core/{p-bce2d5b5.system.entry.js → p-654295e2.system.entry.js} +2 -2
  183. package/dist/pine-core/{p-c0f9dbe1.system.entry.js → p-66f8fbb0.system.entry.js} +2 -2
  184. package/dist/pine-core/{p-0c26a00d.entry.js → p-6c295ed8.entry.js} +2 -2
  185. package/dist/pine-core/{p-0a776a7b.entry.js → p-6dd5d826.entry.js} +2 -2
  186. package/dist/pine-core/p-6f044e28.entry.js +2 -0
  187. package/dist/pine-core/{p-643f5378.entry.js.map → p-6f044e28.entry.js.map} +1 -1
  188. package/dist/pine-core/{p-5b37a4a2.system.entry.js → p-708a557d.system.entry.js} +2 -2
  189. package/dist/pine-core/{p-fba29e90.entry.js → p-7f16e44f.entry.js} +2 -2
  190. package/dist/pine-core/{p-22bd3102.system.entry.js → p-83040cfc.system.entry.js} +2 -2
  191. package/dist/pine-core/{p-bff583bd.system.js → p-9138d494.system.js} +2 -2
  192. package/dist/pine-core/{p-1c0ffcab.entry.js → p-978cad20.entry.js} +2 -2
  193. package/dist/pine-core/p-9830c8b4.system.js +3 -0
  194. package/dist/pine-core/p-9830c8b4.system.js.map +1 -0
  195. package/dist/pine-core/{p-4a804680.entry.js → p-9a184d74.entry.js} +2 -2
  196. package/dist/pine-core/{p-b17b818b.entry.js → p-aa9f027c.entry.js} +2 -2
  197. package/dist/pine-core/p-b199ca99.entry.js +2 -0
  198. package/dist/pine-core/p-b199ca99.entry.js.map +1 -0
  199. package/dist/pine-core/p-b8421db5.system.entry.js +2 -0
  200. package/dist/pine-core/p-b8421db5.system.entry.js.map +1 -0
  201. package/dist/pine-core/{p-d3e173ea.system.entry.js → p-bf6b565e.system.entry.js} +2 -2
  202. package/dist/pine-core/{p-938886d8.system.entry.js → p-c014702b.system.entry.js} +2 -2
  203. package/dist/pine-core/p-c209ff58.system.entry.js +2 -0
  204. package/dist/pine-core/p-c209ff58.system.entry.js.map +1 -0
  205. package/dist/pine-core/p-c81c20b7.js +3 -0
  206. package/dist/pine-core/p-c81c20b7.js.map +1 -0
  207. package/dist/pine-core/{p-27fd7f08.system.entry.js → p-d0446af7.system.entry.js} +2 -2
  208. package/dist/pine-core/{p-7fcd5f0b.entry.js → p-d1c7a84d.entry.js} +2 -2
  209. package/dist/pine-core/{p-930ab8a3.system.entry.js → p-d6e0c333.system.entry.js} +2 -2
  210. package/dist/pine-core/{p-97cb4285.entry.js → p-d8a277e5.entry.js} +2 -2
  211. package/dist/pine-core/{p-ac31a7c8.system.entry.js → p-da802c91.system.entry.js} +2 -2
  212. package/dist/pine-core/{p-24077dcd.entry.js → p-db6ea8de.entry.js} +2 -2
  213. package/dist/pine-core/{p-f1d7f16f.js → p-e893b132.js} +2 -2
  214. package/dist/pine-core/{p-0adb4b48.entry.js → p-f30549db.entry.js} +2 -2
  215. package/dist/pine-core/{p-af75cc15.entry.js → p-f3ee8a5e.entry.js} +2 -2
  216. package/dist/pine-core/pine-core.esm.js +1 -1
  217. package/dist/pine-core/pine-core.esm.js.map +1 -1
  218. package/dist/pine-core/pine-core.js +1 -1
  219. package/dist/pine-core/svg/blog-filled.svg +1 -1
  220. package/package.json +3 -2
  221. package/dist/cjs/index-13500e25.js.map +0 -1
  222. package/dist/esm/index-a58668b3.js.map +0 -1
  223. package/dist/esm-es5/index-a58668b3.js +0 -3
  224. package/dist/esm-es5/index-a58668b3.js.map +0 -1
  225. package/dist/pine-core/p-23fb6af2.system.entry.js +0 -2
  226. package/dist/pine-core/p-23fb6af2.system.entry.js.map +0 -1
  227. package/dist/pine-core/p-3386bfe1.system.entry.js +0 -2
  228. package/dist/pine-core/p-3386bfe1.system.entry.js.map +0 -1
  229. package/dist/pine-core/p-643f5378.entry.js +0 -2
  230. package/dist/pine-core/p-abdca153.js +0 -3
  231. package/dist/pine-core/p-abdca153.js.map +0 -1
  232. package/dist/pine-core/p-b79a8b07.entry.js +0 -2
  233. package/dist/pine-core/p-b79a8b07.entry.js.map +0 -1
  234. package/dist/pine-core/p-c4dbae0e.system.js +0 -2
  235. package/dist/pine-core/p-c6d878f8.entry.js +0 -2
  236. package/dist/pine-core/p-c6d878f8.entry.js.map +0 -1
  237. package/dist/pine-core/p-fa5d4e73.system.js +0 -3
  238. package/dist/pine-core/p-fa5d4e73.system.js.map +0 -1
  239. /package/dist/esm-es5/{pds-label-a26dd876.js.map → pds-label-85f84612.js.map} +0 -0
  240. /package/dist/pine-core/{p-f2c3035d.system.entry.js.map → p-09573d54.system.entry.js.map} +0 -0
  241. /package/dist/pine-core/{p-f09892d3.system.entry.js.map → p-150e12a5.system.entry.js.map} +0 -0
  242. /package/dist/pine-core/{p-c8a41b43.system.entry.js.map → p-1a307cc4.system.entry.js.map} +0 -0
  243. /package/dist/pine-core/{p-4fc42ff3.system.entry.js.map → p-1cb9fddf.system.entry.js.map} +0 -0
  244. /package/dist/pine-core/{p-79d7e0b1.system.entry.js.map → p-237709cc.system.entry.js.map} +0 -0
  245. /package/dist/pine-core/{p-8f62c812.entry.js.map → p-23b8d1bb.entry.js.map} +0 -0
  246. /package/dist/pine-core/{p-22dd8116.entry.js.map → p-2847bd57.entry.js.map} +0 -0
  247. /package/dist/pine-core/{p-f3af6d74.system.entry.js.map → p-34b29411.system.entry.js.map} +0 -0
  248. /package/dist/pine-core/{p-73262287.system.entry.js.map → p-403d43d5.system.entry.js.map} +0 -0
  249. /package/dist/pine-core/{p-669d948a.system.entry.js.map → p-4472b337.system.entry.js.map} +0 -0
  250. /package/dist/pine-core/{p-f168654a.entry.js.map → p-465b7120.entry.js.map} +0 -0
  251. /package/dist/pine-core/{p-401cd4bc.entry.js.map → p-5787d0c0.entry.js.map} +0 -0
  252. /package/dist/pine-core/{p-7bc01826.entry.js.map → p-59334e35.entry.js.map} +0 -0
  253. /package/dist/pine-core/{p-85f6a94e.system.entry.js.map → p-5d7bad14.system.entry.js.map} +0 -0
  254. /package/dist/pine-core/{p-331cbf1d.entry.js.map → p-60930784.entry.js.map} +0 -0
  255. /package/dist/pine-core/{p-bce2d5b5.system.entry.js.map → p-654295e2.system.entry.js.map} +0 -0
  256. /package/dist/pine-core/{p-c0f9dbe1.system.entry.js.map → p-66f8fbb0.system.entry.js.map} +0 -0
  257. /package/dist/pine-core/{p-0c26a00d.entry.js.map → p-6c295ed8.entry.js.map} +0 -0
  258. /package/dist/pine-core/{p-0a776a7b.entry.js.map → p-6dd5d826.entry.js.map} +0 -0
  259. /package/dist/pine-core/{p-5b37a4a2.system.entry.js.map → p-708a557d.system.entry.js.map} +0 -0
  260. /package/dist/pine-core/{p-fba29e90.entry.js.map → p-7f16e44f.entry.js.map} +0 -0
  261. /package/dist/pine-core/{p-22bd3102.system.entry.js.map → p-83040cfc.system.entry.js.map} +0 -0
  262. /package/dist/pine-core/{p-bff583bd.system.js.map → p-9138d494.system.js.map} +0 -0
  263. /package/dist/pine-core/{p-1c0ffcab.entry.js.map → p-978cad20.entry.js.map} +0 -0
  264. /package/dist/pine-core/{p-4a804680.entry.js.map → p-9a184d74.entry.js.map} +0 -0
  265. /package/dist/pine-core/{p-b17b818b.entry.js.map → p-aa9f027c.entry.js.map} +0 -0
  266. /package/dist/pine-core/{p-d3e173ea.system.entry.js.map → p-bf6b565e.system.entry.js.map} +0 -0
  267. /package/dist/pine-core/{p-938886d8.system.entry.js.map → p-c014702b.system.entry.js.map} +0 -0
  268. /package/dist/pine-core/{p-27fd7f08.system.entry.js.map → p-d0446af7.system.entry.js.map} +0 -0
  269. /package/dist/pine-core/{p-7fcd5f0b.entry.js.map → p-d1c7a84d.entry.js.map} +0 -0
  270. /package/dist/pine-core/{p-930ab8a3.system.entry.js.map → p-d6e0c333.system.entry.js.map} +0 -0
  271. /package/dist/pine-core/{p-97cb4285.entry.js.map → p-d8a277e5.entry.js.map} +0 -0
  272. /package/dist/pine-core/{p-ac31a7c8.system.entry.js.map → p-da802c91.system.entry.js.map} +0 -0
  273. /package/dist/pine-core/{p-24077dcd.entry.js.map → p-db6ea8de.entry.js.map} +0 -0
  274. /package/dist/pine-core/{p-f1d7f16f.js.map → p-e893b132.js.map} +0 -0
  275. /package/dist/pine-core/{p-0adb4b48.entry.js.map → p-f30549db.entry.js.map} +0 -0
  276. /package/dist/pine-core/{p-af75cc15.entry.js.map → p-f3ee8a5e.entry.js.map} +0 -0
@@ -0,0 +1 @@
1
+ {"file":"pds-image.js","mappings":";;AAAA,MAAM,WAAW,GAAG,yHAAyH;;MCOhIA,UAAQ;;;;;mBAKJ,EAAE;;;uBAiBoB,OAAO;;;;;;IA0B5C,MAAM;QACJ,QACE,EAAC,IAAI,IACH,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;aAClB,EACD,EAAE,EAAE,IAAI,CAAC,WAAW,IAEpB,WACE,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACG,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsImage"],"sources":["src/components/pds-image/pds-image.scss?tag=pds-image&encapsulation=shadow","src/components/pds-image/pds-image.tsx"],"sourcesContent":[":host {\n /**\n * @prop --image-aspect-ratio: The image's aspect ratio.\n */\n\n --image-aspect-ratio: auto;\n display: inline-block;\n}\n\nimg {\n aspect-ratio: var(--image-aspect-ratio);\n height: auto;\n width: 100%;\n}","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-image',\n styleUrl: 'pds-image.scss',\n shadow: true,\n})\nexport class PdsImage {\n /**\n * The image's alt tag. If none is provided,\n * it will default to an empty string.\n */\n @Prop() alt? = '';\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * The height of the image in pixels. Setting this will\n * devote space in the layout to prevent layout\n * shifts when the image is loaded.\n */\n @Prop() height?: number;\n\n /**\n * Indicates how the browser should load the image.\n */\n @Prop() loading?: 'eager' | 'lazy' = 'eager';\n\n /**\n * Determines the intended display size of an image\n * within certian breakpoints. Has no effect if `srcset`\n * is not set or value has no width descriptor.\n */\n @Prop() sizes?: string;\n\n /**\n * The image's source.\n */\n @Prop() src: string;\n\n /**\n * A set of image sources for the browser to use.\n */\n @Prop() srcset?: string\n\n /**\n * The width of the image in pixels. Setting this will\n * devote space in the layout to prevent layout\n * shifts when the image is loaded.\n */\n @Prop() width?: number;\n\n render() {\n return (\n <Host\n class={{\n 'pds-image': true,\n }}\n id={this.componentId}\n >\n <img\n alt={this.alt}\n height={this.height}\n loading={this.loading}\n sizes={this.sizes}\n src={this.src}\n srcset={this.srcset}\n width={this.width}\n />\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface PdsInput extends Components.PdsInput, HTMLElement {}
4
+ export const PdsInput: {
5
+ prototype: PdsInput;
6
+ new (): PdsInput;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,71 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
2
+ import { P as PdsLabel, a as assignDescription, m as messageId } from './pds-label.js';
3
+
4
+ const pdsInputCss = ":host{--background:var(--pine-color-base-white);--background-disabled:var(--pine-color-neutral-grey-100);--color:var(--pine-color-neutral-charcoal-500);--color-error:var(--pine-color-red-300);--color-placeholder:var(--pine-color-neutral-charcoal-200);--color-disabled:var(--pine-color-neutral-grey-500);--border-color-default:var(--pine-color-neutral-grey-400);--border-color-hover:var(--pine-color-neutral-grey-500);--focus-box-shadow:0 0 0 4px var(--pine-color-primary-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);--helper-message-font-weight:var(--pine-font-weight-regular);--helper-message-line-height:var(--pine-line-height-sm);--helper-message-margin-top:var(--pine-spacing-xs);display:inline}.pds-input{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}label{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)}input{border:1px solid var(--border-color-default);border-radius:10px;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);}input:disabled{background-color:var(--background-disabled);color:var(--color-disabled);cursor:not-allowed}input:hover{border-color:var(--border-color-hover)}input:focus{-webkit-box-shadow:var(--focus-box-shadow);box-shadow:var(--focus-box-shadow);outline:none}input::-webkit-input-placeholder{color:var(--color-placeholder)}input::-moz-placeholder{color:var(--color-placeholder)}input::-moz-placeholder{color:var(--color-placeholder)}input:-ms-input-placeholder{color:var(--color-placeholder)}input:has(~.pds-input__error-message){border-color:var(--color-error)}.pds-input__error-message,.pds-input__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-top);margin-block-start:var(--helper-message-margin-top)}.pds-input__error-message{color:var(--color-error)}";
5
+
6
+ const PdsInput$1 = /*@__PURE__*/ proxyCustomElement(class PdsInput extends HTMLElement {
7
+ constructor() {
8
+ super();
9
+ this.__registerHost();
10
+ this.__attachShadow();
11
+ this.pdsInput = createEvent(this, "pdsInput", 7);
12
+ this.onInputEvent = (ev) => {
13
+ const input = ev.target;
14
+ if (input) {
15
+ this.value = input.value || '';
16
+ }
17
+ this.pdsInput.emit(ev);
18
+ };
19
+ this.componentId = undefined;
20
+ this.disabled = undefined;
21
+ this.errorMessage = undefined;
22
+ this.helperMessage = undefined;
23
+ this.invalid = undefined;
24
+ this.label = undefined;
25
+ this.name = undefined;
26
+ this.placeholder = undefined;
27
+ this.readonly = undefined;
28
+ this.required = undefined;
29
+ this.type = 'text';
30
+ this.value = undefined;
31
+ }
32
+ render() {
33
+ return (h(Host, { "aria-disabled": this.disabled ? 'true' : null }, h("div", { class: "pds-input" }, h(PdsLabel, { htmlFor: this.componentId, text: this.label }), h("input", { class: "pds-input__field", "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, type: this.type, value: this.value, onInput: this.onInputEvent }), this.helperMessage &&
34
+ h("p", { class: "pds-input__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
35
+ h("p", { class: "pds-input__error-message", id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage))));
36
+ }
37
+ static get style() { return pdsInputCss; }
38
+ }, [1, "pds-input", {
39
+ "componentId": [1, "component-id"],
40
+ "disabled": [4],
41
+ "errorMessage": [1, "error-message"],
42
+ "helperMessage": [1, "helper-message"],
43
+ "invalid": [4],
44
+ "label": [1],
45
+ "name": [1],
46
+ "placeholder": [1],
47
+ "readonly": [4],
48
+ "required": [4],
49
+ "type": [1],
50
+ "value": [1025]
51
+ }]);
52
+ function defineCustomElement$1() {
53
+ if (typeof customElements === "undefined") {
54
+ return;
55
+ }
56
+ const components = ["pds-input"];
57
+ components.forEach(tagName => { switch (tagName) {
58
+ case "pds-input":
59
+ if (!customElements.get(tagName)) {
60
+ customElements.define(tagName, PdsInput$1);
61
+ }
62
+ break;
63
+ } });
64
+ }
65
+
66
+ const PdsInput = PdsInput$1;
67
+ const defineCustomElement = defineCustomElement$1;
68
+
69
+ export { PdsInput, defineCustomElement };
70
+
71
+ //# sourceMappingURL=pds-input.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-input.js","mappings":";;;AAAA,MAAM,WAAW,GAAG,2kFAA2kF;;MCSllFA,UAAQ;;;;;;QAoEX,iBAAY,GAAG,CAAC,EAAS;YAC/B,MAAM,KAAK,GAAG,EAAE,CAAC,MAAiC,CAAC;YACnD,IAAI,KAAK,EAAE;gBACT,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,EAAE,CAAC;aAChC;YACD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAgB,CAAC,CAAC;SACtC,CAAC;;;;;;;;;;;oBAlBa,MAAM;;;IAoBrB,MAAM;QACJ,QACE,EAAC,IAAI,qBACY,IAAI,CAAC,QAAQ,GAAG,MAAM,GAAG,IAAI,IAE5C,WAAK,KAAK,EAAC,WAAW,IACpB,EAAC,QAAQ,IAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI,EACzD,aAAO,KAAK,EAAC,kBAAkB,sBACX,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,kBACzE,IAAI,CAAC,OAAO,GAAG,MAAM,GAAG,SAAS,EAC/C,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,WAAW,EAAE,IAAI,CAAC,WAAW,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,OAAO,EAAE,IAAI,CAAC,YAAY,GAC1B,EACD,IAAI,CAAC,aAAa;YACjB,SACE,KAAK,EAAC,2BAA2B,EACjC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACjB,EAEL,IAAI,CAAC,YAAY;YAChB,SACE,KAAK,EAAC,0BAA0B,EAChC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW,IAEpB,IAAI,CAAC,YAAY,CAChB,CAEF,CACD,EACP;KACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","names":["PdsInput"],"sources":["src/components/pds-input/pds-input.scss?tag=pds-input&encapsulation=shadow","src/components/pds-input/pds-input.tsx"],"sourcesContent":[":host {\n --background: var(--pine-color-base-white);\n --background-disabled: var(--pine-color-neutral-grey-100);\n\n --color: var(--pine-color-neutral-charcoal-500);\n --color-error: var(--pine-color-red-300);\n --color-placeholder: var(--pine-color-neutral-charcoal-200);\n --color-disabled: var(--pine-color-neutral-grey-500);\n\n --border-color-default: var(--pine-color-neutral-grey-400);\n --border-color-hover: var(--pine-color-neutral-grey-500);\n\n --focus-box-shadow: 0 0 0 4px var(--pine-color-primary-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);\n --helper-message-font-weight: var(--pine-font-weight-regular);\n --helper-message-line-height: var(--pine-line-height-sm);\n --helper-message-margin-top: var(--pine-spacing-xs);\n\n display: inline;\n}\n\n.pds-input {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\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\ninput {\n border: 1px solid var(--border-color-default);\n border-radius: 10px;\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 &:disabled {\n background-color: var(--background-disabled);\n color: var(--color-disabled);\n cursor: not-allowed;\n }\n\n &:hover {\n border-color: var(--border-color-hover);\n }\n\n &:focus {\n box-shadow: var(--focus-box-shadow);\n outline: none;\n }\n\n /* stylelint-disable */\n &::-webkit-input-placeholder {\n color: var(--color-placeholder);\n }\n\n &::-moz-placeholder {\n color: var(--color-placeholder);\n }\n\n &::-moz-placeholder {\n color: var(--color-placeholder);\n }\n\n &:-ms-input-placeholder {\n color: var(--color-placeholder);\n }\n\n &:has(~.pds-input__error-message) {\n border-color: var(--color-error);\n }\n /* stylelint-enable */\n}\n\n.pds-input__error-message,\n.pds-input__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-top);\n}\n\n.pds-input__error-message {\n color: var(--color-error);\n}\n","import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-input',\n styleUrl: 'pds-input.scss',\n shadow: true,\n})\nexport class PdsInput {\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 input field is disabled.\n */\n @Prop() disabled?: boolean;\n\n /**\n * Specifies the error message and provides an error-themed treatment to the field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the input field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Indicates whether or not the input field is invalid or throws an error.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the input label.\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name?: string;\n\n /**\n * Specifies a short hint that describes the expected value of the input field.\n */\n @Prop() placeholder?: string;\n\n /**\n * Indicates whether or not the input field is readonly.\n */\n @Prop() readonly?: boolean;\n\n /**\n * Indicates whether or not the input field is required.\n */\n @Prop() required?: boolean;\n\n /**\n * Determines the type of control that will be displayed\n `'email'`, `'number'`, `'password'`, `'tel'`, `'text'`\n * @defaultValue \"text\"\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Emitted when a keyboard input occurred.\n */\n @Event() pdsInput: EventEmitter<InputEvent>;\n\n private onInputEvent = (ev: Event) => {\n const input = ev.target as HTMLInputElement | null;\n if (input) {\n this.value = input.value || '';\n }\n this.pdsInput.emit(ev as InputEvent);\n };\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-input\">\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n <input class=\"pds-input__field\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\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 type={this.type}\n value={this.value}\n onInput={this.onInputEvent}\n />\n {this.helperMessage &&\n <p\n class=\"pds-input__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.errorMessage &&\n <p\n class=\"pds-input__error-message\"\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,39 @@
1
+ import { h } from '@stencil/core/internal/client';
2
+
3
+ /**
4
+ * Create id for messaging
5
+ */
6
+ const messageId = (id, messageType) => {
7
+ return `${id}__${messageType}-message`;
8
+ };
9
+ /**
10
+ * Assign aria-description id to relate messages with form element
11
+ */
12
+ const assignDescription = (id, invalid, helperMessage) => {
13
+ if (!helperMessage)
14
+ return;
15
+ let relatedId = messageId(id, 'helper');
16
+ if (invalid)
17
+ relatedId = messageId(id, 'error');
18
+ return relatedId;
19
+ };
20
+ /**
21
+ * Updates the `invalid` prop of a form element based on it's values validity
22
+ */
23
+ const isRequired = (target, component) => {
24
+ if (!target || !component)
25
+ return;
26
+ if (component.required === true) {
27
+ (target.checkValidity() === false) ? component.invalid = true : component.invalid = false;
28
+ }
29
+ };
30
+
31
+ /**
32
+ * Returns markup for an input label.
33
+ * @internal
34
+ */
35
+ const PdsLabel = ({ classNames, htmlFor, text }) => (h("label", { class: classNames, htmlFor: htmlFor }, text));
36
+
37
+ export { PdsLabel as P, assignDescription as a, isRequired as i, messageId as m };
38
+
39
+ //# sourceMappingURL=pds-label.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-label.js","mappings":";;AAAA;;;MAGa,SAAS,GAAG,CAAC,EAAU,EAAE,WAAmB;IACvD,OAAO,GAAG,EAAE,KAAK,WAAW,UAAU,CAAC;AACzC,EAAE;AAEF;;;MAGa,iBAAiB,GAAG,CAAC,EAAU,EAAE,OAAgB,EAAE,aAAqB;IACnF,IAAI,CAAC,aAAa;QAAE,OAAM;IAE1B,IAAI,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;IAEvC,IAAI,OAAO;QAAE,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAEhD,OAAO,SAAS,CAAC;AACnB,EAAE;AAEF;;;MAGa,UAAU,GAAG,CAAC,MAAM,EAAE,SAAS;IAC1C,IAAK,CAAC,MAAM,IAAI,CAAC,SAAS;QAAG,OAAO;IACpC,IAAI,SAAS,CAAC,QAAQ,KAAK,IAAI,EAAE;QAC/B,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,KAAK,IAAI,SAAS,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;KAC3F;AACH;;ACVA;;;;MAIa,QAAQ,GAAoC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MACrF,aAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,IAAG,IAAI,CAAS;;;;","names":[],"sources":["src/utils/form.ts","src/components/_internal/pds-label/pds-label.tsx"],"sourcesContent":["/**\n * Create id for messaging\n */\nexport const messageId = (id: string, messageType: string) => {\n return `${id}__${messageType}-message`;\n};\n\n/**\n * Assign aria-description id to relate messages with form element\n */\nexport const assignDescription = (id: string, invalid: boolean, helperMessage: string) => {\n if (!helperMessage) return\n\n let relatedId = messageId(id, 'helper')\n\n if (invalid) relatedId = messageId(id, 'error');\n\n return relatedId;\n};\n\n/**\n * Updates the `invalid` prop of a form element based on it's values validity\n */\nexport const isRequired = (target, component) => {\n if ( !target || !component ) return;\n if (component.required === true) {\n (target.checkValidity() === false) ? component.invalid = true : component.invalid = false;\n }\n}\n","import { FunctionalComponent, h } from '@stencil/core';\n\n/**\n * Props for the input label.\n */\ninterface LabelProps {\n classNames?: string,\n /**\n * Corresponds to the 'for' attribute on a label. Useful for\n * associating a label with a specific input.\n */\n htmlFor: string,\n /**\n * Label text displayed.\n */\n text: string,\n}\n\n/**\n * Returns markup for an input label.\n * @internal\n */\nexport const PdsLabel: FunctionalComponent<LabelProps> = ({ classNames, htmlFor, text }) => (\n <label class={classNames} htmlFor={htmlFor}>{text}</label>\n);\n"],"version":3}
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../dist/types/components";
2
+
3
+ interface PdsLink extends Components.PdsLink, HTMLElement {}
4
+ export const PdsLink: {
5
+ prototype: PdsLink;
6
+ new (): PdsLink;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,66 @@
1
+ import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
2
+ import { d as defineCustomElement$2 } from './pds-icon2.js';
3
+
4
+ /* pds-icons v3.4.0, ES Modules */
5
+ const launch = "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' class='pdsicon'><path fill-rule='evenodd' d='M15.138.862a.665.665 0 0 1 .195.461v5.344a.667.667 0 0 1-1.333 0V2.943L7.805 9.138a.667.667 0 1 1-.943-.943L13.057 2H9.333a.667.667 0 0 1 0-1.333h5.334c.17 0 .34.065.471.195ZM1.333 2a.667.667 0 0 0-.666.667v12c0 .368.298.666.666.666h12a.667.667 0 0 0 .667-.666V10a.667.667 0 0 0-1.333 0v4H2V3.333h4A.667.667 0 1 0 6 2H1.333Z'/></svg>";
6
+
7
+ const pdsLinkCss = ":host{--border-radius:var(--pine-border-radius-sm);--color:var(--pine-color-neutral-charcoal-400);--font-size:var(--pine-font-size-body);--font-size-sm:var(--pine-font-size-body-sm);--font-size-xs:var(--pine-font-size-body-xs);--font-weight:var(--pine-font-weight-medium);--margin-inline-start:var(--pine-spacing-xxs);--outline:4px solid var(--pine-color-primary-200);--svg-lg:15px;--svg-md:13px;--svg-sm:11px;display:inline}:host pds-icon{-webkit-margin-start:var(--margin-inline-start);margin-inline-start:var(--margin-inline-start)}.pds-link{-ms-flex-align:center;align-items:center;color:var(--color);display:-ms-inline-flexbox;display:inline-flex;font-weight:inherit}.pds-link:focus{border-radius:var(--border-radius);outline:var(--outline)}.pds-link--sm{font-size:var(--font-size-xs)}.pds-link--sm pds-icon{height:var(--svg-sm);width:var(--svg-sm)}.pds-link--md{font-size:var(--font-size-sm)}.pds-link--md pds-icon{height:var(--svg-md);width:var(--svg-md)}.pds-link--lg{font-size:var(--font-size)}.pds-link--lg pds-icon{height:var(--svg-lg);width:var(--svg-lg)}.pds-link--plain{font-weight:var(--font-weight);text-decoration:none}.pds-link--plain:hover{text-decoration:underline}.pds-link--default{text-decoration:underline}.pds-link--default:hover{text-decoration:none}";
8
+
9
+ const PdsLink$1 = /*@__PURE__*/ proxyCustomElement(class PdsLink extends HTMLElement {
10
+ constructor() {
11
+ super();
12
+ this.__registerHost();
13
+ this.__attachShadow();
14
+ this.componentId = undefined;
15
+ this.external = false;
16
+ this.variant = 'inline';
17
+ this.fontSize = 'lg';
18
+ this.href = undefined;
19
+ }
20
+ classNames() {
21
+ const classNames = ['pds-link'];
22
+ if (this.fontSize) {
23
+ classNames.push('pds-link--' + this.fontSize);
24
+ }
25
+ if (this.variant) {
26
+ classNames.push('pds-link--' + this.variant);
27
+ }
28
+ return classNames.join(' ');
29
+ }
30
+ render() {
31
+ return (h("a", { class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined }, h("slot", null, this.href), this.external &&
32
+ h("pds-icon", { icon: launch, size: this.fontSize })));
33
+ }
34
+ static get style() { return pdsLinkCss; }
35
+ }, [1, "pds-link", {
36
+ "componentId": [1, "component-id"],
37
+ "external": [4],
38
+ "variant": [1],
39
+ "fontSize": [1, "font-size"],
40
+ "href": [1]
41
+ }]);
42
+ function defineCustomElement$1() {
43
+ if (typeof customElements === "undefined") {
44
+ return;
45
+ }
46
+ const components = ["pds-link", "pds-icon"];
47
+ components.forEach(tagName => { switch (tagName) {
48
+ case "pds-link":
49
+ if (!customElements.get(tagName)) {
50
+ customElements.define(tagName, PdsLink$1);
51
+ }
52
+ break;
53
+ case "pds-icon":
54
+ if (!customElements.get(tagName)) {
55
+ defineCustomElement$2();
56
+ }
57
+ break;
58
+ } });
59
+ }
60
+
61
+ const PdsLink = PdsLink$1;
62
+ const defineCustomElement = defineCustomElement$1;
63
+
64
+ export { PdsLink, defineCustomElement };
65
+
66
+ //# sourceMappingURL=pds-link.js.map