@pine-ds/core 2.17.0-mercury.0 → 2.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1134) hide show
  1. package/components/attributes.js +87 -0
  2. package/components/attributes.js.map +1 -0
  3. package/{dist/esm/pds-label-c806218b.js → components/form.js} +2 -10
  4. package/components/form.js.map +1 -0
  5. package/components/index.d.ts +6 -0
  6. package/components/index.js +3 -0
  7. package/components/index.js.map +1 -1
  8. package/components/index2.js +13 -11
  9. package/components/index2.js.map +1 -1
  10. package/components/pds-accordion.js +2 -2
  11. package/components/pds-accordion.js.map +1 -1
  12. package/components/pds-avatar.js +4 -4
  13. package/components/pds-avatar.js.map +1 -1
  14. package/components/pds-box.js +11 -2
  15. package/components/pds-box.js.map +1 -1
  16. package/components/pds-button2.js +56 -14
  17. package/components/pds-button2.js.map +1 -1
  18. package/components/pds-checkbox2.js +18 -8
  19. package/components/pds-checkbox2.js.map +1 -1
  20. package/components/pds-chip.js +10 -7
  21. package/components/pds-chip.js.map +1 -1
  22. package/components/pds-copytext.js +12 -6
  23. package/components/pds-copytext.js.map +1 -1
  24. package/components/pds-divider.js +2 -2
  25. package/components/pds-divider.js.map +1 -1
  26. package/components/pds-icon2.js +3 -3
  27. package/components/pds-icon2.js.map +1 -1
  28. package/components/pds-image.js +3 -3
  29. package/components/pds-image.js.map +1 -1
  30. package/components/pds-input.js +131 -11
  31. package/components/pds-input.js.map +1 -1
  32. package/components/pds-link.js +3 -3
  33. package/components/pds-link.js.map +1 -1
  34. package/components/pds-loader.js +1 -61
  35. package/components/pds-loader.js.map +1 -1
  36. package/components/pds-loader2.js +65 -0
  37. package/components/pds-loader2.js.map +1 -0
  38. package/components/pds-popover.d.ts +11 -0
  39. package/components/pds-popover.js +94 -0
  40. package/components/pds-popover.js.map +1 -0
  41. package/components/pds-progress.js +2 -2
  42. package/components/pds-progress.js.map +1 -1
  43. package/components/pds-radio.js +22 -12
  44. package/components/pds-radio.js.map +1 -1
  45. package/components/pds-row.js +2 -2
  46. package/components/pds-row.js.map +1 -1
  47. package/components/pds-select.d.ts +11 -0
  48. package/components/pds-select.js +173 -0
  49. package/components/pds-select.js.map +1 -0
  50. package/components/pds-sortable-item.js +2 -2
  51. package/components/pds-sortable-item.js.map +1 -1
  52. package/components/pds-sortable.js +2 -2
  53. package/components/pds-sortable.js.map +1 -1
  54. package/components/pds-switch.js +28 -15
  55. package/components/pds-switch.js.map +1 -1
  56. package/components/pds-tab.js +4 -4
  57. package/components/pds-tab.js.map +1 -1
  58. package/components/pds-table-body.js +1 -1
  59. package/components/pds-table-body.js.map +1 -1
  60. package/components/pds-table-cell2.js +3 -3
  61. package/components/pds-table-cell2.js.map +1 -1
  62. package/components/pds-table-head-cell2.js +4 -4
  63. package/components/pds-table-head-cell2.js.map +1 -1
  64. package/components/pds-table-head.js +2 -2
  65. package/components/pds-table-head.js.map +1 -1
  66. package/components/pds-table-row.js +10 -4
  67. package/components/pds-table-row.js.map +1 -1
  68. package/components/pds-table.js +1 -1
  69. package/components/pds-table.js.map +1 -1
  70. package/components/pds-tabpanel.js +2 -2
  71. package/components/pds-tabpanel.js.map +1 -1
  72. package/components/pds-tabs.js +2 -2
  73. package/components/pds-tabs.js.map +1 -1
  74. package/components/pds-text.d.ts +11 -0
  75. package/components/pds-text.js +65 -0
  76. package/components/pds-text.js.map +1 -0
  77. package/components/pds-textarea.js +119 -17
  78. package/components/pds-textarea.js.map +1 -1
  79. package/components/pds-tooltip.js +16 -8
  80. package/components/pds-tooltip.js.map +1 -1
  81. package/components/utils.js +21 -0
  82. package/components/utils.js.map +1 -0
  83. package/dist/cjs/attributes-73ee8de7.js +90 -0
  84. package/dist/cjs/attributes-73ee8de7.js.map +1 -0
  85. package/dist/cjs/{pds-label-73bb5bd3.js → form-4f00637c.js} +1 -10
  86. package/dist/cjs/form-4f00637c.js.map +1 -0
  87. package/dist/cjs/index-6a0fbd28.js +28 -0
  88. package/dist/cjs/index-6a0fbd28.js.map +1 -0
  89. package/dist/cjs/{index-d4ec6246.js → index-b7d9268e.js} +17 -5
  90. package/dist/cjs/index-b7d9268e.js.map +1 -0
  91. package/dist/cjs/index.cjs.js +1 -1
  92. package/dist/cjs/loader.cjs.js +2 -2
  93. package/dist/cjs/pds-accordion.cjs.entry.js +4 -4
  94. package/dist/cjs/pds-accordion.cjs.entry.js.map +1 -1
  95. package/dist/cjs/pds-avatar.cjs.entry.js +6 -6
  96. package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
  97. package/dist/cjs/pds-box.cjs.entry.js +9 -3
  98. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  99. package/dist/cjs/pds-button.cjs.entry.js +43 -12
  100. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  101. package/dist/cjs/pds-checkbox.cjs.entry.js +12 -8
  102. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  103. package/dist/cjs/pds-chip.cjs.entry.js +11 -8
  104. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  105. package/dist/cjs/pds-copytext.cjs.entry.js +4 -4
  106. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  107. package/dist/cjs/pds-divider.cjs.entry.js +3 -3
  108. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
  109. package/dist/cjs/pds-icon.cjs.entry.js +4 -4
  110. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  111. package/dist/cjs/pds-image.cjs.entry.js +4 -4
  112. package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
  113. package/dist/cjs/pds-input.cjs.entry.js +117 -10
  114. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  115. package/dist/cjs/pds-link.cjs.entry.js +5 -5
  116. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  117. package/dist/cjs/pds-loader.cjs.entry.js +3 -3
  118. package/dist/cjs/pds-loader.cjs.entry.js.map +1 -1
  119. package/dist/cjs/pds-popover.cjs.entry.js +72 -0
  120. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -0
  121. package/dist/cjs/pds-progress.cjs.entry.js +3 -3
  122. package/dist/cjs/pds-progress.cjs.entry.js.map +1 -1
  123. package/dist/cjs/pds-radio.cjs.entry.js +14 -10
  124. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  125. package/dist/cjs/pds-row.cjs.entry.js +3 -3
  126. package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
  127. package/dist/cjs/pds-select.cjs.entry.js +139 -0
  128. package/dist/cjs/pds-select.cjs.entry.js.map +1 -0
  129. package/dist/cjs/pds-sortable-item.cjs.entry.js +4 -4
  130. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -1
  131. package/dist/cjs/pds-sortable.cjs.entry.js +3 -3
  132. package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -1
  133. package/dist/cjs/pds-switch.cjs.entry.js +20 -12
  134. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  135. package/dist/cjs/pds-tab.cjs.entry.js +5 -5
  136. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -1
  137. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  138. package/dist/cjs/pds-table-body.cjs.entry.js.map +1 -1
  139. package/dist/cjs/pds-table-cell.cjs.entry.js +4 -4
  140. package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -1
  141. package/dist/cjs/pds-table-head-cell.cjs.entry.js +5 -5
  142. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
  143. package/dist/cjs/pds-table-head.cjs.entry.js +3 -3
  144. package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
  145. package/dist/cjs/pds-table-row.cjs.entry.js +3 -3
  146. package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
  147. package/dist/cjs/pds-table.cjs.entry.js +2 -2
  148. package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
  149. package/dist/cjs/pds-tabpanel.cjs.entry.js +3 -3
  150. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -1
  151. package/dist/cjs/pds-tabs.cjs.entry.js +3 -3
  152. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -1
  153. package/dist/cjs/pds-text.cjs.entry.js +41 -0
  154. package/dist/cjs/pds-text.cjs.entry.js.map +1 -0
  155. package/dist/cjs/pds-textarea.cjs.entry.js +105 -16
  156. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  157. package/dist/cjs/pds-tooltip.cjs.entry.js +15 -8
  158. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  159. package/dist/cjs/pine-core.cjs.js +3 -3
  160. package/dist/cjs/pine-core.cjs.js.map +1 -1
  161. package/dist/cjs/utils-39c972f8.js +24 -0
  162. package/dist/cjs/utils-39c972f8.js.map +1 -0
  163. package/dist/collection/collection-manifest.json +5 -2
  164. package/dist/collection/components/pds-accordion/pds-accordion.css +21 -29
  165. package/dist/collection/components/pds-accordion/pds-accordion.js +2 -1
  166. package/dist/collection/components/pds-accordion/pds-accordion.js.map +1 -1
  167. package/dist/collection/components/pds-accordion/stories/pds-accordion.stories.js +11 -15
  168. package/dist/collection/components/pds-avatar/pds-avatar.css +13 -20
  169. package/dist/collection/components/pds-avatar/pds-avatar.js +3 -3
  170. package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -1
  171. package/dist/collection/components/pds-box/pds-box.css +127 -28
  172. package/dist/collection/components/pds-box/pds-box.js +80 -2
  173. package/dist/collection/components/pds-box/pds-box.js.map +1 -1
  174. package/dist/collection/components/pds-box/stories/pds-box.stories.js +3 -0
  175. package/dist/collection/components/pds-button/pds-button.css +153 -76
  176. package/dist/collection/components/pds-button/pds-button.js +172 -19
  177. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  178. package/dist/collection/components/pds-button/stories/pds-button.stories.js +77 -3
  179. package/dist/collection/components/pds-checkbox/pds-checkbox.css +50 -44
  180. package/dist/collection/components/pds-checkbox/pds-checkbox.js +6 -6
  181. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  182. package/dist/collection/components/pds-chip/pds-chip.css +89 -111
  183. package/dist/collection/components/pds-chip/pds-chip.js +28 -28
  184. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  185. package/dist/collection/components/pds-chip/pds-chip.tokens.css +23 -0
  186. package/dist/collection/components/pds-copytext/pds-copytext.css +35 -49
  187. package/dist/collection/components/pds-copytext/pds-copytext.js +4 -4
  188. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
  189. package/dist/collection/components/pds-divider/pds-divider.css +29 -41
  190. package/dist/collection/components/pds-divider/pds-divider.js +2 -2
  191. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -1
  192. package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +1 -1
  193. package/dist/collection/components/pds-image/pds-image.css +3 -2
  194. package/dist/collection/components/pds-image/pds-image.js +13 -7
  195. package/dist/collection/components/pds-image/pds-image.js.map +1 -1
  196. package/dist/collection/components/pds-image/stories/pds-image.stories.js +7 -5
  197. package/dist/collection/components/pds-input/input-interface.js +2 -0
  198. package/dist/collection/components/pds-input/input-interface.js.map +1 -0
  199. package/dist/collection/components/pds-input/pds-input.css +60 -57
  200. package/dist/collection/components/pds-input/pds-input.js +248 -23
  201. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  202. package/dist/collection/components/pds-input/pds-input.tokens.css +6 -0
  203. package/dist/collection/components/pds-input/stories/pds-input.stories.js +18 -2
  204. package/dist/collection/components/pds-link/pds-link.css +15 -25
  205. package/dist/collection/components/pds-link/pds-link.js +12 -9
  206. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  207. package/dist/collection/components/pds-loader/pds-loader.css +17 -30
  208. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  209. package/dist/collection/components/pds-loader/pds-loader.js.map +1 -1
  210. package/dist/collection/components/pds-popover/pds-popover.css +30 -0
  211. package/dist/collection/components/pds-popover/pds-popover.js +216 -0
  212. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -0
  213. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +45 -0
  214. package/dist/collection/components/pds-progress/pds-progress.css +11 -24
  215. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  216. package/dist/collection/components/pds-progress/pds-progress.js.map +1 -1
  217. package/dist/collection/components/pds-radio/pds-radio.css +42 -39
  218. package/dist/collection/components/pds-radio/pds-radio.js +43 -43
  219. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
  220. package/dist/collection/components/pds-row/pds-row.css +10 -9
  221. package/dist/collection/components/pds-row/pds-row.js +1 -1
  222. package/dist/collection/components/pds-select/pds-select.css +97 -0
  223. package/dist/collection/components/pds-select/pds-select.js +361 -0
  224. package/dist/collection/components/pds-select/pds-select.js.map +1 -0
  225. package/dist/collection/components/pds-select/pds-select.tokens.css +6 -0
  226. package/dist/collection/components/pds-select/stories/pds-select.stories.js +153 -0
  227. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +13 -22
  228. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  229. package/dist/collection/components/pds-sortable/pds-sortable.css +2 -4
  230. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  231. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
  232. package/dist/collection/components/pds-switch/pds-switch.css +34 -48
  233. package/dist/collection/components/pds-switch/pds-switch.js +19 -41
  234. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
  235. package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +2 -15
  236. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  237. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +1 -1
  238. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +11 -17
  239. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  240. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -1
  241. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +2 -3
  242. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +7 -4
  243. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +1 -1
  244. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +13 -24
  245. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  246. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -1
  247. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +1 -2
  248. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +3 -3
  249. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +1 -1
  250. package/dist/collection/components/pds-table/pds-table.js +4 -4
  251. package/dist/collection/components/pds-table/pds-table.js.map +1 -1
  252. package/dist/collection/components/pds-table/stories/pds-table.stories.js +1 -1
  253. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +65 -48
  254. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  255. package/dist/collection/components/pds-tabs/pds-tab/stories/pds-tab.stories.js +19 -0
  256. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +2 -2
  257. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  258. package/dist/collection/components/pds-tabs/pds-tabpanel/stories/pds-tabpanel.stories.js +19 -0
  259. package/dist/collection/components/pds-tabs/pds-tabs.css +18 -11
  260. package/dist/collection/components/pds-tabs/pds-tabs.js +3 -3
  261. package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -1
  262. package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +24 -18
  263. package/dist/collection/components/pds-text/pds-text.css +234 -0
  264. package/dist/collection/components/pds-text/pds-text.js +198 -0
  265. package/dist/collection/components/pds-text/pds-text.js.map +1 -0
  266. package/dist/collection/components/pds-text/stories/pds-text.stories.js +119 -0
  267. package/dist/collection/components/pds-textarea/pds-textarea.css +26 -50
  268. package/dist/collection/components/pds-textarea/pds-textarea.js +234 -28
  269. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  270. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +33 -12
  271. package/dist/collection/components/pds-textarea/textarea-interface.js.map +1 -1
  272. package/dist/collection/components/pds-tooltip/pds-tooltip.css +59 -67
  273. package/dist/collection/components/pds-tooltip/pds-tooltip.js +34 -37
  274. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  275. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +15 -15
  276. package/dist/collection/global/styles/utils/label.css +17 -0
  277. package/dist/collection/utils/attributes.js +84 -0
  278. package/dist/collection/utils/attributes.js.map +1 -0
  279. package/dist/collection/utils/types.js.map +1 -1
  280. package/dist/collection/utils/utils.js +14 -3
  281. package/dist/collection/utils/utils.js.map +1 -1
  282. package/dist/docs.json +2051 -467
  283. package/dist/esm/attributes-fe2c8c91.js +87 -0
  284. package/dist/esm/attributes-fe2c8c91.js.map +1 -0
  285. package/{components/pds-label.js → dist/esm/form-1b7b69e3.js} +2 -10
  286. package/dist/esm/form-1b7b69e3.js.map +1 -0
  287. package/dist/esm/index-24f87b75.js +16 -0
  288. package/dist/esm/index-24f87b75.js.map +1 -0
  289. package/dist/esm/{index-9f0e742f.js → index-b1696fed.js} +17 -5
  290. package/dist/esm/index-b1696fed.js.map +1 -0
  291. package/dist/esm/index.js +1 -1
  292. package/dist/esm/loader.js +3 -3
  293. package/dist/esm/pds-accordion.entry.js +4 -4
  294. package/dist/esm/pds-accordion.entry.js.map +1 -1
  295. package/dist/esm/pds-avatar.entry.js +6 -6
  296. package/dist/esm/pds-avatar.entry.js.map +1 -1
  297. package/dist/esm/pds-box.entry.js +9 -3
  298. package/dist/esm/pds-box.entry.js.map +1 -1
  299. package/dist/esm/pds-button.entry.js +42 -11
  300. package/dist/esm/pds-button.entry.js.map +1 -1
  301. package/dist/esm/pds-checkbox.entry.js +12 -8
  302. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  303. package/dist/esm/pds-chip.entry.js +11 -8
  304. package/dist/esm/pds-chip.entry.js.map +1 -1
  305. package/dist/esm/pds-copytext.entry.js +4 -4
  306. package/dist/esm/pds-copytext.entry.js.map +1 -1
  307. package/dist/esm/pds-divider.entry.js +3 -3
  308. package/dist/esm/pds-divider.entry.js.map +1 -1
  309. package/dist/esm/pds-icon.entry.js +4 -4
  310. package/dist/esm/pds-icon.entry.js.map +1 -1
  311. package/dist/esm/pds-image.entry.js +4 -4
  312. package/dist/esm/pds-image.entry.js.map +1 -1
  313. package/dist/esm/pds-input.entry.js +117 -10
  314. package/dist/esm/pds-input.entry.js.map +1 -1
  315. package/dist/esm/pds-link.entry.js +5 -5
  316. package/dist/esm/pds-link.entry.js.map +1 -1
  317. package/dist/esm/pds-loader.entry.js +3 -3
  318. package/dist/esm/pds-loader.entry.js.map +1 -1
  319. package/dist/esm/pds-popover.entry.js +68 -0
  320. package/dist/esm/pds-popover.entry.js.map +1 -0
  321. package/dist/esm/pds-progress.entry.js +3 -3
  322. package/dist/esm/pds-progress.entry.js.map +1 -1
  323. package/dist/esm/pds-radio.entry.js +14 -10
  324. package/dist/esm/pds-radio.entry.js.map +1 -1
  325. package/dist/esm/pds-row.entry.js +3 -3
  326. package/dist/esm/pds-row.entry.js.map +1 -1
  327. package/dist/esm/pds-select.entry.js +135 -0
  328. package/dist/esm/pds-select.entry.js.map +1 -0
  329. package/dist/esm/pds-sortable-item.entry.js +4 -4
  330. package/dist/esm/pds-sortable-item.entry.js.map +1 -1
  331. package/dist/esm/pds-sortable.entry.js +3 -3
  332. package/dist/esm/pds-sortable.entry.js.map +1 -1
  333. package/dist/esm/pds-switch.entry.js +20 -12
  334. package/dist/esm/pds-switch.entry.js.map +1 -1
  335. package/dist/esm/pds-tab.entry.js +5 -5
  336. package/dist/esm/pds-tab.entry.js.map +1 -1
  337. package/dist/esm/pds-table-body.entry.js +2 -2
  338. package/dist/esm/pds-table-body.entry.js.map +1 -1
  339. package/dist/esm/pds-table-cell.entry.js +4 -4
  340. package/dist/esm/pds-table-cell.entry.js.map +1 -1
  341. package/dist/esm/pds-table-head-cell.entry.js +5 -5
  342. package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
  343. package/dist/esm/pds-table-head.entry.js +3 -3
  344. package/dist/esm/pds-table-head.entry.js.map +1 -1
  345. package/dist/esm/pds-table-row.entry.js +3 -3
  346. package/dist/esm/pds-table-row.entry.js.map +1 -1
  347. package/dist/esm/pds-table.entry.js +2 -2
  348. package/dist/esm/pds-table.entry.js.map +1 -1
  349. package/dist/esm/pds-tabpanel.entry.js +3 -3
  350. package/dist/esm/pds-tabpanel.entry.js.map +1 -1
  351. package/dist/esm/pds-tabs.entry.js +3 -3
  352. package/dist/esm/pds-tabs.entry.js.map +1 -1
  353. package/dist/esm/pds-text.entry.js +37 -0
  354. package/dist/esm/pds-text.entry.js.map +1 -0
  355. package/dist/esm/pds-textarea.entry.js +105 -16
  356. package/dist/esm/pds-textarea.entry.js.map +1 -1
  357. package/dist/esm/pds-tooltip.entry.js +15 -8
  358. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  359. package/dist/esm/pine-core.js +4 -4
  360. package/dist/esm/pine-core.js.map +1 -1
  361. package/dist/esm/utils-5e425aaf.js +21 -0
  362. package/dist/esm/utils-5e425aaf.js.map +1 -0
  363. package/dist/esm-es5/attributes-fe2c8c91.js +2 -0
  364. package/dist/esm-es5/attributes-fe2c8c91.js.map +1 -0
  365. package/dist/esm-es5/form-1b7b69e3.js +2 -0
  366. package/dist/esm-es5/form-1b7b69e3.js.map +1 -0
  367. package/dist/esm-es5/index-24f87b75.js +2 -0
  368. package/dist/esm-es5/index-24f87b75.js.map +1 -0
  369. package/dist/esm-es5/index-b1696fed.js +3 -0
  370. package/dist/esm-es5/index-b1696fed.js.map +1 -0
  371. package/dist/esm-es5/index.js +1 -1
  372. package/dist/esm-es5/loader.js +1 -1
  373. package/dist/esm-es5/loader.js.map +1 -1
  374. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  375. package/dist/esm-es5/pds-accordion.entry.js.map +1 -1
  376. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  377. package/dist/esm-es5/pds-avatar.entry.js.map +1 -1
  378. package/dist/esm-es5/pds-box.entry.js +1 -1
  379. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  380. package/dist/esm-es5/pds-button.entry.js +1 -1
  381. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  382. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  383. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  384. package/dist/esm-es5/pds-chip.entry.js +1 -1
  385. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  386. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  387. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  388. package/dist/esm-es5/pds-divider.entry.js +1 -1
  389. package/dist/esm-es5/pds-divider.entry.js.map +1 -1
  390. package/dist/esm-es5/pds-icon.entry.js +1 -1
  391. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  392. package/dist/esm-es5/pds-image.entry.js +1 -1
  393. package/dist/esm-es5/pds-image.entry.js.map +1 -1
  394. package/dist/esm-es5/pds-input.entry.js +1 -1
  395. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  396. package/dist/esm-es5/pds-link.entry.js +1 -1
  397. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  398. package/dist/esm-es5/pds-loader.entry.js +1 -1
  399. package/dist/esm-es5/pds-loader.entry.js.map +1 -1
  400. package/dist/esm-es5/pds-popover.entry.js +2 -0
  401. package/dist/esm-es5/pds-popover.entry.js.map +1 -0
  402. package/dist/esm-es5/pds-progress.entry.js +1 -1
  403. package/dist/esm-es5/pds-progress.entry.js.map +1 -1
  404. package/dist/esm-es5/pds-radio.entry.js +1 -1
  405. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  406. package/dist/esm-es5/pds-row.entry.js +1 -1
  407. package/dist/esm-es5/pds-row.entry.js.map +1 -1
  408. package/dist/esm-es5/pds-select.entry.js +2 -0
  409. package/dist/esm-es5/pds-select.entry.js.map +1 -0
  410. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  411. package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -1
  412. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  413. package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
  414. package/dist/esm-es5/pds-switch.entry.js +1 -1
  415. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  416. package/dist/esm-es5/pds-tab.entry.js +1 -1
  417. package/dist/esm-es5/pds-tab.entry.js.map +1 -1
  418. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  419. package/dist/esm-es5/pds-table-body.entry.js.map +1 -1
  420. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  421. package/dist/esm-es5/pds-table-cell.entry.js.map +1 -1
  422. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  423. package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
  424. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  425. package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
  426. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  427. package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
  428. package/dist/esm-es5/pds-table.entry.js +1 -1
  429. package/dist/esm-es5/pds-table.entry.js.map +1 -1
  430. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  431. package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -1
  432. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  433. package/dist/esm-es5/pds-tabs.entry.js.map +1 -1
  434. package/dist/esm-es5/pds-text.entry.js +2 -0
  435. package/dist/esm-es5/pds-text.entry.js.map +1 -0
  436. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  437. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  438. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  439. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  440. package/dist/esm-es5/pine-core.js +1 -1
  441. package/dist/esm-es5/pine-core.js.map +1 -1
  442. package/dist/esm-es5/utils-5e425aaf.js +2 -0
  443. package/dist/esm-es5/utils-5e425aaf.js.map +1 -0
  444. package/dist/pine-core/index.esm.js +1 -1
  445. package/dist/pine-core/p-015d990e.entry.js +2 -0
  446. package/dist/pine-core/p-015d990e.entry.js.map +1 -0
  447. package/dist/pine-core/p-017e1978.system.js +2 -0
  448. package/dist/pine-core/p-017e1978.system.js.map +1 -0
  449. package/dist/pine-core/p-036267ba.system.entry.js +2 -0
  450. package/dist/pine-core/p-036267ba.system.entry.js.map +1 -0
  451. package/dist/pine-core/p-0561fe8b.system.entry.js +2 -0
  452. package/dist/pine-core/p-0561fe8b.system.entry.js.map +1 -0
  453. package/dist/pine-core/p-06709258.system.js +2 -0
  454. package/dist/pine-core/p-06709258.system.js.map +1 -0
  455. package/dist/pine-core/{p-669c5ccd.entry.js → p-09a59e3d.entry.js} +2 -2
  456. package/dist/pine-core/p-09a59e3d.entry.js.map +1 -0
  457. package/dist/pine-core/p-0eb5831a.system.entry.js +2 -0
  458. package/dist/pine-core/p-0eb5831a.system.entry.js.map +1 -0
  459. package/dist/pine-core/{p-7c029627.system.entry.js → p-0fc74497.system.entry.js} +3 -3
  460. package/dist/pine-core/{p-7c029627.system.entry.js.map → p-0fc74497.system.entry.js.map} +1 -1
  461. package/dist/pine-core/p-0fee04db.system.entry.js +2 -0
  462. package/dist/pine-core/p-0fee04db.system.entry.js.map +1 -0
  463. package/dist/pine-core/p-1415445b.entry.js +2 -0
  464. package/dist/pine-core/p-1415445b.entry.js.map +1 -0
  465. package/dist/pine-core/{p-4cfa45e5.system.entry.js → p-1528089a.system.entry.js} +2 -2
  466. package/dist/pine-core/p-1528089a.system.entry.js.map +1 -0
  467. package/dist/pine-core/p-1701a397.entry.js +2 -0
  468. package/dist/pine-core/p-1701a397.entry.js.map +1 -0
  469. package/dist/pine-core/p-19fc96d9.entry.js +2 -0
  470. package/dist/pine-core/p-19fc96d9.entry.js.map +1 -0
  471. package/dist/pine-core/p-1e4dfcdf.system.entry.js +2 -0
  472. package/dist/pine-core/p-1e4dfcdf.system.entry.js.map +1 -0
  473. package/dist/pine-core/p-1e9f77d7.entry.js +2 -0
  474. package/dist/pine-core/p-1e9f77d7.entry.js.map +1 -0
  475. package/dist/pine-core/p-219de09d.entry.js +2 -0
  476. package/dist/pine-core/p-219de09d.entry.js.map +1 -0
  477. package/dist/pine-core/p-22caef95.entry.js +2 -0
  478. package/dist/pine-core/p-22caef95.entry.js.map +1 -0
  479. package/dist/pine-core/p-26e34f6d.system.entry.js +2 -0
  480. package/dist/pine-core/{p-41c843c5.system.entry.js.map → p-26e34f6d.system.entry.js.map} +1 -1
  481. package/dist/pine-core/p-2ca6d9cc.system.entry.js +2 -0
  482. package/dist/pine-core/{p-79625567.entry.js.map → p-2ca6d9cc.system.entry.js.map} +1 -1
  483. package/dist/pine-core/p-3c6a0b2a.system.entry.js +2 -0
  484. package/dist/pine-core/p-3c6a0b2a.system.entry.js.map +1 -0
  485. package/dist/pine-core/p-3ef3b0af.entry.js +2 -0
  486. package/dist/pine-core/p-3ef3b0af.entry.js.map +1 -0
  487. package/dist/pine-core/p-415666ba.entry.js +2 -0
  488. package/dist/pine-core/p-415666ba.entry.js.map +1 -0
  489. package/dist/pine-core/p-43a47d32.entry.js +2 -0
  490. package/dist/pine-core/p-43a47d32.entry.js.map +1 -0
  491. package/dist/pine-core/p-44b8ab50.system.entry.js +2 -0
  492. package/dist/pine-core/p-44b8ab50.system.entry.js.map +1 -0
  493. package/dist/pine-core/p-45cf2585.system.js +3 -0
  494. package/dist/pine-core/p-45cf2585.system.js.map +1 -0
  495. package/dist/pine-core/p-46fb585d.js +2 -0
  496. package/dist/pine-core/p-46fb585d.js.map +1 -0
  497. package/dist/pine-core/p-47291f05.js +2 -0
  498. package/dist/pine-core/p-47291f05.js.map +1 -0
  499. package/dist/pine-core/p-49d45f31.entry.js +2 -0
  500. package/dist/pine-core/p-49d45f31.entry.js.map +1 -0
  501. package/dist/pine-core/p-4b8c1ecc.entry.js +2 -0
  502. package/dist/pine-core/p-4b8c1ecc.entry.js.map +1 -0
  503. package/dist/pine-core/p-4f325521.entry.js +2 -0
  504. package/dist/pine-core/p-4f325521.entry.js.map +1 -0
  505. package/dist/pine-core/p-521ac753.system.js +2 -0
  506. package/dist/pine-core/p-521ac753.system.js.map +1 -0
  507. package/dist/pine-core/p-5291e641.system.entry.js +2 -0
  508. package/dist/pine-core/p-5291e641.system.entry.js.map +1 -0
  509. package/dist/pine-core/p-54d8b9e1.system.entry.js +2 -0
  510. package/dist/pine-core/p-54d8b9e1.system.entry.js.map +1 -0
  511. package/dist/pine-core/p-5c04aee0.system.js +2 -0
  512. package/dist/pine-core/p-5c04aee0.system.js.map +1 -0
  513. package/dist/pine-core/p-6165bcc6.system.entry.js +2 -0
  514. package/dist/pine-core/p-6165bcc6.system.entry.js.map +1 -0
  515. package/dist/pine-core/p-61ac9c98.system.entry.js +2 -0
  516. package/dist/pine-core/p-61ac9c98.system.entry.js.map +1 -0
  517. package/dist/pine-core/p-6929d7cb.system.entry.js +2 -0
  518. package/dist/pine-core/p-6929d7cb.system.entry.js.map +1 -0
  519. package/dist/pine-core/p-6bc160fc.entry.js +2 -0
  520. package/dist/pine-core/p-6bc160fc.entry.js.map +1 -0
  521. package/dist/pine-core/p-6de82ebd.entry.js +2 -0
  522. package/dist/pine-core/p-6de82ebd.entry.js.map +1 -0
  523. package/dist/pine-core/p-6e8f3bb4.entry.js +2 -0
  524. package/dist/pine-core/p-6e8f3bb4.entry.js.map +1 -0
  525. package/dist/pine-core/p-6f5ded84.js +2 -0
  526. package/dist/pine-core/p-6f5ded84.js.map +1 -0
  527. package/dist/pine-core/p-7594ef3d.system.entry.js +2 -0
  528. package/dist/pine-core/p-7594ef3d.system.entry.js.map +1 -0
  529. package/dist/pine-core/p-7602617b.entry.js +2 -0
  530. package/dist/pine-core/p-7602617b.entry.js.map +1 -0
  531. package/dist/pine-core/p-7905b8b8.js +2 -0
  532. package/dist/pine-core/p-7905b8b8.js.map +1 -0
  533. package/dist/pine-core/p-79dc91b9.system.entry.js +2 -0
  534. package/dist/pine-core/p-79dc91b9.system.entry.js.map +1 -0
  535. package/dist/pine-core/p-7be96da6.system.entry.js +2 -0
  536. package/dist/pine-core/p-7be96da6.system.entry.js.map +1 -0
  537. package/dist/pine-core/p-7c009a26.entry.js +2 -0
  538. package/dist/pine-core/p-7c009a26.entry.js.map +1 -0
  539. package/dist/pine-core/p-7c36d948.entry.js +2 -0
  540. package/dist/pine-core/{p-5303452a.entry.js.map → p-7c36d948.entry.js.map} +1 -1
  541. package/dist/pine-core/p-80111ce1.system.entry.js +2 -0
  542. package/dist/pine-core/p-80111ce1.system.entry.js.map +1 -0
  543. package/dist/pine-core/p-8148d557.entry.js +2 -0
  544. package/dist/pine-core/p-8148d557.entry.js.map +1 -0
  545. package/dist/pine-core/p-87fe352f.js +3 -0
  546. package/dist/pine-core/p-87fe352f.js.map +1 -0
  547. package/dist/pine-core/p-8b454b50.entry.js +2 -0
  548. package/dist/pine-core/p-8b454b50.entry.js.map +1 -0
  549. package/dist/pine-core/p-8d033c25.system.entry.js +2 -0
  550. package/dist/pine-core/p-8d033c25.system.entry.js.map +1 -0
  551. package/dist/pine-core/p-96df0855.entry.js +2 -0
  552. package/dist/pine-core/p-96df0855.entry.js.map +1 -0
  553. package/dist/pine-core/p-9b34d1b3.system.entry.js +2 -0
  554. package/dist/pine-core/p-9b34d1b3.system.entry.js.map +1 -0
  555. package/dist/pine-core/p-a7d75615.system.js +2 -0
  556. package/dist/pine-core/p-a7d75615.system.js.map +1 -0
  557. package/dist/pine-core/{p-a6b486a4.entry.js → p-a9212d32.entry.js} +3 -3
  558. package/dist/pine-core/{p-a6b486a4.entry.js.map → p-a9212d32.entry.js.map} +1 -1
  559. package/dist/pine-core/p-ad6dbf39.system.entry.js +2 -0
  560. package/dist/pine-core/p-ad6dbf39.system.entry.js.map +1 -0
  561. package/dist/pine-core/p-b60381ab.entry.js +2 -0
  562. package/dist/pine-core/p-b60381ab.entry.js.map +1 -0
  563. package/dist/pine-core/p-c49e6f45.system.entry.js +2 -0
  564. package/dist/pine-core/p-c49e6f45.system.entry.js.map +1 -0
  565. package/dist/pine-core/p-c7234372.entry.js +2 -0
  566. package/dist/pine-core/p-c7234372.entry.js.map +1 -0
  567. package/dist/pine-core/p-cb3b7c9e.system.entry.js +2 -0
  568. package/dist/pine-core/p-cb3b7c9e.system.entry.js.map +1 -0
  569. package/dist/pine-core/p-cba861d7.system.entry.js +2 -0
  570. package/dist/pine-core/p-cba861d7.system.entry.js.map +1 -0
  571. package/dist/pine-core/p-d4dff9ff.entry.js +2 -0
  572. package/dist/pine-core/p-d4dff9ff.entry.js.map +1 -0
  573. package/dist/pine-core/p-d795f31b.entry.js +2 -0
  574. package/dist/pine-core/p-d795f31b.entry.js.map +1 -0
  575. package/dist/pine-core/p-db622f8f.system.js +2 -0
  576. package/dist/pine-core/p-e6b357c6.system.entry.js +2 -0
  577. package/dist/pine-core/p-e6b357c6.system.entry.js.map +1 -0
  578. package/dist/pine-core/p-e73b841b.entry.js +2 -0
  579. package/dist/pine-core/p-e73b841b.entry.js.map +1 -0
  580. package/dist/pine-core/p-e7af9dcc.system.entry.js +2 -0
  581. package/dist/pine-core/p-e7af9dcc.system.entry.js.map +1 -0
  582. package/dist/pine-core/p-e8d3ab88.system.entry.js +2 -0
  583. package/dist/pine-core/p-e8d3ab88.system.entry.js.map +1 -0
  584. package/dist/pine-core/p-e9b57c23.entry.js +2 -0
  585. package/dist/pine-core/p-e9b57c23.entry.js.map +1 -0
  586. package/dist/pine-core/p-eb22ed9a.entry.js +2 -0
  587. package/dist/pine-core/p-eb22ed9a.entry.js.map +1 -0
  588. package/dist/pine-core/p-ee1d23e4.entry.js +2 -0
  589. package/dist/pine-core/p-ee1d23e4.entry.js.map +1 -0
  590. package/dist/pine-core/p-eefcdc9c.system.entry.js +2 -0
  591. package/dist/pine-core/p-eefcdc9c.system.entry.js.map +1 -0
  592. package/dist/pine-core/p-f3632692.system.entry.js +2 -0
  593. package/dist/pine-core/p-f3632692.system.entry.js.map +1 -0
  594. package/dist/pine-core/p-f3fe7aec.entry.js +2 -0
  595. package/dist/pine-core/p-f3fe7aec.entry.js.map +1 -0
  596. package/dist/pine-core/p-f5efebb0.system.entry.js +2 -0
  597. package/dist/pine-core/p-f5efebb0.system.entry.js.map +1 -0
  598. package/dist/pine-core/p-fab101f5.system.entry.js +2 -0
  599. package/dist/pine-core/p-fab101f5.system.entry.js.map +1 -0
  600. package/dist/pine-core/pine-core.css +1 -1
  601. package/dist/pine-core/pine-core.esm.js +1 -1
  602. package/dist/pine-core/pine-core.esm.js.map +1 -1
  603. package/dist/pine-core/pine-core.js +1 -1
  604. package/dist/pine-core/svg/access-key.svg +1 -1
  605. package/dist/pine-core/svg/add-circle.svg +1 -1
  606. package/dist/pine-core/svg/add-image.svg +1 -1
  607. package/dist/pine-core/svg/add-small.svg +1 -1
  608. package/dist/pine-core/svg/add-square.svg +1 -1
  609. package/dist/pine-core/svg/add.svg +1 -1
  610. package/dist/pine-core/svg/advanced.svg +1 -1
  611. package/dist/pine-core/svg/ai-sparkle.svg +1 -1
  612. package/dist/pine-core/svg/ai-writer-filled.svg +1 -1
  613. package/dist/pine-core/svg/ai-writer.svg +1 -1
  614. package/dist/pine-core/svg/align-center.svg +1 -1
  615. package/dist/pine-core/svg/align-horizontal-bottom.svg +1 -0
  616. package/dist/pine-core/svg/align-horizontal-center.svg +1 -0
  617. package/dist/pine-core/svg/align-horizontal-top.svg +1 -0
  618. package/dist/pine-core/svg/align-justify.svg +1 -1
  619. package/dist/pine-core/svg/align-left.svg +1 -1
  620. package/dist/pine-core/svg/align-right.svg +1 -1
  621. package/dist/pine-core/svg/align-vertical-center.svg +1 -0
  622. package/dist/pine-core/svg/align-vertical-left.svg +1 -0
  623. package/dist/pine-core/svg/align-vertical-right.svg +1 -0
  624. package/dist/pine-core/svg/app-store.svg +1 -1
  625. package/dist/pine-core/svg/archive.svg +1 -1
  626. package/dist/pine-core/svg/arrow-corner.svg +1 -1
  627. package/dist/pine-core/svg/arrow-down.svg +1 -1
  628. package/dist/pine-core/svg/arrow-left.svg +1 -1
  629. package/dist/pine-core/svg/arrow-right.svg +1 -1
  630. package/dist/pine-core/svg/arrow-up.svg +1 -1
  631. package/dist/pine-core/svg/assessment.svg +1 -1
  632. package/dist/pine-core/svg/at-sign.svg +1 -1
  633. package/dist/pine-core/svg/attach.svg +1 -1
  634. package/dist/pine-core/svg/automations.svg +1 -1
  635. package/dist/pine-core/svg/ban.svg +1 -1
  636. package/dist/pine-core/svg/bank.svg +1 -1
  637. package/dist/pine-core/svg/bar-chart-square.svg +1 -1
  638. package/dist/pine-core/svg/bar-chart-tone.svg +1 -1
  639. package/dist/pine-core/svg/bell-tone.svg +1 -1
  640. package/dist/pine-core/svg/bell.svg +1 -1
  641. package/dist/pine-core/svg/block.svg +1 -1
  642. package/dist/pine-core/svg/blog-filled.svg +1 -1
  643. package/dist/pine-core/svg/blog.svg +1 -1
  644. package/dist/pine-core/svg/bold.svg +1 -1
  645. package/dist/pine-core/svg/bookmark.svg +1 -0
  646. package/dist/pine-core/svg/broadcast.svg +1 -1
  647. package/dist/pine-core/svg/bulb.svg +1 -1
  648. package/dist/pine-core/svg/button.svg +1 -1
  649. package/dist/pine-core/svg/calendar-date.svg +1 -1
  650. package/dist/pine-core/svg/calendar-schedule.svg +1 -1
  651. package/dist/pine-core/svg/calendar-simple.svg +1 -1
  652. package/dist/pine-core/svg/card-amex.svg +1 -1
  653. package/dist/pine-core/svg/card-android.svg +1 -1
  654. package/dist/pine-core/svg/card-apple.svg +1 -1
  655. package/dist/pine-core/svg/card-diners-club.svg +1 -1
  656. package/dist/pine-core/svg/card-discover.svg +1 -1
  657. package/dist/pine-core/svg/card-generic.svg +1 -1
  658. package/dist/pine-core/svg/card-gpay.svg +1 -1
  659. package/dist/pine-core/svg/card-mastercard.svg +1 -1
  660. package/dist/pine-core/svg/card-paypal.svg +1 -1
  661. package/dist/pine-core/svg/card-stripe.svg +1 -1
  662. package/dist/pine-core/svg/card-update.svg +1 -1
  663. package/dist/pine-core/svg/card-visa.svg +1 -1
  664. package/dist/pine-core/svg/caret-down.svg +1 -1
  665. package/dist/pine-core/svg/caret-left.svg +1 -1
  666. package/dist/pine-core/svg/caret-right.svg +1 -1
  667. package/dist/pine-core/svg/caret-up.svg +1 -1
  668. package/dist/pine-core/svg/cart-add.svg +1 -1
  669. package/dist/pine-core/svg/cart.svg +1 -1
  670. package/dist/pine-core/svg/certificate.svg +1 -1
  671. package/dist/pine-core/svg/chart-filled.svg +1 -1
  672. package/dist/pine-core/svg/chart.svg +1 -1
  673. package/dist/pine-core/svg/check-circle-filled.svg +1 -1
  674. package/dist/pine-core/svg/check-circle.svg +1 -1
  675. package/dist/pine-core/svg/check.svg +1 -1
  676. package/dist/pine-core/svg/circle-1.svg +1 -1
  677. package/dist/pine-core/svg/circle-2.svg +1 -1
  678. package/dist/pine-core/svg/circle-3.svg +1 -1
  679. package/dist/pine-core/svg/circle-4.svg +1 -1
  680. package/dist/pine-core/svg/circle-5.svg +1 -1
  681. package/dist/pine-core/svg/circle-6.svg +1 -1
  682. package/dist/pine-core/svg/circle-7.svg +1 -1
  683. package/dist/pine-core/svg/circle-8.svg +1 -1
  684. package/dist/pine-core/svg/circle-9.svg +1 -1
  685. package/dist/pine-core/svg/circle-a.svg +1 -1
  686. package/dist/pine-core/svg/circle-b.svg +1 -1
  687. package/dist/pine-core/svg/circle-dashed.svg +1 -1
  688. package/dist/pine-core/svg/clapperboard-tone.svg +1 -1
  689. package/dist/pine-core/svg/clock.svg +1 -1
  690. package/dist/pine-core/svg/closed-captions.svg +1 -1
  691. package/dist/pine-core/svg/cloud-upload.svg +1 -1
  692. package/dist/pine-core/svg/code-block.svg +1 -1
  693. package/dist/pine-core/svg/code.svg +1 -1
  694. package/dist/pine-core/svg/color.svg +1 -1
  695. package/dist/pine-core/svg/columns.svg +1 -1
  696. package/dist/pine-core/svg/comment-no.svg +1 -1
  697. package/dist/pine-core/svg/comment.svg +1 -1
  698. package/dist/pine-core/svg/connect.svg +1 -1
  699. package/dist/pine-core/svg/contact.svg +1 -1
  700. package/dist/pine-core/svg/conversation.svg +1 -1
  701. package/dist/pine-core/svg/copy-07.svg +1 -0
  702. package/dist/pine-core/svg/copy.svg +1 -1
  703. package/dist/pine-core/svg/coupon.svg +1 -1
  704. package/dist/pine-core/svg/course-filled.svg +1 -1
  705. package/dist/pine-core/svg/course.svg +1 -1
  706. package/dist/pine-core/svg/creator-studio-filled.svg +1 -1
  707. package/dist/pine-core/svg/creator-studio.svg +1 -1
  708. package/dist/pine-core/svg/credit-card-tone.svg +1 -1
  709. package/dist/pine-core/svg/cube-tone.svg +1 -1
  710. package/dist/pine-core/svg/cursor-pointer.svg +1 -1
  711. package/dist/pine-core/svg/cursor.svg +1 -1
  712. package/dist/pine-core/svg/custom-field.svg +1 -1
  713. package/dist/pine-core/svg/customize.svg +1 -1
  714. package/dist/pine-core/svg/danger-filled.svg +1 -1
  715. package/dist/pine-core/svg/danger.svg +1 -1
  716. package/dist/pine-core/svg/delete-circle.svg +1 -1
  717. package/dist/pine-core/svg/delete-key.svg +1 -1
  718. package/dist/pine-core/svg/delete-x.svg +1 -1
  719. package/dist/pine-core/svg/dollar.svg +1 -1
  720. package/dist/pine-core/svg/dot-menu-horizontal.svg +1 -1
  721. package/dist/pine-core/svg/dots-horizontal-tone.svg +1 -1
  722. package/dist/pine-core/svg/down-small.svg +1 -1
  723. package/dist/pine-core/svg/download.svg +1 -1
  724. package/dist/pine-core/svg/downsell.svg +1 -1
  725. package/dist/pine-core/svg/draft.svg +1 -1
  726. package/dist/pine-core/svg/drawer-collapse.svg +1 -1
  727. package/dist/pine-core/svg/drawer-expand.svg +1 -1
  728. package/dist/pine-core/svg/drop.svg +1 -1
  729. package/dist/pine-core/svg/duplicate.svg +1 -1
  730. package/dist/pine-core/svg/editor-filled.svg +1 -1
  731. package/dist/pine-core/svg/editor.svg +1 -1
  732. package/dist/pine-core/svg/email-activity.svg +1 -1
  733. package/dist/pine-core/svg/emoji.svg +1 -1
  734. package/dist/pine-core/svg/enlarge-vertical.svg +1 -1
  735. package/dist/pine-core/svg/enlarge.svg +1 -1
  736. package/dist/pine-core/svg/expand.svg +1 -1
  737. package/dist/pine-core/svg/favorite.svg +1 -1
  738. package/dist/pine-core/svg/feedback.svg +1 -1
  739. package/dist/pine-core/svg/file-add.svg +1 -1
  740. package/dist/pine-core/svg/file-download.svg +1 -1
  741. package/dist/pine-core/svg/file-lock.svg +1 -1
  742. package/dist/pine-core/svg/file-money.svg +1 -1
  743. package/dist/pine-core/svg/file-search.svg +1 -0
  744. package/dist/pine-core/svg/file.svg +1 -1
  745. package/dist/pine-core/svg/filter.svg +1 -1
  746. package/dist/pine-core/svg/flag.svg +1 -1
  747. package/dist/pine-core/svg/flash-filled.svg +1 -1
  748. package/dist/pine-core/svg/flash.svg +1 -1
  749. package/dist/pine-core/svg/floppy-disk.svg +1 -1
  750. package/dist/pine-core/svg/folder-group.svg +1 -1
  751. package/dist/pine-core/svg/folder.svg +1 -1
  752. package/dist/pine-core/svg/form-field.svg +1 -1
  753. package/dist/pine-core/svg/form-filled.svg +1 -1
  754. package/dist/pine-core/svg/form.svg +1 -1
  755. package/dist/pine-core/svg/fullscreen.svg +1 -1
  756. package/dist/pine-core/svg/funnel.svg +1 -1
  757. package/dist/pine-core/svg/gear-filled.svg +1 -1
  758. package/dist/pine-core/svg/gear.svg +1 -1
  759. package/dist/pine-core/svg/gift-tone.svg +1 -1
  760. package/dist/pine-core/svg/grant-offer.svg +1 -1
  761. package/dist/pine-core/svg/handle-2-vertical.svg +1 -1
  762. package/dist/pine-core/svg/handle-2.svg +1 -1
  763. package/dist/pine-core/svg/handle.svg +1 -1
  764. package/dist/pine-core/svg/hashtag.svg +1 -1
  765. package/dist/pine-core/svg/hd-video.svg +1 -1
  766. package/dist/pine-core/svg/heading-1.svg +1 -1
  767. package/dist/pine-core/svg/heading-2.svg +1 -1
  768. package/dist/pine-core/svg/heading-3.svg +1 -1
  769. package/dist/pine-core/svg/heading-4.svg +1 -1
  770. package/dist/pine-core/svg/heading-5.svg +1 -1
  771. package/dist/pine-core/svg/heading-6.svg +1 -1
  772. package/dist/pine-core/svg/heading-large.svg +1 -1
  773. package/dist/pine-core/svg/heading-small.svg +1 -1
  774. package/dist/pine-core/svg/headphones.svg +1 -0
  775. package/dist/pine-core/svg/headset-tone.svg +1 -1
  776. package/dist/pine-core/svg/headset.svg +1 -1
  777. package/dist/pine-core/svg/help-filled.svg +1 -1
  778. package/dist/pine-core/svg/help.svg +1 -1
  779. package/dist/pine-core/svg/home-alt.svg +1 -1
  780. package/dist/pine-core/svg/home-filled.svg +1 -1
  781. package/dist/pine-core/svg/home-tone.svg +1 -1
  782. package/dist/pine-core/svg/home.svg +1 -1
  783. package/dist/pine-core/svg/horizontal-line.svg +1 -1
  784. package/dist/pine-core/svg/image.svg +1 -1
  785. package/dist/pine-core/svg/info-circle-filled.svg +1 -1
  786. package/dist/pine-core/svg/info-circle.svg +1 -1
  787. package/dist/pine-core/svg/ios-battery.svg +1 -1
  788. package/dist/pine-core/svg/ios-data.svg +1 -1
  789. package/dist/pine-core/svg/ios-wifi.svg +1 -1
  790. package/dist/pine-core/svg/italic.svg +1 -1
  791. package/dist/pine-core/svg/kajabi-filled.svg +1 -1
  792. package/dist/pine-core/svg/kajabi.svg +1 -1
  793. package/dist/pine-core/svg/keyboard-01.svg +1 -0
  794. package/dist/pine-core/svg/klarna.svg +1 -1
  795. package/dist/pine-core/svg/lab.svg +1 -1
  796. package/dist/pine-core/svg/launch.svg +1 -1
  797. package/dist/pine-core/svg/layout-bottom.svg +1 -0
  798. package/dist/pine-core/svg/layout-grid-02.svg +1 -0
  799. package/dist/pine-core/svg/layout-grid.svg +1 -1
  800. package/dist/pine-core/svg/layout-list.svg +1 -1
  801. package/dist/pine-core/svg/layout-top.svg +1 -0
  802. package/dist/pine-core/svg/left-small.svg +1 -1
  803. package/dist/pine-core/svg/list-bullet.svg +1 -1
  804. package/dist/pine-core/svg/list-details.svg +1 -1
  805. package/dist/pine-core/svg/list-numbers.svg +1 -1
  806. package/dist/pine-core/svg/location.svg +1 -1
  807. package/dist/pine-core/svg/lock-alt.svg +1 -1
  808. package/dist/pine-core/svg/lock.svg +1 -1
  809. package/dist/pine-core/svg/logo-afterpay.svg +1 -1
  810. package/dist/pine-core/svg/logo-facebook-round.svg +1 -1
  811. package/dist/pine-core/svg/logo-facebook.svg +1 -1
  812. package/dist/pine-core/svg/logo-instagram.svg +1 -1
  813. package/dist/pine-core/svg/logo-linkedin.svg +1 -1
  814. package/dist/pine-core/svg/logo-snapchat.svg +1 -0
  815. package/dist/pine-core/svg/logo-tiktok.svg +1 -1
  816. package/dist/pine-core/svg/logo-twitter-x.svg +1 -1
  817. package/dist/pine-core/svg/logo-twitter.svg +1 -1
  818. package/dist/pine-core/svg/logo-youtube.svg +1 -1
  819. package/dist/pine-core/svg/loop.svg +1 -1
  820. package/dist/pine-core/svg/mail-filled.svg +1 -1
  821. package/dist/pine-core/svg/mail-open.svg +1 -1
  822. package/dist/pine-core/svg/mail-tone.svg +1 -1
  823. package/dist/pine-core/svg/mail.svg +1 -1
  824. package/dist/pine-core/svg/map.svg +1 -1
  825. package/dist/pine-core/svg/mapped.svg +1 -1
  826. package/dist/pine-core/svg/margin-left.svg +1 -1
  827. package/dist/pine-core/svg/margin-right.svg +1 -1
  828. package/dist/pine-core/svg/marker-filled.svg +1 -1
  829. package/dist/pine-core/svg/marker.svg +1 -1
  830. package/dist/pine-core/svg/megaphone-filled.svg +1 -1
  831. package/dist/pine-core/svg/megaphone.svg +1 -1
  832. package/dist/pine-core/svg/menu-alt.svg +1 -1
  833. package/dist/pine-core/svg/menu-bordered.svg +1 -1
  834. package/dist/pine-core/svg/menu.svg +1 -1
  835. package/dist/pine-core/svg/merge.svg +1 -1
  836. package/dist/pine-core/svg/message-text-square-02.svg +1 -0
  837. package/dist/pine-core/svg/microphone-off.svg +1 -1
  838. package/dist/pine-core/svg/microphone.svg +1 -1
  839. package/dist/pine-core/svg/monitor-filled.svg +1 -1
  840. package/dist/pine-core/svg/monitor-tone.svg +1 -1
  841. package/dist/pine-core/svg/monitor.svg +1 -1
  842. package/dist/pine-core/svg/more-menu-filled.svg +1 -1
  843. package/dist/pine-core/svg/more-menu.svg +1 -1
  844. package/dist/pine-core/svg/move-left.svg +1 -1
  845. package/dist/pine-core/svg/move-right.svg +1 -1
  846. package/dist/pine-core/svg/multi-pay.svg +1 -1
  847. package/dist/pine-core/svg/music-note-01.svg +1 -0
  848. package/dist/pine-core/svg/newsletter-2.svg +1 -1
  849. package/dist/pine-core/svg/newsletter.svg +1 -1
  850. package/dist/pine-core/svg/one-off-session.svg +1 -1
  851. package/dist/pine-core/svg/one-time.svg +1 -1
  852. package/dist/pine-core/svg/packages.svg +1 -1
  853. package/dist/pine-core/svg/pause-circle.svg +1 -1
  854. package/dist/pine-core/svg/pause.svg +1 -1
  855. package/dist/pine-core/svg/payout.svg +1 -1
  856. package/dist/pine-core/svg/pen.svg +1 -1
  857. package/dist/pine-core/svg/phone-portrait.svg +1 -1
  858. package/dist/pine-core/svg/phone-tone.svg +1 -1
  859. package/dist/pine-core/svg/phone-toolbar-filled.svg +1 -1
  860. package/dist/pine-core/svg/phone-toolbar.svg +1 -1
  861. package/dist/pine-core/svg/pie-chart-filled.svg +1 -0
  862. package/dist/pine-core/svg/play-circle.svg +1 -1
  863. package/dist/pine-core/svg/play-outline.svg +1 -1
  864. package/dist/pine-core/svg/play-store.svg +1 -1
  865. package/dist/pine-core/svg/play.svg +1 -1
  866. package/dist/pine-core/svg/plug.svg +1 -1
  867. package/dist/pine-core/svg/plus-square.svg +1 -0
  868. package/dist/pine-core/svg/premium.svg +1 -1
  869. package/dist/pine-core/svg/present.svg +1 -1
  870. package/dist/pine-core/svg/preview-off.svg +1 -1
  871. package/dist/pine-core/svg/preview-on.svg +1 -1
  872. package/dist/pine-core/svg/product-filled.svg +1 -1
  873. package/dist/pine-core/svg/product.svg +1 -1
  874. package/dist/pine-core/svg/question-circle.svg +1 -1
  875. package/dist/pine-core/svg/quote.svg +1 -1
  876. package/dist/pine-core/svg/redo.svg +1 -1
  877. package/dist/pine-core/svg/refresh.svg +1 -1
  878. package/dist/pine-core/svg/remove-circle.svg +1 -1
  879. package/dist/pine-core/svg/remove.svg +1 -1
  880. package/dist/pine-core/svg/rename.svg +1 -1
  881. package/dist/pine-core/svg/reset-password.svg +1 -1
  882. package/dist/pine-core/svg/restore.svg +1 -1
  883. package/dist/pine-core/svg/right-small.svg +1 -1
  884. package/dist/pine-core/svg/rocket-filled.svg +1 -1
  885. package/dist/pine-core/svg/rocket-tone.svg +1 -1
  886. package/dist/pine-core/svg/rocket.svg +1 -1
  887. package/dist/pine-core/svg/round-dollar.svg +1 -1
  888. package/dist/pine-core/svg/rows.svg +1 -1
  889. package/dist/pine-core/svg/scissor.svg +1 -1
  890. package/dist/pine-core/svg/screen-share-off.svg +1 -1
  891. package/dist/pine-core/svg/screen-share-on.svg +1 -1
  892. package/dist/pine-core/svg/search-md-tone.svg +1 -1
  893. package/dist/pine-core/svg/search-small.svg +1 -1
  894. package/dist/pine-core/svg/search.svg +1 -1
  895. package/dist/pine-core/svg/send-message.svg +1 -1
  896. package/dist/pine-core/svg/sequences.svg +1 -1
  897. package/dist/pine-core/svg/settings-tone.svg +1 -1
  898. package/dist/pine-core/svg/share.svg +1 -1
  899. package/dist/pine-core/svg/shopping-cart-filled.svg +1 -0
  900. package/dist/pine-core/svg/skipped.svg +1 -1
  901. package/dist/pine-core/svg/slash-divider.svg +1 -1
  902. package/dist/pine-core/svg/speaker.svg +1 -1
  903. package/dist/pine-core/svg/square-dollar.svg +1 -0
  904. package/dist/pine-core/svg/stack.svg +1 -1
  905. package/dist/pine-core/svg/star-03.svg +1 -0
  906. package/dist/pine-core/svg/star-filled.svg +1 -0
  907. package/dist/pine-core/svg/star.svg +1 -1
  908. package/dist/pine-core/svg/stars-tone.svg +1 -1
  909. package/dist/pine-core/svg/stop.svg +1 -1
  910. package/dist/pine-core/svg/stopwatch.svg +1 -1
  911. package/dist/pine-core/svg/strikethrough.svg +1 -1
  912. package/dist/pine-core/svg/subscript.svg +1 -1
  913. package/dist/pine-core/svg/subscriptions.svg +1 -1
  914. package/dist/pine-core/svg/super-admin.svg +1 -1
  915. package/dist/pine-core/svg/superscript.svg +1 -1
  916. package/dist/pine-core/svg/sync.svg +1 -1
  917. package/dist/pine-core/svg/tablet-landscape.svg +1 -1
  918. package/dist/pine-core/svg/tablet-portrait.svg +1 -1
  919. package/dist/pine-core/svg/tag-filled.svg +1 -1
  920. package/dist/pine-core/svg/tag.svg +1 -1
  921. package/dist/pine-core/svg/text-styles.svg +1 -1
  922. package/dist/pine-core/svg/theme-store-filled.svg +1 -1
  923. package/dist/pine-core/svg/theme-store.svg +1 -1
  924. package/dist/pine-core/svg/thumb-down-filled.svg +1 -1
  925. package/dist/pine-core/svg/thumb-down.svg +1 -1
  926. package/dist/pine-core/svg/thumb-up-filled.svg +1 -1
  927. package/dist/pine-core/svg/thumb-up.svg +1 -1
  928. package/dist/pine-core/svg/trash.svg +1 -1
  929. package/dist/pine-core/svg/trend-down.svg +1 -0
  930. package/dist/pine-core/svg/trend-none.svg +1 -0
  931. package/dist/pine-core/svg/trend-up.svg +1 -0
  932. package/dist/pine-core/svg/trophy-filled.svg +1 -1
  933. package/dist/pine-core/svg/trophy.svg +1 -1
  934. package/dist/pine-core/svg/type.svg +1 -0
  935. package/dist/pine-core/svg/underline.svg +1 -1
  936. package/dist/pine-core/svg/undo.svg +1 -1
  937. package/dist/pine-core/svg/unlock.svg +1 -1
  938. package/dist/pine-core/svg/unmapped.svg +1 -1
  939. package/dist/pine-core/svg/up-small.svg +1 -1
  940. package/dist/pine-core/svg/upload.svg +1 -1
  941. package/dist/pine-core/svg/url.svg +1 -1
  942. package/dist/pine-core/svg/user-circle-filled.svg +1 -1
  943. package/dist/pine-core/svg/user-circle.svg +1 -1
  944. package/dist/pine-core/svg/user-filled.svg +1 -1
  945. package/dist/pine-core/svg/user-star-filled.svg +1 -1
  946. package/dist/pine-core/svg/user-star.svg +1 -1
  947. package/dist/pine-core/svg/user.svg +1 -1
  948. package/dist/pine-core/svg/users-alt.svg +1 -1
  949. package/dist/pine-core/svg/users-filled.svg +1 -1
  950. package/dist/pine-core/svg/users-tone.svg +1 -1
  951. package/dist/pine-core/svg/users.svg +1 -1
  952. package/dist/pine-core/svg/video-off.svg +1 -1
  953. package/dist/pine-core/svg/video-on.svg +1 -1
  954. package/dist/pine-core/svg/warning-filled.svg +1 -1
  955. package/dist/pine-core/svg/warning.svg +1 -1
  956. package/dist/pine-core/svg/window-paragraph.svg +1 -1
  957. package/dist/pine-core/svg/world.svg +1 -1
  958. package/dist/pine-core/svg/wrench.svg +1 -1
  959. package/dist/types/components/pds-accordion/pds-accordion.d.ts +1 -0
  960. package/dist/types/components/pds-box/pds-box.d.ts +16 -1
  961. package/dist/types/components/pds-button/pds-button.d.ts +41 -10
  962. package/dist/types/components/pds-chip/pds-chip.d.ts +8 -8
  963. package/dist/types/components/pds-copytext/pds-copytext.d.ts +3 -3
  964. package/dist/types/components/pds-divider/pds-divider.d.ts +1 -1
  965. package/dist/types/components/pds-image/pds-image.d.ts +7 -3
  966. package/dist/types/components/pds-input/input-interface.d.ts +12 -0
  967. package/dist/types/components/pds-input/pds-input.d.ts +70 -8
  968. package/dist/types/components/pds-link/pds-link.d.ts +7 -11
  969. package/dist/types/components/pds-popover/pds-popover.d.ts +45 -0
  970. package/dist/types/components/pds-radio/pds-radio.d.ts +11 -11
  971. package/dist/types/components/pds-select/pds-select.d.ts +91 -0
  972. package/dist/types/components/pds-switch/pds-switch.d.ts +11 -19
  973. package/dist/types/components/pds-table/pds-table-cell/pds-table-cell.d.ts +4 -0
  974. package/dist/types/components/pds-table/pds-table-head/pds-table-head.d.ts +5 -2
  975. package/dist/types/components/pds-table/pds-table-head-cell/pds-table-head-cell.d.ts +9 -1
  976. package/dist/types/components/pds-table/pds-table-row/pds-table-row.d.ts +3 -3
  977. package/dist/types/components/pds-table/pds-table.d.ts +11 -3
  978. package/dist/types/components/pds-tabs/pds-tabs.d.ts +1 -1
  979. package/dist/types/components/pds-text/pds-text.d.ts +39 -0
  980. package/dist/types/components/pds-textarea/pds-textarea.d.ts +72 -15
  981. package/dist/types/components/pds-textarea/textarea-interface.d.ts +5 -1
  982. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +7 -9
  983. package/dist/types/components.d.ts +663 -151
  984. package/dist/types/stencil-public-runtime.d.ts +6 -0
  985. package/dist/types/utils/attributes.d.ts +10 -0
  986. package/dist/types/utils/types.d.ts +1 -1
  987. package/dist/types/utils/utils.d.ts +3 -1
  988. package/hydrate/index.d.ts +6 -0
  989. package/hydrate/index.js +1277 -398
  990. package/hydrate/index.mjs +1277 -398
  991. package/package.json +16 -14
  992. package/readme.md +1 -1
  993. package/components/pds-label.js.map +0 -1
  994. package/dist/cjs/index-479f5bd8.js +0 -24
  995. package/dist/cjs/index-479f5bd8.js.map +0 -1
  996. package/dist/cjs/index-d4ec6246.js.map +0 -1
  997. package/dist/cjs/pds-label-73bb5bd3.js.map +0 -1
  998. package/dist/esm/index-9f0e742f.js.map +0 -1
  999. package/dist/esm/index-9f8fe796.js +0 -14
  1000. package/dist/esm/index-9f8fe796.js.map +0 -1
  1001. package/dist/esm/pds-label-c806218b.js.map +0 -1
  1002. package/dist/esm-es5/index-9f0e742f.js +0 -3
  1003. package/dist/esm-es5/index-9f0e742f.js.map +0 -1
  1004. package/dist/esm-es5/index-9f8fe796.js +0 -2
  1005. package/dist/esm-es5/index-9f8fe796.js.map +0 -1
  1006. package/dist/esm-es5/pds-label-c806218b.js +0 -2
  1007. package/dist/esm-es5/pds-label-c806218b.js.map +0 -1
  1008. package/dist/pine-core/p-06f526e5.system.js +0 -2
  1009. package/dist/pine-core/p-06f526e5.system.js.map +0 -1
  1010. package/dist/pine-core/p-0bf48e12.entry.js +0 -2
  1011. package/dist/pine-core/p-0bf48e12.entry.js.map +0 -1
  1012. package/dist/pine-core/p-12e1c54f.entry.js +0 -2
  1013. package/dist/pine-core/p-12e1c54f.entry.js.map +0 -1
  1014. package/dist/pine-core/p-16b74124.system.js +0 -2
  1015. package/dist/pine-core/p-16b74124.system.js.map +0 -1
  1016. package/dist/pine-core/p-20dae7d1.system.entry.js +0 -2
  1017. package/dist/pine-core/p-20dae7d1.system.entry.js.map +0 -1
  1018. package/dist/pine-core/p-2837aec3.system.entry.js +0 -2
  1019. package/dist/pine-core/p-2837aec3.system.entry.js.map +0 -1
  1020. package/dist/pine-core/p-2bce244c.entry.js +0 -2
  1021. package/dist/pine-core/p-2bce244c.entry.js.map +0 -1
  1022. package/dist/pine-core/p-307b87fc.system.entry.js +0 -2
  1023. package/dist/pine-core/p-307b87fc.system.entry.js.map +0 -1
  1024. package/dist/pine-core/p-30895edd.system.entry.js +0 -2
  1025. package/dist/pine-core/p-30895edd.system.entry.js.map +0 -1
  1026. package/dist/pine-core/p-3487fe4a.entry.js +0 -2
  1027. package/dist/pine-core/p-3487fe4a.entry.js.map +0 -1
  1028. package/dist/pine-core/p-373bf876.js +0 -2
  1029. package/dist/pine-core/p-373bf876.js.map +0 -1
  1030. package/dist/pine-core/p-41c843c5.system.entry.js +0 -2
  1031. package/dist/pine-core/p-4262c8d0.system.entry.js +0 -2
  1032. package/dist/pine-core/p-4262c8d0.system.entry.js.map +0 -1
  1033. package/dist/pine-core/p-43c37135.entry.js +0 -2
  1034. package/dist/pine-core/p-43c37135.entry.js.map +0 -1
  1035. package/dist/pine-core/p-45df80d3.entry.js +0 -2
  1036. package/dist/pine-core/p-45df80d3.entry.js.map +0 -1
  1037. package/dist/pine-core/p-479fd128.system.entry.js +0 -2
  1038. package/dist/pine-core/p-479fd128.system.entry.js.map +0 -1
  1039. package/dist/pine-core/p-4868ffe2.entry.js +0 -2
  1040. package/dist/pine-core/p-4868ffe2.entry.js.map +0 -1
  1041. package/dist/pine-core/p-4cfa45e5.system.entry.js.map +0 -1
  1042. package/dist/pine-core/p-4e5423ec.entry.js +0 -2
  1043. package/dist/pine-core/p-4e5423ec.entry.js.map +0 -1
  1044. package/dist/pine-core/p-5303452a.entry.js +0 -2
  1045. package/dist/pine-core/p-59a88d32.entry.js +0 -2
  1046. package/dist/pine-core/p-59a88d32.entry.js.map +0 -1
  1047. package/dist/pine-core/p-5d35d9bc.system.entry.js +0 -2
  1048. package/dist/pine-core/p-5d35d9bc.system.entry.js.map +0 -1
  1049. package/dist/pine-core/p-5dab0de3.system.entry.js +0 -2
  1050. package/dist/pine-core/p-5dab0de3.system.entry.js.map +0 -1
  1051. package/dist/pine-core/p-60622df4.entry.js +0 -2
  1052. package/dist/pine-core/p-60622df4.entry.js.map +0 -1
  1053. package/dist/pine-core/p-6293581d.system.entry.js +0 -2
  1054. package/dist/pine-core/p-6293581d.system.entry.js.map +0 -1
  1055. package/dist/pine-core/p-63eacc4c.entry.js +0 -2
  1056. package/dist/pine-core/p-63eacc4c.entry.js.map +0 -1
  1057. package/dist/pine-core/p-64a079d4.entry.js +0 -2
  1058. package/dist/pine-core/p-64a079d4.entry.js.map +0 -1
  1059. package/dist/pine-core/p-64ec41b5.system.entry.js +0 -2
  1060. package/dist/pine-core/p-64ec41b5.system.entry.js.map +0 -1
  1061. package/dist/pine-core/p-669c5ccd.entry.js.map +0 -1
  1062. package/dist/pine-core/p-74931ca7.entry.js +0 -2
  1063. package/dist/pine-core/p-74931ca7.entry.js.map +0 -1
  1064. package/dist/pine-core/p-766e4212.system.entry.js +0 -2
  1065. package/dist/pine-core/p-766e4212.system.entry.js.map +0 -1
  1066. package/dist/pine-core/p-79625567.entry.js +0 -2
  1067. package/dist/pine-core/p-7bc0b531.js +0 -2
  1068. package/dist/pine-core/p-7bc0b531.js.map +0 -1
  1069. package/dist/pine-core/p-7e7de1d6.js +0 -3
  1070. package/dist/pine-core/p-7e7de1d6.js.map +0 -1
  1071. package/dist/pine-core/p-7ed5ef61.system.entry.js +0 -2
  1072. package/dist/pine-core/p-7ed5ef61.system.entry.js.map +0 -1
  1073. package/dist/pine-core/p-80efeb1b.entry.js +0 -2
  1074. package/dist/pine-core/p-80efeb1b.entry.js.map +0 -1
  1075. package/dist/pine-core/p-8233b878.system.entry.js +0 -2
  1076. package/dist/pine-core/p-8233b878.system.entry.js.map +0 -1
  1077. package/dist/pine-core/p-82a927d0.system.entry.js +0 -2
  1078. package/dist/pine-core/p-82a927d0.system.entry.js.map +0 -1
  1079. package/dist/pine-core/p-84e37a4c.entry.js +0 -2
  1080. package/dist/pine-core/p-84e37a4c.entry.js.map +0 -1
  1081. package/dist/pine-core/p-9071a673.system.entry.js +0 -2
  1082. package/dist/pine-core/p-9071a673.system.entry.js.map +0 -1
  1083. package/dist/pine-core/p-9229e03e.system.entry.js +0 -2
  1084. package/dist/pine-core/p-9229e03e.system.entry.js.map +0 -1
  1085. package/dist/pine-core/p-94a76b90.system.entry.js +0 -2
  1086. package/dist/pine-core/p-94a76b90.system.entry.js.map +0 -1
  1087. package/dist/pine-core/p-967ab4b1.system.entry.js +0 -2
  1088. package/dist/pine-core/p-967ab4b1.system.entry.js.map +0 -1
  1089. package/dist/pine-core/p-99c6c7fe.system.js +0 -2
  1090. package/dist/pine-core/p-a58de843.system.entry.js +0 -2
  1091. package/dist/pine-core/p-a58de843.system.entry.js.map +0 -1
  1092. package/dist/pine-core/p-ad7f960d.system.entry.js +0 -2
  1093. package/dist/pine-core/p-ad7f960d.system.entry.js.map +0 -1
  1094. package/dist/pine-core/p-b491e677.entry.js +0 -2
  1095. package/dist/pine-core/p-b491e677.entry.js.map +0 -1
  1096. package/dist/pine-core/p-b4f7b883.system.entry.js +0 -2
  1097. package/dist/pine-core/p-b4f7b883.system.entry.js.map +0 -1
  1098. package/dist/pine-core/p-b4fb6072.system.entry.js +0 -2
  1099. package/dist/pine-core/p-b4fb6072.system.entry.js.map +0 -1
  1100. package/dist/pine-core/p-b8cbff05.system.entry.js +0 -2
  1101. package/dist/pine-core/p-b8cbff05.system.entry.js.map +0 -1
  1102. package/dist/pine-core/p-b94d28cc.entry.js +0 -2
  1103. package/dist/pine-core/p-b94d28cc.entry.js.map +0 -1
  1104. package/dist/pine-core/p-c644e0b4.system.entry.js +0 -2
  1105. package/dist/pine-core/p-c644e0b4.system.entry.js.map +0 -1
  1106. package/dist/pine-core/p-cb0cccca.entry.js +0 -2
  1107. package/dist/pine-core/p-cb0cccca.entry.js.map +0 -1
  1108. package/dist/pine-core/p-d0948e17.entry.js +0 -2
  1109. package/dist/pine-core/p-d0948e17.entry.js.map +0 -1
  1110. package/dist/pine-core/p-d20f4c1d.system.js +0 -3
  1111. package/dist/pine-core/p-d20f4c1d.system.js.map +0 -1
  1112. package/dist/pine-core/p-dd40be84.entry.js +0 -2
  1113. package/dist/pine-core/p-dd40be84.entry.js.map +0 -1
  1114. package/dist/pine-core/p-e339312d.entry.js +0 -2
  1115. package/dist/pine-core/p-e339312d.entry.js.map +0 -1
  1116. package/dist/pine-core/p-e52afdbe.entry.js +0 -2
  1117. package/dist/pine-core/p-e52afdbe.entry.js.map +0 -1
  1118. package/dist/pine-core/p-e705a6ad.system.entry.js +0 -2
  1119. package/dist/pine-core/p-e705a6ad.system.entry.js.map +0 -1
  1120. package/dist/pine-core/p-e8874481.system.entry.js +0 -2
  1121. package/dist/pine-core/p-e8874481.system.entry.js.map +0 -1
  1122. package/dist/pine-core/p-ed4e6972.entry.js +0 -2
  1123. package/dist/pine-core/p-ed4e6972.entry.js.map +0 -1
  1124. package/dist/pine-core/p-f2e0fc56.entry.js +0 -2
  1125. package/dist/pine-core/p-f2e0fc56.entry.js.map +0 -1
  1126. package/dist/pine-core/p-f5597dce.entry.js +0 -2
  1127. package/dist/pine-core/p-f5597dce.entry.js.map +0 -1
  1128. package/dist/pine-core/p-f86af20f.system.js +0 -2
  1129. package/dist/pine-core/p-f86af20f.system.js.map +0 -1
  1130. package/dist/pine-core/p-f8c08ca7.system.entry.js +0 -2
  1131. package/dist/pine-core/p-f8c08ca7.system.entry.js.map +0 -1
  1132. package/dist/pine-core/p-f954f3af.entry.js +0 -2
  1133. package/dist/pine-core/p-f954f3af.entry.js.map +0 -1
  1134. /package/dist/pine-core/{p-99c6c7fe.system.js.map → p-db622f8f.system.js.map} +0 -0
@@ -1 +1 @@
1
- {"version":3,"names":["pdsInputCss","PdsInputStyle0","PdsInput","this","onInputEvent","ev","input","target","_this","value","pdsInput","emit","prototype","render","h","Host","key","disabled","class","PdsLabel","htmlFor","componentId","text","label","assignDescription","invalid","helperMessage","undefined","id","name","placeholder","readOnly","readonly","required","type","onInput","messageId","errorMessage"],"sources":["src/components/pds-input/pds-input.scss?tag=pds-input&encapsulation=shadow","src/components/pds-input/pds-input.tsx"],"sourcesContent":[":host {\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);\n --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-red-200);\n\n --color-text-default: var(--pine-color-grey-950);\n --color-background-disabled: var(--pine-color-grey-100);\n --color-border-default: var(--pine-color-grey-400);\n --color-border-error: var(--pine-color-red-300);\n --color-border-hover: var(--pine-color-grey-500);\n --color-disabled-text: var(--pine-color-grey-500);\n --color-placeholder-text: var(--pine-color-grey-700);\n\n --font-size-helper-message: var(--pine-font-size-100);\n --font-size-input-field: var(--pine-font-size-100);\n --font-size-label: var(--pine-font-size-100);\n --font-weight-helper-message: var(--pine-font-weight-normal);\n --font-weight-input-field: var(--pine-font-weight-normal);\n --font-weight-label: var(--pine-font-weight-medium);\n\n --line-height-label: var(--pine-line-height-150);\n --line-height-helper-message: var(--pine-line-height-125);\n --line-height-input-field: var(--pine-line-height-150);\n\n --spacing-field-padding-block: var(--pine-spacing-100);\n --spacing-input-field-padding-inline: var(--pine-spacing-200);\n --spacing-label-margin-block-end: var(--pine-spacing-100);\n --spacing-margin-top-helper-message: var(--pine-spacing-100);\n\n display: inline;\n}\n\n.pds-input {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\n font-size: var(--font-size-label);\n font-weight: var(--font-weight-label);\n line-height: var(--line-height-label);\n margin-block-end: var(--spacing-label-margin-block-end);\n}\n\ninput {\n border: 1px solid var(--color-border-default);\n border-radius: 10px;\n font-size: var(--font-size-input-field);\n font-weight: var(--font-weight-input-field);\n line-height: var(--line-height-input-field);\n padding: var(--spacing-field-padding-block) var(--spacing-input-field-padding-inline);\n\n &:disabled {\n background-color: var(--color-background-disabled);\n color: var(--color-disabled-text);\n cursor: not-allowed;\n }\n\n &:hover {\n border-color: var(--color-border-hover);\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n /* stylelint-disable */\n &::-webkit-input-placeholder {\n color: var(--color-placeholder-text);\n }\n\n &::-moz-placeholder {\n color: var(--color-placeholder-text);\n }\n\n &::-moz-placeholder {\n color: var(--color-placeholder-text);\n }\n\n &:-ms-input-placeholder {\n color: var(--color-placeholder-text);\n }\n\n &:has(~.pds-input__error-message) {\n border-color: var(--color-border-error);\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n outline: none;\n }\n }\n /* stylelint-enable */\n}\n\n.pds-input__error-message,\n.pds-input__helper-message {\n font-size: var(--font-size-helper-message);\n font-weight: var(--font-weight-helper-message);\n line-height: var(--line-height-helper-message);\n margin-block-end: 0;\n margin-block-start: var(--spacing-margin-top-helper-message);\n}\n\n.pds-input__error-message {\n color: var(--color-error);\n}\n","import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-input',\n styleUrl: 'pds-input.scss',\n shadow: true,\n})\nexport class PdsInput {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the input field is disabled.\n */\n @Prop() disabled?: boolean;\n\n /**\n * Specifies the error message and provides an error-themed treatment to the field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the input field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Indicates whether or not the input field is invalid or throws an error.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the input label.\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name?: string;\n\n /**\n * Specifies a short hint that describes the expected value of the input field.\n */\n @Prop() placeholder?: string;\n\n /**\n * Indicates whether or not the input field is readonly.\n */\n @Prop() readonly?: boolean;\n\n /**\n * Indicates whether or not the input field is required.\n */\n @Prop() required?: boolean;\n\n /**\n * Determines the type of control that will be displayed\n `'email'`, `'number'`, `'password'`, `'tel'`, `'text'`\n * @defaultValue \"text\"\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Emitted when a keyboard input occurred.\n */\n @Event() pdsInput: EventEmitter<InputEvent>;\n\n private onInputEvent = (ev: Event) => {\n const input = ev.target as HTMLInputElement | null;\n if (input) {\n this.value = input.value || '';\n }\n this.pdsInput.emit(ev as InputEvent);\n };\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-input\">\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n <input class=\"pds-input__field\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n type={this.type}\n value={this.value}\n onInput={this.onInputEvent}\n />\n {this.helperMessage &&\n <p\n class=\"pds-input__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.errorMessage &&\n <p\n class=\"pds-input__error-message\"\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"6KAAA,IAAMA,YAAc,27FACpB,IAAAC,eAAeD,Y,ICQFE,SAAQ,W,+FAoEXC,KAAAC,aAAe,SAACC,GACtB,IAAMC,EAAQD,EAAGE,OACjB,GAAID,EAAO,CACTE,EAAKC,MAAQH,EAAMG,OAAS,E,CAE9BD,EAAKE,SAASC,KAAKN,E,mQAjBN,O,qBAoBfH,EAAAU,UAAAC,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2DACYb,KAAKc,SAAW,OAAS,MAExCH,EAAA,OAAAE,IAAA,2CAAKE,MAAM,aACTJ,EAACK,SAAQ,CAAAH,IAAA,2CAACI,QAASjB,KAAKkB,YAAaC,KAAMnB,KAAKoB,QAChDT,EAAA,SAAAE,IAAA,2CAAOE,MAAM,mBAAkB,mBACXM,kBAAkBrB,KAAKkB,YAAalB,KAAKsB,QAAStB,KAAKuB,eAAc,eACzEvB,KAAKsB,QAAU,OAASE,UACtCV,SAAUd,KAAKc,SACfW,GAAIzB,KAAKkB,YACTQ,KAAM1B,KAAK0B,KACXC,YAAa3B,KAAK2B,YAClBC,SAAU5B,KAAK6B,SACfC,SAAU9B,KAAK8B,SACfC,KAAM/B,KAAK+B,KACXzB,MAAON,KAAKM,MACZ0B,QAAShC,KAAKC,eAEfD,KAAKuB,eACJZ,EAAA,KAAAE,IAAA,2CACEE,MAAM,4BACNU,GAAIQ,UAAUjC,KAAKkB,YAAa,WAE/BlB,KAAKuB,eAGTvB,KAAKkC,cACJvB,EAAA,KAAAE,IAAA,2CACEE,MAAM,2BACNU,GAAIQ,UAAUjC,KAAKkB,YAAa,SAAQ,YAC9B,aAETlB,KAAKkC,e,WA9GC,G","ignoreList":[]}
1
+ {"version":3,"names":["pdsInputTokensCss","PdsInputStyle0","labelCss","PdsInputStyle1","pdsInputCss","PdsInputStyle2","PdsInput","this","inheritedAttributes","isComposing","onInputEvent","ev","input","target","_this","value","emitInputChange","onChangeEvent","emitValueChange","onBlurEvent","hasFocus","focusedValue","pdsBlur","emit","onFocusEvent","pdsFocus","onCompositionStart","onCompositionEnd","class_1","prototype","setFocus","nativeInput","focus","debounceChanged","_a","pdsInput","debounce","originalPdsInput","undefined","debounceEvent","valueChanged","getValue","toString","event","newValue","pdsChange","componentWillLoad","Object","assign","inheritAriaAttributes","el","componentDidLoad","inputClassNames","classNames","invalid","push","join","render","h","Host","key","disabled","readonly","class","label","htmlFor","componentId","ref","assignDescription","helperMessage","autocomplete","id","name","placeholder","readOnly","required","type","onInput","onChange","onBlur","onFocus","onCompositionstart","onCompositionend","messageId","errorMessage","icon","danger","size"],"sources":["src/components/pds-input/pds-input.tokens.scss?tag=pds-input&encapsulation=shadow","src/global/styles/utils/label.scss?tag=pds-input&encapsulation=shadow","src/components/pds-input/pds-input.scss?tag=pds-input&encapsulation=shadow","src/components/pds-input/pds-input.tsx"],"sourcesContent":["/**\n * Do not edit directly, this file was auto-generated.\n */\n\n:host {\n --pine-input-color-background-danger: var(--pine-color-red-050);\n}\n",":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n",":host {\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);\n --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);\n\n display: inline;\n}\n\n:host([aria-readonly=\"true\"]) {\n input {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-readonly);\n }\n}\n\n.pds-input {\n display: flex;\n flex-direction: column;\n}\n\n.pds-input__label {\n margin-block-end: var(--pine-dimension-2xs)\n}\n\n.pds-input__field {\n background: var(--pine-color-background-container);\n border: 1px solid var(--pine-color-border);\n border-radius: var(--pine-dimension-125);\n color: var(--pine-color-text-active);\n font: var(--pine-typography-body);\n letter-spacing: var(--pine-letter-spacing);\n padding: var(--pine-dimension-xs) var(--pine-dimension-sm);\n\n &:hover:not(:disabled, .is-invalid) {\n border: var(--pine-border-hover);\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n\n /* stylelint-disable */\n &::-webkit-input-placeholder {\n color: var(--pine-color-text-placeholder-disabled);\n }\n\n &::-moz-placeholder {\n color: var(--pine-color-text-placeholder-disabled);\n }\n\n &::-moz-placeholder {\n color: var(--pine-color-text-placeholder-disabled);\n }\n\n &:-ms-input-placeholder {\n color: var(--pine-color-text-placeholder-disabled);\n }\n /* stylelint-enable */\n }\n\n &:hover {\n border-color: var(--pine-color-border-hover);\n }\n\n &:focus-visible {\n border-color: var(--pine-color-border-active);\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n /* stylelint-disable */\n &::-webkit-input-placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &::-moz-placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &::-moz-placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &:-ms-input-placeholder {\n color: var(--pine-color-text-placeholder);\n }\n /* stylelint-enable */\n\n &.is-invalid {\n background-color: var(--pine-input-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n }\n }\n}\n\n.pds-input__error-message,\n.pds-input__helper-message {\n font: var(--pine-typography-body-sm-medium);\n margin-block-end: 0;\n margin-block-start: var(--pine-dimension-2xs)\n}\n\n.pds-input__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n","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"],"mappings":"qXAAA,IAAMA,kBAAoB,wEAC1B,IAAAC,eAAeD,kBCDf,IAAME,SAAW,qTACjB,IAAAC,eAAeD,SCDf,IAAME,YAAc,6rFACpB,IAAAC,eAAeD,Y,ICcFE,SAAQ,W,sOAEXC,KAAAC,oBAAkC,GAClCD,KAAAE,YAAc,MAmJdF,KAAAG,aAAe,SAACC,GACtB,IAAMC,EAAQD,EAAGE,OACjB,GAAID,EAAO,CACTE,EAAKC,MAAQH,EAAMG,OAAS,E,CAE9BD,EAAKE,gBAAgBL,E,EAGfJ,KAAAU,cAAgB,SAACN,GACvBG,EAAKI,gBAAgBP,E,EAGfJ,KAAAY,YAAc,SAACR,GACrBG,EAAKM,SAAW,MAEhB,GAAIN,EAAKO,eAAiBP,EAAKC,MAAO,CAKpCD,EAAKI,gBAAgBP,E,CAGvBG,EAAKQ,QAAQC,KAAKZ,E,EAGZJ,KAAAiB,aAAe,SAACb,GACtBG,EAAKM,SAAW,KAChBN,EAAKO,aAAeP,EAAKC,MAEzBD,EAAKW,SAASF,KAAKZ,E,EAGbJ,KAAAmB,mBAAqB,WAC3BZ,EAAKL,YAAc,I,EAGbF,KAAAoB,iBAAmB,WACzBb,EAAKL,YAAc,K,uTA5EN,O,WAKyC,G,cAKpC,K,CAjFdmB,EAAAC,UAAAC,SAAN,W,qFACE,GAAKvB,KAAKwB,YAAc,CACtBxB,KAAKwB,YAAYC,O,kBAmFXJ,EAAAC,UAAAI,gBAAA,WACF,IAAAC,EAA2C3B,KAAzC4B,EAAQD,EAAAC,SAAEC,EAAQF,EAAAE,SAAEC,EAAgBH,EAAAG,iBAM5C9B,KAAK4B,SAAWC,IAAaE,UAAYD,IAAgB,MAAhBA,SAAgB,EAAhBA,EAAoBF,EAAWI,cAAcJ,EAAUC,E,EAIxFR,EAAAC,UAAAW,aAAA,WACR,IAAMT,EAAcxB,KAAKwB,YACzB,IAAMhB,EAAQR,KAAKkC,WAEnB,GAAIV,GAAeA,EAAYhB,QAAUA,IAAUR,KAAKE,YAAa,CACnEsB,EAAYhB,MAAQA,C,GAIhBa,EAAAC,UAAAY,SAAA,WACN,cAAclC,KAAKQ,QAAU,SAAWR,KAAKQ,MAAM2B,YAAcnC,KAAKQ,OAAS,IAAI2B,U,EA+C7Ed,EAAAC,UAAAX,gBAAA,SAAgByB,GACd,IAAA5B,EAAUR,KAAIQ,MACtB,IAAM6B,EAAW7B,GAAS,KAAOA,EAAQA,EAAM2B,WAE/CnC,KAAKc,aAAeuB,EACpBrC,KAAKsC,UAAUtB,KAAK,CAAER,MAAO6B,EAAUD,MAAKA,G,EAOtCf,EAAAC,UAAAb,gBAAA,SAAgB2B,GACd,IAAA5B,EAAUR,KAAIQ,MAGtB,IAAM6B,EAAW7B,GAAS,KAAOA,EAAQA,EAAM2B,WAE/CnC,KAAK4B,SAASZ,KAAK,CAAER,MAAO6B,EAAUD,MAAKA,G,EAI7Cf,EAAAC,UAAAiB,kBAAA,WACEvC,KAAKC,oBAAmBuC,OAAAC,OAAA,GACnBC,sBAAsB1C,KAAK2C,I,EAIlCtB,EAAAC,UAAAsB,iBAAA,WACE5C,KAAK0B,iB,EAGCL,EAAAC,UAAAuB,gBAAA,WACN,IAAMC,EAAa,CAAC,oBAEpB,GAAI9C,KAAK+C,SAAW/C,KAAK+C,UAAY,KAAM,CACzCD,EAAWE,KAAK,a,CAGlB,OAAOF,EAAWG,KAAK,K,EAGzB5B,EAAAC,UAAA4B,OAAA,eAAA3C,EAAAP,KACE,OACEmD,EAACC,KAAI,CAAAC,IAAA,2DACYrD,KAAKsD,SAAW,OAAS,KAAI,gBAC7BtD,KAAKuD,SAAW,OAAS,MAExCJ,EAAA,OAAAE,IAAA,2CAAKG,MAAM,aACRxD,KAAKyD,OACJN,EAAA,SAAAE,IAAA,2CAAOG,MAAM,mBAAmBE,QAAS1D,KAAK2D,aAAc3D,KAAKyD,OAEnEN,EAAA,QAAAX,OAAAC,OAAA,CAAAY,IAAA,2CACEG,MAAOxD,KAAK6C,kBACZe,IAAK,SAACvD,GAAU,OAAAE,EAAKiB,YAAcnB,CAAnB,EAAwB,mBACtBwD,kBAAkB7D,KAAK2D,YAAa3D,KAAK+C,QAAS/C,KAAK8D,eAAc,eACzE9D,KAAK+C,QAAU,OAAShB,UACtCgC,aAAc/D,KAAK+D,aACnBT,SAAUtD,KAAKsD,SACfU,GAAIhE,KAAK2D,YACTM,KAAMjE,KAAKiE,KACXC,YAAalE,KAAKkE,YAClBC,SAAUnE,KAAKuD,SACfa,SAAUpE,KAAKoE,SACfC,KAAMrE,KAAKqE,KACX7D,MAAOR,KAAKQ,MACZ8D,QAAStE,KAAKG,aACdoE,SAAUvE,KAAKU,cACf8D,OAAQxE,KAAKY,YACb6D,QAASzE,KAAKiB,aACdyD,mBAAoB1E,KAAKmB,mBACzBwD,iBAAkB3E,KAAKoB,kBACnBpB,KAAKC,sBAEVD,KAAK8D,eACJX,EAAA,KAAAE,IAAA,2CACEG,MAAM,4BACNQ,GAAIY,UAAU5E,KAAK2D,YAAa,WAE/B3D,KAAK8D,eAGT9D,KAAK6E,cACJ1B,EAAA,KAAAE,IAAA,2CACEG,MAAM,2BACNQ,GAAIY,UAAU5E,KAAK2D,YAAa,SAAQ,YAC9B,aAEVR,EAAA,YAAAE,IAAA,2CAAUyB,KAAMC,OAAQC,KAAK,UAC5BhF,KAAK6E,e,qRA3RC,G","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h}from"./index-9f0e742f.js";import{l as launch}from"./index-9f8fe796.js";var pdsLinkCss=":host{--border-outline:4px solid var(--pine-color-blue-200);--border-radius:var(--pine-border-radius-075);--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);--color-text-default:var(--pine-color-grey-900);--font-size:var(--pine-font-size-100);--font-size-sm:var(--pine-font-size-085);--font-size-xs:var(--pine-font-size-085);--font-weight:var(--pine-font-weight-medium);--spacing-inline-start-margin:var(--pine-spacing-050);--sizing-svg-lg:15px;--sizing-svg-md:13px;--sizing-svg-sm:11px;display:inline}:host pds-icon{-webkit-margin-start:var(--spacing-inline-start-margin);margin-inline-start:var(--spacing-inline-start-margin)}.pds-link{-ms-flex-align:center;align-items:center;color:var(--color-text);display:-ms-inline-flexbox;display:inline-flex;font-weight:inherit}.pds-link:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none;position:relative}.pds-link--sm{font-size:var(--font-size-xs)}.pds-link--sm pds-icon{height:var(--sizing-svg-sm);width:var(--sizing-svg-sm)}.pds-link--md{font-size:var(--font-size-sm)}.pds-link--md pds-icon{height:var(--sizing-svg-md);width:var(--sizing-svg-md)}.pds-link--lg{font-size:var(--font-size)}.pds-link--lg pds-icon{height:var(--sizing-svg-lg);width:var(--sizing-svg-lg)}.pds-link--plain{font-weight:var(--font-weight);text-decoration:none}.pds-link--plain:hover{text-decoration:underline}.pds-link--default{text-decoration:underline}.pds-link--default:hover{text-decoration:none}";var PdsLinkStyle0=pdsLinkCss;var PdsLink=function(){function i(i){registerInstance(this,i);this.componentId=undefined;this.external=false;this.variant="inline";this.fontSize="lg";this.href=undefined}i.prototype.classNames=function(){var i=["pds-link"];if(this.fontSize){i.push("pds-link--"+this.fontSize)}if(this.variant){i.push("pds-link--"+this.variant)}return i.join(" ")};i.prototype.render=function(){return h("a",{key:"de51c27a4c7e3ab6f105f40b683f7c8d1561049c",class:this.classNames(),href:this.href,id:this.componentId,target:this.external?"_blank":undefined,part:"link"},h("slot",{key:"3c4fbcff6544a604d81dd4388a504a902d6ee130"},this.href),this.external&&h("pds-icon",{key:"fd1acc513efd16134c062ad3845d44be20a911cf",icon:launch,size:this.fontSize}))};return i}();PdsLink.style=PdsLinkStyle0;export{PdsLink as pds_link};
1
+ import{r as registerInstance,h}from"./index-b1696fed.js";import{l as launch}from"./index-24f87b75.js";var pdsLinkCss=":host{--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);display:inline}:host pds-icon{-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs)}.pds-link{-ms-flex-align:center;align-items:center;color:var(--pine-color-text);display:-ms-inline-flexbox;display:inline-flex;font-weight:var(--pine-font-weight-medium)}.pds-link:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none;position:relative}.pds-link--sm{font-size:var(--pine-font-size-body-xs)}.pds-link--sm pds-icon{height:var(--pine-dimension-xs);width:var(--pine-dimension-xs)}.pds-link--md{font-size:var(--pine-font-size-body-sm)}.pds-link--md pds-icon{height:var(--pine-dimension-xs);width:var(--pine-dimension-xs)}.pds-link--lg{font-size:var(--pine-font-size-body-md)}.pds-link--lg pds-icon{height:var(--pine-dimension-sm);width:var(--pine-dimension-sm)}.pds-link--plain{text-decoration:none}.pds-link--plain:hover{color:var(--pine-color-text-hover);text-decoration:underline}.pds-link--default{text-decoration:underline}.pds-link--default:hover{color:var(--pine-color-text-hover);text-decoration:none}";var PdsLinkStyle0=pdsLinkCss;var PdsLink=function(){function i(i){registerInstance(this,i);this.componentId=undefined;this.external=false;this.variant="inline";this.fontSize="lg";this.href=undefined}i.prototype.classNames=function(){var i=["pds-link"];if(this.fontSize){i.push("pds-link--"+this.fontSize)}if(this.variant){i.push("pds-link--"+this.variant)}return i.join(" ")};i.prototype.render=function(){return h("a",{key:"7ac75452091305e238c20ef1fc2055fe2f34fb04",class:this.classNames(),href:this.href,id:this.componentId,target:this.external?"_blank":undefined,part:"link"},h("slot",{key:"8f21b34931f85867b91e7c6c3fcc1952b9c430cd"},this.href),this.external&&h("pds-icon",{key:"60f1d607df5bf4cac7a9786f1560702719e73ff5",icon:launch,size:this.fontSize}))};return i}();PdsLink.style=PdsLinkStyle0;export{PdsLink as pds_link};
2
2
  //# sourceMappingURL=pds-link.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pdsLinkCss","PdsLinkStyle0","PdsLink","prototype","classNames","this","fontSize","push","variant","join","render","h","key","class","href","id","componentId","target","external","undefined","part","icon","launch","size"],"sources":["src/components/pds-link/pds-link.scss?tag=pds-link&encapsulation=shadow","src/components/pds-link/pds-link.tsx"],"sourcesContent":[":host {\n\n --border-outline: 4px solid var(--pine-color-blue-200);\n --border-radius: var(--pine-border-radius-075);\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);\n\n --color-text-default: var(--pine-color-grey-900);\n\n --font-size: var(--pine-font-size-100);\n --font-size-sm: var(--pine-font-size-085);\n --font-size-xs: var(--pine-font-size-085);\n --font-weight: var(--pine-font-weight-medium);\n\n --spacing-inline-start-margin: var(--pine-spacing-050);\n --sizing-svg-lg: 15px;\n --sizing-svg-md: 13px;\n --sizing-svg-sm: 11px;\n\n display: inline;\n\n pds-icon {\n margin-inline-start: var(--spacing-inline-start-margin);\n }\n}\n\n.pds-link {\n align-items: center;\n color: var(--color-text);\n display: inline-flex;\n font-weight: inherit;\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n position: relative;\n }\n}\n\n// We have a small consensus stating that\n// fonts will be REMs, box-model will be\n// discussed later px or (r)em's\n.pds-link--sm {\n font-size: var(--font-size-xs);\n\n pds-icon {\n height: var(--sizing-svg-sm);\n width: var(--sizing-svg-sm);\n }\n}\n\n.pds-link--md {\n font-size: var(--font-size-sm);\n\n pds-icon {\n height: var(--sizing-svg-md);\n width: var(--sizing-svg-md);\n }\n}\n\n.pds-link--lg {\n font-size: var(--font-size);\n\n pds-icon {\n height: var(--sizing-svg-lg);\n width: var(--sizing-svg-lg);\n }\n}\n\n.pds-link--plain {\n font-weight: var(--font-weight);\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n }\n}\n\n// Default = inline link\n.pds-link--default {\n text-decoration: underline;\n\n &:hover {\n text-decoration: none;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\nimport { launch } from '@pine-ds/icons/icons';\n\n/**\n * @part link - The main link element that represents the link component.\n * @slot - Content is placed between the opening closing tags.\n */\n@Component({\n tag: 'pds-link',\n styleUrl: 'pds-link.scss',\n shadow: true,\n})\nexport class PdsLink {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * When enabled, opens link in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n *\n * Modifies the look of the link\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n *\n * The Font size follows t-shirt model\n * sm: 12px\n * md: 14px\n * lg: 16px\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The URL that the hyperlink points to.\n */\n @Prop() href!: string;\n\n private classNames() {\n const classNames = ['pds-link'];\n\n if (this.fontSize) {\n classNames.push('pds-link--' + this.fontSize);\n }\n\n if (this.variant) {\n classNames.push('pds-link--' + this.variant);\n }\n\n return classNames.join(' ');\n }\n\n render() {\n\n return (\n <a\n class={this.classNames()}\n href={this.href}\n id={this.componentId}\n target={this.external ? '_blank' : undefined}\n part=\"link\"\n >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon icon={launch} size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"],"mappings":"sGAAA,IAAMA,WAAa,g+CACnB,IAAAC,cAAeD,W,ICYFE,QAAO,W,gFAUC,M,aAMmB,S,cAUC,K,oBAO/BA,EAAAC,UAAAC,WAAA,WACN,IAAMA,EAAa,CAAC,YAEpB,GAAIC,KAAKC,SAAU,CACjBF,EAAWG,KAAK,aAAeF,KAAKC,S,CAGtC,GAAID,KAAKG,QAAS,CAChBJ,EAAWG,KAAK,aAAeF,KAAKG,Q,CAGtC,OAAOJ,EAAWK,KAAK,I,EAGzBP,EAAAC,UAAAO,OAAA,WAEE,OACEC,EAAA,KAAAC,IAAA,2CACEC,MAAOR,KAAKD,aACZU,KAAMT,KAAKS,KACXC,GAAIV,KAAKW,YACTC,OAAQZ,KAAKa,SAAW,SAAWC,UACnCC,KAAK,QAELT,EAAA,QAAAC,IAAA,4CAAOP,KAAKS,MACXT,KAAKa,UACJP,EAAA,YAAAC,IAAA,2CAAUS,KAAMC,OAAQC,KAAMlB,KAAKC,W,WA3DzB,G","ignoreList":[]}
1
+ {"version":3,"names":["pdsLinkCss","PdsLinkStyle0","PdsLink","prototype","classNames","this","fontSize","push","variant","join","render","h","key","class","href","id","componentId","target","external","undefined","part","icon","launch","size"],"sources":["src/components/pds-link/pds-link.scss?tag=pds-link&encapsulation=shadow","src/components/pds-link/pds-link.tsx"],"sourcesContent":[":host {\n\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);\n\n display: inline;\n\n pds-icon {\n margin-inline-start: var(--pine-dimension-2xs);\n }\n}\n\n.pds-link {\n align-items: center;\n color: var(--pine-color-text);\n display: inline-flex;\n font-weight: var(--pine-font-weight-medium);\n\n &:focus-visible {\n // outline: var(--pine-border-focus); Border radius for outline does not work in Safari\n box-shadow: var(--box-shadow-focus); // Remove when outline radius is supported in Safari\n outline: none;\n position: relative;\n }\n}\n\n// We have a small consensus stating that\n// fonts will be REMs, box-model will be\n// discussed later px or (r)em's\n.pds-link--sm {\n font-size: var(--pine-font-size-body-xs);\n\n pds-icon {\n height: var(--pine-dimension-xs);\n width: var(--pine-dimension-xs);\n }\n}\n\n.pds-link--md {\n font-size: var(--pine-font-size-body-sm);\n\n pds-icon {\n height: var(--pine-dimension-xs);\n width: var(--pine-dimension-xs);\n }\n}\n\n.pds-link--lg {\n font-size: var(--pine-font-size-body-md);\n\n pds-icon {\n height: var(--pine-dimension-sm);\n width: var(--pine-dimension-sm);\n }\n}\n\n.pds-link--plain {\n text-decoration: none;\n\n &:hover {\n color: var(--pine-color-text-hover);\n text-decoration: underline;\n }\n}\n\n// Default = inline link\n.pds-link--default {\n text-decoration: underline;\n\n &:hover {\n color: var(--pine-color-text-hover);\n text-decoration: none;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\nimport { launch } from '@pine-ds/icons/icons';\n\n/**\n * @part link - Link element styles.\n * @slot (default) - Text content placed between the opening and closing tags. If no text is provided, the **href** will be used as a fallback.\n */\n@Component({\n tag: 'pds-link',\n styleUrls: ['pds-link.scss'],\n shadow: true,\n})\nexport class PdsLink {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether the link should open in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n * Sets the link variant styles.\n * @defaultValue inline\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n * The font size of the link's text.\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The hyperlink's destination URL. If no text is provided in the custom slot, the href will be used.\n */\n @Prop() href!: string;\n\n private classNames() {\n const classNames = ['pds-link'];\n\n if (this.fontSize) {\n classNames.push('pds-link--' + this.fontSize);\n }\n\n if (this.variant) {\n classNames.push('pds-link--' + this.variant);\n }\n\n return classNames.join(' ');\n }\n\n render() {\n\n return (\n <a\n class={this.classNames()}\n href={this.href}\n id={this.componentId}\n target={this.external ? '_blank' : undefined}\n part=\"link\"\n >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon icon={launch} size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"],"mappings":"sGAAA,IAAMA,WAAa,4pCACnB,IAAAC,cAAeD,W,ICYFE,QAAO,W,gFAUC,M,aAMmB,S,cAMC,K,oBAO/BA,EAAAC,UAAAC,WAAA,WACN,IAAMA,EAAa,CAAC,YAEpB,GAAIC,KAAKC,SAAU,CACjBF,EAAWG,KAAK,aAAeF,KAAKC,S,CAGtC,GAAID,KAAKG,QAAS,CAChBJ,EAAWG,KAAK,aAAeF,KAAKG,Q,CAGtC,OAAOJ,EAAWK,KAAK,I,EAGzBP,EAAAC,UAAAO,OAAA,WAEE,OACEC,EAAA,KAAAC,IAAA,2CACEC,MAAOR,KAAKD,aACZU,KAAMT,KAAKS,KACXC,GAAIV,KAAKW,YACTC,OAAQZ,KAAKa,SAAW,SAAWC,UACnCC,KAAK,QAELT,EAAA,QAAAC,IAAA,4CAAOP,KAAKS,MACXT,KAAKa,UACJP,EAAA,YAAAC,IAAA,2CAAUS,KAAMC,OAAQC,KAAMlB,KAAKC,W,WAvDzB,G","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9f0e742f.js";var pdsLoaderCss=":host{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--pine-spacing-100)}:host(.pds-loader--hidden),.pds-loader--hidden{border-width:0;clip:rect(0, 0, 0, 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-loader--spinner svg{--color-background-spinner:var(--pine-color-blue-300);--number-spinner-timing:2s;--number-spinner-path-timing:1.5s;-webkit-animation:rotate var(--number-spinner-timing) linear infinite;animation:rotate var(--number-spinner-timing) linear infinite;block-size:var(--sizing-spinner);color:var(--color-background-spinner);inline-size:var(--sizing-spinner)}.pds-loader__spinner-path{stroke-width:8px}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.pds-loader--typing{--border-radius-typing:var(--pine-border-radius-200);--border-radius-typing-dot:var(--pine-border-radius-round);--box-shadow-typing:var(--pine-box-shadow-100);--color-background-typing-default:var(--pine-color-grey-200);--color-background-typing-dot-default:var(--pine-color-grey-500);--number-typing-timing:1s;--opacity-typing-dot-default:0.4;--opacity-typing-dot-active:1;--sizing-typing-dot:calc(var(--pine-spacing-150) / 2);--spacing-typing-gap:var(--pine-spacing-050);--spacing-typing-margin-block:var(--pine-spacing-0);--spacing-typing-margin-inline:auto;--spacing-typing-padding-block:15px;--spacing-typing-padding-inline:var(--pine-spacing-250);-ms-flex-align:center;align-items:center;background-color:var(--color-background-typing-default);border-radius:var(--border-radius-typing);-webkit-box-shadow:var(--box-shadow-typing);box-shadow:var(--box-shadow-typing);display:-ms-inline-flexbox;display:inline-flex;gap:var(--spacing-typing-gap);margin-block:var(--spacing-typing-margin-block);margin-inline:var(--spacing-typing-margin-inline);padding-block:var(--spacing-typing-padding-block);padding-inline:var(--spacing-typing-padding-inline);position:relative}.pds-loader--typing span{background-color:var(--color-background-typing-dot-default);block-size:var(--sizing-typing-dot);border-radius:var(--border-radius-typing-dot);inline-size:var(--sizing-typing-dot);opacity:var(--opacity-typing-dot-default)}.pds-loader--typing span:nth-of-type(1){-webkit-animation:var(--number-typing-timing) typing infinite 0.3333s;animation:var(--number-typing-timing) typing infinite 0.3333s}.pds-loader--typing span:nth-of-type(2){-webkit-animation:var(--number-typing-timing) typing infinite 0.6666s;animation:var(--number-typing-timing) typing infinite 0.6666s}.pds-loader--typing span:nth-of-type(3){-webkit-animation:var(--number-typing-timing) typing infinite 0.9999s;animation:var(--number-typing-timing) typing infinite 0.9999s}@-webkit-keyframes typing{50%{opacity:var(--opacity-typing-dot-active);-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes typing{50%{opacity:var(--opacity-typing-dot-active);-webkit-transform:scale(1.2);transform:scale(1.2)}}.pds-loader__label{--typography-label-default:var(--pine-font-weight-semi-bold) var(--pine-font-size-100)/var(--pine-line-height-150) var(--pine-font-family-circular);font:var(--typography-label-default)}";var PdsLoaderStyle0=pdsLoaderCss;var PdsLoader=function(){function i(i){var a=this;registerInstance(this,i);this.style=function(){if(a.size!==undefined){return{height:a.loaderSize(),width:a.loaderSize()}}};this.isLoading=true;this.showLabel=false;this.size="md";this.variant="spinner"}i.prototype.loaderSize=function(){var i={xs:"24px",sm:"32px",md:"48px",lg:"64px",xl:"80px"};if(i[this.size]){return i[this.size]}else{return this.size}};i.prototype.render=function(){return h(Host,{key:"325b4512d1455cb90d4897e91453c4ec2370ddcb",class:"pds-loader ".concat(this.isLoading?"":"pds-loader--hidden"),"aria-hidden":!this.isLoading,"aria-busy":this.isLoading,"aria-live":"polite"},this.variant==="spinner"&&h("div",{key:"eed858cd8518769874e7ca6d5265f3e1e77164f3",class:"pds-loader--spinner"},h("svg",{key:"fc821517a5923628ef96c8e37b9987c0ba3b987b",style:this.style(),viewBox:"0 0 200 200",fill:"none"},h("defs",{key:"f477b8f7be973a6a5b068b6758d6f549404e64c4"},h("linearGradient",{key:"4979634cfecdca7ef5818f23577b401aa8991389",id:"spinner-secondHalf"},h("stop",{key:"ae4667b10205baa8dec8b7affd34d78273ad9667",offset:"0%","stop-opacity":"0","stop-color":"currentColor"}),h("stop",{key:"3d66bc5180831487e9e2591cc2b436f9b8cc855e",offset:"100%","stop-opacity":"0.5","stop-color":"currentColor"})),h("linearGradient",{key:"1c99e9057a86d4b850348543826fb6da163f4eb9",id:"spinner-firstHalf"},h("stop",{key:"271c14abb61bb9bc01ac72f43d1cc8580b89b6c0",offset:"0%","stop-opacity":"1","stop-color":"currentColor"}),h("stop",{key:"4b8de0ac98a1b44ec3bbba4aa0002957e44c976c",offset:"100%","stop-opacity":"0.5","stop-color":"currentColor"}))),h("g",{key:"b12aaf6168c8428999d020b46c99faf918c45f07",class:"pds-loader__spinner-path"},h("path",{key:"4443446af5cf8c73d3352fa90d580e914c469028",stroke:"url(#spinner-secondHalf)",d:"M 4 100 A 96 96 0 0 1 196 100"}),h("path",{key:"ca4edec218d03a74d12ce43a86ef55fbedaea39f",stroke:"url(#spinner-firstHalf)",d:"M 196 100 A 96 96 0 0 1 4 100"}),h("path",{key:"af6ed9732a9fdd2047f100d2465b27782d2a0b02",stroke:"currentColor","stroke-linecap":"round",d:"M 4 100 A 96 96 0 0 1 4 98"})))),this.variant==="typing"&&h("div",{key:"96aa15066aa426d53481bddd5b665181d9bcd0bd",class:"pds-loader--typing"},h("span",{key:"a0bb9722a2dbaf843afc9a50a1f42c46758d1b5e"}),h("span",{key:"0efc9cf2f132f358f58561ccbc7027c57f252df2"}),h("span",{key:"b8b73b864c7dfefe26ac3aa33099d2f2f3737614"})),h("div",{key:"3c921244741289e7b67228caedf6e5e13fac1d63",class:"pds-loader__label ".concat(this.showLabel?"":"pds-loader--hidden")},h("slot",{key:"423a30358e6f662a0b80cef445c4a20db3dd36f9",name:"label"},"Loading...")))};return i}();PdsLoader.style=PdsLoaderStyle0;export{PdsLoader as pds_loader};
1
+ import{r as registerInstance,h,H as Host}from"./index-b1696fed.js";var pdsLoaderCss=":host{--loader-color:var(--pine-color-brand);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;gap:var(--pine-dimension-xs)}:host(.pds-loader--hidden),.pds-loader--hidden{border-width:0;clip:rect(0, 0, 0, 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-loader--spinner svg{--number-spinner-timing:2s;--number-spinner-path-timing:1.5s;-webkit-animation:rotate var(--number-spinner-timing) linear infinite;animation:rotate var(--number-spinner-timing) linear infinite;color:var(--loader-color)}.pds-loader__spinner-path{stroke-width:8px}@-webkit-keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes rotate{100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.pds-loader--typing{--number-typing-timing:1s;--opacity-typing-dot-default:0.4;--opacity-typing-dot-active:1;-ms-flex-align:center;align-items:center;background-color:var(--pine-color-background-container-disabled);border-radius:var(--pine-dimension-sm);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);display:-ms-inline-flexbox;display:inline-flex;gap:var(--pine-dimension-2xs);margin-block:var(--pine-dimension-none);margin-inline:auto;padding-block:15px;padding-inline:20px;position:relative}.pds-loader--typing span{background-color:var(--pine-color-border-hover);block-size:6px;border-radius:var(--pine-border-radius-full);inline-size:6px;opacity:var(--opacity-typing-dot-default)}.pds-loader--typing span:nth-of-type(1){-webkit-animation:var(--number-typing-timing) typing infinite 0.3333s;animation:var(--number-typing-timing) typing infinite 0.3333s}.pds-loader--typing span:nth-of-type(2){-webkit-animation:var(--number-typing-timing) typing infinite 0.6666s;animation:var(--number-typing-timing) typing infinite 0.6666s}.pds-loader--typing span:nth-of-type(3){-webkit-animation:var(--number-typing-timing) typing infinite 0.9999s;animation:var(--number-typing-timing) typing infinite 0.9999s}@-webkit-keyframes typing{50%{opacity:var(--opacity-typing-dot-active);-webkit-transform:scale(1.25);transform:scale(1.25)}}@keyframes typing{50%{opacity:var(--opacity-typing-dot-active);-webkit-transform:scale(1.25);transform:scale(1.25)}}.pds-loader__label{--typography-label-default:var(--pine-font-weight-medium) var(--pine-font-size-body-md)/var(--pine-line-height-body) var(--pine-font-family-body);font:var(--typography-label-default)}";var PdsLoaderStyle0=pdsLoaderCss;var PdsLoader=function(){function e(e){var i=this;registerInstance(this,e);this.style=function(){if(i.size!==undefined){return{height:i.loaderSize(),width:i.loaderSize()}}};this.isLoading=true;this.showLabel=false;this.size="md";this.variant="spinner"}e.prototype.loaderSize=function(){var e={xs:"24px",sm:"32px",md:"48px",lg:"64px",xl:"80px"};if(e[this.size]){return e[this.size]}else{return this.size}};e.prototype.render=function(){return h(Host,{key:"c01b34ac171a5581e1456737f17043cf8b47af8e",class:"pds-loader ".concat(this.isLoading?"":"pds-loader--hidden"),"aria-hidden":!this.isLoading,"aria-busy":this.isLoading,"aria-live":"polite"},this.variant==="spinner"&&h("div",{key:"ffd9e050fef503f1614c06896b8d888202df8656",class:"pds-loader--spinner"},h("svg",{key:"056b84ca6f89f6dc93f72d115c9cad3efa9f468d",style:this.style(),viewBox:"0 0 200 200",fill:"none"},h("defs",{key:"85bfeab6bc686de25e4156154273067fbcb3ba0b"},h("linearGradient",{key:"d32d0c03f7f851cd56365af16298c4da0db74ec8",id:"spinner-secondHalf"},h("stop",{key:"1113756349854bc4ab581c0ce282dcd54def3891",offset:"0%","stop-opacity":"0","stop-color":"currentColor"}),h("stop",{key:"0f649b9e828409cab1b67a26d9a35d35e9fe7b0a",offset:"100%","stop-opacity":"0.5","stop-color":"currentColor"})),h("linearGradient",{key:"4aabb11799007ae40d7e112696809b35b652bb46",id:"spinner-firstHalf"},h("stop",{key:"9624d9de9eaba0f29264d3b76bc27287bbc1b68b",offset:"0%","stop-opacity":"1","stop-color":"currentColor"}),h("stop",{key:"37fd5de86c5db30731b4dc39b1cd2cb6afbe7393",offset:"100%","stop-opacity":"0.5","stop-color":"currentColor"}))),h("g",{key:"06ccf17d191612cd5566714e69299a9e749618da",class:"pds-loader__spinner-path"},h("path",{key:"9b5556b7c20e3c0f7effaa6d09120baa0b07e614",stroke:"url(#spinner-secondHalf)",d:"M 4 100 A 96 96 0 0 1 196 100"}),h("path",{key:"aacb689fcace08aa9bee3c3eb2ee1b571ed1b9ee",stroke:"url(#spinner-firstHalf)",d:"M 196 100 A 96 96 0 0 1 4 100"}),h("path",{key:"875a3faf04e718f095d616db6a2cd1c7bcde2f14",stroke:"currentColor","stroke-linecap":"round",d:"M 4 100 A 96 96 0 0 1 4 98"})))),this.variant==="typing"&&h("div",{key:"515a530c8acd7807d45c3f54ff1d264002e3e627",class:"pds-loader--typing"},h("span",{key:"bbb55e71064ab200ca388360a8a0986eda5b2008"}),h("span",{key:"77f42ba8124be61565479f21ed9253d928da49b3"}),h("span",{key:"f8ef81fc9a9bf1a24f0bb3501c49291fe5028c5a"})),h("div",{key:"fd73795dfb15359ff655ed6abf4b2e41faa079a7",class:"pds-loader__label ".concat(this.showLabel?"":"pds-loader--hidden")},h("slot",{key:"cdfb46d54431a84b3ceaaaf94d48f69c42956c8d",name:"label"},"Loading...")))};return e}();PdsLoader.style=PdsLoaderStyle0;export{PdsLoader as pds_loader};
2
2
  //# sourceMappingURL=pds-loader.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pdsLoaderCss","PdsLoaderStyle0","PdsLoader","this","style","_this","size","undefined","height","loaderSize","width","prototype","sizes","xs","sm","md","lg","xl","render","h","Host","key","class","concat","isLoading","variant","viewBox","fill","id","offset","stroke","d","showLabel","name"],"sources":["src/components/pds-loader/pds-loader.scss?tag=pds-loader&encapsulation=shadow","src/components/pds-loader/pds-loader.tsx"],"sourcesContent":[":host {\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: var(--pine-spacing-100);\n}\n\n:host(.pds-loader--hidden),\n.pds-loader--hidden {\n border-width: 0 ;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n// Default Loader\n.pds-loader--spinner svg {\n --color-background-spinner: var(--pine-color-blue-300);\n --number-spinner-timing: 2s;\n --number-spinner-path-timing: 1.5s;\n\n animation: rotate var(--number-spinner-timing) linear infinite;\n block-size: var(--sizing-spinner);\n color: var(--color-background-spinner);\n inline-size: var(--sizing-spinner);\n}\n\n.pds-loader__spinner-path {\n stroke-width: 8px;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n// Typing Loader\n.pds-loader--typing {\n --border-radius-typing: var(--pine-border-radius-200);\n --border-radius-typing-dot: var(--pine-border-radius-round);\n\n --box-shadow-typing: var(--pine-box-shadow-100);\n\n --color-background-typing-default: var(--pine-color-grey-200);\n --color-background-typing-dot-default: var(--pine-color-grey-500);\n\n --number-typing-timing: 1s;\n\n --opacity-typing-dot-default: 0.4;\n --opacity-typing-dot-active: 1;\n\n --sizing-typing-dot: calc(var(--pine-spacing-150) / 2);\n\n --spacing-typing-gap: var(--pine-spacing-050);\n --spacing-typing-margin-block: var(--pine-spacing-0);\n --spacing-typing-margin-inline: auto;\n --spacing-typing-padding-block: 15px;\n --spacing-typing-padding-inline: var(--pine-spacing-250);\n\n align-items: center;\n background-color: var(--color-background-typing-default);\n border-radius: var(--border-radius-typing);\n box-shadow: var(--box-shadow-typing);\n display: inline-flex;\n gap: var(--spacing-typing-gap);\n margin-block: var(--spacing-typing-margin-block);\n margin-inline: var(--spacing-typing-margin-inline);\n padding-block: var(--spacing-typing-padding-block);\n padding-inline: var(--spacing-typing-padding-inline);\n position: relative;\n\n span {\n background-color: var(--color-background-typing-dot-default);\n block-size: var(--sizing-typing-dot);\n border-radius: var(--border-radius-typing-dot);\n inline-size: var(--sizing-typing-dot);\n opacity: var(--opacity-typing-dot-default);\n\n @for $i from 1 through 3 {\n &:nth-of-type(#{$i}) {\n animation: var(--number-typing-timing) typing infinite ($i * 0.3333s);\n }\n }\n }\n}\n\n@keyframes typing {\n 50% {\n opacity: var(--opacity-typing-dot-active);\n transform: scale(1.2);\n }\n}\n\n.pds-loader__label {\n --typography-label-default: var(--pine-font-weight-semi-bold) var(--pine-font-size-100)/var(--pine-line-height-150) var(--pine-font-family-circular);\n\n font: var(--typography-label-default);\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n/**\n * @slot label - Default slot for Loader label text.\n */\n\n@Component({\n tag: 'pds-loader',\n styleUrl: 'pds-loader.scss',\n shadow: true,\n})\nexport class PdsLoader {\n /**\n * If false, the loader will be hidden.\n */\n @Prop() isLoading: boolean = true;\n\n /**\n * Determines whether the loader should display a label.\n */\n @Prop() showLabel?: boolean = false;\n\n /**\n * Sets the size of the spinner loader. Value can be preset or custom.\n */\n @Prop({ reflect: true }) size?:\n | 'xs' // 24px\n | 'sm' // 32px\n | 'md' // 48px\n | 'lg' // 64px\n | 'xl' // 80px\n | string = 'md';\n\n /**\n * Determines the type of loader.\n */\n @Prop() variant: 'spinner' | 'typing' = 'spinner';\n\n private loaderSize() {\n const sizes: { [key: string]: string } = {\n xs: '24px',\n sm: '32px',\n md: '48px',\n lg: '64px',\n xl: '80px',\n };\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size;\n }\n }\n\n private style = () => {\n if (this.size !== undefined) {\n return {\n height: this.loaderSize(),\n width: this.loaderSize(),\n };\n }\n };\n\n render() {\n return (\n <Host class={`pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`} aria-hidden={!this.isLoading} aria-busy={this.isLoading} aria-live=\"polite\">\n {this.variant === 'spinner' && (\n <div class=\"pds-loader--spinner\">\n <svg style={this.style()} viewBox=\"0 0 200 200\" fill=\"none\">\n <defs>\n <linearGradient id=\"spinner-secondHalf\">\n <stop offset=\"0%\" stop-opacity=\"0\" stop-color=\"currentColor\" />\n <stop offset=\"100%\" stop-opacity=\"0.5\" stop-color=\"currentColor\" />\n </linearGradient>\n <linearGradient id=\"spinner-firstHalf\">\n <stop offset=\"0%\" stop-opacity=\"1\" stop-color=\"currentColor\" />\n <stop offset=\"100%\" stop-opacity=\"0.5\" stop-color=\"currentColor\" />\n </linearGradient>\n </defs>\n\n <g class=\"pds-loader__spinner-path\">\n <path stroke=\"url(#spinner-secondHalf)\" d=\"M 4 100 A 96 96 0 0 1 196 100\" />\n <path stroke=\"url(#spinner-firstHalf)\" d=\"M 196 100 A 96 96 0 0 1 4 100\" />\n\n <path stroke=\"currentColor\" stroke-linecap=\"round\" d=\"M 4 100 A 96 96 0 0 1 4 98\" />\n </g>\n </svg>\n </div>\n )}\n\n {this.variant === 'typing' && (\n <div class=\"pds-loader--typing\">\n <span></span>\n <span></span>\n <span></span>\n </div>\n )}\n\n <div class={`pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}`}>\n <slot name=\"label\">Loading...</slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"mEAAA,IAAMA,aAAe,wvGACrB,IAAAC,gBAAeD,a,ICUFE,UAAS,W,kDA2CZC,KAAAC,MAAQ,WACd,GAAIC,EAAKC,OAASC,UAAW,CAC3B,MAAO,CACLC,OAAQH,EAAKI,aACbC,MAAOL,EAAKI,a,kBA3CW,K,eAKC,M,UAWnB,K,aAK6B,S,CAEhCP,EAAAS,UAAAF,WAAA,WACN,IAAMG,EAAmC,CACvCC,GAAI,OACJC,GAAI,OACJC,GAAI,OACJC,GAAI,OACJC,GAAI,QAGN,GAAIL,EAAMT,KAAKG,MAAO,CACpB,OAAOM,EAAMT,KAAKG,K,KACb,CACL,OAAOH,KAAKG,I,GAahBJ,EAAAS,UAAAO,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAO,cAAAC,OAAcpB,KAAKqB,UAAY,GAAK,sBAAsB,eAAgBrB,KAAKqB,UAAS,YAAarB,KAAKqB,UAAS,YAAY,UACzIrB,KAAKsB,UAAY,WAChBN,EAAA,OAAAE,IAAA,2CAAKC,MAAM,uBACTH,EAAA,OAAAE,IAAA,2CAAKjB,MAAOD,KAAKC,QAASsB,QAAQ,cAAcC,KAAK,QACnDR,EAAA,QAAAE,IAAA,4CACEF,EAAA,kBAAAE,IAAA,2CAAgBO,GAAG,sBACjBT,EAAA,QAAAE,IAAA,2CAAMQ,OAAO,KAAI,eAAc,IAAG,aAAY,iBAC9CV,EAAA,QAAAE,IAAA,2CAAMQ,OAAO,OAAM,eAAc,MAAK,aAAY,kBAEpDV,EAAA,kBAAAE,IAAA,2CAAgBO,GAAG,qBACjBT,EAAA,QAAAE,IAAA,2CAAMQ,OAAO,KAAI,eAAc,IAAG,aAAY,iBAC9CV,EAAA,QAAAE,IAAA,2CAAMQ,OAAO,OAAM,eAAc,MAAK,aAAY,mBAItDV,EAAA,KAAAE,IAAA,2CAAGC,MAAM,4BACPH,EAAA,QAAAE,IAAA,2CAAMS,OAAO,2BAA2BC,EAAE,kCAC1CZ,EAAA,QAAAE,IAAA,2CAAMS,OAAO,0BAA0BC,EAAE,kCAEzCZ,EAAA,QAAAE,IAAA,2CAAMS,OAAO,eAAc,iBAAgB,QAAQC,EAAE,kCAM5D5B,KAAKsB,UAAY,UAChBN,EAAA,OAAAE,IAAA,2CAAKC,MAAM,sBACTH,EAAA,QAAAE,IAAA,6CACAF,EAAA,QAAAE,IAAA,6CACAF,EAAA,QAAAE,IAAA,8CAIJF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,qBAAAC,OAAqBpB,KAAK6B,UAAY,GAAK,uBACrDb,EAAA,QAAAE,IAAA,2CAAMY,KAAK,SAAO,e,WAxFN,G","ignoreList":[]}
1
+ {"version":3,"names":["pdsLoaderCss","PdsLoaderStyle0","PdsLoader","this","style","_this","size","undefined","height","loaderSize","width","prototype","sizes","xs","sm","md","lg","xl","render","h","Host","key","class","concat","isLoading","variant","viewBox","fill","id","offset","stroke","d","showLabel","name"],"sources":["src/components/pds-loader/pds-loader.scss?tag=pds-loader&encapsulation=shadow","src/components/pds-loader/pds-loader.tsx"],"sourcesContent":[":host {\n --loader-color: var(--pine-color-brand);\n align-items: center;\n display: flex;\n flex-direction: column;\n gap: var(--pine-dimension-xs);\n}\n\n\n:host(.pds-loader--hidden),\n.pds-loader--hidden {\n border-width: 0;\n clip: rect(0, 0, 0, 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n white-space: nowrap;\n width: 1px;\n}\n\n// Default Loader\n.pds-loader--spinner svg {\n --number-spinner-timing: 2s;\n --number-spinner-path-timing: 1.5s;\n\n animation: rotate var(--number-spinner-timing) linear infinite;\n color: var(--loader-color);\n}\n\n.pds-loader__spinner-path {\n stroke-width: 8px;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n\n// Typing Loader\n.pds-loader--typing {\n --number-typing-timing: 1s;\n\n --opacity-typing-dot-default: 0.4;\n --opacity-typing-dot-active: 1;\n\n align-items: center;\n background-color: var(--pine-color-background-container-disabled);\n border-radius: var(--pine-dimension-sm);\n box-shadow: var(--pine-box-shadow);\n display: inline-flex;\n gap: var(--pine-dimension-2xs);\n margin-block: var(--pine-dimension-none);\n margin-inline: auto;\n padding-block: 15px;\n padding-inline: 20px;\n position: relative;\n\n span {\n background-color: var(--pine-color-border-hover);\n block-size: 6px;\n border-radius: var(--pine-border-radius-full);\n inline-size: 6px;\n opacity: var(--opacity-typing-dot-default);\n\n @for $i from 1 through 3 {\n &:nth-of-type(#{$i}) {\n animation: var(--number-typing-timing) typing infinite ($i * 0.3333s);\n }\n }\n }\n}\n\n@keyframes typing {\n 50% {\n opacity: var(--opacity-typing-dot-active);\n transform: scale(1.25);\n }\n}\n\n.pds-loader__label {\n --typography-label-default: var(--pine-font-weight-medium) var(--pine-font-size-body-md)/var(--pine-line-height-body) var(--pine-font-family-body);\n\n font: var(--typography-label-default);\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n/**\n * @slot label - Default slot for Loader label text.\n */\n\n@Component({\n tag: 'pds-loader',\n styleUrls: ['pds-loader.scss'],\n shadow: true,\n})\nexport class PdsLoader {\n /**\n * If false, the loader will be hidden.\n */\n @Prop() isLoading: boolean = true;\n\n /**\n * Determines whether the loader should display a label.\n */\n @Prop() showLabel?: boolean = false;\n\n /**\n * Sets the size of the spinner loader. Value can be preset or custom.\n */\n @Prop({ reflect: true }) size?:\n | 'xs' // 24px\n | 'sm' // 32px\n | 'md' // 48px\n | 'lg' // 64px\n | 'xl' // 80px\n | string = 'md';\n\n /**\n * Determines the type of loader.\n */\n @Prop() variant: 'spinner' | 'typing' = 'spinner';\n\n private loaderSize() {\n const sizes: { [key: string]: string } = {\n xs: '24px',\n sm: '32px',\n md: '48px',\n lg: '64px',\n xl: '80px',\n };\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size;\n }\n }\n\n private style = () => {\n if (this.size !== undefined) {\n return {\n height: this.loaderSize(),\n width: this.loaderSize(),\n };\n }\n };\n\n render() {\n return (\n <Host class={`pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`} aria-hidden={!this.isLoading} aria-busy={this.isLoading} aria-live=\"polite\">\n {this.variant === 'spinner' && (\n <div class=\"pds-loader--spinner\">\n <svg style={this.style()} viewBox=\"0 0 200 200\" fill=\"none\">\n <defs>\n <linearGradient id=\"spinner-secondHalf\">\n <stop offset=\"0%\" stop-opacity=\"0\" stop-color=\"currentColor\" />\n <stop offset=\"100%\" stop-opacity=\"0.5\" stop-color=\"currentColor\" />\n </linearGradient>\n <linearGradient id=\"spinner-firstHalf\">\n <stop offset=\"0%\" stop-opacity=\"1\" stop-color=\"currentColor\" />\n <stop offset=\"100%\" stop-opacity=\"0.5\" stop-color=\"currentColor\" />\n </linearGradient>\n </defs>\n\n <g class=\"pds-loader__spinner-path\">\n <path stroke=\"url(#spinner-secondHalf)\" d=\"M 4 100 A 96 96 0 0 1 196 100\" />\n <path stroke=\"url(#spinner-firstHalf)\" d=\"M 196 100 A 96 96 0 0 1 4 100\" />\n\n <path stroke=\"currentColor\" stroke-linecap=\"round\" d=\"M 4 100 A 96 96 0 0 1 4 98\" />\n </g>\n </svg>\n </div>\n )}\n\n {this.variant === 'typing' && (\n <div class=\"pds-loader--typing\">\n <span></span>\n <span></span>\n <span></span>\n </div>\n )}\n\n <div class={`pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}`}>\n <slot name=\"label\">Loading...</slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"mEAAA,IAAMA,aAAe,88EACrB,IAAAC,gBAAeD,a,ICUFE,UAAS,W,kDA2CZC,KAAAC,MAAQ,WACd,GAAIC,EAAKC,OAASC,UAAW,CAC3B,MAAO,CACLC,OAAQH,EAAKI,aACbC,MAAOL,EAAKI,a,kBA3CW,K,eAKC,M,UAWnB,K,aAK6B,S,CAEhCP,EAAAS,UAAAF,WAAA,WACN,IAAMG,EAAmC,CACvCC,GAAI,OACJC,GAAI,OACJC,GAAI,OACJC,GAAI,OACJC,GAAI,QAGN,GAAIL,EAAMT,KAAKG,MAAO,CACpB,OAAOM,EAAMT,KAAKG,K,KACb,CACL,OAAOH,KAAKG,I,GAahBJ,EAAAS,UAAAO,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAO,cAAAC,OAAcpB,KAAKqB,UAAY,GAAK,sBAAsB,eAAgBrB,KAAKqB,UAAS,YAAarB,KAAKqB,UAAS,YAAY,UACzIrB,KAAKsB,UAAY,WAChBN,EAAA,OAAAE,IAAA,2CAAKC,MAAM,uBACTH,EAAA,OAAAE,IAAA,2CAAKjB,MAAOD,KAAKC,QAASsB,QAAQ,cAAcC,KAAK,QACnDR,EAAA,QAAAE,IAAA,4CACEF,EAAA,kBAAAE,IAAA,2CAAgBO,GAAG,sBACjBT,EAAA,QAAAE,IAAA,2CAAMQ,OAAO,KAAI,eAAc,IAAG,aAAY,iBAC9CV,EAAA,QAAAE,IAAA,2CAAMQ,OAAO,OAAM,eAAc,MAAK,aAAY,kBAEpDV,EAAA,kBAAAE,IAAA,2CAAgBO,GAAG,qBACjBT,EAAA,QAAAE,IAAA,2CAAMQ,OAAO,KAAI,eAAc,IAAG,aAAY,iBAC9CV,EAAA,QAAAE,IAAA,2CAAMQ,OAAO,OAAM,eAAc,MAAK,aAAY,mBAItDV,EAAA,KAAAE,IAAA,2CAAGC,MAAM,4BACPH,EAAA,QAAAE,IAAA,2CAAMS,OAAO,2BAA2BC,EAAE,kCAC1CZ,EAAA,QAAAE,IAAA,2CAAMS,OAAO,0BAA0BC,EAAE,kCAEzCZ,EAAA,QAAAE,IAAA,2CAAMS,OAAO,eAAc,iBAAgB,QAAQC,EAAE,kCAM5D5B,KAAKsB,UAAY,UAChBN,EAAA,OAAAE,IAAA,2CAAKC,MAAM,sBACTH,EAAA,QAAAE,IAAA,6CACAF,EAAA,QAAAE,IAAA,6CACAF,EAAA,QAAAE,IAAA,8CAIJF,EAAA,OAAAE,IAAA,2CAAKC,MAAO,qBAAAC,OAAqBpB,KAAK6B,UAAY,GAAK,uBACrDb,EAAA,QAAAE,IAAA,2CAAMY,KAAK,SAAO,e,WAxFN,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-b1696fed.js";var pdsPopoverCss=":host{--sizing-max-width-default:352px;display:inline-block}:host [popover]{background-color:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);-webkit-box-shadow:var(--pine-box-shadow-200);box-shadow:var(--pine-box-shadow-200);margin:var(--pine-dimension-none);max-width:var(--sizing-max-width-default);padding:var(--pine-dimension-md);position:fixed}:host button{-ms-flex-align:center;align-items:center;background-color:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-border-radius-full);color:var(--pine-color-text-secondary);display:-ms-flexbox;display:flex;font:var(--pine-typography-body-medium);font-family:var(--pine-font-family-heading);letter-spacing:var(--pine-letter-spacing);min-height:40px;padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}:host button:hover{background-color:var(--pine-color-secondary-hover)}";var PdsPopoverStyle0=pdsPopoverCss;var PdsPopover=function(){function e(e){registerInstance(this,e);this.active=false;this.popoverTargetAction="show";this.popoverType="auto";this.componentId=undefined;this.text=undefined;this.maxWidth=352;this.placement="right"}e.prototype.componentWillRender=function(){this.handlePopoverPositioning()};e.prototype.handleClick=function(){this.active=!this.active};e.prototype.handleScroll=function(){if(this.active){this.handlePopoverPositioning()}};e.prototype.handlePopoverPositioning=function(){var e=this.el.shadowRoot.querySelector(".pds-popover__trigger");var o=this.el.shadowRoot.querySelector("div[popover]");if(!e||!o)return;var r=e.getBoundingClientRect();var i=o.getBoundingClientRect();var t=0;var s=0;var n=8;switch(this.placement){case"top":t=r.top-i.height-n;s=r.left;break;case"right":t=r.top;s=r.right+n;break;case"bottom":t=r.bottom+n;s=r.left;break;case"left":t=r.top;s=r.left-i.width-n;break}o.style.top="".concat(t,"px");o.style.left="".concat(s,"px")};e.prototype.render=function(){return h(Host,{key:"3bed0c38e97500efb2bffcef8321a6b38215c434"},h("button",{key:"0db59e1815568cb980ce0bbe5ef3502177015a1d",class:"pds-popover__trigger",popoverTarget:this.componentId,popoverTargetAction:this.popoverTargetAction,onClick:this.handleClick},this.text),h("div",{key:"d8c70cd36614cb3fc83669a843b00af0d18b03d4",class:"pds-popover ".concat(this.active?"pds-popover--active":""),id:this.componentId,popover:this.popoverType,style:{maxWidth:"".concat(this.maxWidth,"px")}},h("slot",{key:"e7408b199525e88c0e975f9cc3e96200f82ea23e"})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PdsPopover.style=PdsPopoverStyle0;export{PdsPopover as pds_popover};
2
+ //# sourceMappingURL=pds-popover.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsPopoverCss","PdsPopoverStyle0","PdsPopover","prototype","componentWillRender","this","handlePopoverPositioning","handleClick","active","handleScroll","triggerEl","el","shadowRoot","querySelector","popoverEl","triggerRect","getBoundingClientRect","popoverRect","top","left","offset","placement","height","right","bottom","width","style","concat","render","h","Host","key","class","popoverTarget","componentId","popoverTargetAction","onClick","text","id","popover","popoverType","maxWidth"],"sources":["src/components/pds-popover/pds-popover.scss?tag=pds-popover&encapsulation=shadow","src/components/pds-popover/pds-popover.tsx"],"sourcesContent":[":host {\n --sizing-max-width-default: 352px;\n\n display: inline-block;\n\n [popover] {\n background-color: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: var(--pine-dimension-125);\n box-shadow: var(--pine-box-shadow-200);\n margin: var(--pine-dimension-none);\n max-width: var(--sizing-max-width-default);\n padding: var(--pine-dimension-md);\n position: fixed;\n }\n\n button {\n align-items: center;\n background-color: var(--pine-color-secondary);\n border: var(--pine-border);\n border-radius: var(--pine-border-radius-full);\n color: var(--pine-color-text-secondary);\n display: flex;\n font: var(--pine-typography-body-medium);\n font-family: var(--pine-font-family-heading);\n letter-spacing: var(--pine-letter-spacing);\n min-height: 40px;\n padding: var(--pine-dimension-xs) var(--pine-dimension-sm);\n\n &:hover {\n background-color: var(--pine-color-secondary-hover);\n }\n }\n}\n","import { Component, Element, Host, Listen, h, Prop, State } from '@stencil/core';\nimport { PlacementType } from '@utils/types';\n\n@Component({\n tag: 'pds-popover',\n styleUrl: 'pds-popover.scss',\n shadow: true,\n})\nexport class PdsPopover {\n /**\n * Reference to the Host element\n */\n @Element() el: HTMLPdsPopoverElement;\n\n /**\n * Determines when the popover is active\n * @defaultValue false\n */\n @State() active = false;\n\n /**\n * Determines the action that triggers the popover. For manual popovers, the consumer is responsible for toggling this value.\n * @defaultValue \"show\"\n */\n @Prop() popoverTargetAction: 'show' | 'toggle' | 'hide' = 'show';\n\n /**\n * Determines the type of popover. Auto popovers can be \"light dismissed\" by clicking outside of the popover.\n * Manual popovers require the consumer to handle the visibility of the popover.\n */\n @Prop() popoverType: 'auto' | 'manual' = 'auto';\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Text that appears on the trigger element\n */\n @Prop() text: string;\n\n /**\n * Sets the maximum width of the popover content\n * @defaultValue 352\n */\n @Prop() maxWidth?: number = 352;\n\n /**\n * Determines the preferred position of the popover\n * @defaultValue \"right\"\n */\n @Prop({ reflect: true }) placement: PlacementType = 'right';\n\n componentWillRender() {\n this.handlePopoverPositioning();\n }\n\n @Listen('click', {\n capture: true\n })\n handleClick() {\n this.active = !this.active;\n }\n\n @Listen('scroll', {\n target: 'window',\n capture: true\n })\n handleScroll() {\n if (this.active) {\n this.handlePopoverPositioning();\n }\n }\n\n private handlePopoverPositioning() {\n const triggerEl = this.el.shadowRoot.querySelector('.pds-popover__trigger') as HTMLElement;\n const popoverEl = this.el.shadowRoot.querySelector('div[popover]') as HTMLElement;\n\n if (!triggerEl || !popoverEl) return;\n\n const triggerRect = triggerEl.getBoundingClientRect();\n const popoverRect = popoverEl.getBoundingClientRect();\n\n let top = 0;\n let left = 0;\n const offset = 8\n\n switch (this.placement) {\n case 'top':\n top = triggerRect.top - popoverRect.height - offset;\n left = triggerRect.left;\n break;\n case 'right':\n top = triggerRect.top;\n left = triggerRect.right + offset;\n break;\n case 'bottom':\n top = triggerRect.bottom + offset;\n left = triggerRect.left;\n break;\n case 'left':\n top = triggerRect.top;\n left = triggerRect.left - popoverRect.width - offset;\n break;\n }\n\n popoverEl.style.top = `${top}px`;\n popoverEl.style.left = `${left}px`;\n }\n\n render() {\n return (\n <Host>\n <button\n class=\"pds-popover__trigger\"\n popoverTarget={this.componentId}\n popoverTargetAction={this.popoverTargetAction}\n onClick={this.handleClick}\n >\n {this.text}\n </button>\n <div\n class={`pds-popover ${this.active ? 'pds-popover--active' : ''}`}\n id={this.componentId}\n popover={this.popoverType}\n style={{ maxWidth: `${this.maxWidth}px` }}\n >\n <slot></slot>\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"mFAAA,IAAMA,cAAgB,y5BACtB,IAAAC,iBAAeD,c,ICOFE,WAAU,W,mDAUH,M,yBAMwC,O,iBAMjB,O,6DAgBb,I,eAMwB,O,CAEpDA,EAAAC,UAAAC,oBAAA,WACEC,KAAKC,0B,EAMPJ,EAAAC,UAAAI,YAAA,WACEF,KAAKG,QAAUH,KAAKG,M,EAOtBN,EAAAC,UAAAM,aAAA,WACE,GAAIJ,KAAKG,OAAQ,CACfH,KAAKC,0B,GAIDJ,EAAAC,UAAAG,yBAAA,WACN,IAAMI,EAAYL,KAAKM,GAAGC,WAAWC,cAAc,yBACnD,IAAMC,EAAYT,KAAKM,GAAGC,WAAWC,cAAc,gBAEnD,IAAKH,IAAcI,EAAW,OAE9B,IAAMC,EAAcL,EAAUM,wBAC9B,IAAMC,EAAcH,EAAUE,wBAE9B,IAAIE,EAAM,EACV,IAAIC,EAAO,EACX,IAAMC,EAAS,EAEf,OAAQf,KAAKgB,WACX,IAAK,MACHH,EAAMH,EAAYG,IAAMD,EAAYK,OAASF,EAC7CD,EAAOJ,EAAYI,KACnB,MACF,IAAK,QACHD,EAAMH,EAAYG,IAClBC,EAAOJ,EAAYQ,MAAQH,EAC3B,MACF,IAAK,SACHF,EAAMH,EAAYS,OAASJ,EAC3BD,EAAOJ,EAAYI,KACnB,MACF,IAAK,OACHD,EAAMH,EAAYG,IAClBC,EAAOJ,EAAYI,KAAOF,EAAYQ,MAAQL,EAC9C,MAGJN,EAAUY,MAAMR,IAAM,GAAAS,OAAGT,EAAG,MAC5BJ,EAAUY,MAAMP,KAAO,GAAAQ,OAAGR,EAAI,K,EAGhCjB,EAAAC,UAAAyB,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,4CACHF,EAAA,UAAAE,IAAA,2CACEC,MAAM,uBACNC,cAAe5B,KAAK6B,YACpBC,oBAAqB9B,KAAK8B,oBAC1BC,QAAS/B,KAAKE,aAEbF,KAAKgC,MAERR,EAAA,OAAAE,IAAA,2CACEC,MAAO,eAAAL,OAAetB,KAAKG,OAAS,sBAAwB,IAC5D8B,GAAIjC,KAAK6B,YACTK,QAASlC,KAAKmC,YACdd,MAAO,CAAEe,SAAU,GAAAd,OAAGtB,KAAKoC,SAAQ,QAEnCZ,EAAA,QAAAE,IAAA,8C,gIAxHa,G","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9f0e742f.js";var pdsProgressCss=":host{--color-progress-fill:var(--pine-color-blue-300);--sizing-progress-bar-height:8px;--sizing-progress-bar-width:100%;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:var(--sizing-progress-bar-width)}@-webkit-keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}@keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}.pds-progress{--border-radius:var(--pine-border-radius-050);--color-progress-bar-background:var(--pine-color-grey-300);-ms-flex-align:center;align-items:center;background-color:var(--color-progress-bar-background);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--sizing-progress-bar-height);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--sizing-progress-bar-height);width:100%}progress::-webkit-progress-value{--border-radius:var(--pine-border-radius-050);--color-background:var(--pine-color-blue-300);background-color:var(--color-progress-fill, var(--color-background));border-radius:var(--border-radius)}progress::-moz-progress-bar{--color-background:var(--pine-color-blue-300);--border-radius:var(--pine-border-radius-050);background-color:var(--color-progress-fill, var(--color-background));border-radius:var(--border-radius)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{--font-size:var(--pine-font-size-085);--font-weight:var(--pine-font-weight-medium);--line-height:var(--pine-line-height-150);--spacing-inline-start-margin:var(--pine-spacing-300);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);-webkit-margin-start:calc(var(--spacing-inline-start-margin) / 2);margin-inline-start:calc(var(--spacing-inline-start-margin) / 2)}";var PdsProgressStyle0=pdsProgressCss;var PdsProgress=function(){function r(r){registerInstance(this,r);this.animated=false;this.componentId=undefined;this.fillColor=undefined;this.label=undefined;this.percent=0;this.showPercent=false}r.prototype.render=function(){return h(Host,{key:"a11c3d67af0621981d2f13ad673e11999926b3c1",class:this.animated?{"is-animated":this.animated}:""},h("div",{key:"bb480c5ce1fc9c56fce1022a26783d5729eb30dc",class:"pds-progress"},h("label",{key:"02fec27f268262889b514aef4d8344bbb9a9484c",class:"pds-progress__label",htmlFor:this.componentId},this.label),h("progress",{key:"122d2639d7630f28fd98adf9bc003eeed6c9ebef",id:this.componentId,max:"100",style:this.fillColor?{"--color-progress-fill":this.fillColor}:{},value:this.percent})),this.showPercent&&h("div",{key:"ba7262e0627a2848b3da03a9a32882510bf2628c",class:"pds-progress__percentage"},this.percent,"%"))};return r}();PdsProgress.style=PdsProgressStyle0;export{PdsProgress as pds_progress};
1
+ import{r as registerInstance,h,H as Host}from"./index-b1696fed.js";var pdsProgressCss=":host{--color-progress-fill:var(--pine-color-brand);--sizing-progress-bar-width:100%;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;width:var(--sizing-progress-bar-width)}@-webkit-keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}@keyframes progressBar{0%{width:0}100%{width:var(--sizing-progress-bar-width)}}.pds-progress{-ms-flex-align:center;align-items:center;background-color:var(--pine-color-background-container-disabled);border-radius:var(--pine-dimension-2xs);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--pine-dimension-xs);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--pine-dimension-xs);width:100%}progress::-webkit-progress-value{background-color:var(--color-progress-fill, var(--pine-color-brand));border-radius:var(--pine-dimension-2xs)}progress::-moz-progress-bar{background-color:var(--color-progress-fill, var(--pine-color-brand));border-radius:var(--pine-dimension-2xs)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{font-weight:var(--pine-font-weight-medium);-webkit-margin-start:calc(var(--pine-dimension-md) / 2);margin-inline-start:calc(var(--pine-dimension-md) / 2)}";var PdsProgressStyle0=pdsProgressCss;var PdsProgress=function(){function s(s){registerInstance(this,s);this.animated=false;this.componentId=undefined;this.fillColor=undefined;this.label=undefined;this.percent=0;this.showPercent=false}s.prototype.render=function(){return h(Host,{key:"a0a7cde165c1acc884366dfe7a368db5d7c4150e",class:this.animated?{"is-animated":this.animated}:""},h("div",{key:"c2a8f262e0a6393448a0bc8a05dc49f30c451754",class:"pds-progress"},h("label",{key:"422c51d5b06ef6d99e23cb2721b861ba9611b1df",class:"pds-progress__label",htmlFor:this.componentId},this.label),h("progress",{key:"57081cc95c8bb44d6fa26cd7d1f7933108982165",id:this.componentId,max:"100",style:this.fillColor?{"--color-progress-fill":this.fillColor}:{},value:this.percent})),this.showPercent&&h("div",{key:"37b88967a8584b43407314b0ba70faf4e43a9e5a",class:"pds-progress__percentage"},this.percent,"%"))};return s}();PdsProgress.style=PdsProgressStyle0;export{PdsProgress as pds_progress};
2
2
  //# sourceMappingURL=pds-progress.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pdsProgressCss","PdsProgressStyle0","PdsProgress","prototype","render","h","Host","key","class","this","animated","htmlFor","componentId","label","id","max","style","fillColor","value","percent","showPercent"],"sources":["src/components/pds-progress/pds-progress.scss?tag=pds-progress&encapsulation=shadow","src/components/pds-progress/pds-progress.tsx"],"sourcesContent":[":host {\n --color-progress-fill: var(--pine-color-blue-300);\n\n --sizing-progress-bar-height: 8px;\n --sizing-progress-bar-width: 100%;\n\n align-items: center;\n display: flex;\n width: var(--sizing-progress-bar-width);\n}\n\n@keyframes progressBar {\n 0% {\n width: 0\n }\n\n 100% {\n width: var(--sizing-progress-bar-width);\n }\n}\n\n.pds-progress {\n --border-radius: var(--pine-border-radius-050);\n --color-progress-bar-background: var(--pine-color-grey-300);\n\n align-items: center;\n background-color: var(--color-progress-bar-background);\n border-radius: var(--border-radius);\n display: flex;\n flex-direction: row;\n height: var(--sizing-progress-bar-height);\n position: relative;\n width: 100%;\n}\n\n:host(.is-animated) progress,\n:host(.is-animated) progress::-webkit-progress-bar {\n animation: progressBar 3s ease;\n animation-fill-mode: forwards;\n}\n\nprogress,\nprogress::-webkit-progress-bar {\n background-color: transparent;\n border: 0;\n height: var(--sizing-progress-bar-height);\n width: 100%;\n}\n\nprogress::-webkit-progress-value {\n --border-radius: var(--pine-border-radius-050);\n --color-background: var(--pine-color-blue-300);\n\n background-color: var(--color-progress-fill, var(--color-background));\n border-radius: var(--border-radius);\n}\n\nprogress::-moz-progress-bar {\n --color-background: var(--pine-color-blue-300);\n --border-radius: var(--pine-border-radius-050);\n\n background-color: var(--color-progress-fill, var(--color-background));\n border-radius: var(--border-radius);\n}\n\n.pds-progress__label {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.pds-progress__percentage {\n --font-size: var(--pine-font-size-085);\n --font-weight: var(--pine-font-weight-medium);\n --line-height: var(--pine-line-height-150);\n --spacing-inline-start-margin: var(--pine-spacing-300);\n\n font-size: var(--font-size);\n font-weight: var(--font-weight);\n line-height: var(--line-height);\n margin-inline-start: calc(var(--spacing-inline-start-margin) / 2);\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-progress',\n styleUrl: 'pds-progress.scss',\n shadow: true,\n})\nexport class PdsProgress {\n /**\n * Determines whether or not progress is animated.\n * @defaultValue false\n */\n @Prop() animated = 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 * Sets the progress fill color. Accepts a color token or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).\n * @defaultValue 'var(--pine-color-blue-300)'\n */\n @Prop() fillColor: string;\n\n /**\n * String used for label text. Label is visually hidden but required for better accessibility.\n */\n @Prop() label!: string;\n\n /**\n * Sets the progress fill pecentage and visually displayed when `show-percentage=true`.\n * @defaultValue 0\n */\n @Prop() percent = 0;\n\n /**\n * Determines whether or not the percent value should be displayed as text.\n * @defaultValue false\n */\n @Prop() showPercent = false;\n\n render() {\n return (\n <Host class={this.animated ? { 'is-animated': this.animated } : ''}>\n <div class=\"pds-progress\">\n <label class=\"pds-progress__label\" htmlFor={this.componentId}>\n {this.label}\n </label>\n <progress\n id={this.componentId}\n max=\"100\"\n style={this.fillColor ? { '--color-progress-fill': this.fillColor } : {}}\n value={this.percent}\n >\n </progress>\n </div>\n {this.showPercent && <div class=\"pds-progress__percentage\">{this.percent}%</div>}\n </Host>\n );\n }\n}\n"],"mappings":"mEAAA,IAAMA,eAAiB,imEACvB,IAAAC,kBAAeD,e,ICMFE,YAAW,W,qDAKH,M,sFAsBD,E,iBAMI,K,CAEtBA,EAAAC,UAAAC,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAOC,KAAKC,SAAW,CAAE,cAAeD,KAAKC,UAAa,IAC9DL,EAAA,OAAAE,IAAA,2CAAKC,MAAM,gBACTH,EAAA,SAAAE,IAAA,2CAAOC,MAAM,sBAAsBG,QAASF,KAAKG,aAC9CH,KAAKI,OAERR,EAAA,YAAAE,IAAA,2CACEO,GAAIL,KAAKG,YACTG,IAAI,MACJC,MAAOP,KAAKQ,UAAY,CAAE,wBAAyBR,KAAKQ,WAAc,GACtEC,MAAOT,KAAKU,WAIfV,KAAKW,aAAef,EAAA,OAAAE,IAAA,2CAAKC,MAAM,4BAA4BC,KAAKU,QAAO,K,WAlDxD,G","ignoreList":[]}
1
+ {"version":3,"names":["pdsProgressCss","PdsProgressStyle0","PdsProgress","prototype","render","h","Host","key","class","this","animated","htmlFor","componentId","label","id","max","style","fillColor","value","percent","showPercent"],"sources":["src/components/pds-progress/pds-progress.scss?tag=pds-progress&encapsulation=shadow","src/components/pds-progress/pds-progress.tsx"],"sourcesContent":[":host {\n --color-progress-fill: var(--pine-color-brand);\n\n --sizing-progress-bar-width: 100%;\n\n align-items: center;\n display: flex;\n width: var(--sizing-progress-bar-width);\n}\n\n@keyframes progressBar {\n 0% {\n width: 0\n }\n\n 100% {\n width: var(--sizing-progress-bar-width);\n }\n}\n\n.pds-progress {\n align-items: center;\n background-color: var(--pine-color-background-container-disabled);\n border-radius: var(--pine-dimension-2xs);\n display: flex;\n flex-direction: row;\n height: var(--pine-dimension-xs);\n position: relative;\n width: 100%;\n}\n\n:host(.is-animated) progress,\n:host(.is-animated) progress::-webkit-progress-bar {\n animation: progressBar 3s ease;\n animation-fill-mode: forwards;\n}\n\nprogress,\nprogress::-webkit-progress-bar {\n background-color: transparent;\n border: 0;\n height: var(--pine-dimension-xs);\n width: 100%;\n}\n\nprogress::-webkit-progress-value {\n background-color: var(--color-progress-fill, var(--pine-color-brand));\n border-radius: var(--pine-dimension-2xs);\n}\n\nprogress::-moz-progress-bar {\n background-color: var(--color-progress-fill, var(--pine-color-brand));\n border-radius: var(--pine-dimension-2xs);\n}\n\n.pds-progress__label {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.pds-progress__percentage {\n font-weight: var(--pine-font-weight-medium);\n margin-inline-start: calc(var(--pine-dimension-md) / 2);\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-progress',\n styleUrls: ['pds-progress.scss'],\n shadow: true,\n})\nexport class PdsProgress {\n /**\n * Determines whether or not progress is animated.\n * @defaultValue false\n */\n @Prop() animated = 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 * Sets the progress fill color. Accepts a color token or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).\n * @defaultValue 'var(--pine-color-blue-300)'\n */\n @Prop() fillColor: string;\n\n /**\n * String used for label text. Label is visually hidden but required for better accessibility.\n */\n @Prop() label!: string;\n\n /**\n * Sets the progress fill pecentage and visually displayed when `show-percentage=true`.\n * @defaultValue 0\n */\n @Prop() percent = 0;\n\n /**\n * Determines whether or not the percent value should be displayed as text.\n * @defaultValue false\n */\n @Prop() showPercent = false;\n\n render() {\n return (\n <Host class={this.animated ? { 'is-animated': this.animated } : ''}>\n <div class=\"pds-progress\">\n <label class=\"pds-progress__label\" htmlFor={this.componentId}>\n {this.label}\n </label>\n <progress\n id={this.componentId}\n max=\"100\"\n style={this.fillColor ? { '--color-progress-fill': this.fillColor } : {}}\n value={this.percent}\n >\n </progress>\n </div>\n {this.showPercent && <div class=\"pds-progress__percentage\">{this.percent}%</div>}\n </Host>\n );\n }\n}\n"],"mappings":"mEAAA,IAAMA,eAAiB,+iDACvB,IAAAC,kBAAeD,e,ICMFE,YAAW,W,qDAKH,M,sFAsBD,E,iBAMI,K,CAEtBA,EAAAC,UAAAC,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAOC,KAAKC,SAAW,CAAE,cAAeD,KAAKC,UAAa,IAC9DL,EAAA,OAAAE,IAAA,2CAAKC,MAAM,gBACTH,EAAA,SAAAE,IAAA,2CAAOC,MAAM,sBAAsBG,QAASF,KAAKG,aAC9CH,KAAKI,OAERR,EAAA,YAAAE,IAAA,2CACEO,GAAIL,KAAKG,YACTG,IAAI,MACJC,MAAOP,KAAKQ,UAAY,CAAE,wBAAyBR,KAAKQ,WAAc,GACtEC,MAAOT,KAAKU,WAIfV,KAAKW,aAAef,EAAA,OAAAE,IAAA,2CAAKC,MAAM,4BAA4BC,KAAKU,QAAO,K,WAlDxD,G","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,c as createEvent,h,H as Host}from"./index-9f0e742f.js";import{m as messageId,P as PdsLabel,a as assignDescription}from"./pds-label-c806218b.js";var pdsRadioCss='.sc-pds-radio-h{--border-interactive-default:var(--pine-border-width-thin) solid var( --pine-color-grey-400);--border-radius:50%;--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--color-focus);--box-shadow-focus-error:0 0 0 1px #ffffff, 0 0 0 3px var(--color-invalid-focus);--color:var(--pine-color-grey-700);--color-background:var(--pine-color-white);--color-background-hover:var(--pine-color-grey-100);--color-background-disabled:var(--pine-color-grey-200);--color-border-hover:var(--pine-color-grey-500);--color-border-disabled:var(--pine-color-grey-300);--color-checked:var(--pine-color-grey-950);--color-disabled:var(---pine-color-grey-500);--color-focus:var(--pine-color-purple-300);--color-invalid:var(--pine-color-red-300);--color-invalid-focus:var(--pine-color-red-200);--font-size:var(--pine-font-size-085);--sizing-check-size:6px;--sizing-input-size:16px;--sizing-margin-block-start:6px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}.is-invalid.sc-pds-radio-h input.sc-pds-radio{border-color:var(--color-invalid)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:checked{background:var(--color-invalid)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error);outline:none}.is-invalid.sc-pds-radio-h label.sc-pds-radio,.is-invalid.sc-pds-radio-h .pds-radio__message--error.sc-pds-radio{color:var(--color-invalid)}input.sc-pds-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:var(--border-interactive-default);border-radius:var(--border-radius);height:var(--sizing-input-size);margin:0;position:relative;width:var(--sizing-input-size)}input.sc-pds-radio:hover{background:var(--color-background-hover);border-color:var(--color-border-hover)}input.sc-pds-radio:checked{background:var(--color-checked);border-color:var(--color-checked)}input.sc-pds-radio:checked::after{background:var(--color-background);border-radius:50%;content:"";display:block;height:var(--sizing-check-size);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--sizing-check-size)}input.sc-pds-radio:disabled{background:var(--color-background-disabled);border-color:var(--color-border-disabled);cursor:not-allowed}input.sc-pds-radio:disabled:checked{background:var(--color-disabled);border-color:var(--color-border-disabled)}input.sc-pds-radio:disabled:checked::after{border-color:var(--color-border-disabled)}input.sc-pds-radio:disabled+label.sc-pds-radio{color:var(--color-border-hover);cursor:not-allowed}input.sc-pds-radio:disabled~.pds-radio__message.sc-pds-radio{color:var(--color-disabled)}input.sc-pds-radio:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}label.sc-pds-radio{-webkit-margin-start:10px;margin-inline-start:10px}.pds-radio__message.sc-pds-radio{color:var(--color);font-size:var(--font-size);-webkit-margin-before:var(--sizing-margin-block-start);margin-block-start:var(--sizing-margin-block-start);-webkit-margin-start:26px;margin-inline-start:26px;width:100%}';var PdsRadioStyle0=pdsRadioCss;var PdsRadio=function(){function r(r){var i=this;registerInstance(this,r);this.pdsRadioChange=createEvent(this,"pdsRadioChange",7);this.handleRadioChange=function(r){if(i.disabled){return}var o=r.target;var e=o.checked;i.pdsRadioChange.emit(e)};this.checked=false;this.disabled=false;this.errorMessage=undefined;this.invalid=false;this.componentId=undefined;this.label=undefined;this.helperMessage=undefined;this.name=undefined;this.required=false;this.value=undefined}r.prototype.classNames=function(){var r=[];if(this.invalid){r.push("is-invalid")}if(this.disabled){r.push("is-disabled")}return r.join(" ")};r.prototype.render=function(){return h(Host,{key:"e23a00c8941dfce9d9d6a99a554654b7bd2259c4",class:this.classNames()},h("input",{key:"571d2e6656cd94573253f54028b1926a3c5e1499","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:"42c2c95ed36e194f43367f2c28ed81660d82b096",htmlFor:this.componentId,text:this.label}),this.helperMessage&&h("div",{key:"32be02934f23b2832c6c1d0e56c3dceda8c9ccc9",class:"pds-radio__message",id:messageId(this.componentId,"helper")},this.helperMessage),this.errorMessage&&h("div",{key:"c670effc6a381f872800c8dd58095c2dce49016e",class:"pds-radio__message pds-radio__message--error",id:messageId(this.componentId,"error"),"aria-live":"assertive"},this.errorMessage))};return r}();PdsRadio.style=PdsRadioStyle0;export{PdsRadio as pds_radio};
1
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-b1696fed.js";import{m as messageId,a as assignDescription}from"./form-1b7b69e3.js";import{b as danger}from"./index-24f87b75.js";var labelCss=".sc-pds-radio-h{display:inline-block}[aria-disabled=true].sc-pds-radio-h label.sc-pds-radio{color:var(--pine-color-text-label-disabled)}[aria-readonly=true].sc-pds-radio-h label.sc-pds-radio{color:var(--pine-color-text-label-readonly)}label.sc-pds-radio{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}";var PdsRadioStyle0=labelCss;var pdsRadioCss='.sc-pds-radio-h{--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);--box-shadow-focus-error:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);--sizing-check-size:6px;--sizing-input-size:var(--pine-dimension-sm);--sizing-margin-block-start:6px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}.is-invalid.sc-pds-radio-h input.sc-pds-radio{border-color:var(--pine-color-border-danger)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:checked{background:var(--pine-color-border-danger)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:checked:hover{background:var(--pine-color-border-danger-hover);border-color:var(--pine-color-border-danger-hover)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error);outline:none}.is-invalid.sc-pds-radio-h label.sc-pds-radio,.is-invalid.sc-pds-radio-h .pds-radio__message--error.sc-pds-radio{color:var(--pine-color-text-message-danger)}input.sc-pds-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-border-radius-full);-ms-flex:none;flex:none;height:var(--sizing-input-size);margin:0;-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025);position:relative;width:var(--sizing-input-size)}input.sc-pds-radio:hover{background:var(--pine-color-background-container-hover);border:var(--pine-border-hover)}input.sc-pds-radio:checked{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}input.sc-pds-radio:checked:hover{background:var(--pine-color-accent-hover);border-color:var(--pine-color-accent-hover)}input.sc-pds-radio:checked::after{background:var(--pine-color-background-container);border-radius:var(--pine-border-radius-full);content:"";display:block;height:var(--sizing-check-size);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--sizing-check-size)}input.sc-pds-radio:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}input.sc-pds-radio:disabled:checked{background-color:var(--pine-color-accent-disabled);border-color:var(--pine-color-border-disabled)}input.sc-pds-radio:disabled:checked::after{border-color:var(--pine-color-border-disabled)}input.sc-pds-radio:disabled+label.sc-pds-radio{cursor:not-allowed}input.sc-pds-radio:disabled~.pds-radio__message.sc-pds-radio{color:var(--pine-color-text-message-disabled)}input.sc-pds-radio:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}label.sc-pds-radio{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-xs)}.pds-radio__message.sc-pds-radio{color:var(--pine-color-text-message);-webkit-margin-before:var(--sizing-margin-block-start);margin-block-start:var(--sizing-margin-block-start);-webkit-margin-start:var(--pine-dimension-md);margin-inline-start:var(--pine-dimension-md);width:100%}.pds-radio__message--error.sc-pds-radio{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-size:var(--pine-font-size-body-sm);gap:var(--pine-dimension-2xs)}';var PdsRadioStyle1=pdsRadioCss;var PdsRadio=function(){function e(e){var i=this;registerInstance(this,e);this.pdsRadioChange=createEvent(this,"pdsRadioChange",7);this.handleRadioChange=function(e){if(i.disabled){return}var r=e.target;var a=r.checked;i.pdsRadioChange.emit(a)};this.checked=false;this.componentId=undefined;this.disabled=false;this.errorMessage=undefined;this.helperMessage=undefined;this.invalid=false;this.label=undefined;this.name=undefined;this.required=false;this.value=undefined}e.prototype.classNames=function(){var e=[];if(this.invalid){e.push("is-invalid")}if(this.disabled){e.push("is-disabled")}return e.join(" ")};e.prototype.render=function(){return h(Host,{key:"f80c386dbbc3d77efbe0f4e2bcc4c78d72650f83",class:this.classNames()},h("label",{key:"0cc2ae96ebdd1eb769021a72ae69ddf175e4ffe8",htmlFor:this.componentId},h("input",{key:"8e643d6235a785dbd214ae191066b1b75a979171","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&&h("div",{key:"c1a57d76d77eea12aab82fbfd257188f15ff73a9",class:"pds-radio__message",id:messageId(this.componentId,"helper")},this.helperMessage),this.errorMessage&&h("div",{key:"9e09fc73c58ee4c192ba03a9384ab34f9f038ce7",class:"pds-radio__message pds-radio__message--error",id:messageId(this.componentId,"error"),"aria-live":"assertive"},h("pds-icon",{key:"80a49ff87ed900703a7f9f8d4127ea6e0ae9ca55",icon:danger,size:"small"}),this.errorMessage))};return e}();PdsRadio.style=PdsRadioStyle0+PdsRadioStyle1;export{PdsRadio as pds_radio};
2
2
  //# sourceMappingURL=pds-radio.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pdsRadioCss","PdsRadioStyle0","PdsRadio","this","handleRadioChange","e","_this","disabled","target","isChecked","checked","pdsRadioChange","emit","prototype","classNames","invalid","push","join","render","h","Host","key","class","assignDescription","componentId","helperMessage","undefined","type","id","name","value","required","onChange","PdsLabel","htmlFor","text","label","messageId","errorMessage"],"sources":["src/components/pds-radio/pds-radio.scss?tag=pds-radio&encapsulation=scoped","src/components/pds-radio/pds-radio.tsx"],"sourcesContent":[":host {\n --border-interactive-default: var(--pine-border-width-thin) solid var( --pine-color-grey-400);\n --border-radius: 50%;\n\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--color-focus);\n --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--color-invalid-focus);\n\n --color: var(--pine-color-grey-700);\n --color-background: var(--pine-color-white);\n --color-background-hover: var(--pine-color-grey-100);\n --color-background-disabled: var(--pine-color-grey-200);\n --color-border-hover: var(--pine-color-grey-500);\n --color-border-disabled: var(--pine-color-grey-300);\n --color-checked: var(--pine-color-grey-950);\n --color-disabled: var(---pine-color-grey-500);\n --color-focus: var(--pine-color-purple-300);\n --color-invalid: var(--pine-color-red-300);\n --color-invalid-focus: var(--pine-color-red-200);\n\n --font-size: var(--pine-font-size-085);\n\n --sizing-check-size: 6px;\n --sizing-input-size: 16px;\n --sizing-margin-block-start: 6px;\n\n align-items: center;\n display: flex;\n flex-flow: row wrap;\n}\n\n:host(.is-invalid) {\n input {\n border-color: var(--color-invalid);\n\n &:checked {\n background: var(--color-invalid);\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n outline: none;\n }\n }\n\n label,\n .pds-radio__message--error {\n color: var(--color-invalid);\n }\n}\n\ninput {\n appearance: none;\n border: var(--border-interactive-default);\n border-radius: var(--border-radius);\n height: var(--sizing-input-size);\n margin: 0;\n position: relative;\n width: var(--sizing-input-size);\n\n &:hover {\n background: var(--color-background-hover);\n border-color: var(--color-border-hover);\n }\n\n &:checked {\n background: var(--color-checked);\n border-color: var(--color-checked);\n\n &::after {\n background: var(--color-background);\n border-radius: 50%;\n content: \"\";\n display: block;\n height: var(--sizing-check-size);\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: var(--sizing-check-size);\n }\n }\n\n &:disabled {\n background: var(--color-background-disabled);\n border-color: var(--color-border-disabled);\n cursor: not-allowed;\n\n &:checked {\n background: var(--color-disabled);\n border-color: var(--color-border-disabled);\n\n &::after {\n border-color: var(--color-border-disabled);\n }\n }\n\n + label {\n color: var(--color-border-hover);\n cursor: not-allowed;\n }\n\n ~ .pds-radio__message {\n color: var(--color-disabled);\n }\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n}\n\nlabel {\n margin-inline-start: 10px;\n}\n\n.pds-radio__message {\n color: var(--color);\n font-size: var(--font-size);\n margin-block-start: var(--sizing-margin-block-start);\n margin-inline-start: 26px;\n width: 100%;\n}\n","import { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-radio',\n styleUrl: 'pds-radio.scss',\n scoped: true,\n})\nexport class PdsRadio {\n /**\n * Determines whether or not the radio is checked.\n * @defaultValue false\n */\n @Prop() checked = false;\n\n /**\n * Determines whether or not the radio is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Determines whether or not the radio is invalid.\n * @defaultValue false\n */\n @Prop() invalid = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * String used for label text next to radio.\n */\n @Prop() label: string;\n\n /**\n * String used for helper message below radio.\n */\n @Prop() helperMessage: string;\n\n /**\n * String used for radio `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * Determines whether or not the radio is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value of the radio that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Emits a boolean indicating whether the checkbox is currently checked or unchecked.\n */\n @Event() pdsRadioChange: EventEmitter<boolean>;\n\n private handleRadioChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n const isChecked = target.checked;\n\n this.pdsRadioChange.emit(isChecked);\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) {\n classNames.push('is-invalid');\n }\n if (this.disabled) {\n classNames.push('is-disabled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n type=\"radio\"\n id={this.componentId}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleRadioChange}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={'pds-radio__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-radio__message pds-radio__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"mappings":"6KAAA,IAAMA,YAAc,qmGACpB,IAAAC,eAAeD,Y,ICQFE,SAAQ,W,2GA4DXC,KAAAC,kBAAoB,SAACC,GAC3B,GAAIC,EAAKC,SAAU,CACjB,M,CAGF,IAAMC,EAASH,EAAEG,OACjB,IAAMC,EAAYD,EAAOE,QAEzBJ,EAAKK,eAAeC,KAAKH,E,eA/DT,M,cAMC,M,yCAWD,M,+GA0BC,M,qBAuBXP,EAAAW,UAAAC,WAAA,WACN,IAAMA,EAAa,GAEnB,GAAIX,KAAKY,QAAS,CAChBD,EAAWE,KAAK,a,CAElB,GAAIb,KAAKI,SAAU,CACjBO,EAAWE,KAAK,c,CAGlB,OAAOF,EAAWG,KAAK,K,EAGzBf,EAAAW,UAAAK,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAOnB,KAAKW,cAChBK,EAAA,SAAAE,IAAA,8DACoBE,kBAAkBpB,KAAKqB,YAAarB,KAAKY,QAASZ,KAAKsB,eAAc,eACzEtB,KAAKY,QAAU,OAASW,UACtCC,KAAK,QACLC,GAAIzB,KAAKqB,YACTK,KAAM1B,KAAK0B,KACXC,MAAO3B,KAAK2B,MACZpB,QAASP,KAAKO,QACdqB,SAAU5B,KAAK4B,SACfxB,SAAUJ,KAAKI,SACfyB,SAAU7B,KAAKC,oBAEjBe,EAACc,SAAQ,CAAAZ,IAAA,2CAACa,QAAS/B,KAAKqB,YAAaW,KAAMhC,KAAKiC,QAC/CjC,KAAKsB,eACJN,EAAA,OAAAE,IAAA,2CACEC,MAAO,qBACPM,GAAIS,UAAUlC,KAAKqB,YAAa,WAE/BrB,KAAKsB,eAGTtB,KAAKmC,cACJnB,EAAA,OAAAE,IAAA,2CACEC,MAAO,+CACPM,GAAIS,UAAUlC,KAAKqB,YAAa,SAAQ,YAC9B,aAETrB,KAAKmC,c,WAlHG,G","ignoreList":[]}
1
+ {"version":3,"names":["labelCss","PdsRadioStyle0","pdsRadioCss","PdsRadioStyle1","PdsRadio","this","handleRadioChange","e","_this","disabled","target","isChecked","checked","pdsRadioChange","emit","prototype","classNames","invalid","push","join","render","h","Host","key","class","htmlFor","componentId","assignDescription","helperMessage","undefined","type","id","name","value","required","onChange","label","messageId","errorMessage","icon","danger","size"],"sources":["src/global/styles/utils/label.scss?tag=pds-radio&encapsulation=scoped","src/components/pds-radio/pds-radio.scss?tag=pds-radio&encapsulation=scoped","src/components/pds-radio/pds-radio.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n",":host {\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);\n --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);\n\n --sizing-check-size: 6px;\n --sizing-input-size: var(--pine-dimension-sm);\n --sizing-margin-block-start: 6px;\n\n align-items: center;\n display: flex;\n flex-flow: row wrap;\n}\n\n:host(.is-invalid) {\n input {\n border-color: var(--pine-color-border-danger);\n\n &:checked {\n background: var(--pine-color-border-danger);\n\n &:hover {\n background: var(--pine-color-border-danger-hover);\n border-color: var(--pine-color-border-danger-hover);\n }\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n outline: none;\n }\n }\n\n label,\n .pds-radio__message--error {\n color: var(--pine-color-text-message-danger);\n }\n}\n\ninput {\n appearance: none;\n background: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: var(--pine-border-radius-full);\n flex: none;\n height: var(--sizing-input-size);\n margin: 0;\n margin-block-start: var(--pine-dimension-025);\n position: relative;\n width: var(--sizing-input-size);\n\n &:hover {\n background: var(--pine-color-background-container-hover);\n border: var(--pine-border-hover);\n }\n\n &:checked {\n background: var(--pine-color-accent);\n border-color: var(--pine-color-accent);\n\n &:hover {\n background: var(--pine-color-accent-hover);\n border-color: var(--pine-color-accent-hover);\n }\n\n &::after {\n background: var(--pine-color-background-container);\n border-radius: var(--pine-border-radius-full);\n content: \"\";\n display: block;\n height: var(--sizing-check-size);\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n width: var(--sizing-check-size);\n }\n }\n\n &:disabled {\n background: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n cursor: not-allowed;\n\n &:checked {\n background-color: var(--pine-color-accent-disabled);\n border-color: var(--pine-color-border-disabled);\n\n &::after {\n border-color: var(--pine-color-border-disabled);\n }\n }\n\n + label {\n cursor: not-allowed;\n }\n\n ~ .pds-radio__message {\n color: var(--pine-color-text-message-disabled);\n }\n }\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n}\n\nlabel {\n display: flex;\n gap: var(--pine-dimension-xs);\n}\n\n.pds-radio__message {\n color: var(--pine-color-text-message);\n margin-block-start: var(--sizing-margin-block-start);\n margin-inline-start: var(--pine-dimension-md);\n width: 100%;\n}\n\n.pds-radio__message--error {\n align-items: center;\n display: flex;\n font-size: var(--pine-font-size-body-sm);\n gap: var(--pine-dimension-2xs);\n}\n","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"],"mappings":"uMAAA,IAAMA,SAAW,sXACjB,IAAAC,eAAeD,SCDf,IAAME,YAAc,0xGACpB,IAAAC,eAAeD,Y,ICQFE,SAAQ,W,2GA4DXC,KAAAC,kBAAoB,SAACC,GAC3B,GAAIC,EAAKC,SAAU,CACjB,M,CAGF,IAAMC,EAASH,EAAEG,OACjB,IAAMC,EAAYD,EAAOE,QAEzBJ,EAAKK,eAAeC,KAAKH,E,eA/DT,M,yCAWC,M,sEAgBC,M,uDAgBD,M,qBAuBXP,EAAAW,UAAAC,WAAA,WACN,IAAMA,EAAa,GAEnB,GAAIX,KAAKY,QAAS,CAChBD,EAAWE,KAAK,a,CAElB,GAAIb,KAAKI,SAAU,CACjBO,EAAWE,KAAK,c,CAGlB,OAAOF,EAAWG,KAAK,K,EAGzBf,EAAAW,UAAAK,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAOnB,KAAKW,cAChBK,EAAA,SAAAE,IAAA,2CAAOE,QAASpB,KAAKqB,aACnBL,EAAA,SAAAE,IAAA,8DACoBI,kBAAkBtB,KAAKqB,YAAarB,KAAKY,QAASZ,KAAKuB,eAAc,eACzEvB,KAAKY,QAAU,OAASY,UACtCC,KAAK,QACLC,GAAI1B,KAAKqB,YACTM,KAAM3B,KAAK2B,KACXC,MAAO5B,KAAK4B,MACZrB,QAASP,KAAKO,QACdsB,SAAU7B,KAAK6B,SACfzB,SAAUJ,KAAKI,SACf0B,SAAU9B,KAAKC,oBAEhBD,KAAK+B,OAEP/B,KAAKuB,eACJP,EAAA,OAAAE,IAAA,2CACEC,MAAO,qBACPO,GAAIM,UAAUhC,KAAKqB,YAAa,WAE/BrB,KAAKuB,eAGTvB,KAAKiC,cACJjB,EAAA,OAAAE,IAAA,2CACEC,MAAO,+CACPO,GAAIM,UAAUhC,KAAKqB,YAAa,SAAQ,YAC9B,aAEVL,EAAA,YAAAE,IAAA,2CAAUgB,KAAMC,OAAQC,KAAK,UAC5BpC,KAAKiC,c,WArHG,G","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h,H as Host}from"./index-9f0e742f.js";var pdsRowCss=":host{--border-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);--row-gap-y:calc(var(--pine-spacing-250) / 2);--row-gap-x:10px;display:block;-webkit-margin-after:calc(var(--row-gap-y) * -1);margin-block-end:calc(var(--row-gap-y) * -1);-webkit-margin-before:calc(var(--row-gap-y) * -1);margin-block-start:calc(var(--row-gap-y) * -1);-webkit-margin-end:calc(var(--row-gap-x) * -0.5);margin-inline-end:calc(var(--row-gap-x) * -0.5);-webkit-margin-start:calc(var(--row-gap-x) * -0.5);margin-inline-start:calc(var(--row-gap-x) * -0.5)}.pds-row{display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-margin-after:calc(var(--row-gap-y) * -1);margin-block-end:calc(var(--row-gap-y) * -1);-webkit-margin-before:calc(var(--row-gap-y) * -1);margin-block-start:calc(var(--row-gap-y) * -1);-webkit-margin-end:calc(var(--row-gap-x) * -1);margin-inline-end:calc(var(--row-gap-x) * -1);-webkit-margin-start:calc(var(--row-gap-x) * -1);margin-inline-start:calc(var(--row-gap-x) * -1)}.pds-row>*{-webkit-padding-after:calc(var(--row-gap-y));padding-block-end:calc(var(--row-gap-y));-webkit-padding-before:calc(var(--row-gap-y));padding-block-start:calc(var(--row-gap-y));-webkit-padding-end:calc(var(--row-gap-x));padding-inline-end:calc(var(--row-gap-x));-webkit-padding-start:calc(var(--row-gap-x));padding-inline-start:calc(var(--row-gap-x))}.pds-row--no-wrap{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.pds-row--border{border:var(--border-default)}.pds-justify-content-start{-ms-flex-pack:start;justify-content:start}.pds-justify-content-center{-ms-flex-pack:center;justify-content:center}.pds-justify-content-end{-ms-flex-pack:end;justify-content:end}.pds-justify-content-space-between{-ms-flex-pack:justify;justify-content:space-between}.pds-justify-content-space-around{-ms-flex-pack:distribute;justify-content:space-around}.pds-justify-content-space-evenly{-ms-flex-pack:space-evenly;justify-content:space-evenly}.pds-align-items-start{-ms-flex-align:start;align-items:start}.pds-align-items-center{-ms-flex-align:center;align-items:center}.pds-align-items-end{-ms-flex-align:end;align-items:end}.pds-align-items-stretch{-ms-flex-align:stretch;align-items:stretch}.pds-align-items-baseline{-ms-flex-align:baseline;align-items:baseline}";var PdsRowStyle0=pdsRowCss;var PdsRow=function(){function a(a){registerInstance(this,a);this.colGapMap={none:"0",xxs:".25rem",xs:".5rem",sm:"1rem",md:"1.5rem",lg:"2.25rem",xl:"3rem",xxl:"4rem"};this.alignItems=undefined;this.border=false;this.colGap=undefined;this.componentId=undefined;this.justifyContent=undefined;this.minHeight=undefined;this.noWrap=false}a.prototype.render=function(){var a="\n ".concat(this.alignItems!==undefined&&this.alignItems.trim()!==""?"pds-align-items-".concat(this.alignItems):"","\n ").concat(this.border?"pds-row--border":"","\n ").concat(this.justifyContent!==undefined&&this.justifyContent.trim()!==""?"pds-justify-content-".concat(this.justifyContent):"","\n ").concat(this.noWrap?"pds-row--no-wrap":"","\n ");var e=Object.assign(Object.assign({},this.colGap&&{"--row-gap-x":this.colGap!==undefined&&this.colGap.trim()!==""?this.colGapMap[this.colGap]:"","--row-gap-y":this.colGap!==undefined&&this.colGap.trim()!==""?this.colGapMap[this.colGap]:""}),this.minHeight&&{"min-height":this.minHeight});return h(Host,{key:"b764491968a34ae8f1e3e329111cb4ba0887bdef",class:"pds-row ".concat(a),style:e})};return a}();PdsRow.style=PdsRowStyle0;export{PdsRow as pds_row};
1
+ import{r as registerInstance,h,H as Host}from"./index-b1696fed.js";var pdsRowCss=":host {\n --row-gap-y: var(--pine-dimension-125);\n --row-gap-x: var(--pine-dimension-125);\n display: block;\n -webkit-margin-after: calc(var(--row-gap-y) * -1);\n margin-block-end: calc(var(--row-gap-y) * -1);\n -webkit-margin-before: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n -webkit-margin-end: calc(var(--row-gap-x) * -0.5);\n margin-inline-end: calc(var(--row-gap-x) * -0.5);\n -webkit-margin-start: calc(var(--row-gap-x) * -0.5);\n margin-inline-start: calc(var(--row-gap-x) * -0.5);\n}\n\n.pds-row {\n display: -ms-flexbox;\n display: flex;\n -ms-flex-positive: 1;\n flex-grow: 1;\n -ms-flex-wrap: wrap;\n flex-wrap: wrap;\n -webkit-margin-after: calc(var(--row-gap-y) * -1);\n margin-block-end: calc(var(--row-gap-y) * -1);\n -webkit-margin-before: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n -webkit-margin-end: calc(var(--row-gap-x) * -1);\n margin-inline-end: calc(var(--row-gap-x) * -1);\n -webkit-margin-start: calc(var(--row-gap-x) * -1);\n margin-inline-start: calc(var(--row-gap-x) * -1);\n}\n@layer layout {\n .pds-row > * {\n -webkit-padding-after: calc(var(--row-gap-y));\n padding-block-end: calc(var(--row-gap-y));\n -webkit-padding-before: calc(var(--row-gap-y));\n padding-block-start: calc(var(--row-gap-y));\n -webkit-padding-end: calc(var(--row-gap-x));\n padding-inline-end: calc(var(--row-gap-x));\n -webkit-padding-start: calc(var(--row-gap-x));\n padding-inline-start: calc(var(--row-gap-x));\n }\n}\n\n.pds-row--no-wrap {\n -ms-flex-wrap: nowrap;\n flex-wrap: nowrap;\n}\n\n.pds-row--border {\n border: var(--pine-border);\n}\n\n.pds-justify-content-start {\n -ms-flex-pack: start;\n justify-content: start;\n}\n\n.pds-justify-content-center {\n -ms-flex-pack: center;\n justify-content: center;\n}\n\n.pds-justify-content-end {\n -ms-flex-pack: end;\n justify-content: end;\n}\n\n.pds-justify-content-space-between {\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n\n.pds-justify-content-space-around {\n -ms-flex-pack: distribute;\n justify-content: space-around;\n}\n\n.pds-justify-content-space-evenly {\n -ms-flex-pack: space-evenly;\n justify-content: space-evenly;\n}\n\n.pds-align-items-start {\n -ms-flex-align: start;\n align-items: start;\n}\n\n.pds-align-items-center {\n -ms-flex-align: center;\n align-items: center;\n}\n\n.pds-align-items-end {\n -ms-flex-align: end;\n align-items: end;\n}\n\n.pds-align-items-stretch {\n -ms-flex-align: stretch;\n align-items: stretch;\n}\n\n.pds-align-items-baseline {\n -ms-flex-align: baseline;\n align-items: baseline;\n}";var PdsRowStyle0=pdsRowCss;var PdsRow=function(){function n(n){registerInstance(this,n);this.colGapMap={none:"0",xxs:".25rem",xs:".5rem",sm:"1rem",md:"1.5rem",lg:"2.25rem",xl:"3rem",xxl:"4rem"};this.alignItems=undefined;this.border=false;this.colGap=undefined;this.componentId=undefined;this.justifyContent=undefined;this.minHeight=undefined;this.noWrap=false}n.prototype.render=function(){var n="\n ".concat(this.alignItems!==undefined&&this.alignItems.trim()!==""?"pds-align-items-".concat(this.alignItems):"","\n ").concat(this.border?"pds-row--border":"","\n ").concat(this.justifyContent!==undefined&&this.justifyContent.trim()!==""?"pds-justify-content-".concat(this.justifyContent):"","\n ").concat(this.noWrap?"pds-row--no-wrap":"","\n ");var a=Object.assign(Object.assign({},this.colGap&&{"--row-gap-x":this.colGap!==undefined&&this.colGap.trim()!==""?this.colGapMap[this.colGap]:"","--row-gap-y":this.colGap!==undefined&&this.colGap.trim()!==""?this.colGapMap[this.colGap]:""}),this.minHeight&&{"min-height":this.minHeight});return h(Host,{key:"2c1ace3d1a16e1b437373d6d56c1d259f16c4525",class:"pds-row ".concat(n),style:a})};return n}();PdsRow.style=PdsRowStyle0;export{PdsRow as pds_row};
2
2
  //# sourceMappingURL=pds-row.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pdsRowCss","PdsRowStyle0","PdsRow","this","colGapMap","none","xxs","xs","sm","md","lg","xl","xxl","prototype","render","rowClasses","concat","alignItems","undefined","trim","border","justifyContent","noWrap","rowInlineStyles","Object","assign","colGap","minHeight","h","Host","key","class","style"],"sources":["src/components/pds-row/pds-row.scss?tag=pds-row","src/components/pds-row/pds-row.tsx"],"sourcesContent":[":host {\n --border-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n --row-gap-y: calc(var(--pine-spacing-250) / 2);\n --row-gap-x: 10px;\n\n display: block;\n margin-block-end: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n margin-inline-end: calc(var(--row-gap-x) * -0.5);\n margin-inline-start: calc(var(--row-gap-x) * -0.5);\n}\n\n.pds-row {\n display: flex;\n flex-grow: 1;\n flex-wrap: wrap;\n margin-block-end: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n margin-inline-end: calc(var(--row-gap-x) * -1);\n margin-inline-start: calc(var(--row-gap-x) * -1);\n\n > * {\n padding-block-end: calc(var(--row-gap-y));\n padding-block-start: calc(var(--row-gap-y));\n padding-inline-end: calc(var(--row-gap-x));\n padding-inline-start: calc(var(--row-gap-x));\n }\n}\n\n.pds-row--no-wrap {\n flex-wrap: nowrap;\n}\n\n.pds-row--border {\n border: var(--border-default);\n}\n\n// Justify Content helpers\n.pds-justify-content-start {\n justify-content: start;\n}\n\n.pds-justify-content-center {\n justify-content: center;\n}\n\n.pds-justify-content-end {\n justify-content: end;\n}\n\n.pds-justify-content-space-between {\n justify-content: space-between;\n}\n\n.pds-justify-content-space-around {\n justify-content: space-around;\n}\n\n.pds-justify-content-space-evenly {\n justify-content: space-evenly;\n}\n\n// Align Items helpers\n.pds-align-items-start {\n align-items: start;\n}\n\n.pds-align-items-center {\n align-items: center;\n}\n\n.pds-align-items-end {\n align-items: end;\n}\n\n.pds-align-items-stretch {\n align-items: stretch;\n}\n\n.pds-align-items-baseline {\n align-items: baseline;\n}\n","import { Component, Prop, h, Host } from '@stencil/core';\n\nimport { BoxTShirtSizeType } from '../../utils/types';\n\n@Component({\n tag: 'pds-row',\n styleUrl: 'pds-row.scss',\n})\nexport class PdsRow {\n /**\n * Defines the vertical alignment of the row items.\n * @defaultValue start\n */\n @Prop() alignItems?: `start` | `center` | `end` | `baseline` | `stretch`;\n\n /**\n * If `true`, the row will have a border.\n */\n @Prop() border? = false;\n\n /**\n * Defines the spacing between the row items.\n */\n @Prop() colGap?: BoxTShirtSizeType | null;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Defines the horizontal alignment of the row items.\n * @defaultValue start\n */\n @Prop() justifyContent?: `start` | `center` | `end` | `space-between` | `space-around`;\n\n /**\n * The minimum height of the row. Used in conjunction with alignment props\n */\n @Prop() minHeight?: string;\n\n /**\n * If `true`, the row items will not wrap to the next line if horizontal space is not available.\n */\n @Prop() noWrap? = false;\n\n private colGapMap: { [key in BoxTShirtSizeType]: string } = {\n none: '0',\n xxs: '.25rem',\n xs: '.5rem',\n sm: '1rem',\n md: '1.5rem',\n lg: '2.25rem',\n xl: '3rem',\n xxl: '4rem',\n };\n\n render() {\n const rowClasses = `\n ${this.alignItems !== undefined && this.alignItems.trim() !== '' ? `pds-align-items-${this.alignItems}` : ''}\n ${this.border ? 'pds-row--border' : ''}\n ${this.justifyContent !== undefined && this.justifyContent.trim() !== '' ? `pds-justify-content-${this.justifyContent}` : ''}\n ${this.noWrap ? 'pds-row--no-wrap' : ''}\n `;\n\n const rowInlineStyles = {\n ...(this.colGap && {\n '--row-gap-x': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',\n '--row-gap-y': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',\n }),\n ...(this.minHeight && {\n 'min-height': this.minHeight,\n }),\n };\n\n return <Host class={`pds-row ${rowClasses}`} style={rowInlineStyles}></Host>;\n }\n}\n"],"mappings":"mEAAA,IAAMA,UAAY,yvEAClB,IAAAC,aAAeD,U,ICOFE,OAAM,W,uCAsCTC,KAAAC,UAAoD,CAC1DC,KAAM,IACNC,IAAK,SACLC,GAAI,QACJC,GAAI,OACJC,GAAI,SACJC,GAAI,UACJC,GAAI,OACJC,IAAK,Q,sCApCW,M,oHA0BA,K,CAalBV,EAAAW,UAAAC,OAAA,WACE,IAAMC,EAAa,SAAAC,OACjBb,KAAKc,aAAeC,WAAaf,KAAKc,WAAWE,SAAW,GAAK,mBAAAH,OAAmBb,KAAKc,YAAe,GAAE,UAAAD,OAC1Gb,KAAKiB,OAAS,kBAAoB,GAAE,UAAAJ,OACpCb,KAAKkB,iBAAmBH,WAAaf,KAAKkB,eAAeF,SAAW,GAAK,uBAAAH,OAAuBb,KAAKkB,gBAAmB,GAAE,UAAAL,OAC1Hb,KAAKmB,OAAS,mBAAqB,GAAE,QAGvC,IAAMC,EAAeC,OAAAC,OAAAD,OAAAC,OAAA,GACftB,KAAKuB,QAAU,CACjB,cAAevB,KAAKuB,SAAWR,WAAaf,KAAKuB,OAAOP,SAAW,GAAKhB,KAAKC,UAAUD,KAAKuB,QAAU,GACtG,cAAevB,KAAKuB,SAAWR,WAAaf,KAAKuB,OAAOP,SAAW,GAAKhB,KAAKC,UAAUD,KAAKuB,QAAU,KAEpGvB,KAAKwB,WAAa,CACpB,aAAcxB,KAAKwB,YAIvB,OAAOC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAO,WAAAf,OAAWD,GAAciB,MAAOT,G,WAnErC,G","ignoreList":[]}
1
+ {"version":3,"names":["pdsRowCss","PdsRowStyle0","PdsRow","this","colGapMap","none","xxs","xs","sm","md","lg","xl","xxl","prototype","render","rowClasses","concat","alignItems","undefined","trim","border","justifyContent","noWrap","rowInlineStyles","Object","assign","colGap","minHeight","h","Host","key","class","style"],"sources":["src/components/pds-row/pds-row.scss?tag=pds-row","src/components/pds-row/pds-row.tsx"],"sourcesContent":[":host {\n --row-gap-y: var(--pine-dimension-125);\n --row-gap-x: var(--pine-dimension-125);\n\n display: block;\n margin-block-end: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n margin-inline-end: calc(var(--row-gap-x) * -0.5);\n margin-inline-start: calc(var(--row-gap-x) * -0.5);\n}\n\n.pds-row {\n display: flex;\n flex-grow: 1;\n flex-wrap: wrap;\n margin-block-end: calc(var(--row-gap-y) * -1);\n margin-block-start: calc(var(--row-gap-y) * -1);\n margin-inline-end: calc(var(--row-gap-x) * -1);\n margin-inline-start: calc(var(--row-gap-x) * -1);\n\n @layer layout {\n > * {\n padding-block-end: calc(var(--row-gap-y));\n padding-block-start: calc(var(--row-gap-y));\n padding-inline-end: calc(var(--row-gap-x));\n padding-inline-start: calc(var(--row-gap-x));\n }\n }\n}\n\n.pds-row--no-wrap {\n flex-wrap: nowrap;\n}\n\n.pds-row--border {\n border: var(--pine-border);\n}\n\n// Justify Content helpers\n.pds-justify-content-start {\n justify-content: start;\n}\n\n.pds-justify-content-center {\n justify-content: center;\n}\n\n.pds-justify-content-end {\n justify-content: end;\n}\n\n.pds-justify-content-space-between {\n justify-content: space-between;\n}\n\n.pds-justify-content-space-around {\n justify-content: space-around;\n}\n\n.pds-justify-content-space-evenly {\n justify-content: space-evenly;\n}\n\n// Align Items helpers\n.pds-align-items-start {\n align-items: start;\n}\n\n.pds-align-items-center {\n align-items: center;\n}\n\n.pds-align-items-end {\n align-items: end;\n}\n\n.pds-align-items-stretch {\n align-items: stretch;\n}\n\n.pds-align-items-baseline {\n align-items: baseline;\n}\n","import { Component, Prop, h, Host } from '@stencil/core';\n\nimport { BoxTShirtSizeType } from '../../utils/types';\n\n@Component({\n tag: 'pds-row',\n styleUrl: 'pds-row.scss',\n})\nexport class PdsRow {\n /**\n * Defines the vertical alignment of the row items.\n * @defaultValue start\n */\n @Prop() alignItems?: `start` | `center` | `end` | `baseline` | `stretch`;\n\n /**\n * If `true`, the row will have a border.\n */\n @Prop() border? = false;\n\n /**\n * Defines the spacing between the row items.\n */\n @Prop() colGap?: BoxTShirtSizeType | null;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Defines the horizontal alignment of the row items.\n * @defaultValue start\n */\n @Prop() justifyContent?: `start` | `center` | `end` | `space-between` | `space-around`;\n\n /**\n * The minimum height of the row. Used in conjunction with alignment props\n */\n @Prop() minHeight?: string;\n\n /**\n * If `true`, the row items will not wrap to the next line if horizontal space is not available.\n */\n @Prop() noWrap? = false;\n\n private colGapMap: { [key in BoxTShirtSizeType]: string } = {\n none: '0',\n xxs: '.25rem',\n xs: '.5rem',\n sm: '1rem',\n md: '1.5rem',\n lg: '2.25rem',\n xl: '3rem',\n xxl: '4rem',\n };\n\n render() {\n const rowClasses = `\n ${this.alignItems !== undefined && this.alignItems.trim() !== '' ? `pds-align-items-${this.alignItems}` : ''}\n ${this.border ? 'pds-row--border' : ''}\n ${this.justifyContent !== undefined && this.justifyContent.trim() !== '' ? `pds-justify-content-${this.justifyContent}` : ''}\n ${this.noWrap ? 'pds-row--no-wrap' : ''}\n `;\n\n const rowInlineStyles = {\n ...(this.colGap && {\n '--row-gap-x': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',\n '--row-gap-y': this.colGap !== undefined && this.colGap.trim() !== '' ? this.colGapMap[this.colGap] : '',\n }),\n ...(this.minHeight && {\n 'min-height': this.minHeight,\n }),\n };\n\n return <Host class={`pds-row ${rowClasses}`} style={rowInlineStyles}></Host>;\n }\n}\n"],"mappings":"mEAAA,IAAMA,UAAY,ynFAClB,IAAAC,aAAeD,U,ICOFE,OAAM,W,uCAsCTC,KAAAC,UAAoD,CAC1DC,KAAM,IACNC,IAAK,SACLC,GAAI,QACJC,GAAI,OACJC,GAAI,SACJC,GAAI,UACJC,GAAI,OACJC,IAAK,Q,sCApCW,M,oHA0BA,K,CAalBV,EAAAW,UAAAC,OAAA,WACE,IAAMC,EAAa,SAAAC,OACjBb,KAAKc,aAAeC,WAAaf,KAAKc,WAAWE,SAAW,GAAK,mBAAAH,OAAmBb,KAAKc,YAAe,GAAE,UAAAD,OAC1Gb,KAAKiB,OAAS,kBAAoB,GAAE,UAAAJ,OACpCb,KAAKkB,iBAAmBH,WAAaf,KAAKkB,eAAeF,SAAW,GAAK,uBAAAH,OAAuBb,KAAKkB,gBAAmB,GAAE,UAAAL,OAC1Hb,KAAKmB,OAAS,mBAAqB,GAAE,QAGvC,IAAMC,EAAeC,OAAAC,OAAAD,OAAAC,OAAA,GACftB,KAAKuB,QAAU,CACjB,cAAevB,KAAKuB,SAAWR,WAAaf,KAAKuB,OAAOP,SAAW,GAAKhB,KAAKC,UAAUD,KAAKuB,QAAU,GACtG,cAAevB,KAAKuB,SAAWR,WAAaf,KAAKuB,OAAOP,SAAW,GAAKhB,KAAKC,UAAUD,KAAKuB,QAAU,KAEpGvB,KAAKwB,WAAa,CACpB,aAAcxB,KAAKwB,YAIvB,OAAOC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAO,WAAAf,OAAWD,GAAciB,MAAOT,G,WAnErC,G","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as registerInstance,c as createEvent,h,H as Host}from"./index-b1696fed.js";import{m as messageId}from"./form-1b7b69e3.js";import{b as danger,e as enlarge}from"./index-24f87b75.js";var pdsSelectTokensCss=":host{--pine-select-color-background-danger:var(--pine-color-red-050)}";var PdsSelectStyle0=pdsSelectTokensCss;var labelCss=":host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}";var PdsSelectStyle1=labelCss;var pdsSelectCss=':host{--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);--box-shadow-focus-error:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger)}:host .hidden,:host :host([hidden]){display:none}.pds-select{display:grid;-ms-flex-direction:column;flex-direction:column;grid-template-areas:"label label" "field field" "message message";grid-template-columns:1fr minmax(2rem, -webkit-min-content);grid-template-columns:1fr minmax(2rem, min-content);grid-template-rows:-webkit-min-content -webkit-min-content -webkit-min-content;grid-template-rows:min-content min-content min-content;position:relative;width:100%}label{grid-area:label;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);font:var(--pine-typography-body);grid-area:field;letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-xs) var(--pine-dimension-150);padding-right:var(--pine-dimension-450);position:relative}select:hover{border-color:var(--pine-color-border-hover);cursor:pointer}select:focus-visible{border-color:var(--pine-color-border-active);-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}select:disabled{background-color:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}select:has(~.pds-select__message .pds-select__error-message){background-color:var(--pine-select-color-background-danger);border-color:var(--pine-color-border-danger)}select:has(~.pds-select__message .pds-select__error-message):focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error);outline:none}:host(.is-invalid) select{background-color:var(--pine-select-color-background-danger);border-color:var(--pine-color-border-danger)}:host(.is-invalid) select:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error);outline:none}.pds-select__error-message,.pds-select__helper-message{font:var(--pine-typography-body-sm-medium);-webkit-margin-after:0;margin-block-end:0;-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-select__error-message{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-select__message{grid-area:message}.pds-select__select-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;grid-column:-1/-2;grid-row:2/3;height:2.5rem;pointer-events:none;position:relative;z-index:1}';var PdsSelectStyle2=pdsSelectCss;var PdsSelect=function(){function e(e){var s=this;registerInstance(this,e);this.pdsSelectChange=createEvent(this,"pdsSelectChange",7);this.onSelectUpdate=function(e){var r=e.target;var i=Array.from(r.options).filter((function(e){return e.selected})).map((function(e){return e.value}));if(i.length===1&&!s.multiple){s.value=i[0]}else{s.value=i}s.pdsSelectChange.emit(e)};this.handleSlotChange=function(){var e=s.slotContainer.querySelector("slot");s.selectEl.innerHTML="";var r=e.assignedElements({flatten:true});r.forEach((function(e){if(["OPTION","OPTGROUP"].includes(e.tagName)){var r=e.cloneNode(true);if(r.tagName==="OPTION"&&r.value===s.value){r.selected=true}s.selectEl.appendChild(r)}}));s.updateSelectedOption()};this.autocomplete=undefined;this.componentId=undefined;this.disabled=false;this.errorMessage=undefined;this.helperMessage=undefined;this.invalid=undefined;this.label=undefined;this.multiple=false;this.name=undefined;this.required=false;this.value=undefined}e.prototype.valueChanged=function(){this.updateSelectedOption()};e.prototype.componentWillLoad=function(){this.updateSelectedOption()};e.prototype.updateSelectedOption=function(){var e=this;if(this.selectEl){var s=this.selectEl.options;Array.from(s).map((function(s){if(Array.isArray(e.value)){s.selected=e.value.includes(s.value)}else{s.selected=e.value===s.value}}))}};e.prototype.getHelperMessage=function(){return this.helperMessage&&h("p",{class:"pds-select__helper-message",id:messageId(this.componentId,"helper")},this.helperMessage)};e.prototype.getErrorMessage=function(){return this.errorMessage&&h("p",{class:"pds-select__error-message",id:messageId(this.componentId,"error"),"aria-live":"assertive"},h("pds-icon",{icon:danger,size:"small"}),this.errorMessage)};e.prototype.renderMessages=function(){if(!this.helperMessage&&!this.errorMessage)return null;return h("div",{class:"pds-select__message"},this.getHelperMessage(),this.getErrorMessage())};e.prototype.classNames=function(){var e=[];if(this.invalid){e.push("is-invalid")}if(this.disabled){e.push("is-disabled")}return e.join(" ")};e.prototype.render=function(){var e=this;return h(Host,{key:"abb7c4086107f780418188ad2b241c6dd3ef70dc","aria-disabled":this.disabled?"true":null,class:this.classNames()},h("div",{key:"97add24f8d8108fe99d517533d8394509e0952bc",class:"pds-select"},this.label&&h("label",{key:"90d07c6d3e80a8ad87b9b32b0ae3f5b5985492c4",htmlFor:this.componentId},this.label),h("select",{key:"810bb82b8f3ff0b71470ead548f5427901a41f51",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:function(s){return e.selectEl=s}}),h("div",{key:"8bbf5f497f5dc848f054db848e552e351398df9a","aria-hidden":"true",class:"hidden",ref:function(s){return e.slotContainer=s}},h("slot",{key:"dc17e1784532fb31920cee07b93425963a034db8",onSlotchange:this.handleSlotChange})),this.renderMessages(),!this.multiple&&h("pds-icon",{key:"47d1ddcd8d93b428156ce45c2082810b9561baba",class:"pds-select__select-icon",icon:enlarge})))};Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return e}();PdsSelect.style=PdsSelectStyle0+(PdsSelectStyle1+PdsSelectStyle2);export{PdsSelect as pds_select};
2
+ //# sourceMappingURL=pds-select.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsSelectTokensCss","PdsSelectStyle0","labelCss","PdsSelectStyle1","pdsSelectCss","PdsSelectStyle2","PdsSelect","this","onSelectUpdate","e","target","values","Array","from","options","filter","option","map","length","_this","multiple","value","pdsSelectChange","emit","handleSlotChange","slot","slotContainer","querySelector","selectEl","innerHTML","assignedElements","flatten","forEach","item","includes","tagName","clonedItem","cloneNode","selected","appendChild","updateSelectedOption","prototype","valueChanged","componentWillLoad","isArray","getHelperMessage","helperMessage","h","class","id","messageId","componentId","getErrorMessage","errorMessage","icon","danger","size","renderMessages","classNames","invalid","push","disabled","join","render","Host","key","label","htmlFor","autocomplete","undefined","name","onChange","required","ref","el","onSlotchange","enlarge"],"sources":["src/components/pds-select/pds-select.tokens.scss?tag=pds-select&encapsulation=shadow","src/global/styles/utils/label.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.tsx"],"sourcesContent":["/**\n * Do not edit directly, this file was auto-generated.\n */\n\n:host {\n --pine-select-color-background-danger: var(--pine-color-red-050);\n}\n",":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n",":host {\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);\n --box-shadow-focus-error: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);\n\n .hidden,\n :host([hidden]) {\n display: none;\n }\n}\n\n.pds-select {\n display: grid;\n flex-direction: column;\n grid-template-areas:\n 'label label'\n 'field field'\n 'message message';\n grid-template-columns: 1fr minmax(2rem, min-content);\n grid-template-rows: min-content min-content min-content;\n position: relative;\n width: 100%;\n}\n\nlabel {\n grid-area: label;\n margin-block-end: var(--pine-dimension-2xs);\n}\n\nselect {\n appearance: none;\n background: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: var(--pine-dimension-125);\n font: var(--pine-typography-body);\n grid-area: field;\n letter-spacing: var(--pine-letter-spacing);\n padding: var(--pine-dimension-xs) var(--pine-dimension-150);\n padding-right: var(--pine-dimension-450);\n position: relative;\n\n &:hover {\n border-color: var(--pine-color-border-hover);\n cursor: pointer;\n }\n\n &:focus-visible {\n border-color: var(--pine-color-border-active);\n box-shadow: var(--box-shadow-focus);\n outline: none;\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n &:has(~ .pds-select__message .pds-select__error-message) {\n background-color: var(--pine-select-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n outline: none;\n }\n }\n}\n\n:host(.is-invalid) {\n select {\n background-color: var(--pine-select-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n box-shadow: var(--box-shadow-focus-error);\n outline: none;\n }\n }\n}\n\n.pds-select__error-message,\n.pds-select__helper-message {\n font: var(--pine-typography-body-sm-medium);\n margin-block-end: 0;\n margin-block-start: var(--pine-dimension-2xs);\n}\n\n.pds-select__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n\n.pds-select__message {\n grid-area: message;\n}\n\n.pds-select__select-icon {\n align-items: center;\n display: flex;\n grid-column: -1 / -2;\n grid-row: 2 / 3;\n height: 2.5rem;\n pointer-events: none;\n position: relative;\n z-index: 1;\n}\n","import { Component, Event, EventEmitter, Host, h, Prop, Watch } from '@stencil/core';\nimport { messageId } from '../../utils/form';\nimport { danger, enlarge } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-select',\n styleUrls: ['pds-select.tokens.scss', '../../global/styles/utils/label.scss', 'pds-select.scss'],\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label?: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon icon={danger} size=\"small\"></pds-icon>\n {this.errorMessage}\n </p>\n );\n }\n\n private renderMessages() {\n if (!this.helperMessage && !this.errorMessage) return null;\n\n return (\n <div class=\"pds-select__message\">\n {this.getHelperMessage()}\n {this.getErrorMessage()}\n </div>\n );\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.classNames()}>\n <div class=\"pds-select\">\n {this.label &&\n <label htmlFor={this.componentId}>{this.label}</label>\n }\n <select\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\" icon={enlarge} />}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"6LAAA,IAAMA,mBAAqB,yEAC3B,IAAAC,gBAAeD,mBCDf,IAAME,SAAW,qTACjB,IAAAC,gBAAeD,SCDf,IAAME,aAAe,8vFACrB,IAAAC,gBAAeD,a,ICQFE,UAAS,W,6GA+GZC,KAAAC,eAAiB,SAACC,GACxB,IAAMC,EAASD,EAAEC,OAEjB,IAAMC,EAASC,MAAMC,KAAKH,EAAOI,SAC5BC,QAAO,SAACC,GAAM,OAAOA,EAAe,QAAtB,IACdC,KAAI,SAACD,GAAM,OAAOA,EAAY,KAAnB,IAEhB,GAAIL,EAAOO,SAAW,IAAMC,EAAKC,SAAU,CACvCD,EAAKE,MAAQV,EAAO,E,KACjB,CACHQ,EAAKE,MAAQV,C,CAGjBQ,EAAKG,gBAAgBC,KAAKd,E,EASpBF,KAAAiB,iBAAmB,WACzB,IAAMC,EAAON,EAAKO,cAAcC,cAAc,QAE9CR,EAAKS,SAASC,UAAY,GAC1B,IAAMC,EAAmBL,EAAKK,iBAAiB,CAAEC,QAAS,OAE1DD,EAAiBE,SAAQ,SAACC,GACxB,GAAK,CAAC,SAAU,YAAYC,SAASD,EAAKE,SAAU,CAClD,IAAMC,EAAaH,EAAKI,UAAU,MAClC,GAAID,EAAWD,UAAY,UAAaC,EAAiCf,QAAUF,EAAKE,MAAO,CAC5Fe,EAAiCE,SAAW,I,CAE/CnB,EAAKS,SAASW,YAAYH,E,KAI9BjB,EAAKqB,sB,uEAlIY,M,mHA0BA,M,kCAWA,M,qBAmBnBlC,EAAAmC,UAAAC,aAAA,WACEnC,KAAKiC,sB,EAGPlC,EAAAmC,UAAAE,kBAAA,WACEpC,KAAKiC,sB,EAaClC,EAAAmC,UAAAD,qBAAA,eAAArB,EAAAZ,KACN,GAAIA,KAAKqB,SAAU,CACjB,IAAMd,EAAUP,KAAKqB,SAASd,QAG9BF,MAAMC,KAAKC,GAASG,KAAI,SAACD,GACvB,GAAIJ,MAAMgC,QAAQzB,EAAKE,OAAQ,CAC7BL,EAAOsB,SAAWnB,EAAKE,MAAMa,SAASlB,EAAOK,M,KACxC,CACLL,EAAOsB,SAAWnB,EAAKE,QAAUL,EAAOK,K,OAkDxCf,EAAAmC,UAAAI,iBAAA,WACN,OAAOtC,KAAKuC,eACVC,EAAA,KAAGC,MAAM,6BAA6BC,GAAIC,UAAU3C,KAAK4C,YAAa,WACnE5C,KAAKuC,c,EAKJxC,EAAAmC,UAAAW,gBAAA,WACN,OAAO7C,KAAK8C,cACVN,EAAA,KAAGC,MAAM,4BAA4BC,GAAIC,UAAU3C,KAAK4C,YAAa,SAAQ,YAAY,aACvFJ,EAAA,YAAUO,KAAMC,OAAQC,KAAK,UAC5BjD,KAAK8C,a,EAKJ/C,EAAAmC,UAAAgB,eAAA,WACN,IAAKlD,KAAKuC,gBAAkBvC,KAAK8C,aAAc,OAAO,KAEtD,OACEN,EAAA,OAAKC,MAAM,uBACRzC,KAAKsC,mBACLtC,KAAK6C,kB,EAKJ9C,EAAAmC,UAAAiB,WAAA,WACN,IAAMA,EAAa,GAEnB,GAAInD,KAAKoD,QAAS,CAAED,EAAWE,KAAK,a,CACpC,GAAIrD,KAAKsD,SAAU,CAAEH,EAAWE,KAAK,c,CAErC,OAAOF,EAAWI,KAAK,K,EAGzBxD,EAAAmC,UAAAsB,OAAA,eAAA5C,EAAAZ,KACE,OACEwC,EAACiB,KAAI,CAAAC,IAAA,2DAAgB1D,KAAKsD,SAAW,OAAS,KAAMb,MAAOzC,KAAKmD,cAC9DX,EAAA,OAAAkB,IAAA,2CAAKjB,MAAM,cACRzC,KAAK2D,OACJnB,EAAA,SAAAkB,IAAA,2CAAOE,QAAS5D,KAAK4C,aAAc5C,KAAK2D,OAE1CnB,EAAA,UAAAkB,IAAA,2CACEG,aAAc7D,KAAK6D,cAAgBC,UACnCrB,MAAM,oBACNa,SAAUtD,KAAKsD,SACfZ,GAAI1C,KAAK4C,YACT/B,SAAUb,KAAKa,SACfkD,KAAM/D,KAAK+D,KACXC,SAAUhE,KAAKC,eACfgE,SAAUjE,KAAKiE,SACfC,IAAK,SAACC,GAAE,OAAMvD,EAAKS,SAAW8C,CAAtB,IAEV3B,EAAA,OAAAkB,IAAA,yDAAiB,OAAOjB,MAAM,SAASyB,IAAK,SAACC,GAAE,OAAMvD,EAAKO,cAAgBgD,CAA3B,GAC7C3B,EAAA,QAAAkB,IAAA,2CAAMU,aAAcpE,KAAKiB,oBAE1BjB,KAAKkD,kBACJlD,KAAKa,UAAY2B,EAAA,YAAAkB,IAAA,2CAAUjB,MAAM,0BAA0BM,KAAMsB,W,mIAnNvD,G","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- import{r as registerInstance,h,H as Host,g as getElement}from"./index-9f0e742f.js";import{h as handle}from"./index-9f8fe796.js";var pdsSortableItemCss=".pds-sortable-item.sc-pds-sortable-item-h{--border-radius:var(--pine-border-radius-125);--border-default:var(--pine-border-width-thin) solid var(--pine-color-grey-300);--box-shadow:var(--pine-box-shadow-400);--color-background-default:var(--pine-color-white);--color-background-interactive:var(--pine-color-grey-200);--color-interactive-handle:var(--pine-color-blue-300);--spacing-margin-inline-end:var(--pine-spacing-300);--spacing-padding-block-xs:var(--pine-spacing-100);--spacing-padding-inline:var(--pine-spacing-300);--spacing-padding-inline-start:var(--pine-spacing-300);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-block:var(--spacing-padding-block-xs);padding-inline:var(--spacing-padding-inline)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__actions.sc-pds-sortable-item{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-start:var(--spacing-padding-inline-start);padding-inline-start:var(--spacing-padding-inline-start)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{line-height:1;-webkit-margin-end:var(--spacing-margin-inline-end);margin-inline-end:var(--spacing-margin-inline-end)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:first-child{border-start-end-radius:var(--border-radius);border-start-start-radius:var(--border-radius)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:last-child{border-end-end-radius:var(--border-radius);border-end-start-radius:var(--border-radius)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h{-webkit-border-after:var(--border-default);border-block-end:var(--border-default)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h:last-child{-webkit-border-after:0;border-block-end:0}.pds-sortable--handle-type-row .pds-sortable-item.sc-pds-sortable-item-h{cursor:-webkit-grab;cursor:grab}.pds-sortable--handle-type-handle .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:-webkit-grab;cursor:grab}.pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:var(--color-background-interactive)}.pds-sortable-item.sc-pds-sortable-item-h:hover pds-icon.sc-pds-sortable-item{color:var(--color-interactive-handle)}.pds-sortable-item--drag.sc-pds-sortable-item-h{background-color:var(--color-background-default);border-radius:0;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);opacity:1}.pds-sortable-item--ghost.sc-pds-sortable-item-h{background-color:var(--color-background-interactive);border-radius:0}";var PdsSortableItemStyle0=pdsSortableItemCss;var PdsSortableItem=function(){function e(e){registerInstance(this,e);this.enableActions=false;this.componentId=undefined;this.showHandle=false}e.prototype.componentWillRender=function(){this.sortableRef=this.el.closest("pds-sortable");if(this.sortableRef&&this.sortableRef.handleType==="handle"){this.showHandle=true}};e.prototype.render=function(){return h(Host,{key:"60214e183314736338f9b38cb93a9c5989e16cdf",class:"pds-sortable-item",id:this.componentId},this.showHandle&&h("div",{key:"7cc252c99598f384a87518c101d0772a4ce344e4",class:"pds-sortable-item__handle"},h("pds-icon",{key:"e2b219927cf717fa53112066ba3fe0ac12688edd",icon:handle})),h("slot",{key:"e259bfbf7e8c848567d07639e62adfe5781f29b8"}),this.enableActions&&h("div",{key:"e83d28d55b6fee971575433a3e3f8b1d5b7e52fe",class:"pds-sortable-item__actions"},h("slot",{key:"7ac52a8109e49cfff96cead45a3b318646c7f064",name:"sortable-item-actions"})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PdsSortableItem.style=PdsSortableItemStyle0;export{PdsSortableItem as pds_sortable_item};
1
+ import{r as registerInstance,h,H as Host,g as getElement}from"./index-b1696fed.js";import{h as handle}from"./index-24f87b75.js";var pdsSortableItemCss=".pds-sortable-item.sc-pds-sortable-item-h{--box-shadow:var(--pine-box-shadow-400);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__actions.sc-pds-sortable-item{-webkit-margin-start:auto;margin-inline-start:auto;-webkit-padding-start:var(--pine-dimension-md);padding-inline-start:var(--pine-dimension-md)}.pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{line-height:1;-webkit-margin-end:var(--pine-dimension-md);margin-inline-end:var(--pine-dimension-md)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:first-child{border-start-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-start-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--bordered .pds-sortable-item.sc-pds-sortable-item-h:last-child{border-end-end-radius:calc(var(--pine-dimension-xs) * 1.25);border-end-start-radius:calc(var(--pine-dimension-xs) * 1.25)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h{-webkit-border-after:var(--pine-border);border-block-end:var(--pine-border)}.pds-sortable--divided .pds-sortable-item.sc-pds-sortable-item-h:last-child{-webkit-border-after:0;border-block-end:0}.pds-sortable--handle-type-row .pds-sortable-item.sc-pds-sortable-item-h{cursor:-webkit-grab;cursor:grab}.pds-sortable--handle-type-handle .pds-sortable-item.sc-pds-sortable-item-h .pds-sortable-item__handle.sc-pds-sortable-item{cursor:-webkit-grab;cursor:grab}.pds-sortable-item.sc-pds-sortable-item-h:hover{background-color:var(--pine-color-background-container-hover)}.pds-sortable-item.sc-pds-sortable-item-h:hover pds-icon.sc-pds-sortable-item{color:var(--pine-color-info)}.pds-sortable-item--drag.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container);border-radius:0;-webkit-box-shadow:var(--box-shadow);box-shadow:var(--box-shadow);opacity:1}.pds-sortable-item--ghost.sc-pds-sortable-item-h{background-color:var(--pine-color-background-container-hover);border-radius:0}";var PdsSortableItemStyle0=pdsSortableItemCss;var PdsSortableItem=function(){function e(e){registerInstance(this,e);this.enableActions=false;this.componentId=undefined;this.showHandle=false}e.prototype.componentWillRender=function(){this.sortableRef=this.el.closest("pds-sortable");if(this.sortableRef&&this.sortableRef.handleType==="handle"){this.showHandle=true}};e.prototype.render=function(){return h(Host,{key:"9531761ffc3c4fa9831ce48c6d1d94d8a241f5d3",class:"pds-sortable-item",id:this.componentId},this.showHandle&&h("div",{key:"bf1804ac74e830456c1d1c8a81a6e9794854f43f",class:"pds-sortable-item__handle"},h("pds-icon",{key:"44b59b0df7fa63875e732a5598e15265b8f7e3e9",icon:handle})),h("slot",{key:"d2fbde756dbd392a17cfdc0c1717a8f0ab8d2eb8"}),this.enableActions&&h("div",{key:"035cf65cbb286a21b697831755f08964d933fd56",class:"pds-sortable-item__actions"},h("slot",{key:"0b14e6adddfb6edabfc92ffe31ee1048be9c8906",name:"sortable-item-actions"})))};Object.defineProperty(e.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();PdsSortableItem.style=PdsSortableItemStyle0;export{PdsSortableItem as pds_sortable_item};
2
2
  //# sourceMappingURL=pds-sortable-item.entry.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["pdsSortableItemCss","PdsSortableItemStyle0","PdsSortableItem","prototype","componentWillRender","this","sortableRef","el","closest","handleType","showHandle","render","h","Host","key","class","id","componentId","icon","handleIcon","enableActions","name"],"sources":["src/components/pds-sortable/pds-sortable-item/pds-sortable-item.scss?tag=pds-sortable-item&encapsulation=scoped","src/components/pds-sortable/pds-sortable-item/pds-sortable-item.tsx"],"sourcesContent":[":host(.pds-sortable-item) {\n --border-radius: var(--pine-border-radius-125);\n\n --border-default: var(--pine-border-width-thin) solid var(--pine-color-grey-300);\n\n --box-shadow: var(--pine-box-shadow-400);\n\n --color-background-default: var(--pine-color-white);\n --color-background-interactive: var(--pine-color-grey-200);\n --color-interactive-handle: var(--pine-color-blue-300);\n\n --spacing-margin-inline-end: var(--pine-spacing-300);\n --spacing-padding-block-xs: var(--pine-spacing-100);\n --spacing-padding-inline: var(--pine-spacing-300);\n --spacing-padding-inline-start: var(--pine-spacing-300);\n\n align-items: center;\n display: flex;\n padding-block: var(--spacing-padding-block-xs);\n padding-inline: var(--spacing-padding-inline);\n\n .pds-sortable-item__actions {\n margin-inline-start: auto;\n padding-inline-start: var(--spacing-padding-inline-start);\n }\n\n .pds-sortable-item__handle {\n line-height: 1;\n margin-inline-end: var(--spacing-margin-inline-end);\n }\n\n // styles when sortable is bordered\n .pds-sortable--bordered & {\n &:first-child {\n border-start-end-radius: var(--border-radius);\n border-start-start-radius: var(--border-radius);\n }\n\n &:last-child {\n border-end-end-radius: var(--border-radius);\n border-end-start-radius: var(--border-radius);\n }\n }\n\n // styles when sortable is divided\n .pds-sortable--divided & {\n border-block-end: var(--border-default);\n\n &:last-child {\n border-block-end: 0;\n }\n }\n\n // cursor styles based on handle-type\n .pds-sortable--handle-type-row & {\n cursor: grab;\n }\n\n .pds-sortable--handle-type-handle & {\n .pds-sortable-item__handle {\n cursor: grab;\n }\n }\n}\n\n:host(.pds-sortable-item):hover {\n background-color: var(--color-background-interactive);\n\n pds-icon {\n color: var(--color-interactive-handle)\n }\n}\n\n:host(.pds-sortable-item--drag) {\n background-color: var(--color-background-default);\n border-radius: 0;\n box-shadow: var(--box-shadow);\n opacity: 1;\n}\n\n:host(.pds-sortable-item--ghost) {\n background-color: var(--color-background-interactive);\n border-radius: 0;\n}\n","import { Component, Element, Host, h, Prop } from '@stencil/core';\n\nimport { handle as handleIcon } from '@pine-ds/icons/icons';\n/**\n * @slot sortable-item-actions - Content is placed within the `pds-sortable-item__actions` element as children. This slot is only rendered if `actions` is set to `true`.\n */\n@Component({\n tag: 'pds-sortable-item',\n styleUrl: 'pds-sortable-item.scss',\n scoped: true,\n})\nexport class PdsSortableItem {\n @Element() el: HTMLPdsSortableItemElement;\n sortableRef: HTMLPdsSortableElement;\n /**\n * Determines whether `sortable-item-actions` slot should be enabled.\n * @defaultValue false\n */\n @Prop() enableActions = false;\n\n /**\n * A unique identifier used for the sortable item `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether `sortable-item` should have a handle.\n * @defaultValue false\n */\n @Prop({ mutable: true }) showHandle = false;\n\n componentWillRender() {\n // When the parent sortable has a type of 'handle', the sortable items\n // will automatically set showHandle to 'true'.\n this.sortableRef = this.el.closest('pds-sortable') as HTMLPdsSortableElement;\n\n if (this.sortableRef && this.sortableRef.handleType === 'handle') {\n this.showHandle = true;\n }\n }\n\n render() {\n return (\n <Host class=\"pds-sortable-item\" id={this.componentId}>\n {this.showHandle && (\n <div class=\"pds-sortable-item__handle\">\n <pds-icon icon={handleIcon}></pds-icon>\n </div>\n )}\n <slot></slot>\n {this.enableActions && (\n <div class=\"pds-sortable-item__actions\">\n <slot name=\"sortable-item-actions\" />\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"gIAAA,IAAMA,mBAAqB,miFAC3B,IAAAC,sBAAeD,mB,ICUFE,gBAAe,W,0DAOF,M,2CAWc,K,CAEtCA,EAAAC,UAAAC,oBAAA,WAGEC,KAAKC,YAAcD,KAAKE,GAAGC,QAAQ,gBAEnC,GAAIH,KAAKC,aAAeD,KAAKC,YAAYG,aAAe,SAAU,CAChEJ,KAAKK,WAAa,I,GAItBR,EAAAC,UAAAQ,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAM,oBAAoBC,GAAIX,KAAKY,aACtCZ,KAAKK,YACJE,EAAA,OAAAE,IAAA,2CAAKC,MAAM,6BACTH,EAAA,YAAAE,IAAA,2CAAUI,KAAMC,UAGpBP,EAAA,QAAAE,IAAA,6CACCT,KAAKe,eACJR,EAAA,OAAAE,IAAA,2CAAKC,MAAM,8BACTH,EAAA,QAAAE,IAAA,2CAAMO,KAAK,2B,gIAzCK,G","ignoreList":[]}
1
+ {"version":3,"names":["pdsSortableItemCss","PdsSortableItemStyle0","PdsSortableItem","prototype","componentWillRender","this","sortableRef","el","closest","handleType","showHandle","render","h","Host","key","class","id","componentId","icon","handleIcon","enableActions","name"],"sources":["src/components/pds-sortable/pds-sortable-item/pds-sortable-item.scss?tag=pds-sortable-item&encapsulation=scoped","src/components/pds-sortable/pds-sortable-item/pds-sortable-item.tsx"],"sourcesContent":[":host(.pds-sortable-item) {\n --box-shadow: var(--pine-box-shadow-400);\n\n align-items: center;\n display: flex;\n padding-block: var(--pine-dimension-xs);\n padding-inline: var(--pine-dimension-md);\n\n .pds-sortable-item__actions {\n margin-inline-start: auto;\n padding-inline-start: var(--pine-dimension-md);\n }\n\n .pds-sortable-item__handle {\n line-height: 1;\n margin-inline-end: var(--pine-dimension-md);\n }\n\n // styles when sortable is bordered\n .pds-sortable--bordered & {\n &:first-child {\n border-start-end-radius: calc(var(--pine-dimension-xs) * 1.25);\n border-start-start-radius: calc(var(--pine-dimension-xs) * 1.25);\n }\n\n &:last-child {\n border-end-end-radius: calc(var(--pine-dimension-xs) * 1.25);\n border-end-start-radius: calc(var(--pine-dimension-xs) * 1.25);\n }\n }\n\n // styles when sortable is divided\n .pds-sortable--divided & {\n border-block-end: var(--pine-border);\n\n &:last-child {\n border-block-end: 0;\n }\n }\n\n // cursor styles based on handle-type\n .pds-sortable--handle-type-row & {\n cursor: grab;\n }\n\n .pds-sortable--handle-type-handle & {\n .pds-sortable-item__handle {\n cursor: grab;\n }\n }\n}\n\n:host(.pds-sortable-item):hover {\n background-color: var(--pine-color-background-container-hover);\n\n pds-icon {\n color: var(--pine-color-info)\n }\n}\n\n:host(.pds-sortable-item--drag) {\n background-color: var(--pine-color-background-container);\n border-radius: 0;\n box-shadow: var(--box-shadow);\n opacity: 1;\n}\n\n:host(.pds-sortable-item--ghost) {\n background-color: var(--pine-color-background-container-hover);\n border-radius: 0;\n}\n","import { Component, Element, Host, h, Prop } from '@stencil/core';\n\nimport { handle as handleIcon } from '@pine-ds/icons/icons';\n/**\n * @slot sortable-item-actions - Content is placed within the `pds-sortable-item__actions` element as children. This slot is only rendered if `actions` is set to `true`.\n */\n@Component({\n tag: 'pds-sortable-item',\n styleUrl: 'pds-sortable-item.scss',\n scoped: true,\n})\nexport class PdsSortableItem {\n @Element() el: HTMLPdsSortableItemElement;\n sortableRef: HTMLPdsSortableElement;\n /**\n * Determines whether `sortable-item-actions` slot should be enabled.\n * @defaultValue false\n */\n @Prop() enableActions = false;\n\n /**\n * A unique identifier used for the sortable item `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether `sortable-item` should have a handle.\n * @defaultValue false\n */\n @Prop({ mutable: true }) showHandle = false;\n\n componentWillRender() {\n // When the parent sortable has a type of 'handle', the sortable items\n // will automatically set showHandle to 'true'.\n this.sortableRef = this.el.closest('pds-sortable') as HTMLPdsSortableElement;\n\n if (this.sortableRef && this.sortableRef.handleType === 'handle') {\n this.showHandle = true;\n }\n }\n\n render() {\n return (\n <Host class=\"pds-sortable-item\" id={this.componentId}>\n {this.showHandle && (\n <div class=\"pds-sortable-item__handle\">\n <pds-icon icon={handleIcon}></pds-icon>\n </div>\n )}\n <slot></slot>\n {this.enableActions && (\n <div class=\"pds-sortable-item__actions\">\n <slot name=\"sortable-item-actions\" />\n </div>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"gIAAA,IAAMA,mBAAqB,+kEAC3B,IAAAC,sBAAeD,mB,ICUFE,gBAAe,W,0DAOF,M,2CAWc,K,CAEtCA,EAAAC,UAAAC,oBAAA,WAGEC,KAAKC,YAAcD,KAAKE,GAAGC,QAAQ,gBAEnC,GAAIH,KAAKC,aAAeD,KAAKC,YAAYG,aAAe,SAAU,CAChEJ,KAAKK,WAAa,I,GAItBR,EAAAC,UAAAQ,OAAA,WACE,OACEC,EAACC,KAAI,CAAAC,IAAA,2CAACC,MAAM,oBAAoBC,GAAIX,KAAKY,aACtCZ,KAAKK,YACJE,EAAA,OAAAE,IAAA,2CAAKC,MAAM,6BACTH,EAAA,YAAAE,IAAA,2CAAUI,KAAMC,UAGpBP,EAAA,QAAAE,IAAA,6CACCT,KAAKe,eACJR,EAAA,OAAAE,IAAA,2CAAKC,MAAM,8BACTH,EAAA,QAAAE,IAAA,2CAAMO,KAAK,2B,gIAzCK,G","ignoreList":[]}