@pine-ds/core 2.16.2 → 2.16.4

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 (510) hide show
  1. package/components/index2.js +2 -2
  2. package/components/index2.js.map +1 -1
  3. package/components/pds-box.js +1 -1
  4. package/components/pds-box.js.map +1 -1
  5. package/components/pds-button2.js +25 -5
  6. package/components/pds-button2.js.map +1 -1
  7. package/components/pds-checkbox2.js +4 -5
  8. package/components/pds-checkbox2.js.map +1 -1
  9. package/components/pds-chip.js +3 -3
  10. package/components/pds-chip.js.map +1 -1
  11. package/components/pds-copytext.js +11 -5
  12. package/components/pds-copytext.js.map +1 -1
  13. package/components/pds-divider.js +1 -1
  14. package/components/pds-icon2.js +2 -2
  15. package/components/pds-icon2.js.map +1 -1
  16. package/components/pds-image.js +2 -2
  17. package/components/pds-input.js +12 -4
  18. package/components/pds-input.js.map +1 -1
  19. package/components/pds-link.js +2 -2
  20. package/components/pds-loader.js +1 -61
  21. package/components/pds-loader.js.map +1 -1
  22. package/components/pds-loader2.js +65 -0
  23. package/components/pds-loader2.js.map +1 -0
  24. package/components/pds-popover.js +2 -2
  25. package/components/pds-popover.js.map +1 -1
  26. package/components/pds-progress.js +1 -1
  27. package/components/pds-radio.js +4 -5
  28. package/components/pds-radio.js.map +1 -1
  29. package/components/pds-row.js +2 -2
  30. package/components/pds-row.js.map +1 -1
  31. package/components/pds-select.js +3 -3
  32. package/components/pds-select.js.map +1 -1
  33. package/components/pds-sortable-item.js +1 -1
  34. package/components/pds-sortable.js +1 -1
  35. package/components/pds-switch.js +10 -5
  36. package/components/pds-switch.js.map +1 -1
  37. package/components/pds-tab.js +4 -4
  38. package/components/pds-tab.js.map +1 -1
  39. package/components/pds-table-body.js +1 -1
  40. package/components/pds-table-cell2.js +2 -2
  41. package/components/pds-table-head-cell2.js +2 -2
  42. package/components/pds-table-head.js +1 -1
  43. package/components/pds-table-row.js +1 -1
  44. package/components/pds-table.js +1 -1
  45. package/components/pds-tabpanel.js +1 -1
  46. package/components/pds-tabs.js +2 -2
  47. package/components/pds-tabs.js.map +1 -1
  48. package/components/pds-text.js +1 -1
  49. package/components/pds-textarea.js +4 -4
  50. package/components/pds-tooltip.js +2 -2
  51. package/dist/cjs/{index-034a8bb0.js → index-603f98cb.js} +3 -3
  52. package/dist/cjs/index-603f98cb.js.map +1 -0
  53. package/dist/cjs/loader.cjs.js +1 -1
  54. package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
  55. package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
  56. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  57. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  58. package/dist/cjs/pds-button.cjs.entry.js +16 -4
  59. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  60. package/dist/cjs/pds-checkbox.cjs.entry.js +5 -6
  61. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  62. package/dist/cjs/pds-chip.cjs.entry.js +4 -4
  63. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  64. package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
  65. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  66. package/dist/cjs/pds-icon.cjs.entry.js +2 -2
  67. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  68. package/dist/cjs/pds-image.cjs.entry.js +2 -2
  69. package/dist/cjs/pds-input.cjs.entry.js +13 -5
  70. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  71. package/dist/cjs/pds-link.cjs.entry.js +3 -3
  72. package/dist/cjs/pds-loader.cjs.entry.js +2 -2
  73. package/dist/cjs/pds-loader.cjs.entry.js.map +1 -1
  74. package/dist/cjs/pds-popover.cjs.entry.js +2 -2
  75. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -1
  76. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  77. package/dist/cjs/pds-radio.cjs.entry.js +5 -6
  78. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  79. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  80. package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
  81. package/dist/cjs/pds-select.cjs.entry.js +4 -4
  82. package/dist/cjs/pds-select.cjs.entry.js.map +1 -1
  83. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  84. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  85. package/dist/cjs/pds-switch.cjs.entry.js +10 -5
  86. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  87. package/dist/cjs/pds-tab.cjs.entry.js +4 -4
  88. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -1
  89. package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
  90. package/dist/cjs/pds-table-cell.cjs.entry.js +2 -2
  91. package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -3
  92. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  93. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  94. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  95. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  96. package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
  97. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -1
  98. package/dist/cjs/pds-text.cjs.entry.js +1 -1
  99. package/dist/cjs/pds-textarea.cjs.entry.js +5 -5
  100. package/dist/cjs/pds-tooltip.cjs.entry.js +2 -2
  101. package/dist/cjs/pine-core.cjs.js +1 -1
  102. package/dist/collection/components/pds-box/pds-box.css +10 -9
  103. package/dist/collection/components/pds-button/pds-button.css +56 -3
  104. package/dist/collection/components/pds-button/pds-button.js +56 -2
  105. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  106. package/dist/collection/components/pds-button/stories/pds-button.stories.js +32 -0
  107. package/dist/collection/components/pds-checkbox/pds-checkbox.css +7 -4
  108. package/dist/collection/components/pds-checkbox/pds-checkbox.js +3 -4
  109. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  110. package/dist/collection/components/pds-chip/pds-chip.css +1 -1
  111. package/dist/collection/components/pds-chip/pds-chip.js +1 -1
  112. package/dist/collection/components/pds-chip/pds-chip.tokens.css +17 -17
  113. package/dist/collection/components/pds-copytext/pds-copytext.js +1 -1
  114. package/dist/collection/components/pds-divider/pds-divider.js +1 -1
  115. package/dist/collection/components/pds-image/pds-image.js +2 -2
  116. package/dist/collection/components/pds-input/pds-input.css +22 -19
  117. package/dist/collection/components/pds-input/pds-input.js +12 -4
  118. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  119. package/dist/collection/components/pds-link/pds-link.js +2 -2
  120. package/dist/collection/components/pds-loader/pds-loader.css +2 -2
  121. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  122. package/dist/collection/components/pds-popover/pds-popover.css +1 -1
  123. package/dist/collection/components/pds-popover/pds-popover.js +1 -1
  124. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  125. package/dist/collection/components/pds-radio/pds-radio.css +6 -2
  126. package/dist/collection/components/pds-radio/pds-radio.js +3 -4
  127. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
  128. package/dist/collection/components/pds-row/pds-row.css +2 -2
  129. package/dist/collection/components/pds-row/pds-row.js +1 -1
  130. package/dist/collection/components/pds-select/pds-select.css +3 -2
  131. package/dist/collection/components/pds-select/pds-select.js +3 -3
  132. package/dist/collection/components/pds-select/pds-select.js.map +1 -1
  133. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  134. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  135. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  136. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  137. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  138. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  139. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  140. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  141. package/dist/collection/components/pds-table/pds-table.js +1 -1
  142. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +7 -2
  143. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  144. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  145. package/dist/collection/components/pds-tabs/pds-tabs.css +1 -0
  146. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  147. package/dist/collection/components/pds-text/pds-text.js +1 -1
  148. package/dist/collection/components/pds-textarea/pds-textarea.js +4 -4
  149. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  150. package/dist/docs.json +71 -8
  151. package/dist/esm/{index-d320cfa9.js → index-858623fe.js} +3 -3
  152. package/dist/esm/index-858623fe.js.map +1 -0
  153. package/dist/esm/loader.js +1 -1
  154. package/dist/esm/pds-accordion.entry.js +1 -1
  155. package/dist/esm/pds-avatar.entry.js +1 -1
  156. package/dist/esm/pds-box.entry.js +1 -1
  157. package/dist/esm/pds-box.entry.js.map +1 -1
  158. package/dist/esm/pds-button.entry.js +16 -4
  159. package/dist/esm/pds-button.entry.js.map +1 -1
  160. package/dist/esm/pds-checkbox.entry.js +5 -6
  161. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  162. package/dist/esm/pds-chip.entry.js +4 -4
  163. package/dist/esm/pds-chip.entry.js.map +1 -1
  164. package/dist/esm/pds-copytext.entry.js +2 -2
  165. package/dist/esm/pds-divider.entry.js +1 -1
  166. package/dist/esm/pds-icon.entry.js +2 -2
  167. package/dist/esm/pds-icon.entry.js.map +1 -1
  168. package/dist/esm/pds-image.entry.js +2 -2
  169. package/dist/esm/pds-input.entry.js +13 -5
  170. package/dist/esm/pds-input.entry.js.map +1 -1
  171. package/dist/esm/pds-link.entry.js +3 -3
  172. package/dist/esm/pds-loader.entry.js +2 -2
  173. package/dist/esm/pds-loader.entry.js.map +1 -1
  174. package/dist/esm/pds-popover.entry.js +2 -2
  175. package/dist/esm/pds-popover.entry.js.map +1 -1
  176. package/dist/esm/pds-progress.entry.js +1 -1
  177. package/dist/esm/pds-radio.entry.js +5 -6
  178. package/dist/esm/pds-radio.entry.js.map +1 -1
  179. package/dist/esm/pds-row.entry.js +2 -2
  180. package/dist/esm/pds-row.entry.js.map +1 -1
  181. package/dist/esm/pds-select.entry.js +4 -4
  182. package/dist/esm/pds-select.entry.js.map +1 -1
  183. package/dist/esm/pds-sortable-item.entry.js +2 -2
  184. package/dist/esm/pds-sortable.entry.js +1 -1
  185. package/dist/esm/pds-switch.entry.js +11 -6
  186. package/dist/esm/pds-switch.entry.js.map +1 -1
  187. package/dist/esm/pds-tab.entry.js +4 -4
  188. package/dist/esm/pds-tab.entry.js.map +1 -1
  189. package/dist/esm/pds-table-body.entry.js +1 -1
  190. package/dist/esm/pds-table-cell.entry.js +2 -2
  191. package/dist/esm/pds-table-head-cell.entry.js +3 -3
  192. package/dist/esm/pds-table-head.entry.js +1 -1
  193. package/dist/esm/pds-table-row.entry.js +1 -1
  194. package/dist/esm/pds-table.entry.js +1 -1
  195. package/dist/esm/pds-tabpanel.entry.js +1 -1
  196. package/dist/esm/pds-tabs.entry.js +2 -2
  197. package/dist/esm/pds-tabs.entry.js.map +1 -1
  198. package/dist/esm/pds-text.entry.js +1 -1
  199. package/dist/esm/pds-textarea.entry.js +5 -5
  200. package/dist/esm/pds-tooltip.entry.js +2 -2
  201. package/dist/esm/pine-core.js +1 -1
  202. package/dist/esm-es5/{index-d320cfa9.js → index-858623fe.js} +2 -2
  203. package/dist/esm-es5/index-858623fe.js.map +1 -0
  204. package/dist/esm-es5/loader.js +1 -1
  205. package/dist/esm-es5/loader.js.map +1 -1
  206. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  207. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  208. package/dist/esm-es5/pds-box.entry.js +1 -1
  209. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  210. package/dist/esm-es5/pds-button.entry.js +1 -1
  211. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  212. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  213. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  214. package/dist/esm-es5/pds-chip.entry.js +1 -1
  215. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  216. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  217. package/dist/esm-es5/pds-divider.entry.js +1 -1
  218. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  219. package/dist/esm-es5/pds-image.entry.js +1 -1
  220. package/dist/esm-es5/pds-input.entry.js +1 -1
  221. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  222. package/dist/esm-es5/pds-link.entry.js +1 -1
  223. package/dist/esm-es5/pds-loader.entry.js +1 -1
  224. package/dist/esm-es5/pds-loader.entry.js.map +1 -1
  225. package/dist/esm-es5/pds-popover.entry.js +1 -1
  226. package/dist/esm-es5/pds-popover.entry.js.map +1 -1
  227. package/dist/esm-es5/pds-progress.entry.js +1 -1
  228. package/dist/esm-es5/pds-radio.entry.js +1 -1
  229. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  230. package/dist/esm-es5/pds-row.entry.js +1 -1
  231. package/dist/esm-es5/pds-row.entry.js.map +1 -1
  232. package/dist/esm-es5/pds-select.entry.js +1 -1
  233. package/dist/esm-es5/pds-select.entry.js.map +1 -1
  234. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  235. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  236. package/dist/esm-es5/pds-switch.entry.js +1 -1
  237. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  238. package/dist/esm-es5/pds-tab.entry.js +1 -1
  239. package/dist/esm-es5/pds-tab.entry.js.map +1 -1
  240. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  241. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  242. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  243. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  244. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  245. package/dist/esm-es5/pds-table.entry.js +1 -1
  246. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  247. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  248. package/dist/esm-es5/pds-tabs.entry.js.map +1 -1
  249. package/dist/esm-es5/pds-text.entry.js +1 -1
  250. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  251. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  252. package/dist/esm-es5/pine-core.js +1 -1
  253. package/dist/esm-es5/pine-core.js.map +1 -1
  254. package/dist/pine-core/p-0399a821.entry.js +2 -0
  255. package/dist/pine-core/p-0399a821.entry.js.map +1 -0
  256. package/dist/pine-core/p-03e4027f.system.entry.js +2 -0
  257. package/dist/pine-core/p-03e4027f.system.entry.js.map +1 -0
  258. package/dist/pine-core/{p-8c07ed73.system.entry.js → p-04fb06cd.system.entry.js} +2 -2
  259. package/dist/pine-core/{p-c68362cc.entry.js → p-0ad21851.entry.js} +2 -2
  260. package/dist/pine-core/{p-8420594c.system.entry.js → p-0c68a8ea.system.entry.js} +2 -2
  261. package/dist/pine-core/{p-8b2db323.system.entry.js → p-10caa9e9.system.entry.js} +2 -2
  262. package/dist/pine-core/{p-f182a1f2.system.entry.js → p-137aebf6.system.entry.js} +2 -2
  263. package/dist/pine-core/{p-5e50a381.entry.js → p-138ef0d8.entry.js} +2 -2
  264. package/dist/pine-core/p-13bc1706.entry.js +2 -0
  265. package/dist/pine-core/{p-7257c948.entry.js.map → p-13bc1706.entry.js.map} +1 -1
  266. package/dist/pine-core/{p-d8260ebf.system.entry.js → p-21c441f2.system.entry.js} +2 -2
  267. package/dist/pine-core/p-21dc34b7.system.entry.js +2 -0
  268. package/dist/pine-core/p-21dc34b7.system.entry.js.map +1 -0
  269. package/dist/pine-core/p-2583c14d.entry.js +2 -0
  270. package/dist/pine-core/p-2583c14d.entry.js.map +1 -0
  271. package/dist/pine-core/{p-d561168e.js → p-2f60d558.js} +2 -2
  272. package/dist/pine-core/p-2f60d558.js.map +1 -0
  273. package/dist/pine-core/{p-e890c1bb.system.entry.js → p-2f80836e.system.entry.js} +2 -2
  274. package/dist/pine-core/p-3c6a0b2a.system.entry.js.map +1 -1
  275. package/dist/pine-core/{p-e39bd4b2.system.entry.js → p-3de0ec6c.system.entry.js} +2 -2
  276. package/dist/pine-core/{p-df73ebae.entry.js → p-3f256ba6.entry.js} +2 -2
  277. package/dist/pine-core/{p-d6a5ec65.system.entry.js → p-4158fa20.system.entry.js} +2 -2
  278. package/dist/pine-core/{p-92bcb091.entry.js → p-518f8204.entry.js} +2 -2
  279. package/dist/pine-core/p-546c2b18.entry.js +2 -0
  280. package/dist/pine-core/{p-1e9d6f92.system.entry.js → p-55cbb360.system.entry.js} +2 -2
  281. package/dist/pine-core/p-5ab15bbc.entry.js +2 -0
  282. package/dist/pine-core/p-5ab15bbc.entry.js.map +1 -0
  283. package/dist/pine-core/p-5c04aee0.system.js +1 -1
  284. package/dist/pine-core/p-5c04aee0.system.js.map +1 -1
  285. package/dist/pine-core/{p-b7e91522.entry.js → p-5d0c0241.entry.js} +2 -2
  286. package/dist/pine-core/p-5dd93828.system.entry.js +2 -0
  287. package/dist/pine-core/p-600b7640.system.entry.js +2 -0
  288. package/dist/pine-core/p-600b7640.system.entry.js.map +1 -0
  289. package/dist/pine-core/p-61666500.system.entry.js +2 -0
  290. package/dist/pine-core/p-61666500.system.entry.js.map +1 -0
  291. package/dist/pine-core/p-61cf32c6.entry.js +2 -0
  292. package/dist/pine-core/p-61cf32c6.entry.js.map +1 -0
  293. package/dist/pine-core/{p-80c582b7.system.entry.js → p-6bba1784.system.entry.js} +2 -2
  294. package/dist/pine-core/p-6e8f3bb4.entry.js.map +1 -1
  295. package/dist/pine-core/p-72218979.system.entry.js +2 -0
  296. package/dist/pine-core/p-72218979.system.entry.js.map +1 -0
  297. package/dist/pine-core/{p-1edca70e.entry.js → p-7369f396.entry.js} +2 -2
  298. package/dist/pine-core/p-77d8e9fc.entry.js +2 -0
  299. package/dist/pine-core/{p-e356293a.entry.js.map → p-77d8e9fc.entry.js.map} +1 -1
  300. package/dist/pine-core/p-7cdcf66c.entry.js +2 -0
  301. package/dist/pine-core/{p-5e1b7996.entry.js.map → p-7cdcf66c.entry.js.map} +1 -1
  302. package/dist/pine-core/p-89fd4ca2.entry.js +2 -0
  303. package/dist/pine-core/p-89fd4ca2.entry.js.map +1 -0
  304. package/dist/pine-core/{p-19be5a8e.system.entry.js → p-8afa0198.system.entry.js} +2 -2
  305. package/dist/pine-core/{p-a2465224.entry.js → p-8b3d405b.entry.js} +2 -2
  306. package/dist/pine-core/{p-954098a2.entry.js → p-8b9e5fe5.entry.js} +2 -2
  307. package/dist/pine-core/p-910c4422.entry.js +2 -0
  308. package/dist/pine-core/p-910c4422.entry.js.map +1 -0
  309. package/dist/pine-core/{p-da961d2b.entry.js → p-9b2cacf1.entry.js} +2 -2
  310. package/dist/pine-core/p-a020513a.system.entry.js +2 -0
  311. package/dist/pine-core/p-a020513a.system.entry.js.map +1 -0
  312. package/dist/pine-core/p-a924b8a6.system.entry.js +2 -0
  313. package/dist/pine-core/p-a924b8a6.system.entry.js.map +1 -0
  314. package/dist/pine-core/{p-d0b371ee.system.entry.js → p-acf6cf26.system.entry.js} +2 -2
  315. package/dist/pine-core/{p-07a7c5bb.entry.js → p-b20dd7d7.entry.js} +2 -2
  316. package/dist/pine-core/p-b2163263.entry.js +2 -0
  317. package/dist/pine-core/p-b2163263.entry.js.map +1 -0
  318. package/dist/pine-core/p-b245df0a.system.entry.js +2 -0
  319. package/dist/pine-core/p-b245df0a.system.entry.js.map +1 -0
  320. package/dist/pine-core/{p-ed990ad0.system.entry.js → p-b492ea28.system.entry.js} +2 -2
  321. package/dist/pine-core/{p-568ef920.entry.js → p-b566ad6b.entry.js} +2 -2
  322. package/dist/pine-core/p-b6dfd404.system.entry.js +2 -0
  323. package/dist/pine-core/p-b6dfd404.system.entry.js.map +1 -0
  324. package/dist/pine-core/p-b95c0169.system.entry.js +2 -0
  325. package/dist/pine-core/p-b95c0169.system.entry.js.map +1 -0
  326. package/dist/pine-core/p-bda9a6a0.entry.js +2 -0
  327. package/dist/pine-core/p-bda9a6a0.entry.js.map +1 -0
  328. package/dist/pine-core/p-bf55e42e.system.entry.js +2 -0
  329. package/dist/pine-core/{p-4c252abb.system.entry.js → p-c20bc538.system.entry.js} +2 -2
  330. package/dist/pine-core/p-c53f6513.entry.js +2 -0
  331. package/dist/pine-core/p-c53f6513.entry.js.map +1 -0
  332. package/dist/pine-core/p-c849426d.entry.js +2 -0
  333. package/dist/pine-core/p-c849426d.entry.js.map +1 -0
  334. package/dist/pine-core/{p-1da5aaf3.entry.js → p-ce0efc2d.entry.js} +2 -2
  335. package/dist/pine-core/{p-1fd67cb4.system.entry.js → p-d266843a.system.entry.js} +2 -2
  336. package/dist/pine-core/{p-f90088df.entry.js → p-d34b9adb.entry.js} +2 -2
  337. package/dist/pine-core/{p-74ad0244.entry.js → p-d8188c09.entry.js} +2 -2
  338. package/dist/pine-core/p-d92c8d63.system.entry.js +2 -0
  339. package/dist/pine-core/p-d92c8d63.system.entry.js.map +1 -0
  340. package/dist/pine-core/{p-5480346a.system.js → p-dba6ac9c.system.js} +2 -2
  341. package/dist/pine-core/p-dba6ac9c.system.js.map +1 -0
  342. package/dist/pine-core/{p-29bb6589.entry.js → p-e19d9edd.entry.js} +2 -2
  343. package/dist/pine-core/p-e45ee7bb.entry.js +2 -0
  344. package/dist/pine-core/p-e45ee7bb.entry.js.map +1 -0
  345. package/dist/pine-core/p-ee78b4c6.entry.js +2 -0
  346. package/dist/pine-core/p-ee78b4c6.entry.js.map +1 -0
  347. package/dist/pine-core/p-f099836d.entry.js +2 -0
  348. package/dist/pine-core/p-f099836d.entry.js.map +1 -0
  349. package/dist/pine-core/p-f70ebb08.system.entry.js +2 -0
  350. package/dist/pine-core/p-f70ebb08.system.entry.js.map +1 -0
  351. package/dist/pine-core/{p-397ce1a8.system.entry.js → p-fad3645f.system.entry.js} +2 -2
  352. package/dist/pine-core/{p-285cd9d1.system.entry.js → p-fd3e2c23.system.entry.js} +2 -2
  353. package/dist/pine-core/p-fe70473e.system.entry.js +2 -0
  354. package/dist/pine-core/p-fe70473e.system.entry.js.map +1 -0
  355. package/dist/pine-core/pine-core.css +1 -1
  356. package/dist/pine-core/pine-core.esm.js +1 -1
  357. package/dist/pine-core/pine-core.esm.js.map +1 -1
  358. package/dist/pine-core/svg/align-horizontal-bottom.svg +1 -0
  359. package/dist/pine-core/svg/align-horizontal-center.svg +1 -0
  360. package/dist/pine-core/svg/align-horizontal-top.svg +1 -0
  361. package/dist/pine-core/svg/align-vertical-center.svg +1 -0
  362. package/dist/pine-core/svg/align-vertical-left.svg +1 -0
  363. package/dist/pine-core/svg/align-vertical-right.svg +1 -0
  364. package/dist/pine-core/svg/copy-07.svg +1 -0
  365. package/dist/pine-core/svg/feedback.svg +1 -1
  366. package/dist/pine-core/svg/form.svg +1 -1
  367. package/dist/pine-core/svg/grant-offer.svg +1 -1
  368. package/dist/pine-core/svg/headphones.svg +1 -0
  369. package/dist/pine-core/svg/kajabi-filled.svg +1 -1
  370. package/dist/pine-core/svg/kajabi.svg +1 -1
  371. package/dist/pine-core/svg/keyboard-01.svg +1 -0
  372. package/dist/pine-core/svg/layout-bottom.svg +1 -0
  373. package/dist/pine-core/svg/layout-top.svg +1 -0
  374. package/dist/pine-core/svg/list-numbers.svg +1 -1
  375. package/dist/pine-core/svg/mail-open.svg +1 -1
  376. package/dist/pine-core/svg/mail.svg +1 -1
  377. package/dist/pine-core/svg/merge.svg +1 -1
  378. package/dist/pine-core/svg/message-text-square-02.svg +1 -0
  379. package/dist/pine-core/svg/music-note-01.svg +1 -0
  380. package/dist/pine-core/svg/newsletter-2.svg +1 -1
  381. package/dist/pine-core/svg/pie-chart-filled.svg +1 -0
  382. package/dist/pine-core/svg/plus-square.svg +1 -0
  383. package/dist/pine-core/svg/present.svg +1 -1
  384. package/dist/pine-core/svg/quote.svg +1 -1
  385. package/dist/pine-core/svg/restore.svg +1 -1
  386. package/dist/pine-core/svg/square-dollar.svg +1 -0
  387. package/dist/pine-core/svg/star-03.svg +1 -0
  388. package/dist/pine-core/svg/star-filled.svg +1 -0
  389. package/dist/pine-core/svg/star.svg +1 -1
  390. package/dist/pine-core/svg/subscript.svg +1 -1
  391. package/dist/pine-core/svg/sync.svg +1 -1
  392. package/dist/pine-core/svg/type.svg +1 -0
  393. package/dist/pine-core/svg/user-filled.svg +1 -1
  394. package/dist/types/components/pds-button/pds-button.d.ts +11 -0
  395. package/dist/types/components/pds-input/pds-input.d.ts +2 -1
  396. package/dist/types/components/pds-select/pds-select.d.ts +1 -1
  397. package/dist/types/components.d.ts +23 -3
  398. package/hydrate/index.js +94 -71
  399. package/hydrate/index.mjs +94 -71
  400. package/package.json +2 -2
  401. package/components/pds-label.js +0 -11
  402. package/components/pds-label.js.map +0 -1
  403. package/dist/cjs/index-034a8bb0.js.map +0 -1
  404. package/dist/cjs/pds-label-e0d9a97d.js +0 -13
  405. package/dist/cjs/pds-label-e0d9a97d.js.map +0 -1
  406. package/dist/esm/index-d320cfa9.js.map +0 -1
  407. package/dist/esm/pds-label-949a17b6.js +0 -11
  408. package/dist/esm/pds-label-949a17b6.js.map +0 -1
  409. package/dist/esm-es5/index-d320cfa9.js.map +0 -1
  410. package/dist/esm-es5/pds-label-949a17b6.js +0 -2
  411. package/dist/esm-es5/pds-label-949a17b6.js.map +0 -1
  412. package/dist/pine-core/p-03440844.entry.js +0 -2
  413. package/dist/pine-core/p-03440844.entry.js.map +0 -1
  414. package/dist/pine-core/p-0c09ce7a.js +0 -2
  415. package/dist/pine-core/p-0c09ce7a.js.map +0 -1
  416. package/dist/pine-core/p-27e12bd2.system.entry.js +0 -2
  417. package/dist/pine-core/p-27e12bd2.system.entry.js.map +0 -1
  418. package/dist/pine-core/p-2d52d5f7.entry.js +0 -2
  419. package/dist/pine-core/p-2d52d5f7.entry.js.map +0 -1
  420. package/dist/pine-core/p-30cd9f18.entry.js +0 -2
  421. package/dist/pine-core/p-372a04fa.system.entry.js +0 -2
  422. package/dist/pine-core/p-372a04fa.system.entry.js.map +0 -1
  423. package/dist/pine-core/p-3fbb568f.entry.js +0 -2
  424. package/dist/pine-core/p-3fbb568f.entry.js.map +0 -1
  425. package/dist/pine-core/p-4d1fbb88.system.entry.js +0 -2
  426. package/dist/pine-core/p-4f2e4e6f.system.entry.js +0 -2
  427. package/dist/pine-core/p-4f2e4e6f.system.entry.js.map +0 -1
  428. package/dist/pine-core/p-5480346a.system.js.map +0 -1
  429. package/dist/pine-core/p-5e1b7996.entry.js +0 -2
  430. package/dist/pine-core/p-60c2039e.system.entry.js +0 -2
  431. package/dist/pine-core/p-71dc77f3.entry.js +0 -2
  432. package/dist/pine-core/p-71dc77f3.entry.js.map +0 -1
  433. package/dist/pine-core/p-7257c948.entry.js +0 -2
  434. package/dist/pine-core/p-798cde42.system.entry.js +0 -2
  435. package/dist/pine-core/p-798cde42.system.entry.js.map +0 -1
  436. package/dist/pine-core/p-7baec1ed.entry.js +0 -2
  437. package/dist/pine-core/p-7baec1ed.entry.js.map +0 -1
  438. package/dist/pine-core/p-853af623.system.entry.js +0 -2
  439. package/dist/pine-core/p-853af623.system.entry.js.map +0 -1
  440. package/dist/pine-core/p-8c0a648d.system.entry.js +0 -2
  441. package/dist/pine-core/p-8c0a648d.system.entry.js.map +0 -1
  442. package/dist/pine-core/p-8d1efd85.system.js +0 -2
  443. package/dist/pine-core/p-8d1efd85.system.js.map +0 -1
  444. package/dist/pine-core/p-95e4a6ff.system.entry.js +0 -2
  445. package/dist/pine-core/p-95e4a6ff.system.entry.js.map +0 -1
  446. package/dist/pine-core/p-987a101b.system.entry.js +0 -2
  447. package/dist/pine-core/p-987a101b.system.entry.js.map +0 -1
  448. package/dist/pine-core/p-a22fd94e.entry.js +0 -2
  449. package/dist/pine-core/p-a22fd94e.entry.js.map +0 -1
  450. package/dist/pine-core/p-aa134d2a.system.entry.js +0 -2
  451. package/dist/pine-core/p-aa134d2a.system.entry.js.map +0 -1
  452. package/dist/pine-core/p-ade60629.system.entry.js +0 -2
  453. package/dist/pine-core/p-ade60629.system.entry.js.map +0 -1
  454. package/dist/pine-core/p-adf21b0c.entry.js +0 -2
  455. package/dist/pine-core/p-adf21b0c.entry.js.map +0 -1
  456. package/dist/pine-core/p-cae3e411.entry.js +0 -2
  457. package/dist/pine-core/p-cae3e411.entry.js.map +0 -1
  458. package/dist/pine-core/p-d561168e.js.map +0 -1
  459. package/dist/pine-core/p-d9390457.entry.js +0 -2
  460. package/dist/pine-core/p-d9390457.entry.js.map +0 -1
  461. package/dist/pine-core/p-e356293a.entry.js +0 -2
  462. package/dist/pine-core/p-e60348bc.system.entry.js +0 -2
  463. package/dist/pine-core/p-e60348bc.system.entry.js.map +0 -1
  464. package/dist/pine-core/p-f085efeb.entry.js +0 -2
  465. package/dist/pine-core/p-f085efeb.entry.js.map +0 -1
  466. package/dist/pine-core/p-f0c28381.entry.js +0 -2
  467. package/dist/pine-core/p-f0c28381.entry.js.map +0 -1
  468. package/dist/pine-core/p-f19e5736.system.entry.js +0 -2
  469. package/dist/pine-core/p-f19e5736.system.entry.js.map +0 -1
  470. package/dist/pine-core/p-f34096db.system.entry.js +0 -2
  471. package/dist/pine-core/p-f34096db.system.entry.js.map +0 -1
  472. package/dist/pine-core/p-f81066da.entry.js +0 -2
  473. package/dist/pine-core/p-f81066da.entry.js.map +0 -1
  474. package/dist/pine-core/p-f900a8ee.entry.js +0 -2
  475. package/dist/pine-core/p-f900a8ee.entry.js.map +0 -1
  476. /package/dist/pine-core/{p-8c07ed73.system.entry.js.map → p-04fb06cd.system.entry.js.map} +0 -0
  477. /package/dist/pine-core/{p-c68362cc.entry.js.map → p-0ad21851.entry.js.map} +0 -0
  478. /package/dist/pine-core/{p-8420594c.system.entry.js.map → p-0c68a8ea.system.entry.js.map} +0 -0
  479. /package/dist/pine-core/{p-8b2db323.system.entry.js.map → p-10caa9e9.system.entry.js.map} +0 -0
  480. /package/dist/pine-core/{p-f182a1f2.system.entry.js.map → p-137aebf6.system.entry.js.map} +0 -0
  481. /package/dist/pine-core/{p-5e50a381.entry.js.map → p-138ef0d8.entry.js.map} +0 -0
  482. /package/dist/pine-core/{p-d8260ebf.system.entry.js.map → p-21c441f2.system.entry.js.map} +0 -0
  483. /package/dist/pine-core/{p-e890c1bb.system.entry.js.map → p-2f80836e.system.entry.js.map} +0 -0
  484. /package/dist/pine-core/{p-e39bd4b2.system.entry.js.map → p-3de0ec6c.system.entry.js.map} +0 -0
  485. /package/dist/pine-core/{p-df73ebae.entry.js.map → p-3f256ba6.entry.js.map} +0 -0
  486. /package/dist/pine-core/{p-d6a5ec65.system.entry.js.map → p-4158fa20.system.entry.js.map} +0 -0
  487. /package/dist/pine-core/{p-92bcb091.entry.js.map → p-518f8204.entry.js.map} +0 -0
  488. /package/dist/pine-core/{p-30cd9f18.entry.js.map → p-546c2b18.entry.js.map} +0 -0
  489. /package/dist/pine-core/{p-1e9d6f92.system.entry.js.map → p-55cbb360.system.entry.js.map} +0 -0
  490. /package/dist/pine-core/{p-b7e91522.entry.js.map → p-5d0c0241.entry.js.map} +0 -0
  491. /package/dist/pine-core/{p-4d1fbb88.system.entry.js.map → p-5dd93828.system.entry.js.map} +0 -0
  492. /package/dist/pine-core/{p-80c582b7.system.entry.js.map → p-6bba1784.system.entry.js.map} +0 -0
  493. /package/dist/pine-core/{p-1edca70e.entry.js.map → p-7369f396.entry.js.map} +0 -0
  494. /package/dist/pine-core/{p-19be5a8e.system.entry.js.map → p-8afa0198.system.entry.js.map} +0 -0
  495. /package/dist/pine-core/{p-a2465224.entry.js.map → p-8b3d405b.entry.js.map} +0 -0
  496. /package/dist/pine-core/{p-954098a2.entry.js.map → p-8b9e5fe5.entry.js.map} +0 -0
  497. /package/dist/pine-core/{p-da961d2b.entry.js.map → p-9b2cacf1.entry.js.map} +0 -0
  498. /package/dist/pine-core/{p-d0b371ee.system.entry.js.map → p-acf6cf26.system.entry.js.map} +0 -0
  499. /package/dist/pine-core/{p-07a7c5bb.entry.js.map → p-b20dd7d7.entry.js.map} +0 -0
  500. /package/dist/pine-core/{p-ed990ad0.system.entry.js.map → p-b492ea28.system.entry.js.map} +0 -0
  501. /package/dist/pine-core/{p-568ef920.entry.js.map → p-b566ad6b.entry.js.map} +0 -0
  502. /package/dist/pine-core/{p-60c2039e.system.entry.js.map → p-bf55e42e.system.entry.js.map} +0 -0
  503. /package/dist/pine-core/{p-4c252abb.system.entry.js.map → p-c20bc538.system.entry.js.map} +0 -0
  504. /package/dist/pine-core/{p-1da5aaf3.entry.js.map → p-ce0efc2d.entry.js.map} +0 -0
  505. /package/dist/pine-core/{p-1fd67cb4.system.entry.js.map → p-d266843a.system.entry.js.map} +0 -0
  506. /package/dist/pine-core/{p-f90088df.entry.js.map → p-d34b9adb.entry.js.map} +0 -0
  507. /package/dist/pine-core/{p-74ad0244.entry.js.map → p-d8188c09.entry.js.map} +0 -0
  508. /package/dist/pine-core/{p-29bb6589.entry.js.map → p-e19d9edd.entry.js.map} +0 -0
  509. /package/dist/pine-core/{p-397ce1a8.system.entry.js.map → p-fad3645f.system.entry.js.map} +0 -0
  510. /package/dist/pine-core/{p-285cd9d1.system.entry.js.map → p-fd3e2c23.system.entry.js.map} +0 -0
@@ -1,6 +1,5 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { assignDescription, messageId } from "../../utils/form";
3
- import { PdsLabel } from "../_internal/pds-label/pds-label";
4
3
  import { danger } from "@pine-ds/icons/icons";
5
4
  export class PdsCheckbox {
6
5
  constructor() {
@@ -51,9 +50,9 @@ export class PdsCheckbox {
51
50
  return classNames.join(' ');
52
51
  }
53
52
  render() {
54
- return (h(Host, { key: '2e6627298218058dbd148b667664fa9c5732dfd2', class: this.classNames() }, h("input", { key: '09f2cffa460c9a0f96ae2fd21c8dd02312d50a6a', type: "checkbox", "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, id: this.componentId, indeterminate: this.indeterminate, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange, onInput: this.handleInput }), h(PdsLabel, { key: '8a20482c4c25714f16bd6aa07b7c2a044223476c', htmlFor: this.componentId, text: this.label, classNames: this.labelHidden ? 'visually-hidden' : '' }), this.helperMessage &&
55
- h("div", { key: 'ef4b8f6b774b4679553a0374f129eef81783de6c', class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
56
- h("div", { key: '0c94e228cb82672d3e9a91722916fa20c53f5ff5', class: `pds-checkbox__message pds-checkbox__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '545f0bc41110e89828ace83d2b34ab3bc83a8a3d', icon: danger, size: "small" }), this.errorMessage)));
53
+ return (h(Host, { key: 'd552ef5967613280f3399015c17d90d2264bee26', class: this.classNames() }, h("label", { key: '7ed49fd6c942d3765ce5c70048fe53252b532f75', htmlFor: this.componentId }, h("input", { key: 'b1d59fc429e9bd92bd7ff0e4edb79b326416d9fb', type: "checkbox", "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, id: this.componentId, indeterminate: this.indeterminate, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleCheckboxChange, onInput: this.handleInput }), this.label), this.helperMessage &&
54
+ h("div", { key: '2bf16b8f87910f727e19b2b3a0df5190f80b9c9b', class: 'pds-checkbox__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
55
+ h("div", { key: 'dde8ede862aaaf585fe6d1e907b0a78309a59e58', class: `pds-checkbox__message pds-checkbox__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'b666e9ccbeb8653271da75cdf81419fbad6028e2', icon: danger, size: "small" }), this.errorMessage)));
57
56
  }
58
57
  static get is() { return "pds-checkbox"; }
59
58
  static get encapsulation() { return "shadow"; }
@@ -1 +1 @@
1
- {"version":3,"file":"pds-checkbox.js","sourceRoot":"","sources":["../../../src/components/pds-checkbox/pds-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAE5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,MAAM,OAAO,WAAW;;QA0Ed,yBAAoB,GAAG,CAAC,CAAQ,EAAE,EAAE;YAC1C,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,OAAO;YACT,CAAC;YAED,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC5C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;YAE9B,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;gBAC1B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CAAC;QACL,CAAC,CAAA;QAEO,gBAAW,GAAG,GAAG,EAAE;YACzB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CAAC;QACL,CAAC,CAAA;uBAzF4C,KAAK;;;;;;;;;;;;;IAkElD,mBAAmB;QACjB,IAAI,CAAC,aAAa,GAAG,SAAS,CAAA;IAChC,CAAC;IAuBO,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAAC,UAAU,CAAC,IA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E,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf;YAEP,IAAI,CAAC,YAAY;gBAChB,4DACE,KAAK,EAAE,oDAAoD,EAC3D,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, h, Prop, Host, Event, EventEmitter, Watch } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { CheckboxChangeEventDetail } from './checkbox-interface';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-checkbox',\n styleUrls: ['../../global/styles/utils/label.scss', 'pds-checkbox.scss'],\n shadow: true,\n})\nexport class PdsCheckbox {\n /**\n * It determines whether or not the checkbox is checked.\n */\n @Prop({ mutable: true }) checked?: boolean = 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 * It determines whether or not the checkbox is disabled.\n */\n @Prop() disabled: boolean;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * String used for helper message below checkbox.\n */\n @Prop() helperMessage: string;\n\n /**\n * If `true`, the checkbox will visually appear as indeterminate.\n * Only JavaScript can set the objects `indeterminate` property. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes).\n */\n @Prop({ mutable: true }) indeterminate: boolean;\n\n /**\n * It determines whether or not the checkbox is invalid.\n */\n @Prop() invalid: boolean;\n\n /**\n * String used for label text next to checkbox.\n */\n @Prop() label: string;\n\n /**\n * Visually hides the label text for instances where only the checkbox should be displayed. Label remains accessible to assistive technology such as screen readers.\n */\n @Prop() labelHidden: boolean;\n\n /**\n * String used for checkbox `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * It determines whether or not the checkbox is required.\n */\n @Prop() required: boolean;\n\n /**\n * The value of the checkbox that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Event emitted that contains the `value` and `checked`.\n */\n @Event() pdsCheckboxChange: EventEmitter<CheckboxChangeEventDetail>;\n\n @Event() pdsCheckboxInput: EventEmitter<CheckboxChangeEventDetail>;\n\n @Watch('checked')\n updateIndeterminate() {\n this.indeterminate = undefined\n }\n\n private handleCheckboxChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n this.checked = target.checked;\n\n this.pdsCheckboxChange.emit({\n checked: target.checked,\n value: this.value\n });\n }\n\n private handleInput = () => {\n this.pdsCheckboxInput.emit({\n checked: this.checked,\n value: this.value\n });\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.indeterminate) { classNames.push('is-indeterminate'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n type=\"checkbox\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n id={this.componentId}\n indeterminate={this.indeterminate}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleCheckboxChange}\n onInput={this.handleInput}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} classNames={this.labelHidden ? 'visually-hidden' : ''} />\n {this.helperMessage &&\n <div\n class={'pds-checkbox__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-checkbox__message pds-checkbox__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"]}
1
+ {"version":3,"file":"pds-checkbox.js","sourceRoot":"","sources":["../../../src/components/pds-checkbox/pds-checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,KAAK,EAAgB,KAAK,EAAE,MAAM,eAAe,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAEhE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,MAAM,OAAO,WAAW;;QA0Ed,yBAAoB,GAAG,CAAC,CAAQ,EAAE,EAAE;YAC1C,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;gBAClB,OAAO;YACT,CAAC;YAED,MAAM,MAAM,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC5C,IAAI,CAAC,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC;YAE9B,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC;gBAC1B,OAAO,EAAE,MAAM,CAAC,OAAO;gBACvB,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CAAC;QACL,CAAC,CAAA;QAEO,gBAAW,GAAG,GAAG,EAAE;YACzB,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC;gBACzB,OAAO,EAAE,IAAI,CAAC,OAAO;gBACrB,KAAK,EAAE,IAAI,CAAC,KAAK;aAClB,CAAC,CAAC;QACL,CAAC,CAAA;uBAzF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C,aAAa;gBACjB,4DACE,KAAK,EAAE,uBAAuB,EAC9B,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf;YAEP,IAAI,CAAC,YAAY;gBAChB,4DACE,KAAK,EAAE,oDAAoD,EAC3D,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, h, Prop, Host, Event, EventEmitter, Watch } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { CheckboxChangeEventDetail } from './checkbox-interface';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-checkbox',\n styleUrls: ['../../global/styles/utils/label.scss', 'pds-checkbox.scss'],\n shadow: true,\n})\nexport class PdsCheckbox {\n /**\n * It determines whether or not the checkbox is checked.\n */\n @Prop({ mutable: true }) checked?: boolean = 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 * It determines whether or not the checkbox is disabled.\n */\n @Prop() disabled: boolean;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * String used for helper message below checkbox.\n */\n @Prop() helperMessage: string;\n\n /**\n * If `true`, the checkbox will visually appear as indeterminate.\n * Only JavaScript can set the objects `indeterminate` property. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes).\n */\n @Prop({ mutable: true }) indeterminate: boolean;\n\n /**\n * It determines whether or not the checkbox is invalid.\n */\n @Prop() invalid: boolean;\n\n /**\n * String used for label text next to checkbox.\n */\n @Prop() label: string;\n\n /**\n * Visually hides the label text for instances where only the checkbox should be displayed. Label remains accessible to assistive technology such as screen readers.\n */\n @Prop() labelHidden: boolean;\n\n /**\n * String used for checkbox `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * It determines whether or not the checkbox is required.\n */\n @Prop() required: boolean;\n\n /**\n * The value of the checkbox that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Event emitted that contains the `value` and `checked`.\n */\n @Event() pdsCheckboxChange: EventEmitter<CheckboxChangeEventDetail>;\n\n @Event() pdsCheckboxInput: EventEmitter<CheckboxChangeEventDetail>;\n\n @Watch('checked')\n updateIndeterminate() {\n this.indeterminate = undefined\n }\n\n private handleCheckboxChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n this.checked = target.checked;\n\n this.pdsCheckboxChange.emit({\n checked: target.checked,\n value: this.value\n });\n }\n\n private handleInput = () => {\n this.pdsCheckboxInput.emit({\n checked: this.checked,\n value: this.value\n });\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.indeterminate) { classNames.push('is-indeterminate'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <label htmlFor={this.componentId}>\n <input\n type=\"checkbox\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n id={this.componentId}\n indeterminate={this.indeterminate}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleCheckboxChange}\n onInput={this.handleInput}\n />\n {this.label}\n </label>\n {this.helperMessage &&\n <div\n class={'pds-checkbox__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-checkbox__message pds-checkbox__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"]}
@@ -1,6 +1,6 @@
1
1
  :host {
2
2
  --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);
3
- --sizing-close: 10px;
3
+ --sizing-close: var(--pine-dimension-125);
4
4
  align-items: center;
5
5
  border-radius: var(--pine-dimension-sm);
6
6
  display: inline-flex;
@@ -31,7 +31,7 @@ export class PdsChip {
31
31
  return chipContent;
32
32
  }
33
33
  render() {
34
- return (h(Host, { key: '256ee05959d6561b0a2f208bad11ccc6b3b7b8ef', class: this.classNames(), id: this.componentId }, this.setChipContent(), this.variant === 'tag' && (h("button", { key: 'eb0593d00e34e0530af49bef45b211658c3d1842', class: "pds-chip__close", type: "button", onClick: this.handleCloseClick, "aria-label": "Remove" }, h("pds-icon", { key: 'ace8b0a28a1b2f731051fb645cb99f7f468ce9b8', icon: remove, size: "12px" })))));
34
+ return (h(Host, { key: '91f7d9a87538c4b30b16462061a61fb92812732f', class: this.classNames(), id: this.componentId }, this.setChipContent(), this.variant === 'tag' && (h("button", { key: 'bee8696d3644f33d8630a4ab93ff83c8b1d7ee78', class: "pds-chip__close", type: "button", onClick: this.handleCloseClick, "aria-label": "Remove" }, h("pds-icon", { key: '5a375bf7507f7ac674a6f3c27048e2c218064bb4', icon: remove, size: "12px" })))));
35
35
  }
36
36
  static get is() { return "pds-chip"; }
37
37
  static get encapsulation() { return "shadow"; }
@@ -2,22 +2,22 @@
2
2
  * Do not edit directly, this file was auto-generated.
3
3
  */
4
4
  :host {
5
- --pine-chip-color-warning-dot: var(--pine-color-yellow-600);
6
- --pine-chip-color-warning-hover: var(--pine-color-yellow-300);
7
- --pine-chip-color-warning: var(--pine-color-yellow-100);
8
- --pine-chip-color-success-dot: var(--pine-color-green-600);
9
- --pine-chip-color-success-hover: var(--pine-color-green-300);
10
- --pine-chip-color-success: var(--pine-color-green-100);
11
- --pine-chip-color-neutral-dot: var(--pine-color-grey-600);
12
- --pine-chip-color-neutral-hover: var(--pine-color-grey-300);
13
- --pine-chip-color-neutral: var(--pine-color-grey-100);
14
- --pine-chip-color-info-dot: var(--pine-color-blue-600);
15
- --pine-chip-color-info-hover: var(--pine-color-blue-300);
16
- --pine-chip-color-info: var(--pine-color-blue-100);
17
- --pine-chip-color-danger-dot: var(--pine-color-red-600);
18
- --pine-chip-color-danger-hover: var(--pine-color-red-300);
19
- --pine-chip-color-danger: var(--pine-color-red-100);
20
- --pine-chip-color-accent-dot: var(--pine-color-purple-600);
21
- --pine-chip-color-accent-hover: var(--pine-color-purple-300);
22
5
  --pine-chip-color-accent: var(--pine-color-purple-100);
6
+ --pine-chip-color-accent-hover: var(--pine-color-purple-300);
7
+ --pine-chip-color-accent-dot: var(--pine-color-purple-600);
8
+ --pine-chip-color-danger: var(--pine-color-red-100);
9
+ --pine-chip-color-danger-hover: var(--pine-color-red-300);
10
+ --pine-chip-color-danger-dot: var(--pine-color-red-600);
11
+ --pine-chip-color-info: var(--pine-color-blue-100);
12
+ --pine-chip-color-info-hover: var(--pine-color-blue-300);
13
+ --pine-chip-color-info-dot: var(--pine-color-blue-600);
14
+ --pine-chip-color-neutral: var(--pine-color-grey-100);
15
+ --pine-chip-color-neutral-hover: var(--pine-color-grey-300);
16
+ --pine-chip-color-neutral-dot: var(--pine-color-grey-600);
17
+ --pine-chip-color-success: var(--pine-color-green-100);
18
+ --pine-chip-color-success-hover: var(--pine-color-green-300);
19
+ --pine-chip-color-success-dot: var(--pine-color-green-600);
20
+ --pine-chip-color-warning: var(--pine-color-yellow-100);
21
+ --pine-chip-color-warning-hover: var(--pine-color-yellow-300);
22
+ --pine-chip-color-warning-dot: var(--pine-color-yellow-600);
23
23
  }
@@ -36,7 +36,7 @@ export class PdsCopytext {
36
36
  return classNames.join(' ');
37
37
  }
38
38
  render() {
39
- return (h(Host, { key: '5efcd7642021a5049762c865be34bc1b649a40f9', class: this.classNames(), id: this.componentId }, h("pds-button", { key: '27b193cc3d52a599d33cba7b6cdb5b4c9d9fb234', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: '0dbefb874870ebe4f9b2d261855d5f60fd155df8' }, this.value), h("pds-icon", { key: 'f5ad27e0bc677ba2a7f62c971ee9402bb268b3f4', icon: copyIcon, size: "16px" }))));
39
+ return (h(Host, { key: '46c38faeba9b70d2e510a4b6af08866577936478', class: this.classNames(), id: this.componentId }, h("pds-button", { key: '6e28c11a9a7a57f4c256b0283b64ec655a897f65', type: "button", variant: "unstyled", onClick: this.handleClick }, h("span", { key: '6818451171f85fd6ad63f07c69871082d3fcba4e' }, this.value), h("pds-icon", { key: '05e683d7b28575d924d6af482e6ce4c3cfee3f05', icon: copyIcon, size: "16px" }))));
40
40
  }
41
41
  static get is() { return "pds-copytext"; }
42
42
  static get encapsulation() { return "shadow"; }
@@ -17,7 +17,7 @@ export class PdsDivider {
17
17
  return classNames.join(' ');
18
18
  }
19
19
  render() {
20
- return (h(Host, { key: '655b579ae9137c8a6c663bc57928a0825d054d2d', id: this.componentId }, h("hr", { key: 'dcbc46f0b0bfa8553b577684775ab631022f73a0', class: this.classNames() })));
20
+ return (h(Host, { key: 'ee48ee45e0463abbd3cb7aa686f8d86928830ccb', id: this.componentId }, h("hr", { key: '4af739f85e502a7d9bff1b3581c283cb6ee53a0e', class: this.classNames() })));
21
21
  }
22
22
  static get is() { return "pds-divider"; }
23
23
  static get encapsulation() { return "shadow"; }
@@ -11,9 +11,9 @@ export class PdsImage {
11
11
  this.width = undefined;
12
12
  }
13
13
  render() {
14
- return (h(Host, { key: '784f2478acc28f043613c4c8fa67b5bef85820b1', class: {
14
+ return (h(Host, { key: '2b5893c36517ee6e30c12a141f19b3f13845db97', class: {
15
15
  'pds-image': true,
16
- }, id: this.componentId }, h("img", { key: '766a8230a6ea0ae45746fae832206785f963d215', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
16
+ }, id: this.componentId }, h("img", { key: '965043cab5ea5c62c52951ec90018bced5bb46e8', alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
17
17
  }
18
18
  static get is() { return "pds-image"; }
19
19
  static get encapsulation() { return "shadow"; }
@@ -14,13 +14,14 @@
14
14
  flex-direction: column;
15
15
  }
16
16
 
17
- label {
18
- margin-block-end: var(--pine-dimension-xs);
17
+ .pds-input__label {
18
+ margin-block-end: var(--pine-dimension-2xs);
19
19
  }
20
20
 
21
- input {
21
+ .pds-input__field {
22
+ background: var(--pine-color-background-container);
22
23
  border: 1px solid var(--pine-color-border);
23
- border-radius: 10px;
24
+ border-radius: var(--pine-dimension-125);
24
25
  color: var(--pine-color-text-active);
25
26
  font: var(--pine-typography-body);
26
27
  letter-spacing: var(--pine-letter-spacing);
@@ -28,7 +29,10 @@ input {
28
29
  /* stylelint-disable */
29
30
  /* stylelint-enable */
30
31
  }
31
- input:disabled {
32
+ .pds-input__field:hover:not(:disabled, .is-invalid) {
33
+ border: var(--pine-border-hover);
34
+ }
35
+ .pds-input__field:disabled {
32
36
  background-color: var(--pine-color-background-container-disabled);
33
37
  border-color: var(--pine-color-border-disabled);
34
38
  color: var(--pine-color-text-disabled);
@@ -36,52 +40,51 @@ input:disabled {
36
40
  /* stylelint-disable */
37
41
  /* stylelint-enable */
38
42
  }
39
- input:disabled::-webkit-input-placeholder {
43
+ .pds-input__field:disabled::-webkit-input-placeholder {
40
44
  color: var(--pine-color-text-placeholder-disabled);
41
45
  }
42
- input:disabled::-moz-placeholder {
46
+ .pds-input__field:disabled::-moz-placeholder {
43
47
  color: var(--pine-color-text-placeholder-disabled);
44
48
  }
45
- input:disabled::-moz-placeholder {
49
+ .pds-input__field:disabled::-moz-placeholder {
46
50
  color: var(--pine-color-text-placeholder-disabled);
47
51
  }
48
- input:disabled:-ms-input-placeholder {
52
+ .pds-input__field:disabled:-ms-input-placeholder {
49
53
  color: var(--pine-color-text-placeholder-disabled);
50
54
  }
51
- input:hover {
55
+ .pds-input__field:hover {
52
56
  border-color: var(--pine-color-border-hover);
53
57
  }
54
- input:focus-visible {
58
+ .pds-input__field:focus-visible {
55
59
  border-color: var(--pine-color-border-active);
56
60
  box-shadow: var(--box-shadow-focus);
57
61
  outline: none;
58
62
  }
59
- input::-webkit-input-placeholder {
63
+ .pds-input__field::-webkit-input-placeholder {
60
64
  color: var(--pine-color-text-placeholder);
61
65
  }
62
- input::-moz-placeholder {
66
+ .pds-input__field::-moz-placeholder {
63
67
  color: var(--pine-color-text-placeholder);
64
68
  }
65
- input::-moz-placeholder {
69
+ .pds-input__field::-moz-placeholder {
66
70
  color: var(--pine-color-text-placeholder);
67
71
  }
68
- input:-ms-input-placeholder {
72
+ .pds-input__field:-ms-input-placeholder {
69
73
  color: var(--pine-color-text-placeholder);
70
74
  }
71
- input:has(~ .pds-input__error-message) {
75
+ .pds-input__field.is-invalid {
72
76
  background-color: var(--pine-input-color-background-danger);
73
77
  border-color: var(--pine-color-border-danger);
74
78
  }
75
- input:has(~ .pds-input__error-message):focus-visible {
79
+ .pds-input__field.is-invalid:focus-visible {
76
80
  box-shadow: var(--box-shadow-focus-error);
77
- outline: none;
78
81
  }
79
82
 
80
83
  .pds-input__error-message,
81
84
  .pds-input__helper-message {
82
85
  font: var(--pine-typography-body-sm-medium);
83
86
  margin-block-end: 0;
84
- margin-block-start: var(--pine-dimension-xs);
87
+ margin-block-start: var(--pine-dimension-2xs);
85
88
  }
86
89
 
87
90
  .pds-input__error-message {
@@ -107,10 +107,18 @@ export class PdsInput {
107
107
  componentDidLoad() {
108
108
  this.debounceChanged();
109
109
  }
110
+ inputClassNames() {
111
+ const classNames = ['pds-input__field'];
112
+ if (this.invalid && this.invalid === true) {
113
+ classNames.push('is-invalid');
114
+ }
115
+ return classNames.join(' ');
116
+ }
110
117
  render() {
111
- return (h(Host, { key: '4247c9ed871a2f5e39fea4c222367341eda18e32', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null }, h("div", { key: 'b49fb30682b34b2c20ed6b0959d66e18050088d0', class: "pds-input" }, h("label", { key: 'ac028db52deca16edd0663ccccdc01d3651a299a', htmlFor: this.componentId }, this.label), h("input", Object.assign({ key: 'cf478f28743397013c0964aa3f6232de2a319f7a', class: "pds-input__field", ref: (input) => this.nativeInput = input, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, type: this.type, value: this.value, onInput: this.onInputEvent, onChange: this.onChangeEvent, onBlur: this.onBlurEvent, onFocus: this.onFocusEvent, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.helperMessage &&
112
- h("p", { key: '78180c0527fc6ef81d9e915898333a9e09e892e4', class: "pds-input__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
113
- h("p", { key: '9512deaecd57644da843557cd07ac8880cde424f', class: "pds-input__error-message", id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '38c36403181b41c06f16e737f088e58199f07618', icon: danger, size: "small" }), this.errorMessage))));
118
+ return (h(Host, { key: 'a823b0086b4c4accc0788813a41b19f8b6ff32e1', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null }, h("div", { key: 'e9b04aaa8e50c987e6010017fbb82bc7b6774d34', class: "pds-input" }, this.label &&
119
+ h("label", { key: '5c6ddd8b32997344399915929d1ebd9b53c01ec2', class: "pds-input__label", htmlFor: this.componentId }, this.label), h("input", Object.assign({ key: '4bbc00b3ad007fa357ebddccaed0ee5912c464ea', class: this.inputClassNames(), ref: (input) => this.nativeInput = input, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, type: this.type, value: this.value, onInput: this.onInputEvent, onChange: this.onChangeEvent, onBlur: this.onBlurEvent, onFocus: this.onFocusEvent, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.helperMessage &&
120
+ h("p", { key: 'df6340f0d4ac1271e6a304a2accb312b45c87081', class: "pds-input__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
121
+ h("p", { key: '50ecf4b62a9a7215a9b7043031a82b5f3b4f0291', class: "pds-input__error-message", id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '87cfdda13d2756c221e0fc3e448c94fb46bc2eb8', icon: danger, size: "small" }), this.errorMessage))));
114
122
  }
115
123
  static get is() { return "pds-input"; }
116
124
  static get encapsulation() { return "shadow"; }
@@ -345,7 +353,7 @@ export class PdsInput {
345
353
  "name": "defaultValue",
346
354
  "text": "\"text\""
347
355
  }],
348
- "text": "Determines the type of control that will be displayed\n`'email'`, `'number'`, `'password'`, `'tel'`, `'text'`"
356
+ "text": "Determines the type of control that will be displayed\n`'email'`, `'number'`, `'password'`, `'tel'`, `'text'`, `'url'`"
349
357
  },
350
358
  "attribute": "type",
351
359
  "reflect": false,
@@ -1 +1 @@
1
- {"version":3,"file":"pds-input.js","sourceRoot":"","sources":["../../../src/components/pds-input/pds-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EA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CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { danger } from '@pine-ds/icons/icons';\n\nimport { debounceEvent } from '@utils/utils';\nimport { inheritAriaAttributes } from '@utils/attributes';\n\nimport type { Attributes } from '@utils/attributes';\nimport type { InputChangeEventDetail, InputInputEventDetail } from './input-interface';\n\n@Component({\n tag: 'pds-input',\n styleUrls: ['pds-input.tokens.scss', '../../global/styles/utils/label.scss', 'pds-input.scss'],\n shadow: true,\n})\nexport class PdsInput {\n private nativeInput?: HTMLInputElement;\n private inheritedAttributes: Attributes = {};\n private isComposing = false;\n /**\n * The value of the input when the input is focused.\n */\n private focusedValue?: string | number | null;\n\n private originalPdsInput?: EventEmitter<InputInputEventDetail>;\n\n @Element() el!: HTMLPdsInputElement;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() pdsBlur!: EventEmitter<FocusEvent>;\n\n /**\n *\n * Emitted when the value has changed.\n *\n * This event will not emit when programmatically setting the `value` property.\n */\n @Event() pdsChange!: EventEmitter<InputChangeEventDetail>;\n\n /**\n * Emitted when the input has focus.\n */\n @Event() pdsFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsInput: EventEmitter<InputInputEventDetail>;\n\n /**\n * Sets focus on the native `input` in the `pds-input`. Use this method instead of the global\n * `input.focus()`.\n */\n @Method()\n async setFocus() {\n if ( this.nativeInput ) {\n this.nativeInput.focus();\n }\n }\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 * Sets the number of milliseconds to wait before updating the value.\n */\n @Prop() debounce?: number;\n\n /**\n * Determines whether or not the input field is disabled.\n */\n @Prop() disabled?: boolean;\n\n /**\n * Specifies the error message and provides an error-themed treatment to the field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the input field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Determines whether or not the input field is invalid or throws an error.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the input label.\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name?: string;\n\n /**\n * Specifies a short hint that describes the expected value of the input field.\n */\n @Prop() placeholder?: string;\n\n /**\n * Determines whether or not the input field is readonly.\n */\n @Prop() readonly?: boolean;\n\n /**\n * Determines whether or not the input field is required.\n */\n @Prop() required?: boolean;\n\n /**\n * Determines the type of control that will be displayed\n * `'email'`, `'number'`, `'password'`, `'tel'`, `'text'`\n * @defaultValue \"text\"\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({mutable: true}) value?: string | number | null = '';\n\n /**\n * Determines if the input has focus.\n */\n @State() hasFocus = false;\n\n\n @Watch('debounce')\n protected debounceChanged() {\n const { pdsInput, debounce, originalPdsInput } = this;\n\n /**\n * If debounce is undefined, we have to manually revert the pdsInput emitter in case\n * debounce used to be set to a number. Otherwise, the event would stay debounced.\n */\n this.pdsInput = debounce === undefined ? originalPdsInput ?? pdsInput : debounceEvent(pdsInput, debounce);\n }\n\n @Watch('value')\n protected valueChanged() {\n const nativeInput = this.nativeInput;\n const value = this.getValue();\n\n if (nativeInput && nativeInput.value !== value && !this.isComposing) {\n nativeInput.value = value;\n }\n }\n\n private getValue(): string {\n return typeof this.value === 'number' ? this.value.toString() : (this.value || '').toString();\n }\n\n private onInputEvent = (ev: Event) => {\n const input = ev.target as HTMLInputElement | null;\n if (input) {\n this.value = input.value || '';\n }\n this.emitInputChange(ev);\n };\n\n private onChangeEvent = (ev: Event) => {\n this.emitValueChange(ev);\n };\n\n private onBlurEvent = (ev: FocusEvent) => {\n this.hasFocus = false;\n\n if (this.focusedValue !== this.value) {\n /**\n * Emits the `pdsChange` event when the input value\n * is different than the value when the input was focused.\n */\n this.emitValueChange(ev);\n }\n\n this.pdsBlur.emit(ev);\n };\n\n private onFocusEvent = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.focusedValue = this.value;\n\n this.pdsFocus.emit(ev);\n };\n\n private onCompositionStart = () => {\n this.isComposing = true;\n }\n\n private onCompositionEnd = () => {\n this.isComposing = false;\n }\n\n /**\n * Emits a pdsChange event\n */\n private emitValueChange(event?: Event) {\n const { value } = this;\n const newValue = value == null ? value : value.toString();\n\n this.focusedValue = newValue;\n this.pdsChange.emit({ value: newValue, event });\n }\n\n /**\n *\n * Emits a `pdsInput` event\n */\n private emitInputChange(event?: Event) {\n const { value } = this;\n\n // Checks for both null and undefined values\n const newValue = value == null ? value : value.toString();\n\n this.pdsInput.emit({ value: newValue, event });\n }\n\n\n componentWillLoad() {\n this.inheritedAttributes = {\n ...inheritAriaAttributes(this.el)\n }\n }\n\n componentDidLoad() {\n this.debounceChanged();\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n aria-readonly={this.readonly ? 'true' : null}\n >\n <div class=\"pds-input\">\n <label htmlFor={this.componentId}>{this.label}</label>\n <input class=\"pds-input__field\"\n ref={(input) => this.nativeInput = input}\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n autocomplete={this.autocomplete}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n type={this.type}\n value={this.value}\n onInput={this.onInputEvent}\n onChange={this.onChangeEvent}\n onBlur={this.onBlurEvent}\n onFocus={this.onFocusEvent}\n onCompositionstart={this.onCompositionStart}\n onCompositionend={this.onCompositionEnd}\n {...this.inheritedAttributes}\n />\n {this.helperMessage &&\n <p\n class=\"pds-input__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.errorMessage &&\n <p\n class=\"pds-input__error-message\"\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-input.js","sourceRoot":"","sources":["../../../src/components/pds-input/pds-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AAU1D,MAAM,OAAO,QAAQ;;QAEX,wBAAmB,GAAe,EAAE,CAAC;QACrC,gBAAW,GAAG,KAAK,CAAC;QAmJpB,iBAAY,GAAG,CAAC,EAAS,EAAE,EAAE;YACnC,MAAM,KAAK,GAAG,EAAE,CAAC,MAAiC,CAAC;YACnD,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,CAAC,KAAK,GAAG,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { danger } from '@pine-ds/icons/icons';\n\nimport { debounceEvent } from '@utils/utils';\nimport { inheritAriaAttributes } from '@utils/attributes';\n\nimport type { Attributes } from '@utils/attributes';\nimport type { InputChangeEventDetail, InputInputEventDetail } from './input-interface';\n\n@Component({\n tag: 'pds-input',\n styleUrls: ['pds-input.tokens.scss', '../../global/styles/utils/label.scss', 'pds-input.scss'],\n shadow: true,\n})\nexport class PdsInput {\n private nativeInput?: HTMLInputElement;\n private inheritedAttributes: Attributes = {};\n private isComposing = false;\n /**\n * The value of the input when the input is focused.\n */\n private focusedValue?: string | number | null;\n\n private originalPdsInput?: EventEmitter<InputInputEventDetail>;\n\n @Element() el!: HTMLPdsInputElement;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() pdsBlur!: EventEmitter<FocusEvent>;\n\n /**\n *\n * Emitted when the value has changed.\n *\n * This event will not emit when programmatically setting the `value` property.\n */\n @Event() pdsChange!: EventEmitter<InputChangeEventDetail>;\n\n /**\n * Emitted when the input has focus.\n */\n @Event() pdsFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsInput: EventEmitter<InputInputEventDetail>;\n\n /**\n * Sets focus on the native `input` in the `pds-input`. Use this method instead of the global\n * `input.focus()`.\n */\n @Method()\n async setFocus() {\n if ( this.nativeInput ) {\n this.nativeInput.focus();\n }\n }\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 * Sets the number of milliseconds to wait before updating the value.\n */\n @Prop() debounce?: number;\n\n /**\n * Determines whether or not the input field is disabled.\n */\n @Prop() disabled?: boolean;\n\n /**\n * Specifies the error message and provides an error-themed treatment to the field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the input field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Determines whether or not the input field is invalid or throws an error.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the input label.\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name?: string;\n\n /**\n * Specifies a short hint that describes the expected value of the input field.\n */\n @Prop() placeholder?: string;\n\n /**\n * Determines whether or not the input field is readonly.\n */\n @Prop() readonly?: boolean;\n\n /**\n * Determines whether or not the input field is required.\n */\n @Prop() required?: boolean;\n\n /**\n * Determines the type of control that will be displayed\n * `'email'`, `'number'`, `'password'`, `'tel'`, `'text'`, `'url'`\n * @defaultValue \"text\"\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({mutable: true}) value?: string | number | null = '';\n\n /**\n * Determines if the input has focus.\n */\n @State() hasFocus = false;\n\n\n @Watch('debounce')\n protected debounceChanged() {\n const { pdsInput, debounce, originalPdsInput } = this;\n\n /**\n * If debounce is undefined, we have to manually revert the pdsInput emitter in case\n * debounce used to be set to a number. Otherwise, the event would stay debounced.\n */\n this.pdsInput = debounce === undefined ? originalPdsInput ?? pdsInput : debounceEvent(pdsInput, debounce);\n }\n\n @Watch('value')\n protected valueChanged() {\n const nativeInput = this.nativeInput;\n const value = this.getValue();\n\n if (nativeInput && nativeInput.value !== value && !this.isComposing) {\n nativeInput.value = value;\n }\n }\n\n private getValue(): string {\n return typeof this.value === 'number' ? this.value.toString() : (this.value || '').toString();\n }\n\n private onInputEvent = (ev: Event) => {\n const input = ev.target as HTMLInputElement | null;\n if (input) {\n this.value = input.value || '';\n }\n this.emitInputChange(ev);\n };\n\n private onChangeEvent = (ev: Event) => {\n this.emitValueChange(ev);\n };\n\n private onBlurEvent = (ev: FocusEvent) => {\n this.hasFocus = false;\n\n if (this.focusedValue !== this.value) {\n /**\n * Emits the `pdsChange` event when the input value\n * is different than the value when the input was focused.\n */\n this.emitValueChange(ev);\n }\n\n this.pdsBlur.emit(ev);\n };\n\n private onFocusEvent = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.focusedValue = this.value;\n\n this.pdsFocus.emit(ev);\n };\n\n private onCompositionStart = () => {\n this.isComposing = true;\n }\n\n private onCompositionEnd = () => {\n this.isComposing = false;\n }\n\n /**\n * Emits a pdsChange event\n */\n private emitValueChange(event?: Event) {\n const { value } = this;\n const newValue = value == null ? value : value.toString();\n\n this.focusedValue = newValue;\n this.pdsChange.emit({ value: newValue, event });\n }\n\n /**\n *\n * Emits a `pdsInput` event\n */\n private emitInputChange(event?: Event) {\n const { value } = this;\n\n // Checks for both null and undefined values\n const newValue = value == null ? value : value.toString();\n\n this.pdsInput.emit({ value: newValue, event });\n }\n\n\n componentWillLoad() {\n this.inheritedAttributes = {\n ...inheritAriaAttributes(this.el)\n }\n }\n\n componentDidLoad() {\n this.debounceChanged();\n }\n\n private inputClassNames() {\n const classNames = ['pds-input__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n aria-readonly={this.readonly ? 'true' : null}\n >\n <div class=\"pds-input\">\n {this.label &&\n <label class=\"pds-input__label\" htmlFor={this.componentId}>{this.label}</label>\n }\n <input\n class={this.inputClassNames()}\n ref={(input) => this.nativeInput = input}\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n autocomplete={this.autocomplete}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n type={this.type}\n value={this.value}\n onInput={this.onInputEvent}\n onChange={this.onChangeEvent}\n onBlur={this.onBlurEvent}\n onFocus={this.onFocusEvent}\n onCompositionstart={this.onCompositionStart}\n onCompositionend={this.onCompositionEnd}\n {...this.inheritedAttributes}\n />\n {this.helperMessage &&\n <p\n class=\"pds-input__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.errorMessage &&\n <p\n class=\"pds-input__error-message\"\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -23,8 +23,8 @@ export class PdsLink {
23
23
  return classNames.join(' ');
24
24
  }
25
25
  render() {
26
- return (h("a", { key: 'd21ad4828be4f730d996dfa814ea8f8863053a51', class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined, part: "link" }, h("slot", { key: '7e2dd2c8f33a12ba99a7b0c6f80e263c4fc7d695' }, this.href), this.external &&
27
- h("pds-icon", { key: '8e1597318fb76223ae25232b9f1a814781f25409', icon: launch, size: this.fontSize })));
26
+ return (h("a", { key: 'ee9b0a9897e2a212989d607c85f2050ee992bd32', class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined, part: "link" }, h("slot", { key: '611a4f9194ce38fd3b79c7e55281a625267846a4' }, this.href), this.external &&
27
+ h("pds-icon", { key: 'a527d217c8ef1e69a2ca127019fbeb3eb25b3a02', icon: launch, size: this.fontSize })));
28
28
  }
29
29
  static get is() { return "pds-link"; }
30
30
  static get encapsulation() { return "shadow"; }
@@ -1,4 +1,5 @@
1
1
  :host {
2
+ --loader-color: var(--pine-color-brand);
2
3
  align-items: center;
3
4
  display: flex;
4
5
  flex-direction: column;
@@ -19,11 +20,10 @@
19
20
  }
20
21
 
21
22
  .pds-loader--spinner svg {
22
- --color-background-spinner: var(--pine-color-brand);
23
23
  --number-spinner-timing: 2s;
24
24
  --number-spinner-path-timing: 1.5s;
25
25
  animation: rotate var(--number-spinner-timing) linear infinite;
26
- color: var(--color-background-spinner);
26
+ color: var(--loader-color);
27
27
  }
28
28
 
29
29
  .pds-loader__spinner-path {
@@ -33,7 +33,7 @@ export class PdsLoader {
33
33
  }
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: '0caf3182214726aca594996b43765c540a2bea76', 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: 'bf62aea965efcfa2d5331ac9f69fdd60836ec498', class: "pds-loader--spinner" }, h("svg", { key: 'f4a2ca5e27c3c04f70029415996c79d54e3db148', style: this.style(), viewBox: "0 0 200 200", fill: "none" }, h("defs", { key: 'dba4da5d4c65b1322c079b1ef3608044f8a0c12d' }, h("linearGradient", { key: 'da837ec20645bb254a1bf86796306e07744adbdd', id: "spinner-secondHalf" }, h("stop", { key: '922e70ae537fa4541afb13d167ca7578759462fd', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), h("stop", { key: '861e6a6540827f500872f11527301ef563b9d3cd', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), h("linearGradient", { key: 'b8675daa4f37de927e8d3742385e2058a0b33f36', id: "spinner-firstHalf" }, h("stop", { key: '754e35be6b1268864743c42adc41ef682dab1307', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), h("stop", { key: '9db1dee07342751a07a6039326bb2fada0ba22d7', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), h("g", { key: 'aee0ed505c0512e831724ca54cb287bde5ab2470', class: "pds-loader__spinner-path" }, h("path", { key: '93096ef22bd2fdbaa819b926b4ec8fabce2050c7', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), h("path", { key: '648bde48070689c3b22bc40f1ad17de694d146f7', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), h("path", { key: '9a78cd8d70dbeed9cf04deef9ee766c31464b0e6', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (h("div", { key: '6b5a395b4a7fef244d941d5276ca4348ed2e79de', class: "pds-loader--typing" }, h("span", { key: '7c1e5a5b2441e0c649a1faab10a758290487c492' }), h("span", { key: '39db51a0391c2447ab4ba5a75e8d544c2167e41b' }), h("span", { key: '5315bfc12f3b269ff14ac4abe39c4bd50be4a648' }))), h("div", { key: 'c53aa88ef1f3bbabd67f332529016adbfcd4e82e', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, h("slot", { key: '3d6dbd3a72223fc49e1ce1f0578296b18c7175ae', name: "label" }, "Loading..."))));
36
+ return (h(Host, { key: '7c8fdc4812310a291f992786f1e7951664afb8b6', 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: '411dbd7e815b2160abcbd0049f9e310a9059452c', class: "pds-loader--spinner" }, h("svg", { key: '1d59dc3aea7bb51015680c3657abb964a7b69106', style: this.style(), viewBox: "0 0 200 200", fill: "none" }, h("defs", { key: '9ed887bf61bda5cda7662952dfc9add1e3e1ca40' }, h("linearGradient", { key: 'af416e97cbfbb1b2cc5c6a06f168165d60f984c8', id: "spinner-secondHalf" }, h("stop", { key: 'dd3d79c1b422dbc29a2f7af106d7e648ea739e09', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), h("stop", { key: '313ef7bbcaecad0f4bf8eb268e05ef3ff48f55be', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), h("linearGradient", { key: 'b36dde7b2648bb9bef120354f70bab8fbc3879a8', id: "spinner-firstHalf" }, h("stop", { key: '7d38062cf2f39b1be1b29e7799ac68c59744a172', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), h("stop", { key: 'bfe1ea074d55af2098eca57459c54cd92a1ecafc', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), h("g", { key: '0d2ee2c9abe4b90f8c38246c847c43a942316686', class: "pds-loader__spinner-path" }, h("path", { key: '87b0fc01bc7fe59e596013011034e2e1d6eabd38', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), h("path", { key: '07b2c9ddd18117d1ef40f3e26f76bafc8c8c5309', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), h("path", { key: 'f4a88b3aaefb70c1cb5582f94d507efe88a66fbe', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (h("div", { key: 'ab906177f012e882487a447338c1e1155524b8c3', class: "pds-loader--typing" }, h("span", { key: 'b7080dffb6dfb66bd89ca754880e7456b33f9cdb' }), h("span", { key: '0b7d00d9e3fcbaecbade0860a2a50cec6f13b017' }), h("span", { key: '0e8cca8e86dba84a7b22913d5458c0c232661526' }))), h("div", { key: '540aee483c31b199a1c4ec09e6a848661379e593', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, h("slot", { key: 'f94f166ef6a1ef8a995efc664cd2ddf509ad51d8', name: "label" }, "Loading..."))));
37
37
  }
38
38
  static get is() { return "pds-loader"; }
39
39
  static get encapsulation() { return "shadow"; }
@@ -5,7 +5,7 @@
5
5
  :host [popover] {
6
6
  background-color: var(--pine-color-background-container);
7
7
  border: var(--pine-border);
8
- border-radius: 10px;
8
+ border-radius: var(--pine-dimension-125);
9
9
  box-shadow: var(--pine-box-shadow-200);
10
10
  margin: var(--pine-dimension-none);
11
11
  max-width: var(--sizing-max-width-default);
@@ -52,7 +52,7 @@ export class PdsPopover {
52
52
  popoverEl.style.left = `${left}px`;
53
53
  }
54
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' }))));
55
+ return (h(Host, { key: '83f5e8306d9a8f9e541e638af6fab4e83700c9ce' }, h("button", { key: '11a49c046a9258b64508c3a48dff8b63468358e0', class: "pds-popover__trigger", popoverTarget: this.componentId, popoverTargetAction: this.popoverTargetAction, onClick: this.handleClick }, this.text), h("div", { key: 'c4034a97e7d3aa794d4cf20891cb1ccd31895fa9', class: `pds-popover ${this.active ? 'pds-popover--active' : ''}`, id: this.componentId, popover: this.popoverType, style: { maxWidth: `${this.maxWidth}px` } }, h("slot", { key: '2005210e15c7f73efed54de5980c117f682cc476' }))));
56
56
  }
57
57
  static get is() { return "pds-popover"; }
58
58
  static get encapsulation() { return "shadow"; }
@@ -9,7 +9,7 @@ export class PdsProgress {
9
9
  this.showPercent = false;
10
10
  }
11
11
  render() {
12
- return (h(Host, { key: 'd1035166aecc2b1719f827e51bcab880f0f6c77c', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: '52385ffd15e98e43ebbbf89397950fcf44d0fa08', class: "pds-progress" }, h("label", { key: '56d3b58ed6cb0531a874cd8033770dbe4741f992', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: 'c98a6707f1d30f8e4c05dd53c0fc2fbe6a3f6284', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: '621c6fd0a5fc275358c583513ba463d9c01dee32', class: "pds-progress__percentage" }, this.percent, "%")));
12
+ return (h(Host, { key: 'c90714bd802c1ec10cc1d557b21c4761a348c559', class: this.animated ? { 'is-animated': this.animated } : '' }, h("div", { key: '969f33669523f2c67d30aa94652e3b70373b780a', class: "pds-progress" }, h("label", { key: '206a7c2297361caae1c5ecadacfd11939d8decee', class: "pds-progress__label", htmlFor: this.componentId }, this.label), h("progress", { key: 'e7748d02c4070bb894943fe0795a3c7008a43d62', id: this.componentId, max: "100", style: this.fillColor ? { '--color-progress-fill': this.fillColor } : {}, value: this.percent })), this.showPercent && h("div", { key: '7ec96692f3dc869069071bae747371ea6ef911ec', class: "pds-progress__percentage" }, this.percent, "%")));
13
13
  }
14
14
  static get is() { return "pds-progress"; }
15
15
  static get encapsulation() { return "shadow"; }
@@ -30,10 +30,13 @@
30
30
 
31
31
  input {
32
32
  appearance: none;
33
+ background: var(--pine-color-background-container);
33
34
  border: var(--pine-border);
34
35
  border-radius: var(--pine-border-radius-full);
36
+ flex: none;
35
37
  height: var(--sizing-input-size);
36
38
  margin: 0;
39
+ margin-block-start: var(--pine-dimension-025);
37
40
  position: relative;
38
41
  width: var(--sizing-input-size);
39
42
  }
@@ -85,13 +88,14 @@ input:focus-visible {
85
88
  }
86
89
 
87
90
  label {
88
- margin-inline-start: 10px;
91
+ display: flex;
92
+ gap: var(--pine-dimension-xs);
89
93
  }
90
94
 
91
95
  .pds-radio__message {
92
96
  color: var(--pine-color-text-message);
93
97
  margin-block-start: var(--sizing-margin-block-start);
94
- margin-inline-start: 26px;
98
+ margin-inline-start: var(--pine-dimension-md);
95
99
  width: 100%;
96
100
  }
97
101
 
@@ -1,6 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { assignDescription, messageId } from "../../utils/form";
3
- import { PdsLabel } from "../_internal/pds-label/pds-label";
4
3
  import { danger } from "@pine-ds/icons/icons";
5
4
  export class PdsRadio {
6
5
  constructor() {
@@ -34,9 +33,9 @@ export class PdsRadio {
34
33
  return classNames.join(' ');
35
34
  }
36
35
  render() {
37
- return (h(Host, { key: '88a4087ad55f95408688765806ea7488d08b8dca', class: this.classNames() }, h("input", { key: '3ef7132664771087ce7292b9f00dccfa34023282', "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: '765301f003de7403145042e561c4a35767150699', htmlFor: this.componentId, text: this.label }), this.helperMessage &&
38
- h("div", { key: '81f3ee893eaef7473a2dca01b05c5bcfcd176e7b', class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
39
- h("div", { key: '75364c217ee1390e4fde2a532dc3aaca2252ad9a', class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '5d361b597c95624037acd5b47981cb5742bb2280', icon: danger, size: "small" }), this.errorMessage)));
36
+ return (h(Host, { key: '1a4f52f466f516a5803b5a539db579890fd5ec97', class: this.classNames() }, h("label", { key: 'fbf2fc5d2be220ad70e314c146f57e25536dbb13', htmlFor: this.componentId }, h("input", { key: '1016b5d553e30af9c2e7199a05cd75b30e725606', "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 }), this.label), this.helperMessage &&
37
+ h("div", { key: '4ac07622503e267abb9e0a808870e75b49329231', class: 'pds-radio__message', id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
38
+ h("div", { key: '808d6e1b93ed05b7875e9a5aeb7907a9c73f2410', class: `pds-radio__message pds-radio__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'c7bdadaf26d528c2ebb9e8790c9dd276ddb7d6b3', icon: danger, size: "small" }), this.errorMessage)));
40
39
  }
41
40
  static get is() { return "pds-radio"; }
42
41
  static get encapsulation() { return "scoped"; }
@@ -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;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,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,MAA0B,CAAC;YAC5C,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC;YAEjC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,CAAC,CAAA;uBAhEiB,KAAK;;wBAWJ,KAAK;;;uBAgBJ,KAAK;;;wBAgBN,KAAK;;;IAuBhB,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,UAAU,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QACjC,CAAC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAED,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE;YAC5B,kFACoB,iBAAiB,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, 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/utils/label.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"]}
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,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,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,MAA0B,CAAC;YAC5C,MAAM,SAAS,GAAG,MAAM,CAAC,OAAO,CAAC;YAEjC,IAAI,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QACtC,CAAC,CAAA;uBAhEiB,KAAK;;wBAWJ,KAAK;;;uBAgBJ,KAAK;;;wBAgBN,KAAK;;;IAuBhB,UAAU;QAChB,MAAM,UAAU,GAAG,EAAE,CAAC;QAEtB,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAChC,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,UAAU,CAAC,IAAI,CAAC,aA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-radio',\n styleUrls: ['../../global/styles/utils/label.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 <label htmlFor={this.componentId}>\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 {this.label}\n </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"]}
@@ -1,6 +1,6 @@
1
1
  :host {
2
- --row-gap-y: 10px;
3
- --row-gap-x: 10px;
2
+ --row-gap-y: var(--pine-dimension-125);
3
+ --row-gap-x: var(--pine-dimension-125);
4
4
  display: block;
5
5
  margin-block-end: calc(var(--row-gap-y) * -1);
6
6
  margin-block-start: calc(var(--row-gap-y) * -1);
@@ -32,7 +32,7 @@ export class PdsRow {
32
32
  })), (this.minHeight && {
33
33
  'min-height': this.minHeight,
34
34
  }));
35
- return h(Host, { key: '1760d9bd45d53d371c0a4c73171a12a6e4c59b51', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
35
+ return h(Host, { key: '1984453536572d4bab9efc4c07e64a4e39d9c80a', class: `pds-row ${rowClasses}`, style: rowInlineStyles });
36
36
  }
37
37
  static get is() { return "pds-row"; }
38
38
  static get originalStyleUrls() {
@@ -24,8 +24,9 @@ label {
24
24
 
25
25
  select {
26
26
  appearance: none;
27
+ background: var(--pine-color-background-container);
27
28
  border: var(--pine-border);
28
- border-radius: 10px;
29
+ border-radius: var(--pine-dimension-125);
29
30
  font: var(--pine-typography-body);
30
31
  grid-area: field;
31
32
  letter-spacing: var(--pine-letter-spacing);
@@ -70,7 +71,7 @@ select:has(~ .pds-select__message .pds-select__error-message):focus-visible {
70
71
  .pds-select__helper-message {
71
72
  font: var(--pine-typography-body-sm-medium);
72
73
  margin-block-end: 0;
73
- margin-block-start: var(--pine-dimension-xs);
74
+ margin-block-start: var(--pine-dimension-2xs);
74
75
  }
75
76
 
76
77
  .pds-select__error-message {
@@ -1,6 +1,5 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { messageId } from "../../utils/form";
3
- import { PdsLabel } from "../_internal/pds-label/pds-label";
4
3
  import { danger, enlarge } from "@pine-ds/icons/icons";
5
4
  export class PdsSelect {
6
5
  constructor() {
@@ -111,7 +110,8 @@ export class PdsSelect {
111
110
  return classNames.join(' ');
112
111
  }
113
112
  render() {
114
- return (h(Host, { key: 'fe06a18d5fda6211d1152ef4d6788b8d6b1b14e2', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames() }, h("div", { key: 'f4c5487815076ffb36672d46c109a017a9ad00a5', class: "pds-select" }, h(PdsLabel, { key: '56057f8450a18d3b89bbf9899dfee07ea4ca7aa0', htmlFor: this.componentId, text: this.label }), h("select", { key: '70324033d55908cc147a9a773c188ee914661be7', 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: '182f6da416f4135a7fd06577589b0e308f9e84fa', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: '0ad6aaf6901946337999ae53dcd570fa80dad9c6', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: '46bfb7782c983bb6b04b1a97ddf3122eca7f62cb', class: "pds-select__select-icon", icon: enlarge }))));
113
+ return (h(Host, { key: 'e2d3e77b8bf3bf697615ed3a64ea28d57e6e1804', "aria-disabled": this.disabled ? 'true' : null, class: this.classNames() }, h("div", { key: '1d465fa9b7266807bc1504c76cab0492e4785141', class: "pds-select" }, this.label &&
114
+ h("label", { key: '35d64c31a97e27847c67c6b9c49e7a825da97b5e', htmlFor: this.componentId }, this.label), h("select", { key: '30ec3dfe0fe9ef962392bbc010004613da28b680', 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: '8dd9a3b63fe5f577287db4f445db43701a995472', "aria-hidden": "true", class: "hidden", ref: (el) => (this.slotContainer = el) }, h("slot", { key: '1c202985751ac7ab7b42dd636a8d6c378d1d67b7', onSlotchange: this.handleSlotChange })), this.renderMessages(), !this.multiple && h("pds-icon", { key: '15731b205d0aad681ca8ca19fc69c1b49e3fc923', class: "pds-select__select-icon", icon: enlarge }))));
115
115
  }
116
116
  static get is() { return "pds-select"; }
117
117
  static get encapsulation() { return "shadow"; }
@@ -242,7 +242,7 @@ export class PdsSelect {
242
242
  "references": {}
243
243
  },
244
244
  "required": false,
245
- "optional": false,
245
+ "optional": true,
246
246
  "docs": {
247
247
  "tags": [],
248
248
  "text": "Text to be displayed as the select label."