@pine-ds/core 2.1.0 → 2.1.2

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 (523) hide show
  1. package/components/index.d.ts +6 -0
  2. package/components/index.js +3 -0
  3. package/components/index.js.map +1 -1
  4. package/components/index2.js +3 -2
  5. package/components/index2.js.map +1 -1
  6. package/components/pds-button2.js +5 -3
  7. package/components/pds-button2.js.map +1 -1
  8. package/components/pds-checkbox2.js +12 -5
  9. package/components/pds-checkbox2.js.map +1 -1
  10. package/components/pds-chip.js +4 -4
  11. package/components/pds-chip.js.map +1 -1
  12. package/components/pds-copytext.js +1 -1
  13. package/components/pds-copytext.js.map +1 -1
  14. package/components/pds-divider.js +1 -1
  15. package/components/pds-divider.js.map +1 -1
  16. package/components/pds-image.js +2 -2
  17. package/components/pds-image.js.map +1 -1
  18. package/components/pds-input.js +14 -5
  19. package/components/pds-input.js.map +1 -1
  20. package/components/pds-link.js +2 -2
  21. package/components/pds-link.js.map +1 -1
  22. package/components/pds-loader.js +1 -1
  23. package/components/pds-popover.d.ts +11 -0
  24. package/components/pds-popover.js +94 -0
  25. package/components/pds-popover.js.map +1 -0
  26. package/components/pds-progress.js +1 -1
  27. package/components/pds-radio.js +16 -9
  28. package/components/pds-radio.js.map +1 -1
  29. package/components/pds-row.js +1 -1
  30. package/components/pds-select.d.ts +11 -0
  31. package/components/pds-select.js +165 -0
  32. package/components/pds-select.js.map +1 -0
  33. package/components/pds-sortable-item.js +1 -1
  34. package/components/pds-sortable.js +1 -1
  35. package/components/pds-switch.js +15 -11
  36. package/components/pds-switch.js.map +1 -1
  37. package/components/pds-tab.js +3 -3
  38. package/components/pds-table-body.js +1 -1
  39. package/components/pds-table-cell2.js +2 -2
  40. package/components/pds-table-head-cell2.js +3 -3
  41. package/components/pds-table-head.js +1 -1
  42. package/components/pds-table-row.js +9 -3
  43. package/components/pds-table-row.js.map +1 -1
  44. package/components/pds-table.js +1 -1
  45. package/components/pds-tabpanel.js +1 -1
  46. package/components/pds-tabs.js +1 -1
  47. package/components/pds-text.d.ts +11 -0
  48. package/components/pds-text.js +58 -0
  49. package/components/pds-text.js.map +1 -0
  50. package/components/pds-textarea.js +16 -7
  51. package/components/pds-textarea.js.map +1 -1
  52. package/components/pds-tooltip.js +6 -8
  53. package/components/pds-tooltip.js.map +1 -1
  54. package/dist/cjs/{index-2240f8f4.js → index-0079013c.js} +4 -2
  55. package/dist/cjs/index-0079013c.js.map +1 -0
  56. package/dist/cjs/{index-d424fb6f.js → index-b7d9268e.js} +14 -7
  57. package/dist/cjs/index-b7d9268e.js.map +1 -0
  58. package/dist/cjs/index.cjs.js +1 -1
  59. package/dist/cjs/loader.cjs.js +2 -2
  60. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  61. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  62. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  63. package/dist/cjs/pds-button.cjs.entry.js +5 -3
  64. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  65. package/dist/cjs/pds-checkbox.cjs.entry.js +7 -6
  66. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  67. package/dist/cjs/pds-chip.cjs.entry.js +5 -5
  68. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  69. package/dist/cjs/pds-copytext.cjs.entry.js +3 -3
  70. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  71. package/dist/cjs/pds-divider.cjs.entry.js +2 -2
  72. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
  73. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  74. package/dist/cjs/pds-image.cjs.entry.js +3 -3
  75. package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
  76. package/dist/cjs/pds-input.cjs.entry.js +8 -6
  77. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  78. package/dist/cjs/{pds-label-397cc854.js → pds-label-05f073ea.js} +2 -2
  79. package/dist/cjs/{pds-label-397cc854.js.map → pds-label-05f073ea.js.map} +1 -1
  80. package/dist/cjs/pds-link.cjs.entry.js +4 -4
  81. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  82. package/dist/cjs/pds-loader.cjs.entry.js +2 -2
  83. package/dist/cjs/pds-popover.cjs.entry.js +72 -0
  84. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -0
  85. package/dist/cjs/pds-progress.cjs.entry.js +2 -2
  86. package/dist/cjs/pds-radio.cjs.entry.js +9 -8
  87. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  88. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  89. package/dist/cjs/pds-select.cjs.entry.js +131 -0
  90. package/dist/cjs/pds-select.cjs.entry.js.map +1 -0
  91. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
  92. package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-switch.cjs.entry.js +9 -10
  94. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  95. package/dist/cjs/pds-tab.cjs.entry.js +4 -4
  96. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  97. package/dist/cjs/pds-table-cell.cjs.entry.js +3 -3
  98. package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
  99. package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
  100. package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
  101. package/dist/cjs/pds-table.cjs.entry.js +2 -2
  102. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
  103. package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
  104. package/dist/cjs/pds-text.cjs.entry.js +37 -0
  105. package/dist/cjs/pds-text.cjs.entry.js.map +1 -0
  106. package/dist/cjs/pds-textarea.cjs.entry.js +10 -8
  107. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  108. package/dist/cjs/pds-tooltip.cjs.entry.js +5 -8
  109. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  110. package/dist/cjs/pine-core.cjs.js +3 -3
  111. package/dist/cjs/pine-core.cjs.js.map +1 -1
  112. package/dist/collection/collection-manifest.json +4 -1
  113. package/dist/collection/components/pds-button/pds-button.js +20 -1
  114. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  115. package/dist/collection/components/pds-button/stories/pds-button.stories.js +8 -1
  116. package/dist/collection/components/pds-checkbox/pds-checkbox.css +9 -1
  117. package/dist/collection/components/pds-checkbox/pds-checkbox.js +4 -3
  118. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  119. package/dist/collection/components/pds-chip/pds-chip.js +26 -26
  120. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  121. package/dist/collection/components/pds-copytext/pds-copytext.js +4 -4
  122. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
  123. package/dist/collection/components/pds-divider/pds-divider.js +2 -2
  124. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -1
  125. package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +1 -1
  126. package/dist/collection/components/pds-image/pds-image.js +13 -7
  127. package/dist/collection/components/pds-image/pds-image.js.map +1 -1
  128. package/dist/collection/components/pds-input/pds-input.css +6 -1
  129. package/dist/collection/components/pds-input/pds-input.js +22 -3
  130. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  131. package/dist/collection/components/pds-input/stories/pds-input.stories.js +10 -0
  132. package/dist/collection/components/pds-link/pds-link.js +12 -9
  133. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  134. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  135. package/dist/collection/components/pds-popover/pds-popover.css +51 -0
  136. package/dist/collection/components/pds-popover/pds-popover.js +216 -0
  137. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -0
  138. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +45 -0
  139. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  140. package/dist/collection/components/pds-radio/pds-radio.css +9 -1
  141. package/dist/collection/components/pds-radio/pds-radio.js +41 -40
  142. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
  143. package/dist/collection/components/pds-row/pds-row.js +1 -1
  144. package/dist/collection/components/pds-select/pds-select.css +126 -0
  145. package/dist/collection/components/pds-select/pds-select.js +360 -0
  146. package/dist/collection/components/pds-select/pds-select.js.map +1 -0
  147. package/dist/collection/components/pds-select/stories/pds-select.stories.js +153 -0
  148. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  149. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  150. package/dist/collection/components/pds-switch/pds-switch.css +10 -6
  151. package/dist/collection/components/pds-switch/pds-switch.js +17 -39
  152. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
  153. package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +2 -15
  154. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  155. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  156. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  157. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  158. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  159. package/dist/collection/components/pds-table/pds-table.js +1 -1
  160. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  161. package/dist/collection/components/pds-tabs/pds-tab/stories/pds-tab.stories.js +19 -0
  162. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  163. package/dist/collection/components/pds-tabs/pds-tabpanel/stories/pds-tabpanel.stories.js +19 -0
  164. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  165. package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +18 -18
  166. package/dist/collection/components/pds-text/pds-text.css +218 -0
  167. package/dist/collection/components/pds-text/pds-text.js +143 -0
  168. package/dist/collection/components/pds-text/pds-text.js.map +1 -0
  169. package/dist/collection/components/pds-text/stories/pds-text.stories.js +111 -0
  170. package/dist/collection/components/pds-textarea/pds-textarea.css +4 -0
  171. package/dist/collection/components/pds-textarea/pds-textarea.js +24 -5
  172. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  173. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +22 -11
  174. package/dist/collection/components/pds-tooltip/pds-tooltip.css +2 -1
  175. package/dist/collection/components/pds-tooltip/pds-tooltip.js +24 -37
  176. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  177. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +15 -15
  178. package/dist/collection/utils/types.js.map +1 -1
  179. package/dist/docs.json +1184 -265
  180. package/dist/esm/{index-786a51ce.js → index-3ca52e8f.js} +4 -3
  181. package/dist/esm/index-3ca52e8f.js.map +1 -0
  182. package/dist/esm/{index-94bbabb0.js → index-b1696fed.js} +14 -7
  183. package/dist/esm/index-b1696fed.js.map +1 -0
  184. package/dist/esm/index.js +1 -1
  185. package/dist/esm/loader.js +3 -3
  186. package/dist/esm/pds-accordion.entry.js +2 -2
  187. package/dist/esm/pds-avatar.entry.js +2 -2
  188. package/dist/esm/pds-box.entry.js +1 -1
  189. package/dist/esm/pds-button.entry.js +5 -3
  190. package/dist/esm/pds-button.entry.js.map +1 -1
  191. package/dist/esm/pds-checkbox.entry.js +7 -6
  192. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  193. package/dist/esm/pds-chip.entry.js +5 -5
  194. package/dist/esm/pds-chip.entry.js.map +1 -1
  195. package/dist/esm/pds-copytext.entry.js +3 -3
  196. package/dist/esm/pds-copytext.entry.js.map +1 -1
  197. package/dist/esm/pds-divider.entry.js +2 -2
  198. package/dist/esm/pds-divider.entry.js.map +1 -1
  199. package/dist/esm/pds-icon.entry.js +1 -1
  200. package/dist/esm/pds-image.entry.js +3 -3
  201. package/dist/esm/pds-image.entry.js.map +1 -1
  202. package/dist/esm/pds-input.entry.js +8 -6
  203. package/dist/esm/pds-input.entry.js.map +1 -1
  204. package/dist/esm/{pds-label-d28da6eb.js → pds-label-62469596.js} +2 -2
  205. package/dist/esm/{pds-label-d28da6eb.js.map → pds-label-62469596.js.map} +1 -1
  206. package/dist/esm/pds-link.entry.js +4 -4
  207. package/dist/esm/pds-link.entry.js.map +1 -1
  208. package/dist/esm/pds-loader.entry.js +2 -2
  209. package/dist/esm/pds-popover.entry.js +68 -0
  210. package/dist/esm/pds-popover.entry.js.map +1 -0
  211. package/dist/esm/pds-progress.entry.js +2 -2
  212. package/dist/esm/pds-radio.entry.js +9 -8
  213. package/dist/esm/pds-radio.entry.js.map +1 -1
  214. package/dist/esm/pds-row.entry.js +2 -2
  215. package/dist/esm/pds-select.entry.js +127 -0
  216. package/dist/esm/pds-select.entry.js.map +1 -0
  217. package/dist/esm/pds-sortable-item.entry.js +3 -3
  218. package/dist/esm/pds-sortable.entry.js +2 -2
  219. package/dist/esm/pds-switch.entry.js +9 -10
  220. package/dist/esm/pds-switch.entry.js.map +1 -1
  221. package/dist/esm/pds-tab.entry.js +4 -4
  222. package/dist/esm/pds-table-body.entry.js +2 -2
  223. package/dist/esm/pds-table-cell.entry.js +3 -3
  224. package/dist/esm/pds-table-head-cell.entry.js +4 -4
  225. package/dist/esm/pds-table-head.entry.js +2 -2
  226. package/dist/esm/pds-table-row.entry.js +2 -2
  227. package/dist/esm/pds-table.entry.js +2 -2
  228. package/dist/esm/pds-tabpanel.entry.js +2 -2
  229. package/dist/esm/pds-tabs.entry.js +2 -2
  230. package/dist/esm/pds-text.entry.js +33 -0
  231. package/dist/esm/pds-text.entry.js.map +1 -0
  232. package/dist/esm/pds-textarea.entry.js +10 -8
  233. package/dist/esm/pds-textarea.entry.js.map +1 -1
  234. package/dist/esm/pds-tooltip.entry.js +5 -8
  235. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  236. package/dist/esm/pine-core.js +4 -4
  237. package/dist/esm/pine-core.js.map +1 -1
  238. package/dist/esm-es5/index-3ca52e8f.js +2 -0
  239. package/dist/esm-es5/index-3ca52e8f.js.map +1 -0
  240. package/dist/esm-es5/index-b1696fed.js +3 -0
  241. package/dist/esm-es5/index-b1696fed.js.map +1 -0
  242. package/dist/esm-es5/index.js +1 -1
  243. package/dist/esm-es5/loader.js +1 -1
  244. package/dist/esm-es5/loader.js.map +1 -1
  245. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  246. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  247. package/dist/esm-es5/pds-box.entry.js +1 -1
  248. package/dist/esm-es5/pds-button.entry.js +1 -1
  249. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  250. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  251. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  252. package/dist/esm-es5/pds-chip.entry.js +1 -1
  253. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  254. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  255. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  256. package/dist/esm-es5/pds-divider.entry.js +1 -1
  257. package/dist/esm-es5/pds-divider.entry.js.map +1 -1
  258. package/dist/esm-es5/pds-icon.entry.js +1 -1
  259. package/dist/esm-es5/pds-image.entry.js +1 -1
  260. package/dist/esm-es5/pds-image.entry.js.map +1 -1
  261. package/dist/esm-es5/pds-input.entry.js +1 -1
  262. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  263. package/dist/esm-es5/{pds-label-d28da6eb.js → pds-label-62469596.js} +2 -2
  264. package/dist/esm-es5/pds-link.entry.js +1 -1
  265. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  266. package/dist/esm-es5/pds-loader.entry.js +1 -1
  267. package/dist/esm-es5/pds-popover.entry.js +2 -0
  268. package/dist/esm-es5/pds-popover.entry.js.map +1 -0
  269. package/dist/esm-es5/pds-progress.entry.js +1 -1
  270. package/dist/esm-es5/pds-radio.entry.js +1 -1
  271. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  272. package/dist/esm-es5/pds-row.entry.js +1 -1
  273. package/dist/esm-es5/pds-select.entry.js +2 -0
  274. package/dist/esm-es5/pds-select.entry.js.map +1 -0
  275. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  276. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  277. package/dist/esm-es5/pds-switch.entry.js +1 -1
  278. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  279. package/dist/esm-es5/pds-tab.entry.js +1 -1
  280. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  281. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  282. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  283. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  284. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  285. package/dist/esm-es5/pds-table.entry.js +1 -1
  286. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  287. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  288. package/dist/esm-es5/pds-text.entry.js +2 -0
  289. package/dist/esm-es5/pds-text.entry.js.map +1 -0
  290. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  291. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  292. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  293. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  294. package/dist/esm-es5/pine-core.js +1 -1
  295. package/dist/esm-es5/pine-core.js.map +1 -1
  296. package/dist/pine-core/index.esm.js +1 -1
  297. package/dist/pine-core/{p-284433e0.entry.js → p-00cccccb.entry.js} +2 -2
  298. package/dist/pine-core/p-06513fe5.entry.js +2 -0
  299. package/dist/pine-core/p-06513fe5.entry.js.map +1 -0
  300. package/dist/pine-core/p-06593922.system.entry.js +2 -0
  301. package/dist/pine-core/p-06593922.system.entry.js.map +1 -0
  302. package/dist/pine-core/{p-a8cb75f0.system.entry.js → p-08c4f190.system.entry.js} +2 -2
  303. package/dist/pine-core/{p-bd5de072.system.entry.js → p-09d83447.system.entry.js} +2 -2
  304. package/dist/pine-core/{p-bd5de072.system.entry.js.map → p-09d83447.system.entry.js.map} +1 -1
  305. package/dist/pine-core/{p-abe6c2d6.entry.js → p-0ac04129.entry.js} +2 -2
  306. package/dist/pine-core/{p-abe6c2d6.entry.js.map → p-0ac04129.entry.js.map} +1 -1
  307. package/dist/pine-core/{p-cd033c2a.entry.js → p-0ff89cf4.entry.js} +2 -2
  308. package/dist/pine-core/{p-cd033c2a.entry.js.map → p-0ff89cf4.entry.js.map} +1 -1
  309. package/dist/pine-core/p-1010d12b.system.entry.js +2 -0
  310. package/dist/pine-core/p-1010d12b.system.entry.js.map +1 -0
  311. package/dist/pine-core/p-110b2e03.entry.js +2 -0
  312. package/dist/pine-core/p-110b2e03.entry.js.map +1 -0
  313. package/dist/pine-core/{p-d8eeadd1.system.entry.js → p-172464c1.system.entry.js} +2 -2
  314. package/dist/pine-core/{p-64c07f01.system.entry.js → p-1a1a76ea.system.entry.js} +2 -2
  315. package/dist/pine-core/{p-e847089d.system.entry.js → p-1df1990d.system.entry.js} +2 -2
  316. package/dist/pine-core/p-1e80f274.entry.js +2 -0
  317. package/dist/pine-core/p-1e80f274.entry.js.map +1 -0
  318. package/dist/pine-core/{p-3558923a.entry.js → p-239891e6.entry.js} +2 -2
  319. package/dist/pine-core/p-34f84589.entry.js +2 -0
  320. package/dist/pine-core/p-34f84589.entry.js.map +1 -0
  321. package/dist/pine-core/{p-1692ed0c.entry.js → p-3acb18ad.entry.js} +2 -2
  322. package/dist/pine-core/{p-57d81378.entry.js → p-3e4225fc.entry.js} +2 -2
  323. package/dist/pine-core/{p-7fb3c253.entry.js → p-3ff2642d.entry.js} +2 -2
  324. package/dist/pine-core/{p-7fb3c253.entry.js.map → p-3ff2642d.entry.js.map} +1 -1
  325. package/dist/pine-core/{p-d9611049.system.entry.js → p-4043cf6e.system.entry.js} +2 -2
  326. package/dist/pine-core/{p-d9611049.system.entry.js.map → p-4043cf6e.system.entry.js.map} +1 -1
  327. package/dist/pine-core/p-45cf2585.system.js +3 -0
  328. package/dist/pine-core/p-45cf2585.system.js.map +1 -0
  329. package/dist/pine-core/{p-03ecf146.entry.js → p-4d22b02c.entry.js} +2 -2
  330. package/dist/pine-core/p-4f9b1945.entry.js +2 -0
  331. package/dist/pine-core/p-4f9b1945.entry.js.map +1 -0
  332. package/dist/pine-core/{p-961f79c5.system.entry.js → p-50918693.system.entry.js} +2 -2
  333. package/dist/pine-core/p-59214c8b.system.entry.js +2 -0
  334. package/dist/pine-core/p-59214c8b.system.entry.js.map +1 -0
  335. package/dist/pine-core/{p-a17dea5e.system.entry.js → p-59327483.system.entry.js} +2 -2
  336. package/dist/pine-core/p-59a43f75.system.entry.js +2 -0
  337. package/dist/pine-core/p-59a43f75.system.entry.js.map +1 -0
  338. package/dist/pine-core/{p-d461bee4.entry.js → p-59fcea0f.entry.js} +2 -2
  339. package/dist/pine-core/p-5c04aee0.system.js +2 -0
  340. package/dist/pine-core/p-5c04aee0.system.js.map +1 -0
  341. package/dist/pine-core/{p-85507ca5.system.entry.js → p-5c942465.system.entry.js} +2 -2
  342. package/dist/pine-core/{p-835c73f4.entry.js → p-624de926.entry.js} +2 -2
  343. package/dist/pine-core/p-65229490.entry.js +2 -0
  344. package/dist/pine-core/{p-ffa8e658.entry.js → p-6e079be2.entry.js} +2 -2
  345. package/dist/pine-core/p-6f8f471b.system.entry.js +2 -0
  346. package/dist/pine-core/p-6f8f471b.system.entry.js.map +1 -0
  347. package/dist/pine-core/{p-58a25131.entry.js → p-760e1c32.entry.js} +2 -2
  348. package/dist/pine-core/{p-58a25131.entry.js.map → p-760e1c32.entry.js.map} +1 -1
  349. package/dist/pine-core/{p-979ab4e2.system.entry.js → p-81bdf676.system.entry.js} +2 -2
  350. package/dist/pine-core/{p-8963f07a.entry.js → p-84a4930d.entry.js} +2 -2
  351. package/dist/pine-core/p-87fe352f.js +3 -0
  352. package/dist/pine-core/p-87fe352f.js.map +1 -0
  353. package/dist/pine-core/{p-6e15f0e1.entry.js → p-88410213.entry.js} +2 -2
  354. package/dist/pine-core/p-88702fa2.entry.js +2 -0
  355. package/dist/pine-core/p-88702fa2.entry.js.map +1 -0
  356. package/dist/pine-core/{p-d41fbbf0.system.entry.js → p-88edcb41.system.entry.js} +2 -2
  357. package/dist/pine-core/{p-469a84a3.system.entry.js → p-8ae84655.system.entry.js} +2 -2
  358. package/dist/pine-core/{p-469a84a3.system.entry.js.map → p-8ae84655.system.entry.js.map} +1 -1
  359. package/dist/pine-core/{p-90707120.entry.js → p-9487df53.entry.js} +2 -2
  360. package/dist/pine-core/{p-c5afbc57.entry.js → p-953e6fde.entry.js} +2 -2
  361. package/dist/pine-core/{p-c5afbc57.entry.js.map → p-953e6fde.entry.js.map} +1 -1
  362. package/dist/pine-core/p-9db668f2.system.entry.js +2 -0
  363. package/dist/pine-core/p-9db668f2.system.entry.js.map +1 -0
  364. package/dist/pine-core/p-a2726d3b.system.entry.js +2 -0
  365. package/dist/pine-core/p-a2726d3b.system.entry.js.map +1 -0
  366. package/dist/pine-core/{p-95c2a6bf.entry.js → p-a51098dd.entry.js} +2 -2
  367. package/dist/pine-core/p-a9038f7f.js +2 -0
  368. package/dist/pine-core/{p-a98f5e91.system.entry.js → p-a9e02a6f.system.entry.js} +2 -2
  369. package/dist/pine-core/{p-a09284c5.entry.js → p-b7890a73.system.entry.js} +2 -2
  370. package/dist/pine-core/p-b7890a73.system.entry.js.map +1 -0
  371. package/dist/pine-core/{p-ca1fa95e.system.entry.js → p-b7edbe43.system.entry.js} +2 -2
  372. package/dist/pine-core/{p-366c4924.system.entry.js → p-b95522e6.system.entry.js} +2 -2
  373. package/dist/pine-core/{p-fe793116.entry.js → p-bbd19258.entry.js} +2 -2
  374. package/dist/pine-core/{p-d2c98df0.system.entry.js → p-c4aec6ce.system.entry.js} +2 -2
  375. package/dist/pine-core/{p-d2c98df0.system.entry.js.map → p-c4aec6ce.system.entry.js.map} +1 -1
  376. package/dist/pine-core/p-cbf2acbd.system.entry.js +2 -0
  377. package/dist/pine-core/p-cbf2acbd.system.entry.js.map +1 -0
  378. package/dist/pine-core/{p-852dce9d.system.entry.js → p-ce91ca6a.system.entry.js} +2 -2
  379. package/dist/pine-core/{p-852dce9d.system.entry.js.map → p-ce91ca6a.system.entry.js.map} +1 -1
  380. package/dist/pine-core/{p-f79b96ee.entry.js → p-ceb66096.entry.js} +3 -3
  381. package/dist/pine-core/{p-8930c3b7.system.entry.js → p-d3365f49.system.entry.js} +3 -3
  382. package/dist/pine-core/p-d37d900e.entry.js +2 -0
  383. package/dist/pine-core/p-d37d900e.entry.js.map +1 -0
  384. package/dist/pine-core/p-d5c90be4.entry.js +2 -0
  385. package/dist/pine-core/p-d5c90be4.entry.js.map +1 -0
  386. package/dist/pine-core/{p-7c4f8c64.entry.js → p-d6d8a21a.entry.js} +2 -2
  387. package/dist/pine-core/p-db622f8f.system.js +2 -0
  388. package/dist/pine-core/p-dc4a6d88.js +2 -0
  389. package/dist/pine-core/p-dc4a6d88.js.map +1 -0
  390. package/dist/pine-core/{p-bd593d1c.entry.js → p-e2a673e8.entry.js} +2 -2
  391. package/dist/pine-core/{p-d6873321.system.js → p-e3fab4be.system.js} +2 -2
  392. package/dist/pine-core/{p-1dccfe1b.system.entry.js → p-e64594ae.system.entry.js} +2 -2
  393. package/dist/pine-core/p-e90b2c75.system.js +2 -0
  394. package/dist/pine-core/p-e90b2c75.system.js.map +1 -0
  395. package/dist/pine-core/p-e936e948.entry.js +2 -0
  396. package/dist/pine-core/p-e936e948.entry.js.map +1 -0
  397. package/dist/pine-core/{p-9b0e5234.entry.js → p-ebdaf3ad.entry.js} +2 -2
  398. package/dist/pine-core/{p-4b856a95.system.entry.js → p-ece8530d.system.entry.js} +2 -2
  399. package/dist/pine-core/{p-0c2553c6.system.entry.js → p-ee21fa25.system.entry.js} +2 -2
  400. package/dist/pine-core/p-efbe2dc5.system.entry.js +2 -0
  401. package/dist/pine-core/p-efbe2dc5.system.entry.js.map +1 -0
  402. package/dist/pine-core/{p-4b06aed0.system.entry.js → p-f16ef73c.system.entry.js} +2 -2
  403. package/dist/pine-core/{p-2a4952ea.system.entry.js → p-f9719887.system.entry.js} +2 -2
  404. package/dist/pine-core/p-ff20b191.entry.js +2 -0
  405. package/dist/pine-core/p-ff20b191.entry.js.map +1 -0
  406. package/dist/pine-core/pine-core.css +1 -1
  407. package/dist/pine-core/pine-core.esm.js +1 -1
  408. package/dist/pine-core/pine-core.esm.js.map +1 -1
  409. package/dist/pine-core/pine-core.js +1 -1
  410. package/dist/pine-core/svg/bookmark.svg +1 -0
  411. package/dist/pine-core/svg/expand.svg +1 -1
  412. package/dist/pine-core/svg/file-add.svg +1 -1
  413. package/dist/pine-core/svg/layout-grid-02.svg +1 -0
  414. package/dist/pine-core/svg/user-star-filled.svg +1 -1
  415. package/dist/pine-core/svg/user-star.svg +1 -1
  416. package/dist/types/components/pds-button/pds-button.d.ts +2 -0
  417. package/dist/types/components/pds-chip/pds-chip.d.ts +8 -8
  418. package/dist/types/components/pds-copytext/pds-copytext.d.ts +3 -3
  419. package/dist/types/components/pds-divider/pds-divider.d.ts +1 -1
  420. package/dist/types/components/pds-image/pds-image.d.ts +7 -3
  421. package/dist/types/components/pds-input/pds-input.d.ts +4 -0
  422. package/dist/types/components/pds-link/pds-link.d.ts +7 -11
  423. package/dist/types/components/pds-popover/pds-popover.d.ts +45 -0
  424. package/dist/types/components/pds-radio/pds-radio.d.ts +11 -11
  425. package/dist/types/components/pds-select/pds-select.d.ts +91 -0
  426. package/dist/types/components/pds-switch/pds-switch.d.ts +11 -19
  427. package/dist/types/components/pds-text/pds-text.d.ts +27 -0
  428. package/dist/types/components/pds-textarea/pds-textarea.d.ts +4 -0
  429. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +5 -9
  430. package/dist/types/components.d.ts +419 -81
  431. package/dist/types/stencil-public-runtime.d.ts +2 -0
  432. package/dist/types/utils/types.d.ts +1 -1
  433. package/hydrate/index.js +350 -79
  434. package/hydrate/index.mjs +350 -79
  435. package/package.json +13 -10
  436. package/dist/cjs/index-2240f8f4.js.map +0 -1
  437. package/dist/cjs/index-d424fb6f.js.map +0 -1
  438. package/dist/esm/index-786a51ce.js.map +0 -1
  439. package/dist/esm/index-94bbabb0.js.map +0 -1
  440. package/dist/esm-es5/index-786a51ce.js +0 -2
  441. package/dist/esm-es5/index-786a51ce.js.map +0 -1
  442. package/dist/esm-es5/index-94bbabb0.js +0 -3
  443. package/dist/esm-es5/index-94bbabb0.js.map +0 -1
  444. package/dist/pine-core/p-0069affa.entry.js +0 -2
  445. package/dist/pine-core/p-0069affa.entry.js.map +0 -1
  446. package/dist/pine-core/p-14d3cdaf.system.js +0 -2
  447. package/dist/pine-core/p-14d3cdaf.system.js.map +0 -1
  448. package/dist/pine-core/p-244e264d.system.js +0 -2
  449. package/dist/pine-core/p-244e264d.system.js.map +0 -1
  450. package/dist/pine-core/p-2665d555.js +0 -2
  451. package/dist/pine-core/p-2665d555.js.map +0 -1
  452. package/dist/pine-core/p-37458cc7.entry.js +0 -2
  453. package/dist/pine-core/p-37458cc7.entry.js.map +0 -1
  454. package/dist/pine-core/p-3886e15a.entry.js +0 -2
  455. package/dist/pine-core/p-3886e15a.entry.js.map +0 -1
  456. package/dist/pine-core/p-496454a3.system.js +0 -2
  457. package/dist/pine-core/p-4fcf94ee.system.entry.js +0 -2
  458. package/dist/pine-core/p-4fcf94ee.system.entry.js.map +0 -1
  459. package/dist/pine-core/p-59cc888d.entry.js +0 -2
  460. package/dist/pine-core/p-72ee760e.entry.js +0 -2
  461. package/dist/pine-core/p-72ee760e.entry.js.map +0 -1
  462. package/dist/pine-core/p-77c5fe7b.entry.js +0 -2
  463. package/dist/pine-core/p-77c5fe7b.entry.js.map +0 -1
  464. package/dist/pine-core/p-7841bd18.js +0 -3
  465. package/dist/pine-core/p-7841bd18.js.map +0 -1
  466. package/dist/pine-core/p-7c79ff32.system.entry.js +0 -2
  467. package/dist/pine-core/p-7c79ff32.system.entry.js.map +0 -1
  468. package/dist/pine-core/p-91cba446.system.entry.js +0 -2
  469. package/dist/pine-core/p-91cba446.system.entry.js.map +0 -1
  470. package/dist/pine-core/p-a09284c5.entry.js.map +0 -1
  471. package/dist/pine-core/p-b54e35d2.system.entry.js +0 -2
  472. package/dist/pine-core/p-b54e35d2.system.entry.js.map +0 -1
  473. package/dist/pine-core/p-bb88538f.system.entry.js +0 -2
  474. package/dist/pine-core/p-bb88538f.system.entry.js.map +0 -1
  475. package/dist/pine-core/p-bc1ecf2f.js +0 -2
  476. package/dist/pine-core/p-c6bee7a0.system.js +0 -3
  477. package/dist/pine-core/p-c6bee7a0.system.js.map +0 -1
  478. package/dist/pine-core/p-d3eeb6f0.system.entry.js +0 -2
  479. package/dist/pine-core/p-d3eeb6f0.system.entry.js.map +0 -1
  480. package/dist/pine-core/p-dbc5775f.entry.js +0 -2
  481. package/dist/pine-core/p-dbc5775f.entry.js.map +0 -1
  482. package/dist/pine-core/p-ea27b026.system.entry.js +0 -2
  483. package/dist/pine-core/p-ea27b026.system.entry.js.map +0 -1
  484. /package/dist/esm-es5/{pds-label-d28da6eb.js.map → pds-label-62469596.js.map} +0 -0
  485. /package/dist/pine-core/{p-284433e0.entry.js.map → p-00cccccb.entry.js.map} +0 -0
  486. /package/dist/pine-core/{p-a8cb75f0.system.entry.js.map → p-08c4f190.system.entry.js.map} +0 -0
  487. /package/dist/pine-core/{p-d8eeadd1.system.entry.js.map → p-172464c1.system.entry.js.map} +0 -0
  488. /package/dist/pine-core/{p-64c07f01.system.entry.js.map → p-1a1a76ea.system.entry.js.map} +0 -0
  489. /package/dist/pine-core/{p-e847089d.system.entry.js.map → p-1df1990d.system.entry.js.map} +0 -0
  490. /package/dist/pine-core/{p-3558923a.entry.js.map → p-239891e6.entry.js.map} +0 -0
  491. /package/dist/pine-core/{p-1692ed0c.entry.js.map → p-3acb18ad.entry.js.map} +0 -0
  492. /package/dist/pine-core/{p-57d81378.entry.js.map → p-3e4225fc.entry.js.map} +0 -0
  493. /package/dist/pine-core/{p-03ecf146.entry.js.map → p-4d22b02c.entry.js.map} +0 -0
  494. /package/dist/pine-core/{p-961f79c5.system.entry.js.map → p-50918693.system.entry.js.map} +0 -0
  495. /package/dist/pine-core/{p-a17dea5e.system.entry.js.map → p-59327483.system.entry.js.map} +0 -0
  496. /package/dist/pine-core/{p-d461bee4.entry.js.map → p-59fcea0f.entry.js.map} +0 -0
  497. /package/dist/pine-core/{p-85507ca5.system.entry.js.map → p-5c942465.system.entry.js.map} +0 -0
  498. /package/dist/pine-core/{p-835c73f4.entry.js.map → p-624de926.entry.js.map} +0 -0
  499. /package/dist/pine-core/{p-59cc888d.entry.js.map → p-65229490.entry.js.map} +0 -0
  500. /package/dist/pine-core/{p-ffa8e658.entry.js.map → p-6e079be2.entry.js.map} +0 -0
  501. /package/dist/pine-core/{p-979ab4e2.system.entry.js.map → p-81bdf676.system.entry.js.map} +0 -0
  502. /package/dist/pine-core/{p-8963f07a.entry.js.map → p-84a4930d.entry.js.map} +0 -0
  503. /package/dist/pine-core/{p-6e15f0e1.entry.js.map → p-88410213.entry.js.map} +0 -0
  504. /package/dist/pine-core/{p-d41fbbf0.system.entry.js.map → p-88edcb41.system.entry.js.map} +0 -0
  505. /package/dist/pine-core/{p-90707120.entry.js.map → p-9487df53.entry.js.map} +0 -0
  506. /package/dist/pine-core/{p-95c2a6bf.entry.js.map → p-a51098dd.entry.js.map} +0 -0
  507. /package/dist/pine-core/{p-bc1ecf2f.js.map → p-a9038f7f.js.map} +0 -0
  508. /package/dist/pine-core/{p-a98f5e91.system.entry.js.map → p-a9e02a6f.system.entry.js.map} +0 -0
  509. /package/dist/pine-core/{p-ca1fa95e.system.entry.js.map → p-b7edbe43.system.entry.js.map} +0 -0
  510. /package/dist/pine-core/{p-366c4924.system.entry.js.map → p-b95522e6.system.entry.js.map} +0 -0
  511. /package/dist/pine-core/{p-fe793116.entry.js.map → p-bbd19258.entry.js.map} +0 -0
  512. /package/dist/pine-core/{p-f79b96ee.entry.js.map → p-ceb66096.entry.js.map} +0 -0
  513. /package/dist/pine-core/{p-8930c3b7.system.entry.js.map → p-d3365f49.system.entry.js.map} +0 -0
  514. /package/dist/pine-core/{p-7c4f8c64.entry.js.map → p-d6d8a21a.entry.js.map} +0 -0
  515. /package/dist/pine-core/{p-496454a3.system.js.map → p-db622f8f.system.js.map} +0 -0
  516. /package/dist/pine-core/{p-bd593d1c.entry.js.map → p-e2a673e8.entry.js.map} +0 -0
  517. /package/dist/pine-core/{p-d6873321.system.js.map → p-e3fab4be.system.js.map} +0 -0
  518. /package/dist/pine-core/{p-1dccfe1b.system.entry.js.map → p-e64594ae.system.entry.js.map} +0 -0
  519. /package/dist/pine-core/{p-9b0e5234.entry.js.map → p-ebdaf3ad.entry.js.map} +0 -0
  520. /package/dist/pine-core/{p-4b856a95.system.entry.js.map → p-ece8530d.system.entry.js.map} +0 -0
  521. /package/dist/pine-core/{p-0c2553c6.system.entry.js.map → p-ee21fa25.system.entry.js.map} +0 -0
  522. /package/dist/pine-core/{p-4b06aed0.system.entry.js.map → p-f16ef73c.system.entry.js.map} +0 -0
  523. /package/dist/pine-core/{p-2a4952ea.system.entry.js.map → p-f9719887.system.entry.js.map} +0 -0
@@ -5,6 +5,7 @@ import { withActions } from '@storybook/addon-actions/decorator';
5
5
  export default {
6
6
  argTypes: extractArgTypes('pds-input'),
7
7
  args: {
8
+ autocomplete: null,
8
9
  disabled: false,
9
10
  errorMessage: null,
10
11
  helperMessage: null,
@@ -26,6 +27,7 @@ export default {
26
27
  }
27
28
 
28
29
  const BaseTemplate = (args) => html`<pds-input
30
+ autocomplete="${args.autocomplete}"
29
31
  disabled="${args.disabled}"
30
32
  error-message="${args.errorMessage}"
31
33
  helper-message="${args.helperMessage}"
@@ -108,3 +110,11 @@ Invalid.args = {
108
110
  type: 'email',
109
111
  value: 'Frank Dux'
110
112
  };
113
+
114
+ export const Autocomplete = BaseTemplate.bind({});
115
+ Autocomplete.args = {
116
+ componentId: 'pds-input-autocomplete',
117
+ label: 'First name',
118
+ type: 'text',
119
+ autocomplete: 'given-name',
120
+ };
@@ -1,8 +1,8 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { launch } from "@pine-ds/icons/icons";
3
3
  /**
4
- * @part link - The main link element that represents the link component.
5
- * @slot - Content is placed between the opening closing tags.
4
+ * @part link - Link element styles.
5
+ * @slot (default) - Text content placed between the opening and closing tags. If no text is provided, the **href** will be used as a fallback.
6
6
  */
7
7
  export class PdsLink {
8
8
  constructor() {
@@ -23,8 +23,8 @@ export class PdsLink {
23
23
  return classNames.join(' ');
24
24
  }
25
25
  render() {
26
- return (h("a", { key: '48d18c76dabdf7848cb28406ca41bcb319046f15', class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined, part: "link" }, h("slot", { key: 'd1300abecf3a94cbeb0dd0203e0938496499750b' }, this.href), this.external &&
27
- h("pds-icon", { key: '353ee581e0060669910e0e9220f3e85d2c46e41b', icon: launch, size: this.fontSize })));
26
+ return (h("a", { key: '0301c40c5571d5713ff50262c9cd288b476bfb02', class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined, part: "link" }, h("slot", { key: 'dae97a17d38c0308d74f75b859d704d0d28d789d' }, this.href), this.external &&
27
+ h("pds-icon", { key: '5c242186e0080db10ede73c232fd83643b54df03', icon: launch, size: this.fontSize })));
28
28
  }
29
29
  static get is() { return "pds-link"; }
30
30
  static get encapsulation() { return "shadow"; }
@@ -72,7 +72,7 @@ export class PdsLink {
72
72
  "name": "defaultValue",
73
73
  "text": "false"
74
74
  }],
75
- "text": "When enabled, opens link in a new tab."
75
+ "text": "Determines whether the link should open in a new tab."
76
76
  },
77
77
  "attribute": "external",
78
78
  "reflect": false,
@@ -89,8 +89,11 @@ export class PdsLink {
89
89
  "required": false,
90
90
  "optional": false,
91
91
  "docs": {
92
- "tags": [],
93
- "text": "\nModifies the look of the link"
92
+ "tags": [{
93
+ "name": "defaultValue",
94
+ "text": "inline"
95
+ }],
96
+ "text": "Sets the link variant styles."
94
97
  },
95
98
  "attribute": "variant",
96
99
  "reflect": false,
@@ -111,7 +114,7 @@ export class PdsLink {
111
114
  "name": "defaultValue",
112
115
  "text": "lg"
113
116
  }],
114
- "text": "\nThe Font size follows t-shirt model\nsm: 12px\nmd: 14px\nlg: 16px"
117
+ "text": "The font size of the link's text."
115
118
  },
116
119
  "attribute": "font-size",
117
120
  "reflect": false,
@@ -129,7 +132,7 @@ export class PdsLink {
129
132
  "optional": false,
130
133
  "docs": {
131
134
  "tags": [],
132
- "text": "The URL that the hyperlink points to."
135
+ "text": "The hyperlink's destination URL. If no text is provided in the custom slot, the href will be used."
133
136
  },
134
137
  "attribute": "href",
135
138
  "reflect": false
@@ -1 +1 @@
1
- {"version":3,"file":"pds-link.js","sourceRoot":"","sources":["../../../src/components/pds-link/pds-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C;;;GAGG;AAMH,MAAM,OAAO,OAAO;;;wBAUC,KAAK;uBAMc,QAAQ;wBAUP,IAAI;;;IAOnC,UAAU;QAChB,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC,CAAC;QAEhC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QAEJ,OAAO,CACL,0DACE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAC5C,IAAI,EAAC,MAAM;YAEX,+DAAO,IAAI,CAAC,IAAI,CAAQ;YACvB,IAAI,CAAC,QAAQ;gBACZ,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAa,CAExD,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\nimport { launch } from '@pine-ds/icons/icons';\n\n/**\n * @part link - The main link element that represents the link component.\n * @slot - Content is placed between the opening closing tags.\n */\n@Component({\n tag: 'pds-link',\n styleUrls: ['../../global/styles/base.scss', 'pds-link.scss'],\n shadow: true,\n})\nexport class PdsLink {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * When enabled, opens link in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n *\n * Modifies the look of the link\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n *\n * The Font size follows t-shirt model\n * sm: 12px\n * md: 14px\n * lg: 16px\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The URL that the hyperlink points to.\n */\n @Prop() href!: string;\n\n private classNames() {\n const classNames = ['pds-link'];\n\n if (this.fontSize) {\n classNames.push('pds-link--' + this.fontSize);\n }\n\n if (this.variant) {\n classNames.push('pds-link--' + this.variant);\n }\n\n return classNames.join(' ');\n }\n\n render() {\n\n return (\n <a\n class={this.classNames()}\n href={this.href}\n id={this.componentId}\n target={this.external ? '_blank' : undefined}\n part=\"link\"\n >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon icon={launch} size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-link.js","sourceRoot":"","sources":["../../../src/components/pds-link/pds-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C;;;GAGG;AAMH,MAAM,OAAO,OAAO;;;wBAUC,KAAK;uBAMc,QAAQ;wBAMP,IAAI;;;IAOnC,UAAU;QAChB,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC,CAAC;QAEhC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QAEJ,OAAO,CACL,0DACE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAC5C,IAAI,EAAC,MAAM;YAEX,+DAAO,IAAI,CAAC,IAAI,CAAQ;YACvB,IAAI,CAAC,QAAQ;gBACZ,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAa,CAExD,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\nimport { launch } from '@pine-ds/icons/icons';\n\n/**\n * @part link - Link element styles.\n * @slot (default) - Text content placed between the opening and closing tags. If no text is provided, the **href** will be used as a fallback.\n */\n@Component({\n tag: 'pds-link',\n styleUrls: ['../../global/styles/base.scss', 'pds-link.scss'],\n shadow: true,\n})\nexport class PdsLink {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether the link should open in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n * Sets the link variant styles.\n * @defaultValue inline\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n * The font size of the link's text.\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The hyperlink's destination URL. If no text is provided in the custom slot, the href will be used.\n */\n @Prop() href!: string;\n\n private classNames() {\n const classNames = ['pds-link'];\n\n if (this.fontSize) {\n classNames.push('pds-link--' + this.fontSize);\n }\n\n if (this.variant) {\n classNames.push('pds-link--' + this.variant);\n }\n\n return classNames.join(' ');\n }\n\n render() {\n\n return (\n <a\n class={this.classNames()}\n href={this.href}\n id={this.componentId}\n target={this.external ? '_blank' : undefined}\n part=\"link\"\n >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon icon={launch} size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"]}
@@ -33,7 +33,7 @@ export class PdsLoader {
33
33
  }
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: 'd86c3a84f772eedb15662d0d2e22e53ec7064245', class: `pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`, "aria-hidden": !this.isLoading, "aria-busy": this.isLoading, "aria-live": "polite" }, this.variant === 'spinner' && (h("div", { key: 'ec7cda5951617f46427729e5497c7d1b46562ae0', class: "pds-loader--spinner" }, h("svg", { key: '5a7bc867400981ba2190dd00836af63cd2492e80', style: this.style(), viewBox: "0 0 200 200", fill: "none" }, h("defs", { key: 'ee88cb4c138868b286f017f84925d3cf8226eeb8' }, h("linearGradient", { key: '435c54ff00cf11654e01d3d6932e77e74fdef8ae', id: "spinner-secondHalf" }, h("stop", { key: '4b9b65cde42833c14285f97c7f4b4acb681db89c', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), h("stop", { key: '207b3963322e1f7f54f2b7b42b328e868a9b8e78', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), h("linearGradient", { key: 'fc877ee5738a8184227fe022534e9cdfd8e27bd1', id: "spinner-firstHalf" }, h("stop", { key: '3d210b400691e364e9d1214531c86003a7588d2c', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), h("stop", { key: 'e99b0c940dc876637d90c3d86ce87f35e2f82687', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), h("g", { key: 'f2acd79941647de3a5c5aae6383d021d1fad7493', class: "pds-loader__spinner-path" }, h("path", { key: '9f1d64d00c633dc7ff0a0f2173c7f0e0c04198d6', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), h("path", { key: 'd5ff2bd47100be8eee961b00102e77b3456e8236', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), h("path", { key: 'd7cc6e2da92238c023d322f023e7e437a5d41404', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (h("div", { key: '3c893dc1ae4f39f2b5873ba46d4ae30f873d1158', class: "pds-loader--typing" }, h("span", { key: '8b38041018e2039fcc19ad3dbce6de3924725cc3' }), h("span", { key: 'b3e827a9fded83368404e8bb5c83306ff6a35979' }), h("span", { key: '41fedabc2db044862892ae68476756c6400a58fa' }))), h("div", { key: 'b4cf5add3094c4824612216b8ca7291a4e40ff08', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, h("slot", { key: 'c7b10e65a5a5350e7973a49c540907edf44c71fa', name: "label" }, "Loading..."))));
36
+ return (h(Host, { key: 'e69acbb3ba84e723ce654fb8288c54d6c878a515', class: `pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`, "aria-hidden": !this.isLoading, "aria-busy": this.isLoading, "aria-live": "polite" }, this.variant === 'spinner' && (h("div", { key: 'dd121b0adc8825e8b8e5aa6c4c2756d2bbc8aec3', class: "pds-loader--spinner" }, h("svg", { key: '91474584a672fc78a0e1d169eaff53fbbce1b658', style: this.style(), viewBox: "0 0 200 200", fill: "none" }, h("defs", { key: '38fe6181c360cce4c31402ac7408b3120dbf4419' }, h("linearGradient", { key: '29cf900bc3ab8c6b5cb7da36f96207b4e234179a', id: "spinner-secondHalf" }, h("stop", { key: 'aaa993d38e5cc792417160d8febde05e94a55503', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), h("stop", { key: '3df5fe92f07c054016840413979e6f4bbc967af1', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), h("linearGradient", { key: '853f7b5ae56dab5688c1bbf2e24fd3f38f13997f', id: "spinner-firstHalf" }, h("stop", { key: '54282ea20ec47332c65559f70ca4dd1429c2fe44', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), h("stop", { key: '471bc0aaa05940103ca1aa50b9772e514a19f912', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), h("g", { key: 'de35b85d92de0e958a0ec6753fa2362d2884c99f', class: "pds-loader__spinner-path" }, h("path", { key: '2238b370478f385ad6201b4aeadc9aedc7702ac7', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), h("path", { key: '3a6434262838be8654212f30f40af5bb50c5b679', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), h("path", { key: '687280eed667bfa794c4ea380274867614b66ff6', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (h("div", { key: 'a38bb46b431c96efa00d234ec6ce6b3ff2adb0e5', class: "pds-loader--typing" }, h("span", { key: 'bdd865189cf2fe87181b13fbdb01fcc7086c9f2c' }), h("span", { key: '79be0a18686ac726b3b012cb1b796a1265c45ddb' }), h("span", { key: '351a6709d5b50c27b82d9dfba1d01cd058e8c10f' }))), h("div", { key: '81602e65ce055f10b39a70d5f29ffb62471bcb25', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, h("slot", { key: '1ce406972db7f6ef5cc7d558301facb5e455956b', name: "label" }, "Loading..."))));
37
37
  }
38
38
  static get is() { return "pds-loader"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -0,0 +1,51 @@
1
+ :host {
2
+ --sizing-max-width-default: 352px;
3
+ display: inline-block;
4
+ }
5
+ :host [popover] {
6
+ background-color: var(--pine-color-white);
7
+ border: 1px solid var(--pine-color-gray-200);
8
+ border-radius: var(--pine-border-radius-125);
9
+ box-shadow: var(--pine-box-shadow-200);
10
+ margin: 0;
11
+ max-width: var(--sizing-max-width-default);
12
+ padding: var(--pine-spacing-300);
13
+ position: fixed;
14
+ }
15
+ :host button {
16
+ --border-radius-default: var(--pine-border-radius-round);
17
+ --border-width-default: var(--pine-border-width-thin);
18
+ --border-width-unstyled: var(--pine-border-radius-0);
19
+ --color-background-secondary-hover: var(--pine-color-grey-050);
20
+ --color-border-secondary-default: var(--pine-color-grey-400);
21
+ --color-border-secondary-disabled: var(--pine-color-grey-300);
22
+ --color-border-secondary-focus: var(--pine-color-grey-300);
23
+ --color-border-secondary-hover: var(--pine-color-grey-500);
24
+ --color-text-secondary-default: var(--pine-color-grey-800);
25
+ --color-text-secondary-disabled: var(--pine-color-grey-400);
26
+ --color-outline-secondary: var(--pine-color-purple-300);
27
+ --color-border-disabled: var(--color-border-secondary-disabled);
28
+ --color-border-focus: var(--color-border-secondary-focus);
29
+ --color-border-hover: var(--color-border-secondary-hover);
30
+ --color-border-default: var(--color-border-secondary-default);
31
+ --color-text-default: var(--color-text-secondary-default);
32
+ --color-text-disabled: var(--color-text-secondary-disabled);
33
+ --color-outline: var(--color-outline-secondary);
34
+ --spacing-padding-block: var(--pine-spacing-100);
35
+ --spacing-padding-inline: var(--pine-spacing-200);
36
+ align-items: center;
37
+ background-color: var(--color-background-default);
38
+ border: var(--border-width-default) solid var(--color-border-default);
39
+ border-radius: var(--pine-border-radius-circle);
40
+ color: var(--color-text-default);
41
+ display: flex;
42
+ font-family: var(--pine-font-family-greet);
43
+ font-size: var(--pine-font-size-100);
44
+ font-weight: var(--pine-font-weight-body-medium);
45
+ line-height: var(--pine-line-height-150);
46
+ min-height: 40px;
47
+ padding: var(--spacing-padding-block) var(--spacing-padding-inline);
48
+ }
49
+ :host button:hover {
50
+ background-color: var(--color-background-secondary-hover);
51
+ }
@@ -0,0 +1,216 @@
1
+ import { Host, h } from "@stencil/core";
2
+ export class PdsPopover {
3
+ constructor() {
4
+ this.active = false;
5
+ this.popoverTargetAction = 'show';
6
+ this.popoverType = 'auto';
7
+ this.componentId = undefined;
8
+ this.text = undefined;
9
+ this.maxWidth = 352;
10
+ this.placement = 'right';
11
+ }
12
+ componentWillRender() {
13
+ this.handlePopoverPositioning();
14
+ }
15
+ handleClick() {
16
+ this.active = !this.active;
17
+ }
18
+ handleScroll() {
19
+ if (this.active) {
20
+ this.handlePopoverPositioning();
21
+ }
22
+ }
23
+ handlePopoverPositioning() {
24
+ const triggerEl = this.el.shadowRoot.querySelector('.pds-popover__trigger');
25
+ const popoverEl = this.el.shadowRoot.querySelector('div[popover]');
26
+ if (!triggerEl || !popoverEl)
27
+ return;
28
+ const triggerRect = triggerEl.getBoundingClientRect();
29
+ const popoverRect = popoverEl.getBoundingClientRect();
30
+ let top = 0;
31
+ let left = 0;
32
+ const offset = 8;
33
+ switch (this.placement) {
34
+ case 'top':
35
+ top = triggerRect.top - popoverRect.height - offset;
36
+ left = triggerRect.left;
37
+ break;
38
+ case 'right':
39
+ top = triggerRect.top;
40
+ left = triggerRect.right + offset;
41
+ break;
42
+ case 'bottom':
43
+ top = triggerRect.bottom + offset;
44
+ left = triggerRect.left;
45
+ break;
46
+ case 'left':
47
+ top = triggerRect.top;
48
+ left = triggerRect.left - popoverRect.width - offset;
49
+ break;
50
+ }
51
+ popoverEl.style.top = `${top}px`;
52
+ popoverEl.style.left = `${left}px`;
53
+ }
54
+ render() {
55
+ return (h(Host, { key: '7a21719bb6f13f435cae77f6b2c7c2eefb36c977' }, h("button", { key: '707c94e2462fe230a777d61899b902c84feaa09c', class: "pds-popover__trigger", popoverTarget: this.componentId, popoverTargetAction: this.popoverTargetAction, onClick: this.handleClick }, this.text), h("div", { key: '703d21dd5f3caadb8c0d097849f691d2d4407358', class: `pds-popover ${this.active ? 'pds-popover--active' : ''}`, id: this.componentId, popover: this.popoverType, style: { maxWidth: `${this.maxWidth}px` } }, h("slot", { key: '42ef680b5850d62f50f1e6cfb1587c3d5b6db0d4' }))));
56
+ }
57
+ static get is() { return "pds-popover"; }
58
+ static get encapsulation() { return "shadow"; }
59
+ static get originalStyleUrls() {
60
+ return {
61
+ "$": ["pds-popover.scss"]
62
+ };
63
+ }
64
+ static get styleUrls() {
65
+ return {
66
+ "$": ["pds-popover.css"]
67
+ };
68
+ }
69
+ static get properties() {
70
+ return {
71
+ "popoverTargetAction": {
72
+ "type": "string",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "'show' | 'toggle' | 'hide'",
76
+ "resolved": "\"hide\" | \"show\" | \"toggle\"",
77
+ "references": {}
78
+ },
79
+ "required": false,
80
+ "optional": false,
81
+ "docs": {
82
+ "tags": [{
83
+ "name": "defaultValue",
84
+ "text": "\"show\""
85
+ }],
86
+ "text": "Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value."
87
+ },
88
+ "attribute": "popover-target-action",
89
+ "reflect": false,
90
+ "defaultValue": "'show'"
91
+ },
92
+ "popoverType": {
93
+ "type": "string",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "'auto' | 'manual'",
97
+ "resolved": "\"auto\" | \"manual\"",
98
+ "references": {}
99
+ },
100
+ "required": false,
101
+ "optional": false,
102
+ "docs": {
103
+ "tags": [],
104
+ "text": "Determines the type of popover. Auto popovers can be \"light dismissed\" by clicking outside of the popover.\nManual popovers require the consumer to handle the visibility of the popover."
105
+ },
106
+ "attribute": "popover-type",
107
+ "reflect": false,
108
+ "defaultValue": "'auto'"
109
+ },
110
+ "componentId": {
111
+ "type": "string",
112
+ "mutable": false,
113
+ "complexType": {
114
+ "original": "string",
115
+ "resolved": "string",
116
+ "references": {}
117
+ },
118
+ "required": false,
119
+ "optional": false,
120
+ "docs": {
121
+ "tags": [],
122
+ "text": "A unique identifier used for the underlying component `id` attribute."
123
+ },
124
+ "attribute": "component-id",
125
+ "reflect": false
126
+ },
127
+ "text": {
128
+ "type": "string",
129
+ "mutable": false,
130
+ "complexType": {
131
+ "original": "string",
132
+ "resolved": "string",
133
+ "references": {}
134
+ },
135
+ "required": false,
136
+ "optional": false,
137
+ "docs": {
138
+ "tags": [],
139
+ "text": "Text that appears on the trigger element"
140
+ },
141
+ "attribute": "text",
142
+ "reflect": false
143
+ },
144
+ "maxWidth": {
145
+ "type": "number",
146
+ "mutable": false,
147
+ "complexType": {
148
+ "original": "number",
149
+ "resolved": "number",
150
+ "references": {}
151
+ },
152
+ "required": false,
153
+ "optional": true,
154
+ "docs": {
155
+ "tags": [{
156
+ "name": "defaultValue",
157
+ "text": "352"
158
+ }],
159
+ "text": "Sets the maximum width of the popover content"
160
+ },
161
+ "attribute": "max-width",
162
+ "reflect": false,
163
+ "defaultValue": "352"
164
+ },
165
+ "placement": {
166
+ "type": "string",
167
+ "mutable": false,
168
+ "complexType": {
169
+ "original": "PlacementType",
170
+ "resolved": "\"bottom\" | \"bottom-end\" | \"bottom-start\" | \"left\" | \"left-end\" | \"left-start\" | \"right\" | \"right-end\" | \"right-start\" | \"top\" | \"top-end\" | \"top-start\"",
171
+ "references": {
172
+ "PlacementType": {
173
+ "location": "import",
174
+ "path": "@utils/types",
175
+ "id": "src/utils/types.ts::PlacementType"
176
+ }
177
+ }
178
+ },
179
+ "required": false,
180
+ "optional": false,
181
+ "docs": {
182
+ "tags": [{
183
+ "name": "defaultValue",
184
+ "text": "\"right\""
185
+ }],
186
+ "text": "Determines the preferred position of the popover"
187
+ },
188
+ "attribute": "placement",
189
+ "reflect": true,
190
+ "defaultValue": "'right'"
191
+ }
192
+ };
193
+ }
194
+ static get states() {
195
+ return {
196
+ "active": {}
197
+ };
198
+ }
199
+ static get elementRef() { return "el"; }
200
+ static get listeners() {
201
+ return [{
202
+ "name": "click",
203
+ "method": "handleClick",
204
+ "target": undefined,
205
+ "capture": true,
206
+ "passive": false
207
+ }, {
208
+ "name": "scroll",
209
+ "method": "handleScroll",
210
+ "target": "window",
211
+ "capture": true,
212
+ "passive": true
213
+ }];
214
+ }
215
+ }
216
+ //# sourceMappingURL=pds-popover.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-popover.js","sourceRoot":"","sources":["../../../src/components/pds-popover/pds-popover.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAQjF,MAAM,OAAO,UAAU;;sBAUH,KAAK;mCAMmC,MAAM;2BAMvB,MAAM;;;wBAgBnB,GAAG;yBAMqB,OAAO;;IAE3D,mBAAmB;QACjB,IAAI,CAAC,wBAAwB,EAAE,CAAC;IAClC,CAAC;IAKD,WAAW;QACT,IAAI,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC;IAC7B,CAAC;IAMD,YAAY;QACV,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,IAAI,CAAC,wBAAwB,EAAE,CAAC;QAClC,CAAC;IACH,CAAC;IAEO,wBAAwB;QAC9B,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,uBAAuB,CAAgB,CAAC;QAC3F,MAAM,SAAS,GAAG,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,aAAa,CAAC,cAAc,CAAgB,CAAC;QAElF,IAAI,CAAC,SAAS,IAAI,CAAC,SAAS;YAAE,OAAO;QAErC,MAAM,WAAW,GAAG,SAAS,CAAC,qBAAqB,EAAE,CAAC;QACtD,MAAM,WAAW,GAAG,SAAS,CAAC,qBAAqB,EAAE,CAAC;QAEtD,IAAI,GAAG,GAAG,CAAC,CAAC;QACZ,IAAI,IAAI,GAAG,CAAC,CAAC;QACb,MAAM,MAAM,GAAG,CAAC,CAAA;QAEhB,QAAQ,IAAI,CAAC,SAAS,EAAE,CAAC;YACvB,KAAK,KAAK;gBACR,GAAG,GAAG,WAAW,CAAC,GAAG,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC;gBACpD,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;gBACxB,MAAM;YACR,KAAK,OAAO;gBACV,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;gBACtB,IAAI,GAAG,WAAW,CAAC,KAAK,GAAG,MAAM,CAAC;gBAClC,MAAM;YACR,KAAK,QAAQ;gBACX,GAAG,GAAG,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC;gBAClC,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC;gBACxB,MAAM;YACR,KAAK,MAAM;gBACT,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;gBACtB,IAAI,GAAG,WAAW,CAAC,IAAI,GAAG,WAAW,CAAC,KAAK,GAAG,MAAM,CAAC;gBACrD,MAAM;QACV,CAAC;QAED,SAAS,CAAC,KAAK,CAAC,GAAG,GAAG,GAAG,GAAG,IAAI,CAAC;QACjC,SAAS,CAAC,KAAK,CAAC,IAAI,GAAG,GAAG,IAAI,IAAI,CAAC;IACrC,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI;YACH,+DACE,KAAK,EAAC,sBAAsB,EAC5B,aAAa,EAAE,IAAI,CAAC,WAAW,EAC/B,mBAAmB,EAAE,IAAI,CAAC,mBAAmB,EAC7C,OAAO,EAAE,IAAI,CAAC,WAAW,IAExB,IAAI,CAAC,IAAI,CACH;YACT,4DACE,KAAK,EAAE,eAAe,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,EAAE,EAAE,EAChE,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,KAAK,EAAE,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,QAAQ,IAAI,EAAE;gBAEzC,8DAAa,CACT,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Host, Listen, h, Prop, State } from '@stencil/core';\nimport { PlacementType } from '@utils/types';\n\n@Component({\n tag: 'pds-popover',\n styleUrl: 'pds-popover.scss',\n shadow: true,\n})\nexport class PdsPopover {\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsPopoverElement;\n\n /**\n * Determines when the popover is active\n * @defaultValue false\n */\n @State() active = false;\n\n /**\n * Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value.\n * @defaultValue \"show\"\n */\n @Prop() popoverTargetAction: 'show' | 'toggle' | 'hide' = 'show';\n\n /**\n * Determines the type of popover. Auto popovers can be \"light dismissed\" by clicking outside of the popover.\n * Manual popovers require the consumer to handle the visibility of the popover.\n */\n @Prop() popoverType: 'auto' | 'manual' = 'auto';\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Text that appears on the trigger element\n */\n @Prop() text: string;\n\n /**\n * Sets the maximum width of the popover content\n * @defaultValue 352\n */\n @Prop() maxWidth?: number = 352;\n\n /**\n * Determines the preferred position of the popover\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement: PlacementType = 'right';\n\n componentWillRender() {\n this.handlePopoverPositioning();\n }\n\n @Listen('click', {\n capture: true\n })\n handleClick() {\n this.active = !this.active;\n }\n\n @Listen('scroll', {\n target: 'window',\n capture: true\n })\n handleScroll() {\n if (this.active) {\n this.handlePopoverPositioning();\n }\n }\n\n private handlePopoverPositioning() {\n const triggerEl = this.el.shadowRoot.querySelector('.pds-popover__trigger') as HTMLElement;\n const popoverEl = this.el.shadowRoot.querySelector('div[popover]') as HTMLElement;\n\n if (!triggerEl || !popoverEl) return;\n\n const triggerRect = triggerEl.getBoundingClientRect();\n const popoverRect = popoverEl.getBoundingClientRect();\n\n let top = 0;\n let left = 0;\n const offset = 8\n\n switch (this.placement) {\n case 'top':\n top = triggerRect.top - popoverRect.height - offset;\n left = triggerRect.left;\n break;\n case 'right':\n top = triggerRect.top;\n left = triggerRect.right + offset;\n break;\n case 'bottom':\n top = triggerRect.bottom + offset;\n left = triggerRect.left;\n break;\n case 'left':\n top = triggerRect.top;\n left = triggerRect.left - popoverRect.width - offset;\n break;\n }\n\n popoverEl.style.top = `${top}px`;\n popoverEl.style.left = `${left}px`;\n }\n\n render() {\n return (\n <Host>\n <button\n class=\"pds-popover__trigger\"\n popoverTarget={this.componentId}\n popoverTargetAction={this.popoverTargetAction}\n onClick={this.handleClick}\n >\n {this.text}\n </button>\n <div\n class={`pds-popover ${this.active ? 'pds-popover--active' : ''}`}\n id={this.componentId}\n popover={this.popoverType}\n style={{ maxWidth: `${this.maxWidth}px` }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,45 @@
1
+ import { html } from 'lit';
2
+ import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
3
+ import { withActions } from '@storybook/addon-actions/decorator';
4
+
5
+ export default {
6
+ argTypes: extractArgTypes('pds-popover'),
7
+ args: {
8
+ popoverTargetAction: 'show',
9
+ popoverType: 'auto',
10
+ },
11
+ component: 'pds-popover',
12
+ decorators: [withActions],
13
+ parameters: {
14
+ actions: {
15
+ handles: ['mouseEnter', 'mouseLeave', 'hidePdsPopover', 'showPdsPopover'],
16
+ },
17
+ },
18
+ title: 'components/Popover'
19
+ }
20
+
21
+ const BaseTemplate = (args) => html`
22
+ <pds-popover component-id=${args.componentId} popover-type=${args.popoverType} popover-target-action=${args.popoverTargetAction} text=${args.text} max-width=${args.maxWidth} placement=${args.placement}>
23
+ ${args.slot}
24
+ </pds-popover>
25
+ `;
26
+
27
+ export const Default = BaseTemplate.bind({});
28
+ Default.args = {
29
+ componentId: 'popover-1',
30
+ placement: "right",
31
+ text: "Show popover",
32
+ slot: html`<p>Popover content</p>
33
+ <p>Popover content</p>`
34
+ };
35
+
36
+ export const Toggle = BaseTemplate.bind({});
37
+ Toggle.args = {
38
+ componentId: 'popover-1',
39
+ placement: "bottom",
40
+ popoverType: "manual",
41
+ popoverTargetAction: "toggle",
42
+ text: "Toggle popover",
43
+ slot: html`<p>Popover content</p>
44
+ <p>Popover content</p>`
45
+ };
@@ -9,7 +9,7 @@ export class PdsProgress {
9
9
  this.showPercent = false;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: 'abd4f8e7972ff974b671831e38ae821a01bbc519', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: 'b6afe1b42ccf8f346c88648276d1e991fe41fd91', class: "pds-progress" }, h("label", { key: '676f91cdc74a861005cc7a25f811d51212641ee1', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: '5f0154648ba27c6d83bd9fd3d7c3b59597665b1c', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: 'a538abd09affcb043a215c2ca504a9cbbe500332', class: "pds-progress__percentage" }, this.percent, "%")));
12
+ return (h(Host, { key: '9676c2db5e2178b7cdaf54798a29025b8f4bedb6', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: '40006e1d3ef7298a8d410654a6cc93ff3905a268', class: "pds-progress" }, h("label", { key: '1437eb984f29bfd29c568ec1f7b6e03c8166c3bb', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: '546b32d7ad6ec5e8890ea20d180e77d68ec31e03', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: '34dd884b3ab2f7df9ff44103fadbb5854cd8b83c', class: "pds-progress__percentage" }, this.percent, "%")));
13
13
  }
14
14
  static get is() { return "pds-progress"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -103,12 +103,20 @@ input:focus-visible {
103
103
  }
104
104
 
105
105
  label {
106
+ font-weight: var(--pine-font-weight-body-medium);
106
107
  margin-inline-start: 10px;
107
108
  }
108
109
 
109
110
  .pds-radio__message {
110
- color: var(--pine-color-grey-800);
111
+ color: var(--pine-color-grey-700);
111
112
  margin-block-start: var(--sizing-margin-block-start);
112
113
  margin-inline-start: 26px;
113
114
  width: 100%;
115
+ }
116
+
117
+ .pds-radio__message--error {
118
+ align-items: center;
119
+ display: flex;
120
+ font-size: var(--pine-font-size-085);
121
+ gap: var(--pine-spacing-050);
114
122
  }
@@ -1,6 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { assignDescription, messageId } from "../../utils/form";
3
3
  import { PdsLabel } from "../_internal/pds-label/pds-label";
4
+ import { danger } from "@pine-ds/icons/icons";
4
5
  export class PdsRadio {
5
6
  constructor() {
6
7
  this.handleRadioChange = (e) => {
@@ -12,12 +13,12 @@ export class PdsRadio {
12
13
  this.pdsRadioChange.emit(isChecked);
13
14
  };
14
15
  this.checked = false;
16
+ this.componentId = undefined;
15
17
  this.disabled = false;
16
18
  this.errorMessage = undefined;
19
+ this.helperMessage = undefined;
17
20
  this.invalid = false;
18
- this.componentId = undefined;
19
21
  this.label = undefined;
20
- this.helperMessage = undefined;
21
22
  this.name = undefined;
22
23
  this.required = false;
23
24
  this.value = undefined;
@@ -33,9 +34,9 @@ export class PdsRadio {
33
34
  return classNames.join(' ');
34
35
  }
35
36
  render() {
36
- return (h(Host, { key: '9cb0d602497eac8edaf17715182e27ed4b0bc0ab', class: this.classNames() }, h("input", { key: '20f794bb58ab815d6e73b1d9bb01c0b5a01186c7', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange }), h(PdsLabel, { key: 'f968ebc75adae7365c7334e916b4370006937132', htmlFor: this.componentId, text: this.label }), this.helperMessage &&
37
- h("div", { key: '96fdd82a8e89a40b73687ce609caa4671007e882', class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
38
- h("div", { key: '7133583828149eb3c1c958f0fb6821a773c12951', class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
37
+ return (h(Host, { key: '1e65b437028814fdd4d03f5061140725e9004757', class: this.classNames() }, h("input", { key: '5f4789365bdc2cfdc0a46623dc71dea8f0f1020d', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange }), h(PdsLabel, { key: 'd9dc6f65cb3c10bd2b89fd741d224e027bd6506d', htmlFor: this.componentId, text: this.label }), this.helperMessage &&
38
+ h("div", { key: 'e3e26f4899dc7b9540f6542970da67c51d45c92d', class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
39
+ h("div", { key: 'eccaa4397a33b4bee144233c8e18c0be0b2ec20c', class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '9d22c23b9587a026827acac24d20ca1e7afcb5d3', icon: danger, size: "small" }), this.errorMessage)));
39
40
  }
40
41
  static get is() { return "pds-radio"; }
41
42
  static get encapsulation() { return "scoped"; }
@@ -72,6 +73,23 @@ export class PdsRadio {
72
73
  "reflect": false,
73
74
  "defaultValue": "false"
74
75
  },
76
+ "componentId": {
77
+ "type": "string",
78
+ "mutable": false,
79
+ "complexType": {
80
+ "original": "string",
81
+ "resolved": "string",
82
+ "references": {}
83
+ },
84
+ "required": true,
85
+ "optional": false,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": "A unique identifier used for the underlying component `id` attribute and the label `for` attribute."
89
+ },
90
+ "attribute": "component-id",
91
+ "reflect": false
92
+ },
75
93
  "disabled": {
76
94
  "type": "boolean",
77
95
  "mutable": false,
@@ -105,11 +123,28 @@ export class PdsRadio {
105
123
  "optional": false,
106
124
  "docs": {
107
125
  "tags": [],
108
- "text": "Displays message text describing an invalid state."
126
+ "text": "Displays error message text describing an invalid state."
109
127
  },
110
128
  "attribute": "error-message",
111
129
  "reflect": false
112
130
  },
131
+ "helperMessage": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": "Displays helper message text below radio."
144
+ },
145
+ "attribute": "helper-message",
146
+ "reflect": false
147
+ },
113
148
  "invalid": {
114
149
  "type": "boolean",
115
150
  "mutable": false,
@@ -131,23 +166,6 @@ export class PdsRadio {
131
166
  "reflect": false,
132
167
  "defaultValue": "false"
133
168
  },
134
- "componentId": {
135
- "type": "string",
136
- "mutable": false,
137
- "complexType": {
138
- "original": "string",
139
- "resolved": "string",
140
- "references": {}
141
- },
142
- "required": true,
143
- "optional": false,
144
- "docs": {
145
- "tags": [],
146
- "text": "A unique identifier used for the underlying component `id` attribute and the label `for` attribute."
147
- },
148
- "attribute": "component-id",
149
- "reflect": false
150
- },
151
169
  "label": {
152
170
  "type": "string",
153
171
  "mutable": false,
@@ -165,23 +183,6 @@ export class PdsRadio {
165
183
  "attribute": "label",
166
184
  "reflect": false
167
185
  },
168
- "helperMessage": {
169
- "type": "string",
170
- "mutable": false,
171
- "complexType": {
172
- "original": "string",
173
- "resolved": "string",
174
- "references": {}
175
- },
176
- "required": false,
177
- "optional": false,
178
- "docs": {
179
- "tags": [],
180
- "text": "String used for helper message below radio."
181
- },
182
- "attribute": "helper-message",
183
- "reflect": false
184
- },
185
186
  "name": {
186
187
  "type": "string",
187
188
  "mutable": false,