@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
@@ -1 +1 @@
1
- {"version":3,"file":"pds-radio.js","sourceRoot":"","sources":["../../../src/components/pds-radio/pds-radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAO5D,MAAM,OAAO,QAAQ;;QA4DX,sBAAiB,GAAG,CAAC,CAAQ,EAAE,EAAE;YACvC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,OAAO;YACT,CAAC;YAED,MAAM,MAAM,GAAG,CAAC,CAAC,MAA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EAC3B,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf;YAEP,IAAI,CAAC,YAAY;gBAChB,4DACE,KAAK,EAAE,8CAA8C,EACrD,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW,IAEpB,IAAI,CAAC,YAAY,CACd,CAEH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-radio',\n styleUrls: ['../../global/styles/base.scss', 'pds-radio.scss'],\n scoped: true,\n})\nexport class PdsRadio {\n /**\n * Determines whether or not the radio is checked.\n * @defaultValue false\n */\n @Prop() checked = false;\n\n /**\n * Determines whether or not the radio is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Determines whether or not the radio is invalid.\n * @defaultValue false\n */\n @Prop() invalid = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * String used for label text next to radio.\n */\n @Prop() label: string;\n\n /**\n * String used for helper message below radio.\n */\n @Prop() helperMessage: string;\n\n /**\n * String used for radio `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * Determines whether or not the radio is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value of the radio that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Emits a boolean indicating whether the checkbox is currently checked or unchecked.\n */\n @Event() pdsRadioChange: EventEmitter<boolean>;\n\n private handleRadioChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n const isChecked = target.checked;\n\n this.pdsRadioChange.emit(isChecked);\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) {\n classNames.push('is-invalid');\n }\n if (this.disabled) {\n classNames.push('is-disabled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n type=\"radio\"\n id={this.componentId}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleRadioChange}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={'pds-radio__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-radio__message pds-radio__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-radio.js","sourceRoot":"","sources":["../../../src/components/pds-radio/pds-radio.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAgB,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,MAAM,OAAO,QAAQ;;QA4DX,sBAAiB,GAAG,CA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OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI;YACxD,IAAI,CAAC,aAAa;gBACjB,4DACE,KAAK,EAAE,oBAAoB,EAC3B,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf;YAEP,IAAI,CAAC,YAAY;gBAChB,4DACE,KAAK,EAAE,8CAA8C,EACrD,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW;oBAErB,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,OAAO,GAAG;oBACtC,IAAI,CAAC,YAAY,CACd,CAEH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-radio',\n styleUrls: ['../../global/styles/base.scss', 'pds-radio.scss'],\n scoped: true,\n})\nexport class PdsRadio {\n /**\n * Determines whether or not the radio is checked.\n * @defaultValue false\n */\n @Prop() checked = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines whether or not the radio is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below radio.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the radio is invalid.\n * @defaultValue false\n */\n @Prop() invalid = false;\n\n /**\n * String used for label text next to radio.\n */\n @Prop() label: string;\n\n /**\n * String used for radio `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * Determines whether or not the radio is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value of the radio that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Emits a boolean indicating whether the checkbox is currently checked or unchecked.\n */\n @Event() pdsRadioChange: EventEmitter<boolean>;\n\n private handleRadioChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n const isChecked = target.checked;\n\n this.pdsRadioChange.emit(isChecked);\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) {\n classNames.push('is-invalid');\n }\n if (this.disabled) {\n classNames.push('is-disabled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n type=\"radio\"\n id={this.componentId}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleRadioChange}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={'pds-radio__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-radio__message pds-radio__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"]}
@@ -32,7 +32,7 @@ export class PdsRow {
32
32
  })), (this.minHeight && {
33
33
  'min-height': this.minHeight,
34
34
  }));
35
- return h(Host, { key: 'b764491968a34ae8f1e3e329111cb4ba0887bdef', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
35
+ return h(Host, { key: '1760d9bd45d53d371c0a4c73171a12a6e4c59b51', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
36
36
  }
37
37
  static get is() { return "pds-row"; }
38
38
  static get originalStyleUrls() {
@@ -0,0 +1,126 @@
1
+ :host {
2
+ --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);
3
+ --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-red-300);
4
+ --color-background-disabled: var(--pine-color-grey-100);
5
+ --color-background-error: var(--pine-color-red-050);
6
+ --color-border-active: var(--pine-color-grey-400);
7
+ --color-border-default: var(--pine-color-grey-300);
8
+ --color-border-disabled: var(--pine-color-grey-200);
9
+ --color-border-error: var(--pine-color-red-600);
10
+ --color-border-hover: var(--pine-color-grey-500);
11
+ --color-text-disabled: var(--pine-color-grey-600);
12
+ --color-text-error: var(--pine-color-red-600);
13
+ --font-size-helper-message: var(--pine-font-size-085);
14
+ --font-size-select-field: var(--pine-font-size-100);
15
+ --font-size-label: var(--pine-font-size-100);
16
+ --font-weight-helper-message: var(--pine-font-weight-normal);
17
+ --font-weight-select-field: var(--pine-font-weight-normal);
18
+ --font-weight-label: var(--pine-font-weight-medium);
19
+ --line-height-label: var(--pine-line-height-150);
20
+ --line-height-helper-message: var(--pine-line-height-125);
21
+ --line-height-select-field: var(--pine-line-height-150);
22
+ --spacing-error-message: var(--pine-spacing-050);
23
+ --spacing-field-padding-block: var(--pine-spacing-100);
24
+ --spacing-label-margin-block-end: var(--pine-spacing-100);
25
+ --spacing-margin-top-helper-message: var(--pine-spacing-100);
26
+ --spacing-select-field-padding-inline: var(--pine-spacing-150);
27
+ --spacing-select-field-icon-allowance: var(--pine-spacing-450);
28
+ }
29
+ :host .hidden,
30
+ :host :host([hidden]) {
31
+ display: none;
32
+ }
33
+
34
+ .pds-select {
35
+ display: grid;
36
+ flex-direction: column;
37
+ grid-template-areas: "label label" "field field" "message message";
38
+ grid-template-columns: 1fr minmax(2rem, min-content);
39
+ grid-template-rows: min-content min-content min-content;
40
+ position: relative;
41
+ width: 100%;
42
+ }
43
+
44
+ label {
45
+ font-size: var(--font-size-label);
46
+ font-weight: var(--font-weight-label);
47
+ grid-area: label;
48
+ line-height: var(--line-height-label);
49
+ margin-block-end: var(--spacing-label-margin-block-end);
50
+ }
51
+
52
+ select {
53
+ appearance: none;
54
+ border: 1px solid var(--color-border-default);
55
+ border-radius: 10px;
56
+ font-size: var(--font-size-select-field);
57
+ font-weight: var(--font-weight-select-field);
58
+ grid-area: field;
59
+ line-height: var(--line-height-select-field);
60
+ padding: var(--spacing-field-padding-block) var(--spacing-select-field-padding-inline);
61
+ padding-right: var(--spacing-select-field-icon-allowance);
62
+ position: relative;
63
+ }
64
+ select:hover {
65
+ border-color: var(--color-border-hover);
66
+ cursor: pointer;
67
+ }
68
+ select:focus-visible {
69
+ border-color: var(--color-border-active);
70
+ box-shadow: var(--box-shadow-focus);
71
+ outline: none;
72
+ }
73
+ select:disabled {
74
+ background-color: var(--color-background-disabled);
75
+ border-color: var(--color-border-disabled);
76
+ color: var(--color-text-disabled);
77
+ cursor: not-allowed;
78
+ }
79
+ select:has(~ .pds-select__message .pds-select__error-message) {
80
+ background-color: var(--color-background-error);
81
+ border-color: var(--color-border-error);
82
+ }
83
+ select:has(~ .pds-select__message .pds-select__error-message):focus-visible {
84
+ box-shadow: var(--box-shadow-focus-error);
85
+ outline: none;
86
+ }
87
+
88
+ :host(.is-invalid) select {
89
+ background-color: var(--color-background-error);
90
+ border-color: var(--color-border-error);
91
+ }
92
+ :host(.is-invalid) select:focus-visible {
93
+ box-shadow: var(--box-shadow-focus-error);
94
+ outline: none;
95
+ }
96
+
97
+ .pds-select__error-message,
98
+ .pds-select__helper-message {
99
+ font-size: var(--font-size-helper-message);
100
+ font-weight: var(--font-weight-helper-message);
101
+ line-height: var(--line-height-helper-message);
102
+ margin-block-end: 0;
103
+ margin-block-start: var(--spacing-margin-top-helper-message);
104
+ }
105
+
106
+ .pds-select__error-message {
107
+ align-items: center;
108
+ color: var(--color-text-error);
109
+ display: flex;
110
+ gap: var(--spacing-error-message);
111
+ }
112
+
113
+ .pds-select__message {
114
+ grid-area: message;
115
+ }
116
+
117
+ .pds-select__select-icon {
118
+ align-items: center;
119
+ display: flex;
120
+ grid-column: -1/-2;
121
+ grid-row: 2/3;
122
+ height: 2.5rem;
123
+ pointer-events: none;
124
+ position: relative;
125
+ z-index: 1;
126
+ }
@@ -0,0 +1,360 @@
1
+ import { Host, h } from "@stencil/core";
2
+ import { messageId } from "../../utils/form";
3
+ import { PdsLabel } from "../_internal/pds-label/pds-label";
4
+ export class PdsSelect {
5
+ constructor() {
6
+ /**
7
+ * Emits an event on input change.
8
+ */
9
+ this.onSelectUpdate = (e) => {
10
+ const target = e.target;
11
+ const values = Array.from(target.options)
12
+ .filter((option) => (option.selected))
13
+ .map((option) => (option.value));
14
+ if (values.length === 1 && !this.multiple) {
15
+ this.value = values[0];
16
+ }
17
+ else {
18
+ this.value = values;
19
+ }
20
+ this.pdsSelectChange.emit(e);
21
+ };
22
+ /**
23
+ * Handles the change event for the slot element.
24
+ * This method is triggered when the slot content changes.
25
+ * It updates the inner HTML of the select element by cloning and appending
26
+ * the assigned <option> elements from the slot.
27
+ */
28
+ this.handleSlotChange = () => {
29
+ const slot = this.slotContainer.querySelector('slot');
30
+ this.selectEl.innerHTML = '';
31
+ const assignedElements = slot.assignedElements({ flatten: true });
32
+ assignedElements.forEach((item) => {
33
+ if (['OPTION', 'OPTGROUP'].includes(item.tagName)) {
34
+ const clonedItem = item.cloneNode(true);
35
+ if (clonedItem.tagName === 'OPTION' && clonedItem.value === this.value) {
36
+ clonedItem.selected = true;
37
+ }
38
+ this.selectEl.appendChild(clonedItem);
39
+ }
40
+ });
41
+ this.updateSelectedOption();
42
+ };
43
+ this.autocomplete = undefined;
44
+ this.componentId = undefined;
45
+ this.disabled = false;
46
+ this.errorMessage = undefined;
47
+ this.helperMessage = undefined;
48
+ this.invalid = undefined;
49
+ this.label = undefined;
50
+ this.multiple = false;
51
+ this.name = undefined;
52
+ this.required = false;
53
+ this.value = undefined;
54
+ }
55
+ /**
56
+ * Handles the change in the value of the select component.
57
+ * This method is called whenever the value of the select component changes.
58
+ * It updates the selected option accordingly.
59
+ */
60
+ valueChanged() {
61
+ this.updateSelectedOption();
62
+ }
63
+ componentWillLoad() {
64
+ this.updateSelectedOption();
65
+ }
66
+ /**
67
+ * Updates the selected option in the select element based on the current value.
68
+ *
69
+ * This method iterates through all the options of the select element and sets the
70
+ * 'selected' attribute on the option that matches the current value. If an option
71
+ * does not match the current value, the 'selected' attribute is removed.
72
+ *
73
+ * @private
74
+ * @returns {void}
75
+ */
76
+ updateSelectedOption() {
77
+ if (this.selectEl) {
78
+ const options = this.selectEl.options;
79
+ // Update the selected attribute for all options.
80
+ Array.from(options).map((option) => {
81
+ if (Array.isArray(this.value)) {
82
+ option.selected = this.value.includes(option.value);
83
+ }
84
+ else {
85
+ option.selected = this.value === option.value;
86
+ }
87
+ });
88
+ }
89
+ ;
90
+ }
91
+ getHelperMessage() {
92
+ return this.helperMessage && (h("p", { class: "pds-select__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage));
93
+ }
94
+ getErrorMessage() {
95
+ return this.errorMessage && (h("p", { class: "pds-select__error-message", id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { name: "danger", size: "small" }), this.errorMessage));
96
+ }
97
+ renderMessages() {
98
+ if (!this.helperMessage && !this.errorMessage)
99
+ return null;
100
+ return (h("div", { class: "pds-select__message" }, this.getHelperMessage(), this.getErrorMessage()));
101
+ }
102
+ classNames() {
103
+ const classNames = [];
104
+ if (this.invalid) {
105
+ classNames.push('is-invalid');
106
+ }
107
+ if (this.disabled) {
108
+ classNames.push('is-disabled');
109
+ }
110
+ return classNames.join(' ');
111
+ }
112
+ render() {
113
+ return (h(Host, { key: 'f0baf957ee67ee9171a41fc4171e548b94d5c22c', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames() }, h("div", { key: '88ef7c54afc654133d613c91c4bb3fbfe4a944b3', class: "pds-select" }, h(PdsLabel, { key: '7723f468412f6567e0d4fd236807e1ba2fdea16a', htmlFor: this.componentId, text: this.label }), h("select", { key: '1bdb1e22360972aa6cb77902d1288abfcc9dbf07', autocomplete: this.autocomplete || undefined, class: "pds-select__field", disabled: this.disabled, id: this.componentId, multiple: this.multiple, name: this.name, onChange: this.onSelectUpdate, required: this.required, ref: (el) => (this.selectEl = el) }), h("div", { key: 'ddbac1f772b335688d7eb219a7ea3a9ab4a3192a', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: 'aa6093fd8833fdf4860dd8127c32f95405679a11', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: 'de8dc37035701942d8b2bcf56b40edf2f6de20df', class: "pds-select__select-icon", name: "enlarge" }))));
114
+ }
115
+ static get is() { return "pds-select"; }
116
+ static get encapsulation() { return "shadow"; }
117
+ static get originalStyleUrls() {
118
+ return {
119
+ "$": ["pds-select.scss"]
120
+ };
121
+ }
122
+ static get styleUrls() {
123
+ return {
124
+ "$": ["pds-select.css"]
125
+ };
126
+ }
127
+ static get properties() {
128
+ return {
129
+ "autocomplete": {
130
+ "type": "string",
131
+ "mutable": false,
132
+ "complexType": {
133
+ "original": "string",
134
+ "resolved": "string",
135
+ "references": {}
136
+ },
137
+ "required": false,
138
+ "optional": false,
139
+ "docs": {
140
+ "tags": [],
141
+ "text": "Specifies if and how the browser provides `autocomplete` assistance for the field."
142
+ },
143
+ "attribute": "autocomplete",
144
+ "reflect": false
145
+ },
146
+ "componentId": {
147
+ "type": "string",
148
+ "mutable": false,
149
+ "complexType": {
150
+ "original": "string",
151
+ "resolved": "string",
152
+ "references": {}
153
+ },
154
+ "required": true,
155
+ "optional": false,
156
+ "docs": {
157
+ "tags": [],
158
+ "text": "A unique identifier used for the underlying component `id` attribute."
159
+ },
160
+ "attribute": "component-id",
161
+ "reflect": false
162
+ },
163
+ "disabled": {
164
+ "type": "boolean",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "boolean",
168
+ "resolved": "boolean",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": false,
173
+ "docs": {
174
+ "tags": [{
175
+ "name": "defaultValue",
176
+ "text": "false"
177
+ }],
178
+ "text": "Indicates whether or not the select field is disabled."
179
+ },
180
+ "attribute": "disabled",
181
+ "reflect": false,
182
+ "defaultValue": "false"
183
+ },
184
+ "errorMessage": {
185
+ "type": "string",
186
+ "mutable": false,
187
+ "complexType": {
188
+ "original": "string",
189
+ "resolved": "string",
190
+ "references": {}
191
+ },
192
+ "required": false,
193
+ "optional": false,
194
+ "docs": {
195
+ "tags": [],
196
+ "text": "Displays error message text describing an invalid state."
197
+ },
198
+ "attribute": "error-message",
199
+ "reflect": false
200
+ },
201
+ "helperMessage": {
202
+ "type": "string",
203
+ "mutable": false,
204
+ "complexType": {
205
+ "original": "string",
206
+ "resolved": "string",
207
+ "references": {}
208
+ },
209
+ "required": false,
210
+ "optional": false,
211
+ "docs": {
212
+ "tags": [],
213
+ "text": "Displays helper message text below select."
214
+ },
215
+ "attribute": "helper-message",
216
+ "reflect": false
217
+ },
218
+ "invalid": {
219
+ "type": "boolean",
220
+ "mutable": false,
221
+ "complexType": {
222
+ "original": "boolean",
223
+ "resolved": "boolean",
224
+ "references": {}
225
+ },
226
+ "required": false,
227
+ "optional": true,
228
+ "docs": {
229
+ "tags": [],
230
+ "text": "Determines whether or not the select is invalid."
231
+ },
232
+ "attribute": "invalid",
233
+ "reflect": false
234
+ },
235
+ "label": {
236
+ "type": "string",
237
+ "mutable": false,
238
+ "complexType": {
239
+ "original": "string",
240
+ "resolved": "string",
241
+ "references": {}
242
+ },
243
+ "required": false,
244
+ "optional": false,
245
+ "docs": {
246
+ "tags": [],
247
+ "text": "Text to be displayed as the select label."
248
+ },
249
+ "attribute": "label",
250
+ "reflect": false
251
+ },
252
+ "multiple": {
253
+ "type": "boolean",
254
+ "mutable": false,
255
+ "complexType": {
256
+ "original": "boolean",
257
+ "resolved": "boolean",
258
+ "references": {}
259
+ },
260
+ "required": false,
261
+ "optional": false,
262
+ "docs": {
263
+ "tags": [{
264
+ "name": "defaultValue",
265
+ "text": "false"
266
+ }],
267
+ "text": "Indicates whether multiple options can be selected."
268
+ },
269
+ "attribute": "multiple",
270
+ "reflect": false,
271
+ "defaultValue": "false"
272
+ },
273
+ "name": {
274
+ "type": "string",
275
+ "mutable": false,
276
+ "complexType": {
277
+ "original": "string",
278
+ "resolved": "string",
279
+ "references": {}
280
+ },
281
+ "required": true,
282
+ "optional": false,
283
+ "docs": {
284
+ "tags": [],
285
+ "text": "Specifies the name. Submitted with the form name/value pair."
286
+ },
287
+ "attribute": "name",
288
+ "reflect": false
289
+ },
290
+ "required": {
291
+ "type": "boolean",
292
+ "mutable": false,
293
+ "complexType": {
294
+ "original": "boolean",
295
+ "resolved": "boolean",
296
+ "references": {}
297
+ },
298
+ "required": false,
299
+ "optional": false,
300
+ "docs": {
301
+ "tags": [{
302
+ "name": "defaultValue",
303
+ "text": "false"
304
+ }],
305
+ "text": "Indicates whether or not the select field is required."
306
+ },
307
+ "attribute": "required",
308
+ "reflect": false,
309
+ "defaultValue": "false"
310
+ },
311
+ "value": {
312
+ "type": "string",
313
+ "mutable": true,
314
+ "complexType": {
315
+ "original": "string | string[]",
316
+ "resolved": "string | string[]",
317
+ "references": {}
318
+ },
319
+ "required": false,
320
+ "optional": true,
321
+ "docs": {
322
+ "tags": [],
323
+ "text": "The value(s) of the selected option(s)."
324
+ },
325
+ "attribute": "value",
326
+ "reflect": false
327
+ }
328
+ };
329
+ }
330
+ static get events() {
331
+ return [{
332
+ "method": "pdsSelectChange",
333
+ "name": "pdsSelectChange",
334
+ "bubbles": true,
335
+ "cancelable": true,
336
+ "composed": true,
337
+ "docs": {
338
+ "tags": [],
339
+ "text": "Emitted when a keyboard input occurs."
340
+ },
341
+ "complexType": {
342
+ "original": "InputEvent",
343
+ "resolved": "InputEvent",
344
+ "references": {
345
+ "InputEvent": {
346
+ "location": "global",
347
+ "id": "global::InputEvent"
348
+ }
349
+ }
350
+ }
351
+ }];
352
+ }
353
+ static get watchers() {
354
+ return [{
355
+ "propName": "value",
356
+ "methodName": "valueChanged"
357
+ }];
358
+ }
359
+ }
360
+ //# sourceMappingURL=pds-select.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-select.js","sourceRoot":"","sources":["../../../src/components/pds-select/pds-select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAO5D,MAAM,OAAO,SAAS;;QA4GpB;;UAEE;QACM,mBAAc,GAAG,CAAC,CAAQ,EAAE,EAAE;YACpC,MAAM,MAAM,GAAG,CAAC,CAAC,MAA2B,CAAA;YAE5C,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;iBACpC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAE,MAAM,CAAC,QAAQ,CAAC,CAAC;iBACtC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;YAEtC,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;gBACxC,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;YAC3B,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC;YACxB,CAAC;YAED,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAe,C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,EAAC,SAAS,GAAG,CAC1E,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, Host, h, Prop, Watch } from '@stencil/core';\nimport { messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-select',\n styleUrl: 'pds-select.scss',\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon name=\"danger\" size=\"small\" />\n {this.errorMessage}\n </p>\n );\n }\n\n private renderMessages() {\n if (!this.helperMessage && !this.errorMessage) return null;\n\n return (\n <div class=\"pds-select__message\">\n {this.getHelperMessage()}\n {this.getErrorMessage()}\n </div>\n );\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.classNames()}>\n <div class=\"pds-select\">\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n <select\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\" name=\"enlarge\" />}\n </div>\n </Host>\n );\n }\n}\n"]}