@pine-ds/core 2.14.0 → 2.15.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 (722) hide show
  1. package/components/attributes.js +87 -0
  2. package/components/attributes.js.map +1 -0
  3. package/{dist/esm/pds-label-62469596.js → components/form.js} +2 -10
  4. package/components/form.js.map +1 -0
  5. package/components/index2.js +3 -2
  6. package/components/index2.js.map +1 -1
  7. package/components/pds-accordion.js +4 -7
  8. package/components/pds-accordion.js.map +1 -1
  9. package/components/pds-avatar.js +4 -7
  10. package/components/pds-avatar.js.map +1 -1
  11. package/components/pds-box.js +1 -1
  12. package/components/pds-box.js.map +1 -1
  13. package/components/pds-button2.js +6 -12
  14. package/components/pds-button2.js.map +1 -1
  15. package/components/pds-checkbox2.js +8 -10
  16. package/components/pds-checkbox2.js.map +1 -1
  17. package/components/pds-chip.js +4 -4
  18. package/components/pds-chip.js.map +1 -1
  19. package/components/pds-copytext.js +4 -7
  20. package/components/pds-copytext.js.map +1 -1
  21. package/components/pds-divider.js +4 -7
  22. package/components/pds-divider.js.map +1 -1
  23. package/components/pds-icon2.js +1 -1
  24. package/components/pds-icon2.js.map +1 -1
  25. package/components/pds-image.js +4 -7
  26. package/components/pds-image.js.map +1 -1
  27. package/components/pds-input.js +112 -12
  28. package/components/pds-input.js.map +1 -1
  29. package/components/pds-label.js +1 -29
  30. package/components/pds-label.js.map +1 -1
  31. package/components/pds-link.js +5 -8
  32. package/components/pds-link.js.map +1 -1
  33. package/components/pds-loader.js +4 -7
  34. package/components/pds-loader.js.map +1 -1
  35. package/components/pds-popover.js +1 -1
  36. package/components/pds-popover.js.map +1 -1
  37. package/components/pds-progress.js +4 -7
  38. package/components/pds-progress.js.map +1 -1
  39. package/components/pds-radio.js +8 -10
  40. package/components/pds-radio.js.map +1 -1
  41. package/components/pds-row.js +1 -1
  42. package/components/pds-row.js.map +1 -1
  43. package/components/pds-select.js +6 -4
  44. package/components/pds-select.js.map +1 -1
  45. package/components/pds-sortable-item.js +1 -1
  46. package/components/pds-sortable-item.js.map +1 -1
  47. package/components/pds-sortable.js +4 -7
  48. package/components/pds-sortable.js.map +1 -1
  49. package/components/pds-switch.js +8 -10
  50. package/components/pds-switch.js.map +1 -1
  51. package/components/pds-tab.js +1 -1
  52. package/components/pds-tab.js.map +1 -1
  53. package/components/pds-table-body.js +3 -6
  54. package/components/pds-table-body.js.map +1 -1
  55. package/components/pds-table-cell2.js +5 -8
  56. package/components/pds-table-cell2.js.map +1 -1
  57. package/components/pds-table-head-cell2.js +6 -9
  58. package/components/pds-table-head-cell2.js.map +1 -1
  59. package/components/pds-table-head.js +4 -7
  60. package/components/pds-table-head.js.map +1 -1
  61. package/components/pds-table-row.js +4 -7
  62. package/components/pds-table-row.js.map +1 -1
  63. package/components/pds-table.js +3 -6
  64. package/components/pds-table.js.map +1 -1
  65. package/components/pds-tabpanel.js +1 -1
  66. package/components/pds-tabpanel.js.map +1 -1
  67. package/components/pds-tabs.js +4 -7
  68. package/components/pds-tabs.js.map +1 -1
  69. package/components/pds-text.js +1 -1
  70. package/components/pds-text.js.map +1 -1
  71. package/components/pds-textarea.js +108 -18
  72. package/components/pds-textarea.js.map +1 -1
  73. package/components/pds-tooltip.js +15 -8
  74. package/components/pds-tooltip.js.map +1 -1
  75. package/components/utils.js +21 -0
  76. package/components/utils.js.map +1 -0
  77. package/dist/cjs/attributes-73ee8de7.js +90 -0
  78. package/dist/cjs/attributes-73ee8de7.js.map +1 -0
  79. package/dist/cjs/{pds-label-05f073ea.js → form-4f00637c.js} +1 -10
  80. package/dist/cjs/form-4f00637c.js.map +1 -0
  81. package/dist/cjs/{index-3ad62856.js → index-034a8bb0.js} +4 -2
  82. package/dist/cjs/index-034a8bb0.js.map +1 -0
  83. package/dist/cjs/loader.cjs.js +1 -1
  84. package/dist/cjs/pds-accordion.cjs.entry.js +5 -8
  85. package/dist/cjs/pds-accordion.cjs.entry.js.map +1 -1
  86. package/dist/cjs/pds-avatar.cjs.entry.js +5 -8
  87. package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
  88. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  89. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  90. package/dist/cjs/pds-button.cjs.entry.js +7 -13
  91. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  92. package/dist/cjs/pds-checkbox.cjs.entry.js +9 -11
  93. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  94. package/dist/cjs/pds-chip.cjs.entry.js +5 -5
  95. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  96. package/dist/cjs/pds-copytext.cjs.entry.js +5 -8
  97. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  98. package/dist/cjs/pds-divider.cjs.entry.js +4 -7
  99. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
  100. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  101. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  102. package/dist/cjs/pds-image.cjs.entry.js +4 -7
  103. package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
  104. package/dist/cjs/pds-input.cjs.entry.js +106 -12
  105. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  106. package/dist/cjs/pds-label-e0d9a97d.js +13 -0
  107. package/dist/cjs/pds-label-e0d9a97d.js.map +1 -0
  108. package/dist/cjs/pds-link.cjs.entry.js +6 -9
  109. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  110. package/dist/cjs/pds-loader.cjs.entry.js +4 -7
  111. package/dist/cjs/pds-loader.cjs.entry.js.map +1 -1
  112. package/dist/cjs/pds-popover.cjs.entry.js +1 -1
  113. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -1
  114. package/dist/cjs/pds-progress.cjs.entry.js +4 -7
  115. package/dist/cjs/pds-progress.cjs.entry.js.map +1 -1
  116. package/dist/cjs/pds-radio.cjs.entry.js +9 -11
  117. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  118. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  119. package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
  120. package/dist/cjs/pds-select.cjs.entry.js +7 -5
  121. package/dist/cjs/pds-select.cjs.entry.js.map +1 -1
  122. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  123. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -1
  124. package/dist/cjs/pds-sortable.cjs.entry.js +4 -7
  125. package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -1
  126. package/dist/cjs/pds-switch.cjs.entry.js +9 -11
  127. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  128. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  129. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -1
  130. package/dist/cjs/pds-table-body.cjs.entry.js +3 -6
  131. package/dist/cjs/pds-table-body.cjs.entry.js.map +1 -1
  132. package/dist/cjs/pds-table-cell.cjs.entry.js +5 -8
  133. package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -1
  134. package/dist/cjs/pds-table-head-cell.cjs.entry.js +6 -9
  135. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
  136. package/dist/cjs/pds-table-head.cjs.entry.js +4 -7
  137. package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
  138. package/dist/cjs/pds-table-row.cjs.entry.js +4 -7
  139. package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
  140. package/dist/cjs/pds-table.cjs.entry.js +3 -6
  141. package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
  142. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  143. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -1
  144. package/dist/cjs/pds-tabs.cjs.entry.js +4 -7
  145. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -1
  146. package/dist/cjs/pds-text.cjs.entry.js +1 -1
  147. package/dist/cjs/pds-text.cjs.entry.js.map +1 -1
  148. package/dist/cjs/pds-textarea.cjs.entry.js +102 -18
  149. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  150. package/dist/cjs/pds-tooltip.cjs.entry.js +15 -8
  151. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  152. package/dist/cjs/pine-core.cjs.js +1 -1
  153. package/dist/cjs/utils-39c972f8.js +24 -0
  154. package/dist/cjs/utils-39c972f8.js.map +1 -0
  155. package/dist/collection/components/pds-accordion/pds-accordion.css +20 -28
  156. package/dist/collection/components/pds-accordion/pds-accordion.js +3 -3
  157. package/dist/collection/components/pds-accordion/pds-accordion.js.map +1 -1
  158. package/dist/collection/components/pds-avatar/pds-avatar.css +12 -19
  159. package/dist/collection/components/pds-avatar/pds-avatar.js +3 -3
  160. package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -1
  161. package/dist/collection/components/pds-box/pds-box.css +21 -30
  162. package/dist/collection/components/pds-button/pds-button.css +48 -74
  163. package/dist/collection/components/pds-button/pds-button.js +3 -3
  164. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  165. package/dist/collection/components/pds-checkbox/pds-checkbox.css +32 -48
  166. package/dist/collection/components/pds-checkbox/pds-checkbox.js +5 -5
  167. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  168. package/dist/collection/components/pds-chip/pds-chip.css +75 -125
  169. package/dist/collection/components/pds-chip/pds-chip.js +3 -3
  170. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  171. package/dist/collection/components/pds-chip/pds-chip.tokens.css +23 -0
  172. package/dist/collection/components/pds-copytext/pds-copytext.css +23 -36
  173. package/dist/collection/components/pds-copytext/pds-copytext.js +3 -3
  174. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
  175. package/dist/collection/components/pds-divider/pds-divider.css +29 -41
  176. package/dist/collection/components/pds-divider/pds-divider.js +3 -3
  177. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -1
  178. package/dist/collection/components/pds-image/pds-image.css +1 -1
  179. package/dist/collection/components/pds-image/pds-image.js +4 -4
  180. package/dist/collection/components/pds-image/pds-image.js.map +1 -1
  181. package/dist/collection/components/pds-input/input-interface.js +2 -0
  182. package/dist/collection/components/pds-input/input-interface.js.map +1 -0
  183. package/dist/collection/components/pds-input/pds-input.css +34 -59
  184. package/dist/collection/components/pds-input/pds-input.js +215 -17
  185. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  186. package/dist/collection/components/pds-input/pds-input.tokens.css +6 -0
  187. package/dist/collection/components/pds-input/stories/pds-input.stories.js +8 -2
  188. package/dist/collection/components/pds-link/pds-link.css +15 -27
  189. package/dist/collection/components/pds-link/pds-link.js +4 -4
  190. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  191. package/dist/collection/components/pds-loader/pds-loader.css +16 -29
  192. package/dist/collection/components/pds-loader/pds-loader.js +3 -3
  193. package/dist/collection/components/pds-loader/pds-loader.js.map +1 -1
  194. package/dist/collection/components/pds-popover/pds-popover.css +14 -35
  195. package/dist/collection/components/pds-progress/pds-progress.css +11 -20
  196. package/dist/collection/components/pds-progress/pds-progress.js +3 -3
  197. package/dist/collection/components/pds-progress/pds-progress.js.map +1 -1
  198. package/dist/collection/components/pds-radio/pds-radio.css +28 -45
  199. package/dist/collection/components/pds-radio/pds-radio.js +5 -5
  200. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
  201. package/dist/collection/components/pds-row/pds-row.css +2 -3
  202. package/dist/collection/components/pds-select/pds-select.css +23 -51
  203. package/dist/collection/components/pds-select/pds-select.js +3 -2
  204. package/dist/collection/components/pds-select/pds-select.js.map +1 -1
  205. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +13 -22
  206. package/dist/collection/components/pds-sortable/pds-sortable.css +2 -4
  207. package/dist/collection/components/pds-sortable/pds-sortable.js +3 -3
  208. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
  209. package/dist/collection/components/pds-switch/pds-switch.css +30 -51
  210. package/dist/collection/components/pds-switch/pds-switch.js +5 -5
  211. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
  212. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +3 -3
  213. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +1 -1
  214. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +11 -18
  215. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +4 -4
  216. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -1
  217. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +1 -2
  218. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +3 -3
  219. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +1 -1
  220. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +12 -19
  221. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +4 -4
  222. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -1
  223. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +1 -2
  224. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +3 -3
  225. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +1 -1
  226. package/dist/collection/components/pds-table/pds-table.js +3 -3
  227. package/dist/collection/components/pds-table/pds-table.js.map +1 -1
  228. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +23 -36
  229. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +2 -2
  230. package/dist/collection/components/pds-tabs/pds-tabs.css +8 -11
  231. package/dist/collection/components/pds-tabs/pds-tabs.js +3 -3
  232. package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -1
  233. package/dist/collection/components/pds-text/pds-text.css +37 -58
  234. package/dist/collection/components/pds-textarea/pds-textarea.css +23 -39
  235. package/dist/collection/components/pds-textarea/pds-textarea.js +204 -17
  236. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  237. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +11 -1
  238. package/dist/collection/components/pds-textarea/textarea-interface.js.map +1 -1
  239. package/dist/collection/components/pds-tooltip/pds-tooltip.css +59 -64
  240. package/dist/collection/components/pds-tooltip/pds-tooltip.js +14 -4
  241. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  242. package/dist/collection/global/styles/utils/label.css +16 -0
  243. package/dist/collection/utils/attributes.js +84 -0
  244. package/dist/collection/utils/attributes.js.map +1 -0
  245. package/dist/collection/utils/utils.js +14 -3
  246. package/dist/collection/utils/utils.js.map +1 -1
  247. package/dist/docs.json +243 -18
  248. package/dist/esm/attributes-fe2c8c91.js +87 -0
  249. package/dist/esm/attributes-fe2c8c91.js.map +1 -0
  250. package/dist/esm/form-1b7b69e3.js +31 -0
  251. package/dist/esm/form-1b7b69e3.js.map +1 -0
  252. package/dist/esm/{index-56752d25.js → index-d320cfa9.js} +4 -3
  253. package/dist/esm/index-d320cfa9.js.map +1 -0
  254. package/dist/esm/loader.js +1 -1
  255. package/dist/esm/pds-accordion.entry.js +5 -8
  256. package/dist/esm/pds-accordion.entry.js.map +1 -1
  257. package/dist/esm/pds-avatar.entry.js +5 -8
  258. package/dist/esm/pds-avatar.entry.js.map +1 -1
  259. package/dist/esm/pds-box.entry.js +1 -1
  260. package/dist/esm/pds-box.entry.js.map +1 -1
  261. package/dist/esm/pds-button.entry.js +6 -12
  262. package/dist/esm/pds-button.entry.js.map +1 -1
  263. package/dist/esm/pds-checkbox.entry.js +9 -11
  264. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  265. package/dist/esm/pds-chip.entry.js +5 -5
  266. package/dist/esm/pds-chip.entry.js.map +1 -1
  267. package/dist/esm/pds-copytext.entry.js +5 -8
  268. package/dist/esm/pds-copytext.entry.js.map +1 -1
  269. package/dist/esm/pds-divider.entry.js +4 -7
  270. package/dist/esm/pds-divider.entry.js.map +1 -1
  271. package/dist/esm/pds-icon.entry.js +1 -1
  272. package/dist/esm/pds-icon.entry.js.map +1 -1
  273. package/dist/esm/pds-image.entry.js +4 -7
  274. package/dist/esm/pds-image.entry.js.map +1 -1
  275. package/dist/esm/pds-input.entry.js +107 -13
  276. package/dist/esm/pds-input.entry.js.map +1 -1
  277. package/dist/esm/pds-label-949a17b6.js +11 -0
  278. package/dist/esm/pds-label-949a17b6.js.map +1 -0
  279. package/dist/esm/pds-link.entry.js +6 -9
  280. package/dist/esm/pds-link.entry.js.map +1 -1
  281. package/dist/esm/pds-loader.entry.js +4 -7
  282. package/dist/esm/pds-loader.entry.js.map +1 -1
  283. package/dist/esm/pds-popover.entry.js +1 -1
  284. package/dist/esm/pds-popover.entry.js.map +1 -1
  285. package/dist/esm/pds-progress.entry.js +4 -7
  286. package/dist/esm/pds-progress.entry.js.map +1 -1
  287. package/dist/esm/pds-radio.entry.js +9 -11
  288. package/dist/esm/pds-radio.entry.js.map +1 -1
  289. package/dist/esm/pds-row.entry.js +1 -1
  290. package/dist/esm/pds-row.entry.js.map +1 -1
  291. package/dist/esm/pds-select.entry.js +6 -4
  292. package/dist/esm/pds-select.entry.js.map +1 -1
  293. package/dist/esm/pds-sortable-item.entry.js +2 -2
  294. package/dist/esm/pds-sortable-item.entry.js.map +1 -1
  295. package/dist/esm/pds-sortable.entry.js +4 -7
  296. package/dist/esm/pds-sortable.entry.js.map +1 -1
  297. package/dist/esm/pds-switch.entry.js +9 -11
  298. package/dist/esm/pds-switch.entry.js.map +1 -1
  299. package/dist/esm/pds-tab.entry.js +1 -1
  300. package/dist/esm/pds-tab.entry.js.map +1 -1
  301. package/dist/esm/pds-table-body.entry.js +3 -6
  302. package/dist/esm/pds-table-body.entry.js.map +1 -1
  303. package/dist/esm/pds-table-cell.entry.js +5 -8
  304. package/dist/esm/pds-table-cell.entry.js.map +1 -1
  305. package/dist/esm/pds-table-head-cell.entry.js +6 -9
  306. package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
  307. package/dist/esm/pds-table-head.entry.js +4 -7
  308. package/dist/esm/pds-table-head.entry.js.map +1 -1
  309. package/dist/esm/pds-table-row.entry.js +4 -7
  310. package/dist/esm/pds-table-row.entry.js.map +1 -1
  311. package/dist/esm/pds-table.entry.js +3 -6
  312. package/dist/esm/pds-table.entry.js.map +1 -1
  313. package/dist/esm/pds-tabpanel.entry.js +1 -1
  314. package/dist/esm/pds-tabpanel.entry.js.map +1 -1
  315. package/dist/esm/pds-tabs.entry.js +4 -7
  316. package/dist/esm/pds-tabs.entry.js.map +1 -1
  317. package/dist/esm/pds-text.entry.js +1 -1
  318. package/dist/esm/pds-text.entry.js.map +1 -1
  319. package/dist/esm/pds-textarea.entry.js +102 -18
  320. package/dist/esm/pds-textarea.entry.js.map +1 -1
  321. package/dist/esm/pds-tooltip.entry.js +15 -8
  322. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  323. package/dist/esm/pine-core.js +1 -1
  324. package/dist/esm/utils-5e425aaf.js +21 -0
  325. package/dist/esm/utils-5e425aaf.js.map +1 -0
  326. package/dist/esm-es5/attributes-fe2c8c91.js +2 -0
  327. package/dist/esm-es5/attributes-fe2c8c91.js.map +1 -0
  328. package/dist/esm-es5/form-1b7b69e3.js +2 -0
  329. package/dist/esm-es5/form-1b7b69e3.js.map +1 -0
  330. package/dist/esm-es5/{index-56752d25.js → index-d320cfa9.js} +2 -2
  331. package/dist/{pine-core/p-dec11fa5.system.js.map → esm-es5/index-d320cfa9.js.map} +1 -1
  332. package/dist/esm-es5/loader.js +1 -1
  333. package/dist/esm-es5/loader.js.map +1 -1
  334. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  335. package/dist/esm-es5/pds-accordion.entry.js.map +1 -1
  336. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  337. package/dist/esm-es5/pds-avatar.entry.js.map +1 -1
  338. package/dist/esm-es5/pds-box.entry.js +1 -1
  339. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  340. package/dist/esm-es5/pds-button.entry.js +1 -1
  341. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  342. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  343. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  344. package/dist/esm-es5/pds-chip.entry.js +1 -1
  345. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  346. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  347. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  348. package/dist/esm-es5/pds-divider.entry.js +1 -1
  349. package/dist/esm-es5/pds-divider.entry.js.map +1 -1
  350. package/dist/esm-es5/pds-icon.entry.js +1 -1
  351. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  352. package/dist/esm-es5/pds-image.entry.js +1 -1
  353. package/dist/esm-es5/pds-image.entry.js.map +1 -1
  354. package/dist/esm-es5/pds-input.entry.js +1 -1
  355. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  356. package/dist/esm-es5/pds-label-949a17b6.js +2 -0
  357. package/dist/esm-es5/pds-label-949a17b6.js.map +1 -0
  358. package/dist/esm-es5/pds-link.entry.js +1 -1
  359. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  360. package/dist/esm-es5/pds-loader.entry.js +1 -1
  361. package/dist/esm-es5/pds-loader.entry.js.map +1 -1
  362. package/dist/esm-es5/pds-popover.entry.js +1 -1
  363. package/dist/esm-es5/pds-popover.entry.js.map +1 -1
  364. package/dist/esm-es5/pds-progress.entry.js +1 -1
  365. package/dist/esm-es5/pds-progress.entry.js.map +1 -1
  366. package/dist/esm-es5/pds-radio.entry.js +1 -1
  367. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  368. package/dist/esm-es5/pds-row.entry.js +1 -1
  369. package/dist/esm-es5/pds-row.entry.js.map +1 -1
  370. package/dist/esm-es5/pds-select.entry.js +1 -1
  371. package/dist/esm-es5/pds-select.entry.js.map +1 -1
  372. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  373. package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -1
  374. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  375. package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
  376. package/dist/esm-es5/pds-switch.entry.js +1 -1
  377. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  378. package/dist/esm-es5/pds-tab.entry.js +1 -1
  379. package/dist/esm-es5/pds-tab.entry.js.map +1 -1
  380. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  381. package/dist/esm-es5/pds-table-body.entry.js.map +1 -1
  382. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  383. package/dist/esm-es5/pds-table-cell.entry.js.map +1 -1
  384. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  385. package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
  386. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  387. package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
  388. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  389. package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
  390. package/dist/esm-es5/pds-table.entry.js +1 -1
  391. package/dist/esm-es5/pds-table.entry.js.map +1 -1
  392. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  393. package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -1
  394. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  395. package/dist/esm-es5/pds-tabs.entry.js.map +1 -1
  396. package/dist/esm-es5/pds-text.entry.js +1 -1
  397. package/dist/esm-es5/pds-text.entry.js.map +1 -1
  398. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  399. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  400. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  401. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  402. package/dist/esm-es5/pine-core.js +1 -1
  403. package/dist/esm-es5/pine-core.js.map +1 -1
  404. package/dist/esm-es5/utils-5e425aaf.js +2 -0
  405. package/dist/esm-es5/utils-5e425aaf.js.map +1 -0
  406. package/dist/pine-core/p-017e1978.system.js +2 -0
  407. package/dist/pine-core/p-017e1978.system.js.map +1 -0
  408. package/dist/pine-core/p-07a7c5bb.entry.js +2 -0
  409. package/dist/pine-core/p-07a7c5bb.entry.js.map +1 -0
  410. package/dist/pine-core/p-0c09ce7a.js +2 -0
  411. package/dist/pine-core/p-0c09ce7a.js.map +1 -0
  412. package/dist/pine-core/p-0e4226b8.entry.js +2 -0
  413. package/dist/pine-core/p-0e4226b8.entry.js.map +1 -0
  414. package/dist/pine-core/p-19be5a8e.system.entry.js +2 -0
  415. package/dist/pine-core/p-19be5a8e.system.entry.js.map +1 -0
  416. package/dist/pine-core/p-1da5aaf3.entry.js +2 -0
  417. package/dist/pine-core/p-1da5aaf3.entry.js.map +1 -0
  418. package/dist/pine-core/p-1e9d6f92.system.entry.js +2 -0
  419. package/dist/pine-core/p-1e9d6f92.system.entry.js.map +1 -0
  420. package/dist/pine-core/p-1edca70e.entry.js +8 -0
  421. package/dist/pine-core/{p-d3365f49.system.entry.js.map → p-1edca70e.entry.js.map} +1 -1
  422. package/dist/pine-core/p-1fd67cb4.system.entry.js +9 -0
  423. package/dist/pine-core/p-1fd67cb4.system.entry.js.map +1 -0
  424. package/dist/pine-core/p-26679956.system.entry.js +2 -0
  425. package/dist/pine-core/p-26679956.system.entry.js.map +1 -0
  426. package/dist/pine-core/p-285cd9d1.system.entry.js +2 -0
  427. package/dist/pine-core/p-285cd9d1.system.entry.js.map +1 -0
  428. package/dist/pine-core/p-29bb6589.entry.js +2 -0
  429. package/dist/pine-core/p-29bb6589.entry.js.map +1 -0
  430. package/dist/pine-core/p-2c0ef946.entry.js +2 -0
  431. package/dist/pine-core/p-2c0ef946.entry.js.map +1 -0
  432. package/dist/pine-core/p-2d52d5f7.entry.js +2 -0
  433. package/dist/pine-core/p-2d52d5f7.entry.js.map +1 -0
  434. package/dist/pine-core/p-2fedf634.system.entry.js +2 -0
  435. package/dist/pine-core/p-2fedf634.system.entry.js.map +1 -0
  436. package/dist/pine-core/p-30cd9f18.entry.js +2 -0
  437. package/dist/pine-core/p-30cd9f18.entry.js.map +1 -0
  438. package/dist/pine-core/p-372a04fa.system.entry.js +2 -0
  439. package/dist/pine-core/p-372a04fa.system.entry.js.map +1 -0
  440. package/dist/pine-core/p-397ce1a8.system.entry.js +2 -0
  441. package/dist/pine-core/p-397ce1a8.system.entry.js.map +1 -0
  442. package/dist/pine-core/p-399617f0.system.entry.js +2 -0
  443. package/dist/pine-core/p-399617f0.system.entry.js.map +1 -0
  444. package/dist/pine-core/p-3c6a0b2a.system.entry.js +2 -0
  445. package/dist/pine-core/p-3c6a0b2a.system.entry.js.map +1 -0
  446. package/dist/pine-core/p-3fbb568f.entry.js +2 -0
  447. package/dist/pine-core/p-3fbb568f.entry.js.map +1 -0
  448. package/dist/pine-core/p-46fb585d.js +2 -0
  449. package/dist/pine-core/p-46fb585d.js.map +1 -0
  450. package/dist/pine-core/p-47291f05.js +2 -0
  451. package/dist/pine-core/p-47291f05.js.map +1 -0
  452. package/dist/pine-core/p-4c252abb.system.entry.js +2 -0
  453. package/dist/pine-core/p-4c252abb.system.entry.js.map +1 -0
  454. package/dist/pine-core/p-4d1fbb88.system.entry.js +2 -0
  455. package/dist/pine-core/p-4d1fbb88.system.entry.js.map +1 -0
  456. package/dist/pine-core/p-4e2fe44a.system.entry.js +2 -0
  457. package/dist/pine-core/p-4e2fe44a.system.entry.js.map +1 -0
  458. package/dist/pine-core/p-521ac753.system.js +2 -0
  459. package/dist/pine-core/p-521ac753.system.js.map +1 -0
  460. package/dist/pine-core/p-5480346a.system.js +2 -0
  461. package/dist/pine-core/p-5480346a.system.js.map +1 -0
  462. package/dist/pine-core/p-59f4c8ab.system.entry.js +2 -0
  463. package/dist/pine-core/p-59f4c8ab.system.entry.js.map +1 -0
  464. package/dist/pine-core/p-5b9f8f6a.system.entry.js +2 -0
  465. package/dist/pine-core/p-5b9f8f6a.system.entry.js.map +1 -0
  466. package/dist/pine-core/p-5c04aee0.system.js +1 -1
  467. package/dist/pine-core/p-5c04aee0.system.js.map +1 -1
  468. package/dist/pine-core/p-5e1b7996.entry.js +2 -0
  469. package/dist/pine-core/p-5e1b7996.entry.js.map +1 -0
  470. package/dist/pine-core/p-5e50a381.entry.js +2 -0
  471. package/dist/pine-core/p-5e50a381.entry.js.map +1 -0
  472. package/dist/pine-core/p-60c2039e.system.entry.js +2 -0
  473. package/dist/pine-core/p-60c2039e.system.entry.js.map +1 -0
  474. package/dist/pine-core/p-650a27ca.entry.js +2 -0
  475. package/dist/pine-core/p-650a27ca.entry.js.map +1 -0
  476. package/dist/pine-core/p-6709f0f7.system.entry.js +2 -0
  477. package/dist/pine-core/p-6709f0f7.system.entry.js.map +1 -0
  478. package/dist/pine-core/p-6ce5b998.entry.js +2 -0
  479. package/dist/pine-core/p-6ce5b998.entry.js.map +1 -0
  480. package/dist/pine-core/p-6d8df897.entry.js +2 -0
  481. package/dist/pine-core/p-6d8df897.entry.js.map +1 -0
  482. package/dist/pine-core/p-6db1fe5c.entry.js +2 -0
  483. package/dist/pine-core/p-6db1fe5c.entry.js.map +1 -0
  484. package/dist/pine-core/p-6e8f3bb4.entry.js +2 -0
  485. package/dist/pine-core/p-6e8f3bb4.entry.js.map +1 -0
  486. package/dist/pine-core/p-726dc3d1.entry.js +2 -0
  487. package/dist/pine-core/p-726dc3d1.entry.js.map +1 -0
  488. package/dist/pine-core/p-74ad0244.entry.js +2 -0
  489. package/dist/pine-core/p-74ad0244.entry.js.map +1 -0
  490. package/dist/pine-core/p-7905b8b8.js +2 -0
  491. package/dist/pine-core/p-7905b8b8.js.map +1 -0
  492. package/dist/pine-core/p-798cde42.system.entry.js +2 -0
  493. package/dist/pine-core/p-798cde42.system.entry.js.map +1 -0
  494. package/dist/pine-core/p-80c582b7.system.entry.js +2 -0
  495. package/dist/pine-core/p-80c582b7.system.entry.js.map +1 -0
  496. package/dist/pine-core/p-8205e4d8.system.entry.js +2 -0
  497. package/dist/pine-core/p-8205e4d8.system.entry.js.map +1 -0
  498. package/dist/pine-core/p-8420594c.system.entry.js +2 -0
  499. package/dist/pine-core/p-8420594c.system.entry.js.map +1 -0
  500. package/dist/pine-core/p-8b2db323.system.entry.js +2 -0
  501. package/dist/pine-core/p-8b2db323.system.entry.js.map +1 -0
  502. package/dist/pine-core/p-8d1efd85.system.js +2 -0
  503. package/dist/pine-core/p-8d1efd85.system.js.map +1 -0
  504. package/dist/pine-core/p-92bcb091.entry.js +2 -0
  505. package/dist/pine-core/p-92bcb091.entry.js.map +1 -0
  506. package/dist/pine-core/p-954098a2.entry.js +2 -0
  507. package/dist/pine-core/p-954098a2.entry.js.map +1 -0
  508. package/dist/pine-core/p-9e976b99.entry.js +2 -0
  509. package/dist/pine-core/p-9e976b99.entry.js.map +1 -0
  510. package/dist/pine-core/p-a2465224.entry.js +2 -0
  511. package/dist/pine-core/p-a2465224.entry.js.map +1 -0
  512. package/dist/pine-core/p-a7d75615.system.js +2 -0
  513. package/dist/pine-core/p-a7d75615.system.js.map +1 -0
  514. package/dist/pine-core/p-b27bbfe3.entry.js +2 -0
  515. package/dist/pine-core/p-b27bbfe3.entry.js.map +1 -0
  516. package/dist/pine-core/p-b29b2e57.system.entry.js +2 -0
  517. package/dist/pine-core/p-b29b2e57.system.entry.js.map +1 -0
  518. package/dist/pine-core/p-b47f9e15.system.entry.js +2 -0
  519. package/dist/pine-core/p-b47f9e15.system.entry.js.map +1 -0
  520. package/dist/pine-core/p-b7e91522.entry.js +2 -0
  521. package/dist/pine-core/p-b7e91522.entry.js.map +1 -0
  522. package/dist/pine-core/p-c68362cc.entry.js +2 -0
  523. package/dist/pine-core/p-c68362cc.entry.js.map +1 -0
  524. package/dist/pine-core/p-cae3e411.entry.js +2 -0
  525. package/dist/pine-core/p-cae3e411.entry.js.map +1 -0
  526. package/dist/pine-core/p-cb3ddff3.entry.js +2 -0
  527. package/dist/pine-core/p-cb3ddff3.entry.js.map +1 -0
  528. package/dist/pine-core/p-cd14918d.system.entry.js +2 -0
  529. package/dist/pine-core/p-cd14918d.system.entry.js.map +1 -0
  530. package/dist/pine-core/p-d0b371ee.system.entry.js +2 -0
  531. package/dist/pine-core/p-d0b371ee.system.entry.js.map +1 -0
  532. package/dist/pine-core/{p-d83716fb.js → p-d561168e.js} +2 -2
  533. package/dist/pine-core/p-d561168e.js.map +1 -0
  534. package/dist/pine-core/p-d6a5ec65.system.entry.js +2 -0
  535. package/dist/pine-core/p-d6a5ec65.system.entry.js.map +1 -0
  536. package/dist/pine-core/p-d8260ebf.system.entry.js +2 -0
  537. package/dist/pine-core/p-d8260ebf.system.entry.js.map +1 -0
  538. package/dist/pine-core/p-da961d2b.entry.js +2 -0
  539. package/dist/pine-core/p-da961d2b.entry.js.map +1 -0
  540. package/dist/pine-core/p-df73ebae.entry.js +2 -0
  541. package/dist/pine-core/p-df73ebae.entry.js.map +1 -0
  542. package/dist/pine-core/p-e356293a.entry.js +2 -0
  543. package/dist/pine-core/p-e356293a.entry.js.map +1 -0
  544. package/dist/pine-core/p-e39bd4b2.system.entry.js +2 -0
  545. package/dist/pine-core/p-e39bd4b2.system.entry.js.map +1 -0
  546. package/dist/pine-core/p-e5b46292.entry.js +2 -0
  547. package/dist/pine-core/p-e5b46292.entry.js.map +1 -0
  548. package/dist/pine-core/p-e60348bc.system.entry.js +2 -0
  549. package/dist/pine-core/p-e60348bc.system.entry.js.map +1 -0
  550. package/dist/pine-core/p-e890c1bb.system.entry.js +2 -0
  551. package/dist/pine-core/p-e890c1bb.system.entry.js.map +1 -0
  552. package/dist/pine-core/p-ed990ad0.system.entry.js +2 -0
  553. package/dist/pine-core/p-ed990ad0.system.entry.js.map +1 -0
  554. package/dist/pine-core/p-f085efeb.entry.js +2 -0
  555. package/dist/pine-core/p-f085efeb.entry.js.map +1 -0
  556. package/dist/pine-core/p-f34096db.system.entry.js +2 -0
  557. package/dist/pine-core/p-f34096db.system.entry.js.map +1 -0
  558. package/dist/pine-core/p-f90088df.entry.js +2 -0
  559. package/dist/pine-core/p-f90088df.entry.js.map +1 -0
  560. package/dist/pine-core/pine-core.css +1 -1
  561. package/dist/pine-core/pine-core.esm.js +1 -1
  562. package/dist/pine-core/pine-core.esm.js.map +1 -1
  563. package/dist/pine-core/svg/trend-down.svg +1 -0
  564. package/dist/pine-core/svg/trend-none.svg +1 -0
  565. package/dist/pine-core/svg/trend-up.svg +1 -0
  566. package/dist/types/components/pds-input/input-interface.d.ts +12 -0
  567. package/dist/types/components/pds-input/pds-input.d.ts +61 -4
  568. package/dist/types/components/pds-textarea/pds-textarea.d.ts +57 -4
  569. package/dist/types/components/pds-textarea/textarea-interface.d.ts +5 -1
  570. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +2 -0
  571. package/dist/types/components.d.ts +65 -9
  572. package/dist/types/utils/attributes.d.ts +10 -0
  573. package/dist/types/utils/utils.d.ts +3 -1
  574. package/hydrate/index.js +426 -200
  575. package/hydrate/index.mjs +426 -200
  576. package/package.json +3 -3
  577. package/readme.md +1 -1
  578. package/dist/cjs/index-3ad62856.js.map +0 -1
  579. package/dist/cjs/pds-label-05f073ea.js.map +0 -1
  580. package/dist/collection/global/styles/base.css +0 -113
  581. package/dist/esm/index-56752d25.js.map +0 -1
  582. package/dist/esm/pds-label-62469596.js.map +0 -1
  583. package/dist/esm-es5/index-56752d25.js.map +0 -1
  584. package/dist/esm-es5/pds-label-62469596.js +0 -2
  585. package/dist/esm-es5/pds-label-62469596.js.map +0 -1
  586. package/dist/pine-core/p-00c8d6d8.entry.js +0 -2
  587. package/dist/pine-core/p-00c8d6d8.entry.js.map +0 -1
  588. package/dist/pine-core/p-031ac651.entry.js +0 -2
  589. package/dist/pine-core/p-031ac651.entry.js.map +0 -1
  590. package/dist/pine-core/p-09d83447.system.entry.js +0 -2
  591. package/dist/pine-core/p-09d83447.system.entry.js.map +0 -1
  592. package/dist/pine-core/p-0ac04129.entry.js +0 -2
  593. package/dist/pine-core/p-0ac04129.entry.js.map +0 -1
  594. package/dist/pine-core/p-0ad64b9d.system.entry.js +0 -2
  595. package/dist/pine-core/p-0ad64b9d.system.entry.js.map +0 -1
  596. package/dist/pine-core/p-1164c32c.system.entry.js +0 -2
  597. package/dist/pine-core/p-1164c32c.system.entry.js.map +0 -1
  598. package/dist/pine-core/p-1351489d.entry.js +0 -2
  599. package/dist/pine-core/p-1351489d.entry.js.map +0 -1
  600. package/dist/pine-core/p-1712d594.entry.js +0 -2
  601. package/dist/pine-core/p-1712d594.entry.js.map +0 -1
  602. package/dist/pine-core/p-196f615c.entry.js +0 -2
  603. package/dist/pine-core/p-196f615c.entry.js.map +0 -1
  604. package/dist/pine-core/p-1a1a76ea.system.entry.js +0 -2
  605. package/dist/pine-core/p-1a1a76ea.system.entry.js.map +0 -1
  606. package/dist/pine-core/p-1a548198.system.entry.js +0 -2
  607. package/dist/pine-core/p-1a548198.system.entry.js.map +0 -1
  608. package/dist/pine-core/p-1a78ee21.entry.js +0 -2
  609. package/dist/pine-core/p-1a78ee21.entry.js.map +0 -1
  610. package/dist/pine-core/p-1df1990d.system.entry.js +0 -2
  611. package/dist/pine-core/p-1df1990d.system.entry.js.map +0 -1
  612. package/dist/pine-core/p-1e80f274.entry.js +0 -2
  613. package/dist/pine-core/p-1e80f274.entry.js.map +0 -1
  614. package/dist/pine-core/p-2e1dc5e5.system.entry.js +0 -2
  615. package/dist/pine-core/p-2e1dc5e5.system.entry.js.map +0 -1
  616. package/dist/pine-core/p-30600b1b.entry.js +0 -2
  617. package/dist/pine-core/p-30600b1b.entry.js.map +0 -1
  618. package/dist/pine-core/p-34cda8d5.system.entry.js +0 -2
  619. package/dist/pine-core/p-34cda8d5.system.entry.js.map +0 -1
  620. package/dist/pine-core/p-364a7555.system.entry.js +0 -2
  621. package/dist/pine-core/p-364a7555.system.entry.js.map +0 -1
  622. package/dist/pine-core/p-37a3c235.entry.js +0 -2
  623. package/dist/pine-core/p-37a3c235.entry.js.map +0 -1
  624. package/dist/pine-core/p-396014d3.entry.js +0 -2
  625. package/dist/pine-core/p-396014d3.entry.js.map +0 -1
  626. package/dist/pine-core/p-3acb18ad.entry.js +0 -2
  627. package/dist/pine-core/p-3acb18ad.entry.js.map +0 -1
  628. package/dist/pine-core/p-3ae15266.entry.js +0 -2
  629. package/dist/pine-core/p-3ae15266.entry.js.map +0 -1
  630. package/dist/pine-core/p-4a10164f.entry.js +0 -2
  631. package/dist/pine-core/p-4a10164f.entry.js.map +0 -1
  632. package/dist/pine-core/p-4d22b02c.entry.js +0 -2
  633. package/dist/pine-core/p-4d22b02c.entry.js.map +0 -1
  634. package/dist/pine-core/p-4f9b1945.entry.js +0 -2
  635. package/dist/pine-core/p-4f9b1945.entry.js.map +0 -1
  636. package/dist/pine-core/p-50918693.system.entry.js +0 -2
  637. package/dist/pine-core/p-50918693.system.entry.js.map +0 -1
  638. package/dist/pine-core/p-5380ad4f.entry.js +0 -2
  639. package/dist/pine-core/p-5380ad4f.entry.js.map +0 -1
  640. package/dist/pine-core/p-539fe011.system.entry.js +0 -2
  641. package/dist/pine-core/p-539fe011.system.entry.js.map +0 -1
  642. package/dist/pine-core/p-59fcea0f.entry.js +0 -2
  643. package/dist/pine-core/p-59fcea0f.entry.js.map +0 -1
  644. package/dist/pine-core/p-5b9d6ad1.entry.js +0 -2
  645. package/dist/pine-core/p-5b9d6ad1.entry.js.map +0 -1
  646. package/dist/pine-core/p-5cb59e3f.system.entry.js +0 -2
  647. package/dist/pine-core/p-5cb59e3f.system.entry.js.map +0 -1
  648. package/dist/pine-core/p-605dc33a.system.entry.js +0 -2
  649. package/dist/pine-core/p-605dc33a.system.entry.js.map +0 -1
  650. package/dist/pine-core/p-630b1802.entry.js +0 -2
  651. package/dist/pine-core/p-630b1802.entry.js.map +0 -1
  652. package/dist/pine-core/p-65229490.entry.js +0 -2
  653. package/dist/pine-core/p-65229490.entry.js.map +0 -1
  654. package/dist/pine-core/p-6d447614.system.entry.js +0 -2
  655. package/dist/pine-core/p-6d447614.system.entry.js.map +0 -1
  656. package/dist/pine-core/p-760e1c32.entry.js +0 -2
  657. package/dist/pine-core/p-760e1c32.entry.js.map +0 -1
  658. package/dist/pine-core/p-84d36583.system.entry.js +0 -2
  659. package/dist/pine-core/p-84d36583.system.entry.js.map +0 -1
  660. package/dist/pine-core/p-88702fa2.entry.js +0 -2
  661. package/dist/pine-core/p-88702fa2.entry.js.map +0 -1
  662. package/dist/pine-core/p-88edcb41.system.entry.js +0 -2
  663. package/dist/pine-core/p-88edcb41.system.entry.js.map +0 -1
  664. package/dist/pine-core/p-892b4a4c.entry.js +0 -2
  665. package/dist/pine-core/p-892b4a4c.entry.js.map +0 -1
  666. package/dist/pine-core/p-8ae84655.system.entry.js +0 -2
  667. package/dist/pine-core/p-8ae84655.system.entry.js.map +0 -1
  668. package/dist/pine-core/p-9487df53.entry.js +0 -2
  669. package/dist/pine-core/p-9487df53.entry.js.map +0 -1
  670. package/dist/pine-core/p-9db668f2.system.entry.js +0 -2
  671. package/dist/pine-core/p-9db668f2.system.entry.js.map +0 -1
  672. package/dist/pine-core/p-a24fa762.system.entry.js +0 -2
  673. package/dist/pine-core/p-a24fa762.system.entry.js.map +0 -1
  674. package/dist/pine-core/p-a2726d3b.system.entry.js +0 -2
  675. package/dist/pine-core/p-a2726d3b.system.entry.js.map +0 -1
  676. package/dist/pine-core/p-a6713696.entry.js +0 -2
  677. package/dist/pine-core/p-a6713696.entry.js.map +0 -1
  678. package/dist/pine-core/p-a9038f7f.js +0 -2
  679. package/dist/pine-core/p-a9038f7f.js.map +0 -1
  680. package/dist/pine-core/p-a9e02a6f.system.entry.js +0 -2
  681. package/dist/pine-core/p-a9e02a6f.system.entry.js.map +0 -1
  682. package/dist/pine-core/p-adda8682.system.entry.js +0 -2
  683. package/dist/pine-core/p-adda8682.system.entry.js.map +0 -1
  684. package/dist/pine-core/p-ae19532d.system.entry.js +0 -2
  685. package/dist/pine-core/p-ae19532d.system.entry.js.map +0 -1
  686. package/dist/pine-core/p-b3e36d77.system.entry.js +0 -2
  687. package/dist/pine-core/p-b3e36d77.system.entry.js.map +0 -1
  688. package/dist/pine-core/p-b7edbe43.system.entry.js +0 -2
  689. package/dist/pine-core/p-b7edbe43.system.entry.js.map +0 -1
  690. package/dist/pine-core/p-b95522e6.system.entry.js +0 -2
  691. package/dist/pine-core/p-b95522e6.system.entry.js.map +0 -1
  692. package/dist/pine-core/p-b9cebd24.entry.js +0 -2
  693. package/dist/pine-core/p-b9cebd24.entry.js.map +0 -1
  694. package/dist/pine-core/p-bbd19258.entry.js +0 -2
  695. package/dist/pine-core/p-bbd19258.entry.js.map +0 -1
  696. package/dist/pine-core/p-cbf2acbd.system.entry.js +0 -2
  697. package/dist/pine-core/p-cbf2acbd.system.entry.js.map +0 -1
  698. package/dist/pine-core/p-cc75a4f7.system.entry.js +0 -2
  699. package/dist/pine-core/p-cc75a4f7.system.entry.js.map +0 -1
  700. package/dist/pine-core/p-ceb66096.entry.js +0 -8
  701. package/dist/pine-core/p-ceb66096.entry.js.map +0 -1
  702. package/dist/pine-core/p-d3365f49.system.entry.js +0 -9
  703. package/dist/pine-core/p-d83716fb.js.map +0 -1
  704. package/dist/pine-core/p-d95b2469.system.entry.js +0 -2
  705. package/dist/pine-core/p-d95b2469.system.entry.js.map +0 -1
  706. package/dist/pine-core/p-da5a1e2c.system.entry.js +0 -2
  707. package/dist/pine-core/p-da5a1e2c.system.entry.js.map +0 -1
  708. package/dist/pine-core/p-de301890.entry.js +0 -2
  709. package/dist/pine-core/p-de301890.entry.js.map +0 -1
  710. package/dist/pine-core/p-dec11fa5.system.js +0 -2
  711. package/dist/pine-core/p-e2a673e8.entry.js +0 -2
  712. package/dist/pine-core/p-e2a673e8.entry.js.map +0 -1
  713. package/dist/pine-core/p-e2badc55.entry.js +0 -2
  714. package/dist/pine-core/p-e2badc55.entry.js.map +0 -1
  715. package/dist/pine-core/p-e3fab4be.system.js +0 -2
  716. package/dist/pine-core/p-e3fab4be.system.js.map +0 -1
  717. package/dist/pine-core/p-ebdaf3ad.entry.js +0 -2
  718. package/dist/pine-core/p-ebdaf3ad.entry.js.map +0 -1
  719. package/dist/pine-core/p-f16ef73c.system.entry.js +0 -2
  720. package/dist/pine-core/p-f16ef73c.system.entry.js.map +0 -1
  721. package/dist/pine-core/p-faa2bf05.system.entry.js +0 -2
  722. package/dist/pine-core/p-faa2bf05.system.entry.js.map +0 -1
@@ -0,0 +1,2 @@
1
+ System.register(["./p-45cf2585.system.js","./p-521ac753.system.js","./p-8d1efd85.system.js","./p-5480346a.system.js"],(function(e){"use strict";var i,o,r,n,a,t,s,d;return{setters:[function(e){i=e.r;o=e.c;r=e.h;n=e.H},function(e){a=e.m;t=e.a},function(e){s=e.P},function(e){d=e.b}],execute:function(){var c=':host{--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);--box-shadow-focus-invalid:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}:host(.is-invalid) input{border-color:var(--pine-color-border-danger)}:host(.is-invalid) input:checked{background:var(--pine-color-danger)}:host(.is-invalid) input:checked:hover{background:var(--pine-color-danger-hover);border-color:var(--pine-color-border-danger-hover)}:host(.is-invalid) input:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-invalid);box-shadow:var(--box-shadow-focus-invalid);outline:none}:host(.is-invalid) label,:host(.is-invalid) .pds-checkbox__message--error{color:var(--pine-color-text-message-danger)}:host(.is-indeterminate) input{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}:host(.is-indeterminate) input:hover{background:var(--pine-color-accent);border-color:var(--pine-color-accent-hover)}:host(.is-indeterminate) input::after{border:1px solid var(--pine-color-secondary);border-bottom:0;border-left:0;border-top:0;content:"";display:block;height:7px;left:50%;position:absolute;top:50%;-webkit-transform:rotate(90deg) translate3d(-103%, 32%, 0);transform:rotate(90deg) translate3d(-103%, 32%, 0);width:4px}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-dimension-2xs);height:var(--pine-dimension-sm);margin:0;position:relative;width:var(--pine-dimension-sm)}input:hover{background:var(--pine-color-secondary-hover);border:var(--pine-border-hover)}input:checked{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}input:checked:hover{background:var(--pine-color-accent-hover);border-color:var(--pine-color-accent-hover)}input:checked::after{border:1px solid var(--pine-color-secondary);border-left:0;border-top:0;content:"";display:block;height:7px;left:50%;position:absolute;top:50%;-webkit-transform:rotate(43deg) translate3d(-110%, -30%, 0);transform:rotate(43deg) translate3d(-110%, -30%, 0);width:4px}input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}input:disabled:checked{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled)}input:disabled:checked::after{border-color:var(--pine-color-grey-300)}input:disabled+label{color:var(--pine-color-text-disabled);cursor:not-allowed}input:disabled~.pds-checkbox__message{color:var(--pine-color-text-disabled)}input:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}label{font-weight:var(--pine-font-weight-body-medium);-webkit-margin-start:10px;margin-inline-start:10px}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-checkbox__message{color:var(--pine-color-text-message);-webkit-margin-before:6px;margin-block-start:6px;-webkit-margin-start:26px;margin-inline-start:26px;width:100%}.pds-checkbox__message--error{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-size:var(--pine-font-size-085);gap:var(--pine-spacing-050)}';var l=c;var p=e("pds_checkbox",function(){function e(e){var r=this;i(this,e);this.pdsCheckboxChange=o(this,"pdsCheckboxChange",7);this.pdsCheckboxInput=o(this,"pdsCheckboxInput",7);this.handleCheckboxChange=function(e){if(r.disabled){return}var i=e.target;r.checked=i.checked;r.pdsCheckboxChange.emit({checked:i.checked,value:r.value})};this.handleInput=function(){r.pdsCheckboxInput.emit({checked:r.checked,value:r.value})};this.checked=false;this.componentId=undefined;this.disabled=undefined;this.errorMessage=undefined;this.helperMessage=undefined;this.indeterminate=undefined;this.invalid=undefined;this.label=undefined;this.labelHidden=undefined;this.name=undefined;this.required=undefined;this.value=undefined}e.prototype.updateIndeterminate=function(){this.indeterminate=undefined};e.prototype.classNames=function(){var e=[];if(this.invalid){e.push("is-invalid")}if(this.indeterminate){e.push("is-indeterminate")}if(this.disabled){e.push("is-disabled")}return e.join(" ")};e.prototype.render=function(){return r(n,{key:"a9a36f6b064c3ff184de99514e9dea1f4e59b44d",class:this.classNames()},r("input",{key:"ed7adf4890dd6b7f03659eee3586eeab609af114",type:"checkbox","aria-describedby":t(this.componentId,this.invalid,this.helperMessage),"aria-invalid":this.invalid?"true":undefined,id:this.componentId,indeterminate:this.indeterminate,name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled,onChange:this.handleCheckboxChange,onInput:this.handleInput}),r(s,{key:"a68de459c7a6aef1cfa507808b996ca6b594c165",htmlFor:this.componentId,text:this.label,classNames:this.labelHidden?"visually-hidden":""}),this.helperMessage&&r("div",{key:"34e4b9bc0c8f8e48a5b74e4c2dd695983d640d12",class:"pds-checkbox__message",id:a(this.componentId,"helper")},this.helperMessage),this.errorMessage&&r("div",{key:"8ca0733a88369da4248cb2c98e25d9f7d01d7672",class:"pds-checkbox__message pds-checkbox__message--error",id:a(this.componentId,"error"),"aria-live":"assertive"},r("pds-icon",{key:"f5a97b3612cb3990770367faaeafbbd1d46e48ee",icon:d,size:"small"}),this.errorMessage))};Object.defineProperty(e,"watchers",{get:function(){return{checked:["updateIndeterminate"]}},enumerable:false,configurable:true});return e}());p.style=l}}}));
2
+ //# sourceMappingURL=p-59f4c8ab.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsCheckboxCss","PdsCheckboxStyle0","PdsCheckbox","exports","this","handleCheckboxChange","e","_this","disabled","target","checked","pdsCheckboxChange","emit","value","handleInput","pdsCheckboxInput","class_1","prototype","updateIndeterminate","indeterminate","undefined","classNames","invalid","push","join","render","h","Host","key","class","type","assignDescription","componentId","helperMessage","id","name","required","onChange","onInput","PdsLabel","htmlFor","text","label","labelHidden","messageId","errorMessage","icon","danger","size"],"sources":["src/components/pds-checkbox/pds-checkbox.scss?tag=pds-checkbox&encapsulation=shadow","src/components/pds-checkbox/pds-checkbox.tsx"],"sourcesContent":[":host {\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);\n --box-shadow-focus-invalid: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);\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-danger);\n\n &:hover {\n background: var(--pine-color-danger-hover);\n border-color: var(--pine-color-border-danger-hover);\n }\n }\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-invalid); // Remove when outline radius is supported in Safari\n outline: none;\n }\n }\n\n label,\n .pds-checkbox__message--error {\n color: var(--pine-color-text-message-danger);\n }\n}\n\n:host(.is-indeterminate) {\n input {\n background: var(--pine-color-accent);\n border-color: var(--pine-color-accent);\n\n &:hover {\n background: var(--pine-color-accent);\n border-color: var(--pine-color-accent-hover);\n }\n\n &::after {\n border: 1px solid var(--pine-color-secondary);\n border-bottom: 0;\n border-left: 0;\n border-top: 0;\n content: \"\";\n display: block;\n height: 7px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: rotate(90deg) translate3d(-103%, 32%, 0);\n width: 4px;\n }\n }\n}\n\ninput {\n appearance: none;\n background-color: var(--pine-color-secondary);\n border: var(--pine-border);\n border-radius: var(--pine-dimension-2xs);\n height: var(--pine-dimension-sm);\n margin: 0;\n position: relative;\n width: var(--pine-dimension-sm);\n\n &:hover {\n background: var(--pine-color-secondary-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 border: 1px solid var(--pine-color-secondary);\n border-left: 0;\n border-top: 0;\n content: \"\";\n display: block;\n height: 7px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: rotate(43deg) translate3d(-110%, -30%, 0);\n width: 4px;\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: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n\n &::after {\n border-color: var(--pine-color-grey-300);\n }\n }\n\n + label {\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n ~ .pds-checkbox__message {\n color: var(--pine-color-text-disabled);\n }\n }\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 }\n}\n\nlabel {\n font-weight: var(--pine-font-weight-body-medium);\n margin-inline-start: 10px;\n}\n\n.visually-hidden {\n border: 0;\n clip: rect(0 0 0 0);\n clip-path: polygon(0 0, 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.pds-checkbox__message {\n color: var(--pine-color-text-message);\n margin-block-start: 6px;\n margin-inline-start: 26px;\n width: 100%;\n}\n\n.pds-checkbox__message--error {\n align-items: center;\n display: flex;\n font-size: var(--pine-font-size-085);\n gap: var(--pine-spacing-050);\n}\n","import { Component, h, Prop, Host, Event, EventEmitter, Watch } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { CheckboxChangeEventDetail } from './checkbox-interface';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-checkbox',\n styleUrls: ['pds-checkbox.scss'],\n shadow: true,\n})\nexport class PdsCheckbox {\n /**\n * It determines whether or not the checkbox is checked.\n */\n @Prop({ mutable: true }) checked?: boolean = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * It determines whether or not the checkbox is disabled.\n */\n @Prop() disabled: boolean;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * String used for helper message below checkbox.\n */\n @Prop() helperMessage: string;\n\n /**\n * If `true`, the checkbox will visually appear as indeterminate.\n * Only JavaScript can set the objects `indeterminate` property. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes).\n */\n @Prop({ mutable: true }) indeterminate: boolean;\n\n /**\n * It determines whether or not the checkbox is invalid.\n */\n @Prop() invalid: boolean;\n\n /**\n * String used for label text next to checkbox.\n */\n @Prop() label: string;\n\n /**\n * Visually hides the label text for instances where only the checkbox should be displayed. Label remains accessible to assistive technology such as screen readers.\n */\n @Prop() labelHidden: boolean;\n\n /**\n * String used for checkbox `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * It determines whether or not the checkbox is required.\n */\n @Prop() required: boolean;\n\n /**\n * The value of the checkbox that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Event emitted that contains the `value` and `checked`.\n */\n @Event() pdsCheckboxChange: EventEmitter<CheckboxChangeEventDetail>;\n\n @Event() pdsCheckboxInput: EventEmitter<CheckboxChangeEventDetail>;\n\n @Watch('checked')\n updateIndeterminate() {\n this.indeterminate = undefined\n }\n\n private handleCheckboxChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n this.checked = target.checked;\n\n this.pdsCheckboxChange.emit({\n checked: target.checked,\n value: this.value\n });\n }\n\n private handleInput = () => {\n this.pdsCheckboxInput.emit({\n checked: this.checked,\n value: this.value\n });\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.indeterminate) { classNames.push('is-indeterminate'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n type=\"checkbox\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n id={this.componentId}\n indeterminate={this.indeterminate}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleCheckboxChange}\n onInput={this.handleInput}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} classNames={this.labelHidden ? 'visually-hidden' : ''} />\n {this.helperMessage &&\n <div\n class={'pds-checkbox__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-checkbox__message pds-checkbox__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"mappings":"4SAAA,IAAMA,EAAiB,44GACvB,IAAAC,EAAeD,E,ICUFE,EAAWC,EAAA,0B,2IA0EdC,KAAAC,qBAAuB,SAACC,GAC9B,GAAIC,EAAKC,SAAU,CACjB,M,CAGF,IAAMC,EAASH,EAAEG,OACjBF,EAAKG,QAAUD,EAAOC,QAEtBH,EAAKI,kBAAkBC,KAAK,CAC1BF,QAASD,EAAOC,QAChBG,MAAON,EAAKM,O,EAIRT,KAAAU,YAAc,WACpBP,EAAKQ,iBAAiBH,KAAK,CACzBF,QAASH,EAAKG,QACdG,MAAON,EAAKM,O,eAvF6B,M,iRAkE7CG,EAAAC,UAAAC,oBAAA,WACEd,KAAKe,cAAgBC,S,EAwBfJ,EAAAC,UAAAI,WAAA,WACN,IAAMA,EAAa,GAEnB,GAAIjB,KAAKkB,QAAS,CAAED,EAAWE,KAAK,a,CACpC,GAAInB,KAAKe,cAAe,CAAEE,EAAWE,KAAK,mB,CAC1C,GAAInB,KAAKI,SAAU,CAAEa,EAAWE,KAAK,c,CAErC,OAAOF,EAAWG,KAAK,K,EAGzBR,EAAAC,UAAAQ,OAAA,WACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOzB,KAAKiB,cAChBK,EAAA,SAAAE,IAAA,2CACEE,KAAK,WAAU,mBACGC,EAAkB3B,KAAK4B,YAAa5B,KAAKkB,QAASlB,KAAK6B,eAAc,eACzE7B,KAAKkB,QAAU,OAASF,UACtCc,GAAI9B,KAAK4B,YACTb,cAAef,KAAKe,cACpBgB,KAAM/B,KAAK+B,KACXtB,MAAOT,KAAKS,MACZH,QAASN,KAAKM,QACd0B,SAAUhC,KAAKgC,SACf5B,SAAUJ,KAAKI,SACf6B,SAAUjC,KAAKC,qBACfiC,QAASlC,KAAKU,cAEhBY,EAACa,EAAQ,CAAAX,IAAA,2CAACY,QAASpC,KAAK4B,YAAaS,KAAMrC,KAAKsC,MAAOrB,WAAYjB,KAAKuC,YAAc,kBAAoB,KACzGvC,KAAK6B,eACJP,EAAA,OAAAE,IAAA,2CACEC,MAAO,wBACPK,GAAIU,EAAUxC,KAAK4B,YAAa,WAE/B5B,KAAK6B,eAGT7B,KAAKyC,cACJnB,EAAA,OAAAE,IAAA,2CACEC,MAAO,qDACPK,GAAIU,EAAUxC,KAAK4B,YAAa,SAAQ,YAC9B,aAEVN,EAAA,YAAAE,IAAA,2CAAUkB,KAAMC,EAAQC,KAAK,UAC5B5C,KAAKyC,c,4IA1IM,I","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-45cf2585.system.js","./p-521ac753.system.js","./p-8d1efd85.system.js","./p-5480346a.system.js"],(function(i){"use strict";var e,r,s,o,a,d,n,c;return{setters:[function(i){e=i.r;r=i.c;s=i.h;o=i.H},function(i){a=i.m;d=i.a},function(i){n=i.P},function(i){c=i.b}],execute:function(){var t='.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;border:var(--pine-border);border-radius:var(--pine-border-radius-full);height:var(--sizing-input-size);margin:0;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{color:var(--pine-color-text-disabled);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{font-weight:var(--pine-font-weight-body-medium);-webkit-margin-start:10px;margin-inline-start:10px}.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:26px;margin-inline-start:26px;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 p=t;var l=i("pds_radio",function(){function i(i){var s=this;e(this,i);this.pdsRadioChange=r(this,"pdsRadioChange",7);this.handleRadioChange=function(i){if(s.disabled){return}var e=i.target;var r=e.checked;s.pdsRadioChange.emit(r)};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}i.prototype.classNames=function(){var i=[];if(this.invalid){i.push("is-invalid")}if(this.disabled){i.push("is-disabled")}return i.join(" ")};i.prototype.render=function(){return s(o,{key:"8c8f58c550fc7b82b135aee152ad01d4bd388a21",class:this.classNames()},s("input",{key:"45b2723c50b7539c0e7219242707fd73b7633237","aria-describedby":d(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}),s(n,{key:"805a7dcf03ff90842468dcfc36e94ef0f6a7cac0",htmlFor:this.componentId,text:this.label}),this.helperMessage&&s("div",{key:"2b38ec8828b4ff7d40454f54af3ce1cc367f15e6",class:"pds-radio__message",id:a(this.componentId,"helper")},this.helperMessage),this.errorMessage&&s("div",{key:"37f62ed40f7ad6c83d8d171a3fdf90404062cb5d",class:"pds-radio__message pds-radio__message--error",id:a(this.componentId,"error"),"aria-live":"assertive"},s("pds-icon",{key:"5c4d4be02ee1a4e4049778771ec10b2b5921e7fb",icon:c,size:"small"}),this.errorMessage))};return i}());l.style=p}}}));
2
+ //# sourceMappingURL=p-5b9f8f6a.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsRadioCss","PdsRadioStyle0","PdsRadio","exports","this","handleRadioChange","e","_this","disabled","target","isChecked","checked","pdsRadioChange","emit","class_1","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","icon","danger","size"],"sources":["src/components/pds-radio/pds-radio.scss?tag=pds-radio&encapsulation=scoped","src/components/pds-radio/pds-radio.tsx"],"sourcesContent":[":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 border: var(--pine-border);\n border-radius: var(--pine-border-radius-full);\n height: var(--sizing-input-size);\n margin: 0;\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 color: var(--pine-color-text-disabled);\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 font-weight: var(--pine-font-weight-body-medium);\n margin-inline-start: 10px;\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: 26px;\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 { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-radio',\n styleUrls: ['pds-radio.scss'],\n scoped: true,\n})\nexport class PdsRadio {\n /**\n * Determines whether or not the radio is checked.\n * @defaultValue false\n */\n @Prop() checked = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines whether or not the radio is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below radio.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the radio is invalid.\n * @defaultValue false\n */\n @Prop() invalid = false;\n\n /**\n * String used for label text next to radio.\n */\n @Prop() label: string;\n\n /**\n * String used for radio `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * Determines whether or not the radio is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value of the radio that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Emits a boolean indicating whether the checkbox is currently checked or unchecked.\n */\n @Event() pdsRadioChange: EventEmitter<boolean>;\n\n private handleRadioChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n const isChecked = target.checked;\n\n this.pdsRadioChange.emit(isChecked);\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) {\n classNames.push('is-invalid');\n }\n if (this.disabled) {\n classNames.push('is-disabled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n type=\"radio\"\n id={this.componentId}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleRadioChange}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={'pds-radio__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-radio__message pds-radio__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small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KAAK,UAC5BvC,KAAKoC,c,WAnHG,I","ignoreList":[]}
@@ -1,2 +1,2 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,n,o){function s(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{r(o.next(e))}catch(e){a(e)}}function d(e){try{r(o["throw"](e))}catch(e){a(e)}}function r(e){e.done?n(e.value):s(e.value).then(i,d)}r((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,i;return i={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(e){return function(t){return r([e,t])}}function r(d){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,d[0]&&(n=0)),n)try{if(o=1,s&&(a=d[0]&2?s["return"]:d[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,d[1])).done)return a;if(s=0,a)d=[d[0]&2,a.value];switch(d[0]){case 0:case 1:a=d;break;case 4:n.label++;return{value:d[1],done:false};case 5:n.label++;s=d[1];d=[0];continue;case 7:d=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1];a=d;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(d);break}if(a[2])n.ops.pop();n.trys.pop();continue}d=t.call(e,n)}catch(e){d=[6,e];s=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};System.register(["./p-45cf2585.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,o,s;return{setters:[function(t){n=t.p;o=t.b;e("setNonce",t.s)},function(e){s=e.g}],execute:function(){var e=this;var a=function(){var e=t.meta.url;var o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return n(o)};a().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,s()];case 1:e.sent();return[2,o([["p-6d447614.system",[[1,"pds-table-head",{indeterminate:[1028],isSelected:[1028,"is-selected"]}]]],["p-2e1dc5e5.system",[[1,"pds-table-row",{indeterminate:[1028],isSelected:[1028,"is-selected"]}]]],["p-ae19532d.system",[[1,"pds-copytext",{border:[516],componentId:[1,"component-id"],fullWidth:[4,"full-width"],truncate:[4],value:[1]}]]],["p-364a7555.system",[[1,"pds-accordion",{componentId:[1,"component-id"],isOpen:[1540,"open"]},null,{isOpen:["handleOpenState"]}]]],["p-1a548198.system",[[1,"pds-avatar",{alt:[1],badge:[4],componentId:[1,"component-id"],dropdown:[4],image:[1],size:[513],variant:[513]}]]],["p-adda8682.system",[[1,"pds-chip",{componentId:[1,"component-id"],dot:[4],label:[1],large:[4],sentiment:[1],variant:[1]}]]],["p-605dc33a.system",[[1,"pds-input",{autocomplete:[1],componentId:[1,"component-id"],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],label:[1],name:[1],placeholder:[1],readonly:[4],required:[4],type:[1],value:[1025]}]]],["p-539fe011.system",[[1,"pds-link",{componentId:[1,"component-id"],external:[4],variant:[1],fontSize:[1,"font-size"],href:[1]}]]],["p-b3e36d77.system",[[2,"pds-radio",{checked:[4],componentId:[1,"component-id"],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],label:[1],name:[1],required:[4],value:[1]}]]],["p-9db668f2.system",[[1,"pds-select",{autocomplete:[1],componentId:[1,"component-id"],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],label:[1],multiple:[4],name:[1],required:[4],value:[1025]},null,{value:["valueChanged"]}]]],["p-84d36583.system",[[6,"pds-sortable-item",{enableActions:[4,"enable-actions"],componentId:[1,"component-id"],showHandle:[1028,"show-handle"]}]]],["p-a24fa762.system",[[1,"pds-switch",{componentId:[1,"component-id"],checked:[1028],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],label:[1],name:[1],required:[4],value:[1]}]]],["p-1164c32c.system",[[1,"pds-textarea",{autocomplete:[1],componentId:[1,"component-id"],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[1028],label:[1],name:[1],placeholder:[1],readonly:[4],required:[4],rows:[2],value:[1025]}]]],["p-88edcb41.system",[[0,"pds-box",{alignItems:[1,"align-items"],auto:[4],backgroundColor:[1,"background-color"],border:[4],borderColor:[1,"border-color"],borderRadius:[1,"border-radius"],direction:[1],display:[1],fit:[4],gap:[1],flex:[1],justifyContent:[1,"justify-content"],minHeight:[1,"min-height"],minWidth:[1,"min-width"],offset:[1],offsetXs:[1,"offset-xs"],offsetSm:[1,"offset-sm"],offsetMd:[1,"offset-md"],offsetLg:[1,"offset-lg"],offsetXl:[1,"offset-xl"],padding:[1],shadow:[1],size:[1],sizeXs:[1,"size-xs"],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]}]]],["p-09d83447.system",[[1,"pds-divider",{componentId:[1,"component-id"],offset:[1],vertical:[4]}]]],["p-8ae84655.system",[[1,"pds-image",{alt:[1],componentId:[1,"component-id"],height:[2],loading:[1],sizes:[1],src:[1],srcset:[1],width:[2]}]]],["p-b95522e6.system",[[1,"pds-loader",{isLoading:[4,"is-loading"],showLabel:[4,"show-label"],size:[513],variant:[1]}]]],["p-cbf2acbd.system",[[1,"pds-popover",{popoverTargetAction:[1,"popover-target-action"],popoverType:[1,"popover-type"],componentId:[1,"component-id"],text:[1],maxWidth:[2,"max-width"],placement:[513],active:[32]},[[2,"click","handleClick"],[11,"scroll","handleScroll"]]]]],["p-50918693.system",[[1,"pds-progress",{animated:[4],componentId:[1,"component-id"],fillColor:[1,"fill-color"],label:[1],percent:[2],showPercent:[4,"show-percent"]}]]],["p-da5a1e2c.system",[[0,"pds-row",{alignItems:[1,"align-items"],border:[4],colGap:[1,"col-gap"],componentId:[1,"component-id"],justifyContent:[1,"justify-content"],minHeight:[1,"min-height"],noWrap:[4,"no-wrap"]}]]],["p-d3365f49.system",[[6,"pds-sortable",{border:[516],componentId:[1,"component-id"],dividers:[516],handleType:[1,"handle-type"]}]]],["p-b7edbe43.system",[[4,"pds-tab",{name:[1],parentComponentId:[1,"parent-component-id"],variant:[1],index:[2],selected:[4]}]]],["p-faa2bf05.system",[[1,"pds-table",{compact:[4],componentId:[1,"component-id"],responsive:[4],fixedColumn:[4,"fixed-column"],selectable:[4],sortingColumn:[32],sortingDirection:[32]},[[0,"pdsTableSort","handleTableSort"],[0,"pdsTableSelectAll","handleTableSelectAll"],[0,"pdsTableRowSelected","handleTableSelect"]]]]],["p-a9e02a6f.system",[[1,"pds-table-body"]]],["p-f16ef73c.system",[[4,"pds-tabpanel",{name:[1],parentComponentId:[1,"parent-component-id"],variant:[1],selected:[1028]}]]],["p-1df1990d.system",[[1,"pds-tabs",{tablistLabel:[1,"tablist-label"],componentId:[1,"component-id"],variant:[1],activeTabName:[1025,"active-tab-name"],activeTabIndex:[1026,"active-tab-index"]},[[16,"pdsTabClick","tabClickHandler"],[0,"keydown","handleKeyDown"]]]]],["p-cc75a4f7.system",[[1,"pds-text",{align:[1],color:[1],decoration:[1],gutter:[1],size:[1],weight:[1],tag:[1]}]]],["p-a2726d3b.system",[[1,"pds-tooltip",{content:[1],componentId:[1,"component-id"],hasArrow:[4,"has-arrow"],htmlContent:[4,"html-content"],placement:[513],maxWidth:[1,"max-width"],opened:[1540],isOpen:[32],showTooltip:[64],hideTooltip:[64]},null,{opened:["handleOpenToggle"]}]]],["p-1a1a76ea.system",[[1,"pds-icon",{color:[1],icon:[8],name:[513],size:[513],src:[1],ariaLabel:[32],isVisible:[32],svgContent:[32]},null,{size:["updateStyles"],color:["updateStyles"],name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}]]],["p-34cda8d5.system",[[1,"pds-button",{componentId:[1,"component-id"],disabled:[4],icon:[1],name:[1],value:[1],type:[1],variant:[1]}]]],["p-d95b2469.system",[[1,"pds-table-head-cell",{sortable:[4],sortingDirection:[32],tableScrolling:[32],isSelected:[32]}]]],["p-5cb59e3f.system",[[1,"pds-table-cell",{truncate:[4],tableScrolling:[32]}]]],["p-0ad64b9d.system",[[1,"pds-checkbox",{checked:[1028],componentId:[1,"component-id"],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],indeterminate:[1028],invalid:[4],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[1]},null,{checked:["updateIndeterminate"]}]]]],t)]}}))}))}))}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,t,n,o){function s(e){return e instanceof n?e:new n((function(t){t(e)}))}return new(n||(n=Promise))((function(n,a){function i(e){try{r(o.next(e))}catch(e){a(e)}}function d(e){try{r(o["throw"](e))}catch(e){a(e)}}function r(e){e.done?n(e.value):s(e.value).then(i,d)}r((o=o.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var n={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},o,s,a,i;return i={next:d(0),throw:d(1),return:d(2)},typeof Symbol==="function"&&(i[Symbol.iterator]=function(){return this}),i;function d(e){return function(t){return r([e,t])}}function r(d){if(o)throw new TypeError("Generator is already executing.");while(i&&(i=0,d[0]&&(n=0)),n)try{if(o=1,s&&(a=d[0]&2?s["return"]:d[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,d[1])).done)return a;if(s=0,a)d=[d[0]&2,a.value];switch(d[0]){case 0:case 1:a=d;break;case 4:n.label++;return{value:d[1],done:false};case 5:n.label++;s=d[1];d=[0];continue;case 7:d=n.ops.pop();n.trys.pop();continue;default:if(!(a=n.trys,a=a.length>0&&a[a.length-1])&&(d[0]===6||d[0]===2)){n=0;continue}if(d[0]===3&&(!a||d[1]>a[0]&&d[1]<a[3])){n.label=d[1];break}if(d[0]===6&&n.label<a[1]){n.label=a[1];a=d;break}if(a&&n.label<a[2]){n.label=a[2];n.ops.push(d);break}if(a[2])n.ops.pop();n.trys.pop();continue}d=t.call(e,n)}catch(e){d=[6,e];s=0}finally{o=a=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:true}}};System.register(["./p-45cf2585.system.js","./p-56ba5cbf.system.js"],(function(e,t){"use strict";var n,o,s;return{setters:[function(t){n=t.p;o=t.b;e("setNonce",t.s)},function(e){s=e.g}],execute:function(){var e=this;var a=function(){var e=t.meta.url;var o={};if(e!==""){o.resourcesUrl=new URL(".",e).href}return n(o)};a().then((function(t){return __awaiter(e,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:return[4,s()];case 1:e.sent();return[2,o([["p-ed990ad0.system",[[1,"pds-table-head",{indeterminate:[1028],isSelected:[1028,"is-selected"]}]]],["p-8b2db323.system",[[1,"pds-table-row",{indeterminate:[1028],isSelected:[1028,"is-selected"]}]]],["p-d8260ebf.system",[[1,"pds-copytext",{border:[516],componentId:[1,"component-id"],fullWidth:[4,"full-width"],truncate:[4],value:[1]}]]],["p-8205e4d8.system",[[1,"pds-accordion",{componentId:[1,"component-id"],isOpen:[1540,"open"]},null,{isOpen:["handleOpenState"]}]]],["p-d0b371ee.system",[[1,"pds-avatar",{alt:[1],badge:[4],componentId:[1,"component-id"],dropdown:[4],image:[1],size:[513],variant:[513]}]]],["p-372a04fa.system",[[1,"pds-chip",{componentId:[1,"component-id"],dot:[4],label:[1],large:[4],sentiment:[1],variant:[1]}]]],["p-399617f0.system",[[1,"pds-input",{autocomplete:[1],componentId:[1,"component-id"],debounce:[2],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],label:[1],name:[1],placeholder:[1],readonly:[4],required:[4],type:[1],value:[1032],hasFocus:[32],setFocus:[64]},null,{debounce:["debounceChanged"],value:["valueChanged"]}]]],["p-8420594c.system",[[1,"pds-link",{componentId:[1,"component-id"],external:[4],variant:[1],fontSize:[1,"font-size"],href:[1]}]]],["p-5b9f8f6a.system",[[2,"pds-radio",{checked:[4],componentId:[1,"component-id"],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],label:[1],name:[1],required:[4],value:[1]}]]],["p-2fedf634.system",[[1,"pds-select",{autocomplete:[1],componentId:[1,"component-id"],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],label:[1],multiple:[4],name:[1],required:[4],value:[1025]},null,{value:["valueChanged"]}]]],["p-4c252abb.system",[[6,"pds-sortable-item",{enableActions:[4,"enable-actions"],componentId:[1,"component-id"],showHandle:[1028,"show-handle"]}]]],["p-6709f0f7.system",[[1,"pds-switch",{componentId:[1,"component-id"],checked:[1028],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[4],label:[1],name:[1],required:[4],value:[1]}]]],["p-cd14918d.system",[[1,"pds-textarea",{autocomplete:[1],componentId:[1,"component-id"],disabled:[4],debounce:[2],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],invalid:[1028],label:[1],name:[1],placeholder:[1],readonly:[4],required:[4],rows:[2],value:[1025],hasFocus:[32],setFocus:[64]},null,{debounce:["debounceChanged"],value:["valueChanged"]}]]],["p-b47f9e15.system",[[0,"pds-box",{alignItems:[1,"align-items"],auto:[4],backgroundColor:[1,"background-color"],border:[4],borderColor:[1,"border-color"],borderRadius:[1,"border-radius"],direction:[1],display:[1],fit:[4],gap:[1],flex:[1],justifyContent:[1,"justify-content"],minHeight:[1,"min-height"],minWidth:[1,"min-width"],offset:[1],offsetXs:[1,"offset-xs"],offsetSm:[1,"offset-sm"],offsetMd:[1,"offset-md"],offsetLg:[1,"offset-lg"],offsetXl:[1,"offset-xl"],padding:[1],shadow:[1],size:[1],sizeXs:[1,"size-xs"],sizeSm:[1,"size-sm"],sizeMd:[1,"size-md"],sizeLg:[1,"size-lg"],sizeXl:[1,"size-xl"]}]]],["p-e890c1bb.system",[[1,"pds-divider",{componentId:[1,"component-id"],offset:[1],vertical:[4]}]]],["p-80c582b7.system",[[1,"pds-image",{alt:[1],componentId:[1,"component-id"],height:[2],loading:[1],sizes:[1],src:[1],srcset:[1],width:[2]}]]],["p-e60348bc.system",[[1,"pds-loader",{isLoading:[4,"is-loading"],showLabel:[4,"show-label"],size:[513],variant:[1]}]]],["p-f34096db.system",[[1,"pds-popover",{popoverTargetAction:[1,"popover-target-action"],popoverType:[1,"popover-type"],componentId:[1,"component-id"],text:[1],maxWidth:[2,"max-width"],placement:[513],active:[32]},[[2,"click","handleClick"],[11,"scroll","handleScroll"]]]]],["p-285cd9d1.system",[[1,"pds-progress",{animated:[4],componentId:[1,"component-id"],fillColor:[1,"fill-color"],label:[1],percent:[2],showPercent:[4,"show-percent"]}]]],["p-798cde42.system",[[0,"pds-row",{alignItems:[1,"align-items"],border:[4],colGap:[1,"col-gap"],componentId:[1,"component-id"],justifyContent:[1,"justify-content"],minHeight:[1,"min-height"],noWrap:[4,"no-wrap"]}]]],["p-1fd67cb4.system",[[6,"pds-sortable",{border:[516],componentId:[1,"component-id"],dividers:[516],handleType:[1,"handle-type"]}]]],["p-4e2fe44a.system",[[4,"pds-tab",{name:[1],parentComponentId:[1,"parent-component-id"],variant:[1],index:[2],selected:[4]}]]],["p-e39bd4b2.system",[[1,"pds-table",{compact:[4],componentId:[1,"component-id"],responsive:[4],fixedColumn:[4,"fixed-column"],selectable:[4],sortingColumn:[32],sortingDirection:[32]},[[0,"pdsTableSort","handleTableSort"],[0,"pdsTableSelectAll","handleTableSelectAll"],[0,"pdsTableRowSelected","handleTableSelect"]]]]],["p-60c2039e.system",[[1,"pds-table-body"]]],["p-4d1fbb88.system",[[4,"pds-tabpanel",{name:[1],parentComponentId:[1,"parent-component-id"],variant:[1],selected:[1028]}]]],["p-b29b2e57.system",[[1,"pds-tabs",{tablistLabel:[1,"tablist-label"],componentId:[1,"component-id"],variant:[1],activeTabName:[1025,"active-tab-name"],activeTabIndex:[1026,"active-tab-index"]},[[16,"pdsTabClick","tabClickHandler"],[0,"keydown","handleKeyDown"]]]]],["p-397ce1a8.system",[[1,"pds-text",{align:[1],color:[1],decoration:[1],gutter:[1],size:[1],weight:[1],tag:[1]}]]],["p-1e9d6f92.system",[[1,"pds-tooltip",{content:[1],componentId:[1,"component-id"],hasArrow:[4,"has-arrow"],htmlContent:[4,"html-content"],placement:[513],maxWidth:[1,"max-width"],opened:[1540],isOpen:[32],showTooltip:[64],hideTooltip:[64]},null,{opened:["handleOpenToggle"]}]]],["p-3c6a0b2a.system",[[1,"pds-icon",{color:[1],icon:[8],name:[513],size:[513],src:[1],ariaLabel:[32],isVisible:[32],svgContent:[32]},null,{size:["updateStyles"],color:["updateStyles"],name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}]]],["p-26679956.system",[[1,"pds-button",{componentId:[1,"component-id"],disabled:[4],icon:[1],name:[1],value:[1],type:[1],variant:[1]}]]],["p-d6a5ec65.system",[[1,"pds-table-head-cell",{sortable:[4],sortingDirection:[32],tableScrolling:[32],isSelected:[32]}]]],["p-19be5a8e.system",[[1,"pds-table-cell",{truncate:[4],tableScrolling:[32]}]]],["p-59f4c8ab.system",[[1,"pds-checkbox",{checked:[1028],componentId:[1,"component-id"],disabled:[4],errorMessage:[1,"error-message"],helperMessage:[1,"helper-message"],indeterminate:[1028],invalid:[4],label:[1],labelHidden:[4,"label-hidden"],name:[1],required:[4],value:[1]},null,{checked:["updateIndeterminate"]}]]]],t)]}}))}))}))}}}));
2
2
  //# sourceMappingURL=p-5c04aee0.system.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["patchBrowser","importMeta","module","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","__awaiter","_this","globalScripts","_a","sent","bootstrapLazy","indeterminate","isSelected","border","componentId","fullWidth","truncate","value","isOpen","alt","badge","dropdown","image","size","variant","dot","label","large","sentiment","autocomplete","disabled","errorMessage","helperMessage","invalid","name","placeholder","readonly","required","type","external","fontSize","checked","multiple","enableActions","showHandle","rows","alignItems","auto","backgroundColor","borderColor","borderRadius","direction","display","fit","gap","flex","justifyContent","minHeight","minWidth","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","padding","shadow","sizeXs","sizeSm","sizeMd","sizeLg","sizeXl","vertical","height","loading","sizes","src","srcset","width","isLoading","showLabel","popoverTargetAction","popoverType","text","maxWidth","placement","active","animated","fillColor","percent","showPercent","colGap","noWrap","dividers","handleType","parentComponentId","index","selected","compact","responsive","fixedColumn","selectable","sortingColumn","sortingDirection","tablistLabel","activeTabName","activeTabIndex","align","color","decoration","gutter","weight","tag","content","hasArrow","htmlContent","opened","showTooltip","hideTooltip","icon","ariaLabel","isVisible","svgContent","sortable","tableScrolling","labelHidden"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"mappings":"qqDAOA,IAAIA,EAAe,WAUjB,IAAMC,EAAaC,EAAAC,KAAAC,IACnB,IAAMC,EAAqE,GAC3E,GAAIJ,IAAe,GAAI,CACrBI,EAAKC,aAAe,IAAIC,IAAI,IAAKN,GAAYO,IACjD,CACE,OAAOC,EAAeJ,EACxB,ECnBAL,IAAeU,MAAK,SAAOC,GAAO,OAAAC,UAAAC,OAAA,qB,4DAChC,SAAMC,K,OAANC,EAAAC,OACA,SAAOC,EAAc,2CAAuC,CAAAC,cAAA,OAAAC,WAAA,mEAAAD,cAAA,OAAAC,WAAA,kEAAAC,OAAA,MAAAC,YAAA,mBAAAC,UAAA,iBAAAC,SAAA,IAAAC,MAAA,kDAAAH,YAAA,mBAAAI,OAAA,qBAAAA,OAAA,+DAAAC,IAAA,IAAAC,MAAA,IAAAN,YAAA,mBAAAO,SAAA,IAAAC,MAAA,IAAAC,KAAA,MAAAC,QAAA,+CAAAV,YAAA,mBAAAW,IAAA,IAAAC,MAAA,IAAAC,MAAA,IAAAC,UAAA,IAAAJ,QAAA,8CAAAK,aAAA,IAAAf,YAAA,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MAAAX,KAAA,MAAAqD,IAAA,IAAA4C,UAAA,KAAAC,UAAA,KAAAC,WAAA,YAAAnG,KAAA,iBAAAqF,MAAA,iBAAA1E,KAAA,aAAA0C,IAAA,aAAA2C,KAAA,wDAAAzG,YAAA,mBAAAgB,SAAA,IAAAyF,KAAA,IAAArF,KAAA,IAAAjB,MAAA,IAAAqB,KAAA,IAAAd,QAAA,wDAAAmG,SAAA,IAAApB,iBAAA,KAAAqB,eAAA,KAAAhH,WAAA,oDAAAI,SAAA,IAAA4G,eAAA,kDAAAnF,QAAA,OAAA3B,YAAA,mBAAAgB,SAAA,IAAAC,aAAA,oBAAAC,cAAA,qBAAArB,cAAA,OAAAsB,QAAA,IAAAP,MAAA,IAAAmG,YAAA,mBAAA3F,KAAA,IAAAG,SAAA,IAAApB,MAAA,WAAAwB,QAAA,6BAAArC,I","ignoreList":[]}
1
+ {"version":3,"names":["patchBrowser","importMeta","module","meta","url","opts","resourcesUrl","URL","href","promiseResolve","then","options","__awaiter","_this","globalScripts","_a","sent","bootstrapLazy","indeterminate","isSelected","border","componentId","fullWidth","truncate","value","isOpen","alt","badge","dropdown","image","size","variant","dot","label","large","sentiment","autocomplete","debounce","disabled","errorMessage","helperMessage","invalid","name","placeholder","readonly","required","type","hasFocus","setFocus","external","fontSize","checked","multiple","enableActions","showHandle","rows","alignItems","auto","backgroundColor","borderColor","borderRadius","direction","display","fit","gap","flex","justifyContent","minHeight","minWidth","offset","offsetXs","offsetSm","offsetMd","offsetLg","offsetXl","padding","shadow","sizeXs","sizeSm","sizeMd","sizeLg","sizeXl","vertical","height","loading","sizes","src","srcset","width","isLoading","showLabel","popoverTargetAction","popoverType","text","maxWidth","placement","active","animated","fillColor","percent","showPercent","colGap","noWrap","dividers","handleType","parentComponentId","index","selected","compact","responsive","fixedColumn","selectable","sortingColumn","sortingDirection","tablistLabel","activeTabName","activeTabIndex","align","color","decoration","gutter","weight","tag","content","hasArrow","htmlContent","opened","showTooltip","hideTooltip","icon","ariaLabel","isVisible","svgContent","sortable","tableScrolling","labelHidden"],"sources":["../../node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.22.2 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (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AAA,OAAA9B,YAAA,mBAAAiB,SAAA,IAAAC,aAAA,oBAAAC,cAAA,qBAAAtB,cAAA,OAAAuB,QAAA,IAAAR,MAAA,IAAAsG,YAAA,mBAAA7F,KAAA,IAAAG,SAAA,IAAArB,MAAA,WAAA2B,QAAA,6BAAAxC,I","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,h as r,H as o}from"./p-87fe352f.js";const a=":host{border-color:inherit;display:table-row-group;vertical-align:middle}";const s=a;const t=class{constructor(r){e(this,r)}render(){return r(o,{key:"60a95951b44201ddb343ad09de86e456e0699660",role:"rowgroup"},r("slot",{key:"76859c304c640fb6aa2ea1239e500fe94da7402f"}))}};t.style=s;export{t as pds_table_body};
2
+ //# sourceMappingURL=p-5e1b7996.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsTableBodyCss","PdsTableBodyStyle0","PdsTableBody","render","h","Host","key","role"],"sources":["src/components/pds-table/pds-table-body/pds-table-body.scss?tag=pds-table-body&encapsulation=shadow","src/components/pds-table/pds-table-body/pds-table-body.tsx"],"sourcesContent":[":host {\n border-color: inherit;\n display: table-row-group;\n vertical-align: middle;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-body',\n styleUrls: ['pds-table-body.scss'],\n shadow: true,\n})\nexport class PdsTableBody {\n\n render() {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"kDAAA,MAAMA,EAAkB,4EACxB,MAAAC,EAAeD,E,MCMFE,EAAY,M,yBAEvB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,YACTH,EAAA,QAAAE,IAAA,6C","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,h as t,H as e,g as s}from"./p-87fe352f.js";const o=":host{--box-shadow-fixed:3px 3px 6px -2px rgba(0, 0, 0, 0.2);color:var(--pine-color-text);display:table-cell;font-family:var(--pine-font-family-body);font-size:var(--pine-font-size);font-weight:var(--pine-font-weight-regular);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);padding:12px;vertical-align:inherit}:host(.is-compact){padding-block:var(--pine-dimension-2xs)}:host(.is-fixed){background:var(--pine-color-background-container);left:0;position:-webkit-sticky;position:sticky;z-index:1}:host(.has-scrolled.is-fixed){-webkit-box-shadow:var(--box-shadow-fixed);box-shadow:var(--box-shadow-fixed)}:host(.is-truncated){max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.has-checkbox){vertical-align:middle;width:16px}";const a=o;const n=class{constructor(t){i(this,t);this.handleScroll=()=>{if(this.tableRef.scrollLeft>0){this.tableScrolling=true}else{this.tableScrolling=false}};this.truncate=undefined;this.tableScrolling=false}componentWillRender(){this.tableRef=this.hostElement.closest("pds-table")}componentDidLoad(){if(this.tableRef&&this.tableRef.responsive&&this.tableRef.fixedColumn){this.tableRef.addEventListener("scroll",this.handleScroll)}}classNames(){const i=[];if(this.tableRef&&this.tableRef.compact){i.push("is-compact")}if(this.truncate){i.push("is-truncated")}if(this.tableRef&&this.tableRef.fixedColumn&&this.tableScrolling){i.push("has-scrolled")}return i.join(" ")}render(){return t(e,{key:"f2a3b657bff0ad827eb7de95d858d9e8cc34ab79",class:this.classNames(),role:"gridcell",style:this.tableRef&&this.tableRef.fixedColumn&&this.tableRef.selectable?{"--fixed-cell-position":"40px"}:{}},t("slot",{key:"39d0cbe1dbf20b1786be18ba60acd0dd2256da5b"}))}get hostElement(){return s(this)}};n.style=a;export{n as pds_table_cell};
2
+ //# sourceMappingURL=p-5e50a381.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsTableCellCss","PdsTableCellStyle0","PdsTableCell","this","handleScroll","tableRef","scrollLeft","tableScrolling","componentWillRender","hostElement","closest","componentDidLoad","responsive","fixedColumn","addEventListener","classNames","compact","push","truncate","join","render","h","Host","key","class","role","style","selectable"],"sources":["src/components/pds-table/pds-table-cell/pds-table-cell.scss?tag=pds-table-cell&encapsulation=shadow","src/components/pds-table/pds-table-cell/pds-table-cell.tsx"],"sourcesContent":[":host {\n --box-shadow-fixed: 3px 3px 6px -2px rgba(0, 0, 0, 0.2);\n\n color: var(--pine-color-text);\n display: table-cell;\n font-family: var(--pine-font-family-body);\n font-size: var(--pine-font-size);\n font-weight: var(--pine-font-weight-regular);\n letter-spacing: var(--pine-letter-spacing);\n line-height: var(--pine-line-height-body);\n padding: 12px;\n vertical-align: inherit;\n}\n\n:host(.is-compact) {\n padding-block: var(--pine-dimension-2xs)\n}\n\n:host(.is-fixed) {\n background: var(--pine-color-background-container);\n left: 0;\n position: sticky;\n z-index: 1;\n}\n\n// box shadow when table has scrolled and cell is fixed\n:host(.has-scrolled.is-fixed) {\n box-shadow: var(--box-shadow-fixed);\n}\n\n:host(.is-truncated) {\n max-width: 100px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host(.has-checkbox) {\n vertical-align: middle;\n width: 16px;\n}\n","import { Component, Element, Host, Prop, State, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-cell',\n styleUrls: ['pds-table-cell.scss'],\n shadow: true,\n})\nexport class PdsTableCell {\n @Element() hostElement: HTMLPdsTableCellElement;\n private tableRef: HTMLPdsTableElement;\n\n componentWillRender() {\n this.tableRef = this.hostElement.closest('pds-table') as HTMLPdsTableElement;\n }\n\n componentDidLoad() {\n if (this.tableRef && this.tableRef.responsive && this.tableRef.fixedColumn) {\n this.tableRef.addEventListener('scroll', this.handleScroll);\n }\n }\n\n /**\n * Truncates content to a max width of 100px and adds an ellipsis.\n */\n @Prop() truncate: boolean;\n\n /**\n * Determines if the table is currently scrolling.\n * @defaultValue false\n */\n @State() private tableScrolling: boolean = false;\n\n private classNames() {\n const classNames = [];\n\n if (this.tableRef && this.tableRef.compact) {\n classNames.push('is-compact');\n }\n\n if (this.truncate) {\n classNames.push('is-truncated');\n }\n\n if (this.tableRef && this.tableRef.fixedColumn && this.tableScrolling) {\n classNames.push('has-scrolled');\n }\n\n return classNames.join(' ');\n }\n\n private handleScroll = () => {\n if (this.tableRef.scrollLeft > 0) {\n this.tableScrolling = true;\n } else {\n this.tableScrolling = false;\n }\n };\n\n render() {\n return (\n <Host\n class={this.classNames()}\n role=\"gridcell\"\n style={\n this.tableRef &&\n this.tableRef.fixedColumn &&\n this.tableRef.selectable\n ? { '--fixed-cell-position': '40px' }\n : {}\n }\n >\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAkB,oxBACxB,MAAAC,EAAeD,E,MCMFE,EAAY,M,yBA2CfC,KAAAC,aAAe,KACrB,GAAID,KAAKE,SAASC,WAAa,EAAG,CAChCH,KAAKI,eAAiB,I,KACjB,CACLJ,KAAKI,eAAiB,K,+CAxBiB,K,CAnB3C,mBAAAC,GACEL,KAAKE,SAAWF,KAAKM,YAAYC,QAAQ,Y,CAG3C,gBAAAC,GACE,GAAIR,KAAKE,UAAYF,KAAKE,SAASO,YAAcT,KAAKE,SAASQ,YAAa,CAC1EV,KAAKE,SAASS,iBAAiB,SAAUX,KAAKC,a,EAe1C,UAAAW,GACN,MAAMA,EAAa,GAEnB,GAAIZ,KAAKE,UAAYF,KAAKE,SAASW,QAAS,CAC1CD,EAAWE,KAAK,a,CAGlB,GAAId,KAAKe,SAAU,CACjBH,EAAWE,KAAK,e,CAGlB,GAAId,KAAKE,UAAYF,KAAKE,SAASQ,aAAeV,KAAKI,eAAgB,CACrEQ,EAAWE,KAAK,e,CAGlB,OAAOF,EAAWI,KAAK,I,CAWzB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CACHC,MAAOrB,KAAKY,aACZU,KAAK,WACLC,MACEvB,KAAKE,UACLF,KAAKE,SAASQ,aACdV,KAAKE,SAASsB,WACV,CAAE,wBAAyB,QAC3B,IAGNN,EAAA,QAAAE,IAAA,6C","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-45cf2585.system.js"],(function(e){"use strict";var t,r,n;return{setters:[function(e){t=e.r;r=e.h;n=e.H}],execute:function(){var o=":host{border-color:inherit;display:table-row-group;vertical-align:middle}";var a=o;var i=e("pds_table_body",function(){function e(e){t(this,e)}e.prototype.render=function(){return r(n,{key:"60a95951b44201ddb343ad09de86e456e0699660",role:"rowgroup"},r("slot",{key:"76859c304c640fb6aa2ea1239e500fe94da7402f"}))};return e}());i.style=a}}}));
2
+ //# sourceMappingURL=p-60c2039e.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsTableBodyCss","PdsTableBodyStyle0","PdsTableBody","exports","class_1","prototype","render","h","Host","key","role"],"sources":["src/components/pds-table/pds-table-body/pds-table-body.scss?tag=pds-table-body&encapsulation=shadow","src/components/pds-table/pds-table-body/pds-table-body.tsx"],"sourcesContent":[":host {\n border-color: inherit;\n display: table-row-group;\n vertical-align: middle;\n}\n","import { Component, Host, h } from '@stencil/core';\n\n@Component({\n tag: 'pds-table-body',\n styleUrls: ['pds-table-body.scss'],\n shadow: true,\n})\nexport class PdsTableBody {\n\n render() {\n return (\n <Host role=\"rowgroup\">\n <slot></slot>\n </Host>\n );\n }\n}\n"],"mappings":"kJAAA,IAAMA,EAAkB,4EACxB,IAAAC,EAAeD,E,ICMFE,EAAYC,EAAA,4B,wBAEvBC,EAAAC,UAAAC,OAAA,WACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,KAAK,YACTH,EAAA,QAAAE,IAAA,6C,WALiB,I","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as i,c as e,h as r,H as s,g as n}from"./p-87fe352f.js";import{m as t,a as o}from"./p-47291f05.js";import{P as a}from"./p-0c09ce7a.js";import{b as d}from"./p-d561168e.js";const c=':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);--sizing-input-toggle-size:calc(var(--pine-dimension-250) - (var(--pine-dimension-025) * 2));--pine-dimension-025:2px;--spacing-message-inline:calc(var(--pine-dimension-450) + var(--pine-dimension-150));--number-transition-timing:0.15s ease-out;-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:row wrap;flex-flow:row wrap;position:relative}:host(.pds-switch--error){color:var(--pine-color-text-message-danger)}:host(.pds-switch--error) input,:host(.pds-switch--error) input:checked,:host(.pds-switch--error) input:hover:not(:disabled):not(:checked){background-color:var(--pine-color-danger)}:host(.pds-switch--error) input:focus-visible:not(:disabled):not(:checked){-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error)}:host(.pds-switch--error) label{color:var(--color-text-error)}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-neutral);border:0;border-radius:var(--pine-dimension-sm);cursor:pointer;display:inline-block;height:var(--pine-dimension-250);margin:0;padding:0;position:relative;-webkit-transition:var(--number-transition-timing);transition:var(--number-transition-timing);-webkit-transition-property:background, border, color;transition-property:background, border, color;width:var(--pine-dimension-450)}input::after{background:var(--pine-color-secondary);border-radius:var(--pine-border-radius-full);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);content:"";display:block;height:var(--sizing-input-toggle-size);inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate3d(-100%, -50%, 0);transform:translate3d(-100%, -50%, 0);-webkit-transition:-webkit-transform var(--number-transition-timing);transition:-webkit-transform var(--number-transition-timing);transition:transform var(--number-transition-timing);transition:transform var(--number-transition-timing), -webkit-transform var(--number-transition-timing);width:var(--sizing-input-toggle-size)}label{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-positive:1;flex-grow:1;font-weight:var(--pine-font-weight-medium);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-switch--error label{color:inherit}.pds-switch__message{color:var(--pine-color-text-message);-ms-flex:1 0 100%;flex:1 0 100%;font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-xs);margin-block-start:var(--pine-dimension-xs)}.pds-switch__message+.pds-switch__message{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-switch__message--error{-ms-flex-align:center;align-items:center;color:inherit;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}input:disabled{background-color:var(--pine-color-neutral-disabled);cursor:not-allowed}input:disabled~label{color:var(--pine-color-text-disabled);cursor:initial}input:disabled:hover::after{background-color:var(--pine-color-background-container-disabled)}input:disabled .pds-switch__message{color:initial}input:hover:not(:disabled){background-color:var(--pine-color-neutral-hover)}input:focus-visible:not(:disabled){-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}input:checked::after{-webkit-transform:translate3d(0, -50%, 0);transform:translate3d(0, -50%, 0)}input:checked:not(:disabled){background-color:currentColor;color:var(--pine-color-accent)}input:checked:not(:disabled):hover{border-color:currentColor;color:var(--pine-color-accent-hover)}';const l=c;const p=class{constructor(r){i(this,r);this.pdsSwitchChange=e(this,"pdsSwitchChange",7);this.onSwitchUpdate=i=>{if(this.disabled)return;const e=i.target;this.checked=e.checked;this.pdsSwitchChange.emit(i)};this.switchClassNames=()=>{let i=`pds-switch`;if(this.invalid===true){i+=" pds-switch--error"}if(this.helperMessage!==undefined){i+=" pds-switch--message"}return i};this.componentId=undefined;this.checked=false;this.disabled=false;this.errorMessage=undefined;this.helperMessage=undefined;this.invalid=false;this.label=undefined;this.name=undefined;this.required=false;this.value=undefined}render(){return r(s,{key:"0c57e5a99f6d5c398c9c1a0164a9cad167d21bf8",class:this.switchClassNames(),"aria-disabled":this.disabled?"true":null},r("input",{key:"3be2c03ee6525bdc1b215f252d9a8a04539fec9d","aria-describedby":o(this.componentId,this.invalid,this.helperMessage),"aria-invalid":this.invalid?"true":undefined,checked:this.checked,class:"pds-switch__input",disabled:this.disabled,id:this.componentId,name:this.name?this.name:this.componentId,onChange:this.onSwitchUpdate,required:this.required,type:"checkbox",value:this.value}),r(a,{key:"c6a42085334420dc87265dbb89414c23af3e82d1",classNames:"pds-switch__label",htmlFor:this.componentId,text:this.label}),this.helperMessage&&r("div",{key:"307b54a0fb0c71af5cf91a7ba80c8c3b3c7201b0",class:`pds-switch__message`,id:t(this.componentId,"helper")},this.helperMessage),this.errorMessage&&r("div",{key:"5fa0429017fa7083db7baa5c4d8bea11c9c92a1d",class:`pds-switch__message pds-switch__message--error`,id:t(this.componentId,"error"),"aria-live":"assertive"},r("pds-icon",{key:"3dcc1270248d7efeaccc8a9d5bccf2888b10ccae",icon:d,size:"small"}),this.errorMessage))}get el(){return n(this)}};p.style=l;export{p as pds_switch};
2
+ //# sourceMappingURL=p-650a27ca.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsSwitchCss","PdsSwitchStyle0","PdsSwitch","this","onSwitchUpdate","e","disabled","input","target","checked","pdsSwitchChange","emit","switchClassNames","switchClasses","invalid","helperMessage","undefined","render","h","Host","key","class","assignDescription","componentId","id","name","onChange","required","type","value","PdsLabel","classNames","htmlFor","text","label","messageId","errorMessage","icon","danger","size"],"sources":["src/components/pds-switch/pds-switch.scss?tag=pds-switch&encapsulation=shadow","src/components/pds-switch/pds-switch.tsx"],"sourcesContent":[":host {\n\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 // Need discussions\n --sizing-input-toggle-size: calc(var(--pine-dimension-250) - (var(--pine-dimension-025) * 2));\n --pine-dimension-025: 2px;\n --spacing-message-inline: calc(var(--pine-dimension-450) + var(--pine-dimension-150));\n --number-transition-timing: 0.15s ease-out;\n\n align-items: flex-start;\n color: var(--pine-color-text);\n display: inline-flex;\n flex-flow: row wrap;\n position: relative;\n}\n\n:host(.pds-switch--error) {\n color: var(--pine-color-text-message-danger);\n\n input,\n input:checked,\n input:hover:not(:disabled):not(:checked) {\n background-color: var(--pine-color-danger);\n }\n\n input:focus-visible:not(:disabled):not(:checked) {\n box-shadow: var(--box-shadow-focus-error);\n }\n\n label {\n color: var(--color-text-error);\n }\n}\n\n// switch container\ninput {\n appearance: none;\n background: var(--pine-color-neutral);\n border: 0;\n border-radius: var(--pine-dimension-sm);\n cursor: pointer;\n display: inline-block;\n height: var(--pine-dimension-250);\n margin: 0;\n padding: 0;\n position: relative;\n transition: var(--number-transition-timing);\n transition-property: background, border, color;\n width: var(--pine-dimension-450);\n\n // switch toggle\n &::after {\n background: var(--pine-color-secondary);\n border-radius: var(--pine-border-radius-full);\n box-shadow: var(--pine-box-shadow);\n content: \"\";\n display: block;\n height: var(--sizing-input-toggle-size);\n inset-block-start: 50%;\n inset-inline-start: 50%;\n position: absolute;\n transform: translate3d(-100%, -50%, 0);\n transition: transform var(--number-transition-timing);\n width: var(--sizing-input-toggle-size);\n }\n}\n\nlabel {\n cursor: pointer;\n display: inline-flex;\n flex-grow: 1;\n font-weight: var(--pine-font-weight-medium);\n margin-inline-start: var(--pine-dimension-150);\n\n .pds-switch--error & {\n color: inherit;\n }\n}\n\n// Help and error messages\n.pds-switch__message {\n color: var(--pine-color-text-message);\n flex: 1 0 100%;\n font: var(--pine-typography-body-sm-medium);\n margin-block-start: var(--pine-dimension-xs);\n\n + .pds-switch__message {\n margin-block-start: var(--pine-dimension-2xs);\n }\n}\n\n.pds-switch__message--error {\n align-items: center;\n color: inherit;\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n\n// Disabled state\ninput:disabled {\n background-color: var(--pine-color-neutral-disabled);\n cursor: not-allowed;\n\n ~ label {\n color: var(--pine-color-text-disabled);\n cursor: initial;\n }\n\n &:hover::after {\n background-color: var(--pine-color-background-container-disabled);\n }\n\n .pds-switch__message {\n color: initial;\n }\n}\n\n// Hover state\ninput:hover:not(:disabled) {\n background-color: var(--pine-color-neutral-hover);\n}\n\n // Focus state\ninput:focus-visible:not(:disabled) {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n}\n\n// 'Checked' state\n// switch toggle\ninput:checked::after {\n transform: translate3d(0, -50%, 0);\n}\n\n// switch container\ninput:checked:not(:disabled) {\n background-color: currentColor;\n color: var(--pine-color-accent);\n\n &:hover {\n border-color: currentColor;\n color: var(--pine-color-accent-hover);\n }\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-switch',\n styleUrls: ['pds-switch.scss'],\n shadow: true,\n})\nexport class PdsSwitch {\n @Element() el: HTMLPdsSwitchElement;\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 the input 'checked' state.\n */\n @Prop({ mutable: true }) checked = false;\n\n /**\n * Determines the input 'disabled' state, preventing user interaction.\n */\n @Prop() disabled? = false;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays help text for additional description of an input.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines the input 'invalid' state, signifying an error is present.\n */\n @Prop() invalid? = false;\n\n /**\n * Displays text to describe the input.\n */\n @Prop() label!: string;\n\n /**\n * Identifies form data and unifies a group of radio inputs for toggling a single property/value.\n */\n @Prop() name: string;\n\n /**\n * Determines the 'required' state of the input.\n */\n @Prop() required? = false;\n\n /**\n * Provides input with a string submitted in form data.\n */\n @Prop() value: string;\n\n /**\n * Emits an event on input change.\n */\n @Event() pdsSwitchChange: EventEmitter<InputEvent>;\n\n private onSwitchUpdate = (e: Event) => {\n if (this.disabled) return;\n\n const input = e.target as HTMLInputElement;\n this.checked = input.checked;\n this.pdsSwitchChange.emit(e as InputEvent);\n };\n\n private switchClassNames = () => {\n let switchClasses = `pds-switch`;\n\n if (this.invalid === true) {\n switchClasses += \" pds-switch--error\";\n }\n if (this.helperMessage !== undefined) {\n switchClasses += \" pds-switch--message\";\n }\n return switchClasses;\n };\n\n render() {\n return (\n <Host class={this.switchClassNames()} aria-disabled={this.disabled ? 'true' : null}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n checked={this.checked}\n class=\"pds-switch__input\"\n disabled={this.disabled}\n id={this.componentId}\n name={this.name ? this.name : this.componentId}\n onChange={this.onSwitchUpdate}\n required={this.required}\n type=\"checkbox\"\n value={this.value}\n />\n <PdsLabel classNames=\"pds-switch__label\" htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={`pds-switch__message`}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-switch__message pds-switch__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":"mLAAA,MAAMA,EAAe,kwHACrB,MAAAC,EAAeD,E,MCSFE,EAAS,M,0EA0DZC,KAAAC,eAAkBC,IACxB,GAAIF,KAAKG,SAAU,OAEnB,MAAMC,EAAQF,EAAEG,OAChBL,KAAKM,QAAUF,EAAME,QACrBN,KAAKO,gBAAgBC,KAAKN,EAAgB,EAGpCF,KAAAS,iBAAmB,KACzB,IAAIC,EAAgB,aAEpB,GAAIV,KAAKW,UAAY,KAAM,CACzBD,GAAiB,oB,CAEnB,GAAIV,KAAKY,gBAAkBC,UAAW,CACpCH,GAAiB,sB,CAEnB,OAAOA,CAAa,E,wCAhEa,M,cAKf,M,sEAeD,M,uDAeC,M,qBAgCpB,MAAAI,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOlB,KAAKS,mBAAkB,gBAAiBT,KAAKG,SAAW,OAAS,MAC5EY,EAAA,SAAAE,IAAA,8DACoBE,EAAkBnB,KAAKoB,YAAapB,KAAKW,QAASX,KAAKY,eAAc,eACzEZ,KAAKW,QAAU,OAASE,UACtCP,QAASN,KAAKM,QACdY,MAAM,oBACNf,SAAUH,KAAKG,SACfkB,GAAIrB,KAAKoB,YACTE,KAAMtB,KAAKsB,KAAOtB,KAAKsB,KAAOtB,KAAKoB,YACnCG,SAAUvB,KAAKC,eACfuB,SAAUxB,KAAKwB,SACfC,KAAK,WACLC,MAAO1B,KAAK0B,QAEdX,EAACY,EAAQ,CAAAV,IAAA,2CAACW,WAAW,oBAAoBC,QAAS7B,KAAKoB,YAAaU,KAAM9B,KAAK+B,QAC9E/B,KAAKY,eACJG,EAAA,OAAAE,IAAA,2CACEC,MAAO,sBACPG,GAAIW,EAAUhC,KAAKoB,YAAa,WAE/BpB,KAAKY,eAGTZ,KAAKiC,cACJlB,EAAA,OAAAE,IAAA,2CACEC,MAAO,iDACPG,GAAIW,EAAUhC,KAAKoB,YAAa,SAAQ,YAC9B,aAEVL,EAAA,YAAAE,IAAA,2CAAUiB,KAAMC,EAAQC,KAAK,UAC5BpC,KAAKiC,c","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ System.register(["./p-45cf2585.system.js","./p-521ac753.system.js","./p-8d1efd85.system.js","./p-5480346a.system.js"],(function(i){"use strict";var e,r,n,s,t,o,a,d,c;return{setters:[function(i){e=i.r;r=i.c;n=i.h;s=i.H;t=i.g},function(i){o=i.m;a=i.a},function(i){d=i.P},function(i){c=i.b}],execute:function(){var l=':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);--sizing-input-toggle-size:calc(var(--pine-dimension-250) - (var(--pine-dimension-025) * 2));--pine-dimension-025:2px;--spacing-message-inline:calc(var(--pine-dimension-450) + var(--pine-dimension-150));--number-transition-timing:0.15s ease-out;-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:row wrap;flex-flow:row wrap;position:relative}:host(.pds-switch--error){color:var(--pine-color-text-message-danger)}:host(.pds-switch--error) input,:host(.pds-switch--error) input:checked,:host(.pds-switch--error) input:hover:not(:disabled):not(:checked){background-color:var(--pine-color-danger)}:host(.pds-switch--error) input:focus-visible:not(:disabled):not(:checked){-webkit-box-shadow:var(--box-shadow-focus-error);box-shadow:var(--box-shadow-focus-error)}:host(.pds-switch--error) label{color:var(--color-text-error)}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-neutral);border:0;border-radius:var(--pine-dimension-sm);cursor:pointer;display:inline-block;height:var(--pine-dimension-250);margin:0;padding:0;position:relative;-webkit-transition:var(--number-transition-timing);transition:var(--number-transition-timing);-webkit-transition-property:background, border, color;transition-property:background, border, color;width:var(--pine-dimension-450)}input::after{background:var(--pine-color-secondary);border-radius:var(--pine-border-radius-full);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);content:"";display:block;height:var(--sizing-input-toggle-size);inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate3d(-100%, -50%, 0);transform:translate3d(-100%, -50%, 0);-webkit-transition:-webkit-transform var(--number-transition-timing);transition:-webkit-transform var(--number-transition-timing);transition:transform var(--number-transition-timing);transition:transform var(--number-transition-timing), -webkit-transform var(--number-transition-timing);width:var(--sizing-input-toggle-size)}label{cursor:pointer;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-positive:1;flex-grow:1;font-weight:var(--pine-font-weight-medium);-webkit-margin-start:var(--pine-dimension-150);margin-inline-start:var(--pine-dimension-150)}.pds-switch--error label{color:inherit}.pds-switch__message{color:var(--pine-color-text-message);-ms-flex:1 0 100%;flex:1 0 100%;font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-xs);margin-block-start:var(--pine-dimension-xs)}.pds-switch__message+.pds-switch__message{-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-switch__message--error{-ms-flex-align:center;align-items:center;color:inherit;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}input:disabled{background-color:var(--pine-color-neutral-disabled);cursor:not-allowed}input:disabled~label{color:var(--pine-color-text-disabled);cursor:initial}input:disabled:hover::after{background-color:var(--pine-color-background-container-disabled)}input:disabled .pds-switch__message{color:initial}input:hover:not(:disabled){background-color:var(--pine-color-neutral-hover)}input:focus-visible:not(:disabled){-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}input:checked::after{-webkit-transform:translate3d(0, -50%, 0);transform:translate3d(0, -50%, 0)}input:checked:not(:disabled){background-color:currentColor;color:var(--pine-color-accent)}input:checked:not(:disabled):hover{border-color:currentColor;color:var(--pine-color-accent-hover)}';var p=l;var h=i("pds_switch",function(){function i(i){var n=this;e(this,i);this.pdsSwitchChange=r(this,"pdsSwitchChange",7);this.onSwitchUpdate=function(i){if(n.disabled)return;var e=i.target;n.checked=e.checked;n.pdsSwitchChange.emit(i)};this.switchClassNames=function(){var i="pds-switch";if(n.invalid===true){i+=" pds-switch--error"}if(n.helperMessage!==undefined){i+=" pds-switch--message"}return i};this.componentId=undefined;this.checked=false;this.disabled=false;this.errorMessage=undefined;this.helperMessage=undefined;this.invalid=false;this.label=undefined;this.name=undefined;this.required=false;this.value=undefined}i.prototype.render=function(){return n(s,{key:"0c57e5a99f6d5c398c9c1a0164a9cad167d21bf8",class:this.switchClassNames(),"aria-disabled":this.disabled?"true":null},n("input",{key:"3be2c03ee6525bdc1b215f252d9a8a04539fec9d","aria-describedby":a(this.componentId,this.invalid,this.helperMessage),"aria-invalid":this.invalid?"true":undefined,checked:this.checked,class:"pds-switch__input",disabled:this.disabled,id:this.componentId,name:this.name?this.name:this.componentId,onChange:this.onSwitchUpdate,required:this.required,type:"checkbox",value:this.value}),n(d,{key:"c6a42085334420dc87265dbb89414c23af3e82d1",classNames:"pds-switch__label",htmlFor:this.componentId,text:this.label}),this.helperMessage&&n("div",{key:"307b54a0fb0c71af5cf91a7ba80c8c3b3c7201b0",class:"pds-switch__message",id:o(this.componentId,"helper")},this.helperMessage),this.errorMessage&&n("div",{key:"5fa0429017fa7083db7baa5c4d8bea11c9c92a1d",class:"pds-switch__message pds-switch__message--error",id:o(this.componentId,"error"),"aria-live":"assertive"},n("pds-icon",{key:"3dcc1270248d7efeaccc8a9d5bccf2888b10ccae",icon:c,size:"small"}),this.errorMessage))};Object.defineProperty(i.prototype,"el",{get:function(){return t(this)},enumerable:false,configurable:true});return i}());h.style=p}}}));
2
+ //# sourceMappingURL=p-6709f0f7.system.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsSwitchCss","PdsSwitchStyle0","PdsSwitch","exports","this","onSwitchUpdate","e","_this","disabled","input","target","checked","pdsSwitchChange","emit","switchClassNames","switchClasses","invalid","helperMessage","undefined","class_1","prototype","render","h","Host","key","class","assignDescription","componentId","id","name","onChange","required","type","value","PdsLabel","classNames","htmlFor","text","label","messageId","errorMessage","icon","danger","size"],"sources":["src/components/pds-switch/pds-switch.scss?tag=pds-switch&encapsulation=shadow","src/components/pds-switch/pds-switch.tsx"],"sourcesContent":[":host {\n\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 // Need discussions\n --sizing-input-toggle-size: calc(var(--pine-dimension-250) - (var(--pine-dimension-025) * 2));\n --pine-dimension-025: 2px;\n --spacing-message-inline: calc(var(--pine-dimension-450) + var(--pine-dimension-150));\n --number-transition-timing: 0.15s ease-out;\n\n align-items: flex-start;\n color: var(--pine-color-text);\n display: inline-flex;\n flex-flow: row wrap;\n position: relative;\n}\n\n:host(.pds-switch--error) {\n color: var(--pine-color-text-message-danger);\n\n input,\n input:checked,\n input:hover:not(:disabled):not(:checked) {\n background-color: var(--pine-color-danger);\n }\n\n input:focus-visible:not(:disabled):not(:checked) {\n box-shadow: var(--box-shadow-focus-error);\n }\n\n label {\n color: var(--color-text-error);\n }\n}\n\n// switch container\ninput {\n appearance: none;\n background: var(--pine-color-neutral);\n border: 0;\n border-radius: var(--pine-dimension-sm);\n cursor: pointer;\n display: inline-block;\n height: var(--pine-dimension-250);\n margin: 0;\n padding: 0;\n position: relative;\n transition: var(--number-transition-timing);\n transition-property: background, border, color;\n width: var(--pine-dimension-450);\n\n // switch toggle\n &::after {\n background: var(--pine-color-secondary);\n border-radius: var(--pine-border-radius-full);\n box-shadow: var(--pine-box-shadow);\n content: \"\";\n display: block;\n height: var(--sizing-input-toggle-size);\n inset-block-start: 50%;\n inset-inline-start: 50%;\n position: absolute;\n transform: translate3d(-100%, -50%, 0);\n transition: transform var(--number-transition-timing);\n width: var(--sizing-input-toggle-size);\n }\n}\n\nlabel {\n cursor: pointer;\n display: inline-flex;\n flex-grow: 1;\n font-weight: var(--pine-font-weight-medium);\n margin-inline-start: var(--pine-dimension-150);\n\n .pds-switch--error & {\n color: inherit;\n }\n}\n\n// Help and error messages\n.pds-switch__message {\n color: var(--pine-color-text-message);\n flex: 1 0 100%;\n font: var(--pine-typography-body-sm-medium);\n margin-block-start: var(--pine-dimension-xs);\n\n + .pds-switch__message {\n margin-block-start: var(--pine-dimension-2xs);\n }\n}\n\n.pds-switch__message--error {\n align-items: center;\n color: inherit;\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n\n// Disabled state\ninput:disabled {\n background-color: var(--pine-color-neutral-disabled);\n cursor: not-allowed;\n\n ~ label {\n color: var(--pine-color-text-disabled);\n cursor: initial;\n }\n\n &:hover::after {\n background-color: var(--pine-color-background-container-disabled);\n }\n\n .pds-switch__message {\n color: initial;\n }\n}\n\n// Hover state\ninput:hover:not(:disabled) {\n background-color: var(--pine-color-neutral-hover);\n}\n\n // Focus state\ninput:focus-visible:not(:disabled) {\n box-shadow: var(--box-shadow-focus);\n outline: none;\n}\n\n// 'Checked' state\n// switch toggle\ninput:checked::after {\n transform: translate3d(0, -50%, 0);\n}\n\n// switch container\ninput:checked:not(:disabled) {\n background-color: currentColor;\n color: var(--pine-color-accent);\n\n &:hover {\n border-color: currentColor;\n color: var(--pine-color-accent-hover);\n }\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-switch',\n styleUrls: ['pds-switch.scss'],\n shadow: true,\n})\nexport class PdsSwitch {\n @Element() el: HTMLPdsSwitchElement;\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 the input 'checked' state.\n */\n @Prop({ mutable: true }) checked = false;\n\n /**\n * Determines the input 'disabled' state, preventing user interaction.\n */\n @Prop() disabled? = false;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays help text for additional description of an input.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines the input 'invalid' state, signifying an error is present.\n */\n @Prop() invalid? = false;\n\n /**\n * Displays text to describe the input.\n */\n @Prop() label!: string;\n\n /**\n * Identifies form data and unifies a group of radio inputs for toggling a single property/value.\n */\n @Prop() name: string;\n\n /**\n * Determines the 'required' state of the input.\n */\n @Prop() required? = false;\n\n /**\n * Provides input with a string submitted in form data.\n */\n @Prop() value: string;\n\n /**\n * Emits an event on input change.\n */\n @Event() pdsSwitchChange: EventEmitter<InputEvent>;\n\n private onSwitchUpdate = (e: Event) => {\n if (this.disabled) return;\n\n const input = e.target as HTMLInputElement;\n this.checked = input.checked;\n this.pdsSwitchChange.emit(e as InputEvent);\n };\n\n private switchClassNames = () => {\n let switchClasses = `pds-switch`;\n\n if (this.invalid === true) {\n switchClasses += \" pds-switch--error\";\n }\n if (this.helperMessage !== undefined) {\n switchClasses += \" pds-switch--message\";\n }\n return switchClasses;\n };\n\n render() {\n return (\n <Host class={this.switchClassNames()} aria-disabled={this.disabled ? 'true' : null}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n checked={this.checked}\n class=\"pds-switch__input\"\n disabled={this.disabled}\n id={this.componentId}\n name={this.name ? this.name : this.componentId}\n onChange={this.onSwitchUpdate}\n required={this.required}\n type=\"checkbox\"\n value={this.value}\n />\n <PdsLabel classNames=\"pds-switch__label\" htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={`pds-switch__message`}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-switch__message pds-switch__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":"oTAAA,IAAMA,EAAe,kwHACrB,IAAAC,EAAeD,E,ICSFE,EAASC,EAAA,wB,oFA0DZC,KAAAC,eAAiB,SAACC,GACxB,GAAIC,EAAKC,SAAU,OAEnB,IAAMC,EAAQH,EAAEI,OAChBH,EAAKI,QAAUF,EAAME,QACrBJ,EAAKK,gBAAgBC,KAAKP,E,EAGpBF,KAAAU,iBAAmB,WACzB,IAAIC,EAAgB,aAEpB,GAAIR,EAAKS,UAAY,KAAM,CACzBD,GAAiB,oB,CAEnB,GAAIR,EAAKU,gBAAkBC,UAAW,CACpCH,GAAiB,sB,CAEnB,OAAOA,C,0CAhE0B,M,cAKf,M,sEAeD,M,uDAeC,M,qBAgCpBI,EAAAC,UAAAC,OAAA,WACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOrB,KAAKU,mBAAkB,gBAAiBV,KAAKI,SAAW,OAAS,MAC5Ec,EAAA,SAAAE,IAAA,8DACoBE,EAAkBtB,KAAKuB,YAAavB,KAAKY,QAASZ,KAAKa,eAAc,eACzEb,KAAKY,QAAU,OAASE,UACtCP,QAASP,KAAKO,QACdc,MAAM,oBACNjB,SAAUJ,KAAKI,SACfoB,GAAIxB,KAAKuB,YACTE,KAAMzB,KAAKyB,KAAOzB,KAAKyB,KAAOzB,KAAKuB,YACnCG,SAAU1B,KAAKC,eACf0B,SAAU3B,KAAK2B,SACfC,KAAK,WACLC,MAAO7B,KAAK6B,QAEdX,EAACY,EAAQ,CAAAV,IAAA,2CAACW,WAAW,oBAAoBC,QAAShC,KAAKuB,YAAaU,KAAMjC,KAAKkC,QAC9ElC,KAAKa,eACJK,EAAA,OAAAE,IAAA,2CACEC,MAAO,sBACPG,GAAIW,EAAUnC,KAAKuB,YAAa,WAE/BvB,KAAKa,eAGTb,KAAKoC,cACJlB,EAAA,OAAAE,IAAA,2CACEC,MAAO,iDACPG,GAAIW,EAAUnC,KAAKuB,YAAa,SAAQ,YAC9B,aAEVL,EAAA,YAAAE,IAAA,2CAAUiB,KAAMC,EAAQC,KAAK,UAC5BvC,KAAKoC,c,uHA9GI,I","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r,c as i,h as e,H as s}from"./p-87fe352f.js";import{m as o,a}from"./p-47291f05.js";import{P as d}from"./p-0c09ce7a.js";import{b as n}from"./p-d561168e.js";const c='.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;border:var(--pine-border);border-radius:var(--pine-border-radius-full);height:var(--sizing-input-size);margin:0;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{color:var(--pine-color-text-disabled);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{font-weight:var(--pine-font-weight-body-medium);-webkit-margin-start:10px;margin-inline-start:10px}.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:26px;margin-inline-start:26px;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)}';const t=c;const p=class{constructor(e){r(this,e);this.pdsRadioChange=i(this,"pdsRadioChange",7);this.handleRadioChange=r=>{if(this.disabled){return}const i=r.target;const e=i.checked;this.pdsRadioChange.emit(e)};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}classNames(){const r=[];if(this.invalid){r.push("is-invalid")}if(this.disabled){r.push("is-disabled")}return r.join(" ")}render(){return e(s,{key:"8c8f58c550fc7b82b135aee152ad01d4bd388a21",class:this.classNames()},e("input",{key:"45b2723c50b7539c0e7219242707fd73b7633237","aria-describedby":a(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}),e(d,{key:"805a7dcf03ff90842468dcfc36e94ef0f6a7cac0",htmlFor:this.componentId,text:this.label}),this.helperMessage&&e("div",{key:"2b38ec8828b4ff7d40454f54af3ce1cc367f15e6",class:"pds-radio__message",id:o(this.componentId,"helper")},this.helperMessage),this.errorMessage&&e("div",{key:"37f62ed40f7ad6c83d8d171a3fdf90404062cb5d",class:`pds-radio__message pds-radio__message--error`,id:o(this.componentId,"error"),"aria-live":"assertive"},e("pds-icon",{key:"5c4d4be02ee1a4e4049778771ec10b2b5921e7fb",icon:n,size:"small"}),this.errorMessage))}};p.style=t;export{p as pds_radio};
2
+ //# sourceMappingURL=p-6ce5b998.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsRadioCss","PdsRadioStyle0","PdsRadio","this","handleRadioChange","e","disabled","target","isChecked","checked","pdsRadioChange","emit","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","icon","danger","size"],"sources":["src/components/pds-radio/pds-radio.scss?tag=pds-radio&encapsulation=scoped","src/components/pds-radio/pds-radio.tsx"],"sourcesContent":[":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 border: var(--pine-border);\n border-radius: var(--pine-border-radius-full);\n height: var(--sizing-input-size);\n margin: 0;\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 color: var(--pine-color-text-disabled);\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 font-weight: var(--pine-font-weight-body-medium);\n margin-inline-start: 10px;\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: 26px;\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 { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-radio',\n styleUrls: ['pds-radio.scss'],\n scoped: true,\n})\nexport class PdsRadio {\n /**\n * Determines whether or not the radio is checked.\n * @defaultValue false\n */\n @Prop() checked = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines whether or not the radio is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below radio.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the radio is invalid.\n * @defaultValue false\n */\n @Prop() invalid = false;\n\n /**\n * String used for label text next to radio.\n */\n @Prop() label: string;\n\n /**\n * String used for radio `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * Determines whether or not the radio is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value of the radio that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Emits a boolean indicating whether the checkbox is currently checked or unchecked.\n */\n @Event() pdsRadioChange: EventEmitter<boolean>;\n\n private handleRadioChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n const isChecked = target.checked;\n\n this.pdsRadioChange.emit(isChecked);\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) {\n classNames.push('is-invalid');\n }\n if (this.disabled) {\n classNames.push('is-disabled');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n type=\"radio\"\n id={this.componentId}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleRadioChange}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n {this.helperMessage &&\n <div\n class={'pds-radio__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-radio__message pds-radio__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"mappings":"kKAAA,MAAMA,EAAc,spGACpB,MAAAC,EAAeD,E,MCSFE,EAAQ,M,wEA4DXC,KAAAC,kBAAqBC,IAC3B,GAAIF,KAAKG,SAAU,CACjB,M,CAGF,MAAMC,EAASF,EAAEE,OACjB,MAAMC,EAAYD,EAAOE,QAEzBN,KAAKO,eAAeC,KAAKH,EAAU,E,aA/DnB,M,yCAWC,M,sEAgBC,M,uDAgBD,M,qBAuBX,UAAAI,GACN,MAAMA,EAAa,GAEnB,GAAIT,KAAKU,QAAS,CAChBD,EAAWE,KAAK,a,CAElB,GAAIX,KAAKG,SAAU,CACjBM,EAAWE,KAAK,c,CAGlB,OAAOF,EAAWG,KAAK,K,CAGzB,MAAAC,GACE,OACEC,EAACC,EAAI,CAAAC,IAAA,2CAACC,MAAOjB,KAAKS,cAChBK,EAAA,SAAAE,IAAA,8DACoBE,EAAkBlB,KAAKmB,YAAanB,KAAKU,QAASV,KAAKoB,eAAc,eACzEpB,KAAKU,QAAU,OAASW,UACtCC,KAAK,QACLC,GAAIvB,KAAKmB,YACTK,KAAMxB,KAAKwB,KACXC,MAAOzB,KAAKyB,MACZnB,QAASN,KAAKM,QACdoB,SAAU1B,KAAK0B,SACfvB,SAAUH,KAAKG,SACfwB,SAAU3B,KAAKC,oBAEjBa,EAACc,EAAQ,CAAAZ,IAAA,2CAACa,QAAS7B,KAAKmB,YAAaW,KAAM9B,KAAK+B,QAC/C/B,KAAKoB,eACJN,EAAA,OAAAE,IAAA,2CACEC,MAAO,qBACPM,GAAIS,EAAUhC,KAAKmB,YAAa,WAE/BnB,KAAKoB,eAGTpB,KAAKiC,cACJnB,EAAA,OAAAE,IAAA,2CACEC,MAAO,+CACPM,GAAIS,EAAUhC,KAAKmB,YAAa,SAAQ,YAC9B,aAEVL,EAAA,YAAAE,IAAA,2CAAUkB,KAAMC,EAAQC,KAAK,UAC5BpC,KAAKiC,c","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as s,h as i,H as r}from"./p-87fe352f.js";import{m as t}from"./p-47291f05.js";import{P as o}from"./p-0c09ce7a.js";import{b as a,e as n}from"./p-d561168e.js";const d=':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{font:var(--pine-typography-body-medium);grid-area:label;letter-spacing:var(--pine-letter-spacing);-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:var(--pine-border);border-radius:10px;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-color-red-050);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-color-red-050);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-xs);margin-block-start:var(--pine-dimension-xs)}.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}';const l=d;const c=class{constructor(i){e(this,i);this.pdsSelectChange=s(this,"pdsSelectChange",7);this.onSelectUpdate=e=>{const s=e.target;const i=Array.from(s.options).filter((e=>e.selected)).map((e=>e.value));if(i.length===1&&!this.multiple){this.value=i[0]}else{this.value=i}this.pdsSelectChange.emit(e)};this.handleSlotChange=()=>{const e=this.slotContainer.querySelector("slot");this.selectEl.innerHTML="";const s=e.assignedElements({flatten:true});s.forEach((e=>{if(["OPTION","OPTGROUP"].includes(e.tagName)){const s=e.cloneNode(true);if(s.tagName==="OPTION"&&s.value===this.value){s.selected=true}this.selectEl.appendChild(s)}}));this.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}valueChanged(){this.updateSelectedOption()}componentWillLoad(){this.updateSelectedOption()}updateSelectedOption(){if(this.selectEl){const e=this.selectEl.options;Array.from(e).map((e=>{if(Array.isArray(this.value)){e.selected=this.value.includes(e.value)}else{e.selected=this.value===e.value}}))}}getHelperMessage(){return this.helperMessage&&i("p",{class:"pds-select__helper-message",id:t(this.componentId,"helper")},this.helperMessage)}getErrorMessage(){return this.errorMessage&&i("p",{class:"pds-select__error-message",id:t(this.componentId,"error"),"aria-live":"assertive"},i("pds-icon",{icon:a,size:"small"}),this.errorMessage)}renderMessages(){if(!this.helperMessage&&!this.errorMessage)return null;return i("div",{class:"pds-select__message"},this.getHelperMessage(),this.getErrorMessage())}classNames(){const e=[];if(this.invalid){e.push("is-invalid")}if(this.disabled){e.push("is-disabled")}return e.join(" ")}render(){return i(r,{key:"165255feccf783f5be54aafd3d662f74c6fe376d","aria-disabled":this.disabled?"true":null,class:this.classNames()},i("div",{key:"15a65039af0d9f33a3cc2e3402e4f883fbcbee17",class:"pds-select"},i(o,{key:"aca9088817a4faa1d077e2a0bca640d62d940bf1",htmlFor:this.componentId,text:this.label}),i("select",{key:"ed87a23fc18c58d7a12f69ea0c934d4779955530",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:e=>this.selectEl=e}),i("div",{key:"c62b99979077a1d0d513cb222643fcdac5b8918a","aria-hidden":"true",class:"hidden",ref:e=>this.slotContainer=e},i("slot",{key:"44c53a70f4cc009fe601e868a4bbf251e45ff8a1",onSlotchange:this.handleSlotChange})),this.renderMessages(),!this.multiple&&i("pds-icon",{key:"7b23da1edb11078a6471aa3a2847b0e54bb1b6bc",class:"pds-select__select-icon",icon:n})))}static get watchers(){return{value:["valueChanged"]}}};c.style=l;export{c as pds_select};
2
+ //# sourceMappingURL=p-6d8df897.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsSelectCss","PdsSelectStyle0","PdsSelect","this","onSelectUpdate","e","target","values","Array","from","options","filter","option","map","length","multiple","value","pdsSelectChange","emit","handleSlotChange","slot","slotContainer","querySelector","selectEl","innerHTML","assignedElements","flatten","forEach","item","includes","tagName","clonedItem","cloneNode","selected","appendChild","updateSelectedOption","valueChanged","componentWillLoad","isArray","getHelperMessage","helperMessage","h","class","id","messageId","componentId","getErrorMessage","errorMessage","icon","danger","size","renderMessages","classNames","invalid","push","disabled","join","render","Host","key","PdsLabel","htmlFor","text","label","autocomplete","undefined","name","onChange","required","ref","el","onSlotchange","enlarge"],"sources":["src/components/pds-select/pds-select.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.tsx"],"sourcesContent":[":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 font: var(--pine-typography-body-medium);\n grid-area: label;\n letter-spacing: var(--pine-letter-spacing);\n margin-block-end: var(--pine-dimension-2xs);\n}\n\nselect {\n appearance: none;\n border: var(--pine-border);\n border-radius: 10px;\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-color-red-050);\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-color-red-050);\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-xs);\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 { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger, enlarge } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-select',\n styleUrl: 'pds-select.scss',\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon 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 <PdsLabel htmlFor={this.componentId} text={this.label} />\n <select\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\" icon={enlarge} />}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"4KAAA,MAAMA,EAAe,quFACrB,MAAAC,EAAeD,E,MCSFE,EAAS,M,0EA+GZC,KAAAC,eAAkBC,IACxB,MAAMC,EAASD,EAAEC,OAEjB,MAAMC,EAASC,MAAMC,KAAKH,EAAOI,SAC5BC,QAAQC,GAAaA,EAAe,WACpCC,KAAKD,GAAaA,EAAY,QAEnC,GAAIL,EAAOO,SAAW,IAAMX,KAAKY,SAAU,CACvCZ,KAAKa,MAAQT,EAAO,E,KACjB,CACHJ,KAAKa,MAAQT,C,CAGjBJ,KAAKc,gBAAgBC,KAAKb,EAAgB,EASpCF,KAAAgB,iBAAmB,KACzB,MAAMC,EAAOjB,KAAKkB,cAAcC,cAAc,QAE9CnB,KAAKoB,SAASC,UAAY,GAC1B,MAAMC,EAAmBL,EAAKK,iBAAiB,CAAEC,QAAS,OAE1DD,EAAiBE,SAASC,IACxB,GAAK,CAAC,SAAU,YAAYC,SAASD,EAAKE,SAAU,CAClD,MAAMC,EAAaH,EAAKI,UAAU,MAClC,GAAID,EAAWD,UAAY,UAAaC,EAAiCf,QAAUb,KAAKa,MAAO,CAC5Fe,EAAiCE,SAAW,I,CAE/C9B,KAAKoB,SAASW,YAAYH,E,KAI9B5B,KAAKgC,sBAAsB,E,qEAlIV,M,mHA0BA,M,kCAWA,M,qBAmBnB,YAAAC,GACEjC,KAAKgC,sB,CAGP,iBAAAE,GACElC,KAAKgC,sB,CAaC,oBAAAA,GACN,GAAIhC,KAAKoB,SAAU,CACjB,MA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ACXC,SAAUhE,KAAKC,eACfgE,SAAUjE,KAAKiE,SACfC,IAAMC,GAAQnE,KAAKoB,SAAW+C,IAElC7B,EAAA,OAAAkB,IAAA,yDAAiB,OAAOjB,MAAM,SAAS2B,IAAMC,GAAQnE,KAAKkB,cAAgBiD,GACxE7B,EAAA,QAAAkB,IAAA,2CAAMY,aAAcpE,KAAKgB,oBAE1BhB,KAAKgD,kBACJhD,KAAKY,UAAY0B,EAAA,YAAAkB,IAAA,2CAAUjB,MAAM,0BAA0BM,KAAMwB,K","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as s,h as t,H as i,g as e}from"./p-87fe352f.js";const a=":host{--tabs-dimension-panel-margin-top:var(--pine-dimension-none);--tabs-dimension-panel-padding:0;--outline:2px solid var(--pine-color-focus-ring);display:block}.pds-tabs__tablist{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--pine-dimension-md)}:host(.pds-tabs--availability) .pds-tabs__tablist{gap:var(--pine-dimension-xs)}:host(.pds-tabs--filter) .pds-tabs__tablist{gap:var(--pine-dimension-sm)}";const n=a;const d=class{constructor(t){s(this,t);this.tablistLabel=undefined;this.componentId=undefined;this.variant=undefined;this.activeTabName=undefined;this.activeTabIndex=undefined}tabClickHandler(s){if(this.componentId===s.detail[1]){this.activeTabIndex=s.detail[0];this.activeTabName=this.tabs[this.activeTabIndex].name}}handleKeyDown(s){const t=["ArrowLeft","ArrowRight","Home","End"];if(t.includes(s.key)){s.preventDefault();this.moveActiveTab(s.key)}}moveActiveTab(s){const t=0;const i=this.tabs.length-1;let e=null;switch(s){case"ArrowLeft":e=this.activeTabIndex===t?i:this.activeTabIndex+-1;break;case"ArrowRight":e=this.activeTabIndex===i?t:this.activeTabIndex+1;break;case"Home":e=t;break;case"End":e=i;break}this.tabs[e].children[0].focus();this.activeTabName=this.tabs[e].name;this.activeTabIndex=e}findAllChildren(){this.tabs=this.el.querySelectorAll("pds-tab");this.tabPanels=this.el.querySelectorAll("pds-tabpanel")}propGeneration(s,t=0){s.parentComponentId=this.componentId.toString();s.variant=this.variant.toString();s.selected=this.activeTabName===s.name?true:false;s["index"]=t}passPropsToChildren(){this.tabs.forEach(((s,t)=>{if(this.activeTabName===s.name)this.activeTabIndex=t;this.propGeneration(s,t)}));this.tabPanels.forEach((s=>{this.propGeneration(s)}))}classNames(){let s=`pds-tabs`;if(this.variant&&this.variant!="primary"){const t=`pds-tabs--${this.variant}`;s+=" "+t}return s}componentWillLoad(){this.findAllChildren()}componentWillRender(){this.passPropsToChildren()}render(){return t(i,{key:"9f6f438a9ee877cc53a790d9e4235074d3df973d","active-tab-name":this.activeTabName,class:this.classNames(),id:this.componentId},t("div",{key:"92e82a7532305dc20d5bb9d547784e2ec28cb77f",class:"pds-tabs__tablist",role:"tablist","aria-label":this.tablistLabel},t("slot",{key:"ce5dd8180512ecdc2d161d8c2c8fc5625b5f705c",name:"tabs"})),t("slot",{key:"3995ee8c5e3ab3ee5334abe59543288bbcb8e1f1",name:"tabpanels"}))}get el(){return e(this)}};d.style=n;export{d as pds_tabs};
2
+ //# sourceMappingURL=p-6db1fe5c.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsTabsCss","PdsTabsStyle0","PdsTabs","tabClickHandler","event","this","componentId","detail","activeTabIndex","activeTabName","tabs","name","handleKeyDown","ev","keySet","includes","key","preventDefault","moveActiveTab","firstTabNumber","lastTabNumber","length","moveFocusTo","children","focus","findAllChildren","el","querySelectorAll","tabPanels","propGeneration","child","index","parentComponentId","toString","variant","selected","passPropsToChildren","forEach","classNames","className","variantClassName","componentWillLoad","componentWillRender","render","h","Host","class","id","role","tablistLabel"],"sources":["src/components/pds-tabs/pds-tabs.scss?tag=pds-tabs&encapsulation=shadow","src/components/pds-tabs/pds-tabs.tsx"],"sourcesContent":[":host {\n /**\n * @prop --tabs-dimension-panel-margin-top: Optional margin-top for panels\n */\n --tabs-dimension-panel-margin-top: var(--pine-dimension-none);\n /**\n * @prop --tabs-dimension-panel-padding: Optional padding for panels\n */\n --tabs-dimension-panel-padding: 0;\n\n --outline: 2px solid var(--pine-color-focus-ring);\n\n display: block;\n}\n\n.pds-tabs__tablist {\n display: flex;\n flex-wrap: wrap;\n gap: var(--pine-dimension-md);\n}\n\n:host(.pds-tabs--availability) .pds-tabs__tablist {\n gap: var(--pine-dimension-xs);\n}\n\n:host(.pds-tabs--filter) .pds-tabs__tablist {\n gap: var(--pine-dimension-sm);\n}\n","import { Component, Element, Host, h, Prop, Listen } from '@stencil/core';\n\n /**\n * @slot tabs - Content is placed within the `div[role=\"tablist\"]` element as children\n * @slot tabpanels - Content is placed directly after the `div[role=\"tablist\"]` element as siblings\n */\n@Component({\n tag: 'pds-tabs',\n styleUrls: ['pds-tabs.scss'],\n shadow: true,\n})\nexport class PdsTabs {\n private tabs;\n private tabPanels;\n\n @Element() el: HTMLPdsTabsElement;\n\n /**\n * Sets the aria-label attached to the tablist element\n */\n @Prop() tablistLabel!: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Sets tabs variant styles as outlined in Figma documentation\n */\n @Prop() variant!: 'primary' | 'availability' | 'filter';\n\n /**\n * Sets the starting active tab name and maintains the name as the component re-renders\n */\n @Prop({mutable: true}) activeTabName!: string;\n\n /**\n * Sets the starting active tab index number and maintains the index number as the component re-renders\n */\n /** @internal */\n @Prop({mutable: true}) activeTabIndex: number;\n\n @Listen('pdsTabClick', {\n target: 'body',\n })\n tabClickHandler(event: CustomEvent<any>) {\n if (this.componentId === event.detail[1]) {\n this.activeTabIndex = event.detail[0];\n this.activeTabName = this.tabs[this.activeTabIndex].name;\n }\n }\n\n @Listen('keydown', {})\n handleKeyDown(ev: KeyboardEvent) {\n const keySet = [\"ArrowLeft\", \"ArrowRight\", \"Home\", \"End\"];\n\n if (keySet.includes(ev.key)) {\n ev.preventDefault();\n this.moveActiveTab(ev.key);\n }\n }\n\n private moveActiveTab(key: string) {\n const firstTabNumber = 0;\n const lastTabNumber = this.tabs.length - 1;\n\n let moveFocusTo = null;\n\n switch (key) {\n case 'ArrowLeft':\n moveFocusTo = (this.activeTabIndex === firstTabNumber) ? lastTabNumber : (this.activeTabIndex + (-1));\n break;\n case 'ArrowRight':\n moveFocusTo = (this.activeTabIndex === lastTabNumber) ? firstTabNumber : (this.activeTabIndex + 1);\n break;\n case 'Home':\n moveFocusTo = firstTabNumber;\n break;\n case 'End':\n moveFocusTo = lastTabNumber;\n break;\n }\n\n // Move focus to the button element within `pds-tab`\n this.tabs[moveFocusTo].children[0].focus();\n this.activeTabName = this.tabs[moveFocusTo].name;\n this.activeTabIndex = moveFocusTo;\n }\n\n private findAllChildren() {\n this.tabs = this.el.querySelectorAll('pds-tab');\n this.tabPanels = this.el.querySelectorAll('pds-tabpanel');\n }\n\n private propGeneration(child, index = 0) {\n child.parentComponentId = this.componentId.toString();\n child.variant = this.variant.toString();\n child.selected = (this.activeTabName === child.name) ? true : false;\n child['index'] = index;\n }\n\n private passPropsToChildren() {\n this.tabs.forEach((child, index) => {\n if (this.activeTabName === child.name) this.activeTabIndex = index;\n this.propGeneration(child, index);\n });\n\n this.tabPanels.forEach((child) => {\n this.propGeneration(child);\n });\n }\n\n private classNames() {\n let className = `pds-tabs`;\n if (this.variant && this.variant != 'primary') {\n const variantClassName = `pds-tabs--${this.variant}`;\n className += ' ' + variantClassName;\n }\n\n return className;\n };\n\n componentWillLoad() {\n this.findAllChildren();\n }\n\n componentWillRender() {\n this.passPropsToChildren();\n }\n\n render() {\n return (\n <Host active-tab-name={this.activeTabName} class={this.classNames()} id={this.componentId}>\n <div class=\"pds-tabs__tablist\" role=\"tablist\" aria-label={this.tablistLabel}>\n <slot name=\"tabs\" />\n </div>\n <slot name=\"tabpanels\" />\n </Host>\n );\n }\n}\n"],"mappings":"yDAAA,MAAMA,EAAa,ibACnB,MAAAC,EAAeD,E,MCUFE,EAAO,M,kKAmClB,eAAAC,CAAgBC,GACd,GAAIC,KAAKC,cAAg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ACtBzB,KAAKwB,eAAeC,EAAM,G,CAItB,UAAAQ,GACN,IAAIC,EAAY,WAChB,GAAIlC,KAAK6B,SAAW7B,KAAK6B,SAAW,UAAW,CAC7C,MAAMM,EAAmB,aAAanC,KAAK6B,UAC3CK,GAAa,IAAMC,C,CAGrB,OAAOD,C,CAGT,iBAAAE,GACEpC,KAAKoB,iB,CAGP,mBAAAiB,GACErC,KAAK+B,qB,CAGP,MAAAO,GACE,OACEC,EAACC,EAAI,CAAA7B,IAAA,6DAAkBX,KAAKI,cAAeqC,MAAOzC,KAAKiC,aAAcS,GAAI1C,KAAKC,aAC5EsC,EAAA,OAAA5B,IAAA,2CAAK8B,MAAM,oBAAoBE,KAAK,UAAS,aAAa3C,KAAK4C,cAC7DL,EAAA,QAAA5B,IAAA,2CAAML,KAAK,UAEbiC,EAAA,QAAA5B,IAAA,2CAAML,KAAK,c","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as t,h as n,H as i,g as e}from"./p-87fe352f.js";let s=false;const o=t=>{var n;const i=(n=document.head.querySelector("meta[data-pine-asset-path]"))===null||n===void 0?void 0:n.dataset.pineAssetPath;const e=window.__PINE_ASSET_PATH__;const o="https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/";const r=i||e||o||"/";if(r.startsWith("https://cdn.jsdelivr.net/npm/")&&!s){s=true;console.warn(`\n Fetching Pine assets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\n\nFor more information, read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)}let c=t;if(t.startsWith("./")){c=t.substring(2)}if(!r.endsWith("/")){c="/"+c}return r+c};let r;const c=()=>{if(typeof window==="undefined"){return new Map}else{if(!r){const t=window;t.PdsIcons=t.PdsIcons||{};r=t.PdsIcons.map=t.PdsIcons.map||new Map}return r}};const l=(t,n)=>{if(!t&&n&&!h(n)){t=n}if(u(t)){t=p(t)}if(!u(t)||t.trim()===""){return null}const i=t.replace(/[a-z]|-|\d/gi,"");if(i!=""){return null}return t};const d=t=>{const n=c().get(t);if(n){return n}return o(`svg/${t}.svg`)};const a=t=>{if(u(t)){t=t.trim();if(h(t)){return t}}return null};const f=t=>{let n=a(t.src);if(n){return n}n=l(t.name,t.icon);if(n){return d(n)}if(t.icon){n=a(t.icon);if(n){return n}}return null};const h=t=>t.length>0&&/(\/|\.)/.test(t);const u=t=>typeof t==="string";const p=t=>t.toLowerCase();const m=(t,n=[])=>{const i={};n.forEach((n=>{if(t.hasAttribute(n)){const e=t.getAttribute(n);if(e!==null){i[n]=t.getAttribute(n)}t.removeAttribute(n)}}));return i};const g=t=>{const n=document.createElement("div");n.innerHTML=t;for(let t=n.childNodes.length-1;t>=0;t--){if(n.childNodes[t].nodeName.toLowerCase()!=="svg"){n.removeChild(n.childNodes[t])}}const i=n.firstElementChild;if(i&&i.nodeName.toLowerCase()==="svg"){const t=i.getAttribute("class")||"";i.setAttribute("class",(t+" s-pds-icon").trim());if(w(i)){return n.innerHTML}}return""};const w=t=>{if(t.nodeType===1){if(t.nodeName.toLowerCase()==="script"){return false}for(let n=0;n<t.attributes.length;n++){const i=t.attributes[n].name;if(u(i)&&i.toLowerCase().indexOf("on")===0){return false}}for(let n=0;n<t.childNodes.length;n++){if(!w(t.childNodes[n])){return false}}}return true};const v=t=>t.startsWith("data:image/svg+xml");const b=t=>t.indexOf(";utf8,")!==-1;const y=new Map;const x=new Map;let M;const j=(t,n=false)=>{let i=x.get(t);if(!i){if(typeof fetch!="undefined"&&typeof document!=="undefined"){if(v(t)&&b(t)){if(!M){M=new DOMParser}const n=M.parseFromString(t,"text/html");const i=n.querySelector("svg");if(i){y.set(t,i.outerHTML)}return Promise.resolve()}else{i=fetch(t).then((i=>{if(i.ok){return i.text().then((i=>{if(i&&n!==false){i=g(i)}y.set(t,i||"")}))}y.set(t,"")}));x.set(t,i)}}else{y.set(t,"");return Promise.resolve()}}return i};const C=":host{--dimension-icon-height:16px;--dimension-icon-width:16px;--color-icon-fill:currentColor;contain:strict;display:inline-block;fill:var(--color-icon-fill);height:var(--dimension-icon-height);width:var(--dimension-icon-width)}:host .pdsicon{fill:var(--color-icon-fill)}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";const S=C;const k=class{constructor(n){t(this,n);this.inheritedAttributes={};this.hasAriaHidden=()=>{const{el:t}=this;return t.hasAttribute("aria-hidden")&&t.getAttribute("aria-hidden")==="true"};this.ariaLabel=undefined;this.isVisible=false;this.svgContent=undefined;this.color=undefined;this.icon=undefined;this.name=undefined;this.size="regular";this.src=undefined}iconSize(){const t={small:"12px",regular:"16px",medium:"20px",large:"24px"};if(t[this.size]){return t[this.size]}else{return this.size}}componentDidLoad(){this.setCSSVariables()}componentWillLoad(){this.inheritedAttributes=m(this.el,["aria-label"]);this.setCSSVariables()}setCSSVariables(){this.el.style.setProperty(`--dimension-icon-height`,this.iconSize());this.el.style.setProperty(`--dimension-icon-width`,this.iconSize());this.el.style.setProperty(`--color-icon-fill`,typeof this.color!=="undefined"?this.color:"currentColor")}connectedCallback(){this.waitUntilVisible(this.el,"50px",(()=>{this.isVisible=true;this.loadIcon()}))}disconnectedCallback(){if(this.io){this.io.disconnect();this.io=undefined}}updateStyles(){this.setCSSVariables()}loadIcon(){if(this.isVisible){const t=f(this);if(t){if(y.has(t)){this.svgContent=y.get(t)}else{j(t).then((()=>this.svgContent=y.get(t)))}}}const t=l(this.name,this.icon);if(t){this.ariaLabel=t.replace(/\-/g," ")}}render(){const{ariaLabel:t,inheritedAttributes:e}=this;return n(i,Object.assign({key:"4bbc232e2530d43e8b5afefb754486d94ea6538b","aria-label":t!==undefined&&!this.hasAriaHidden()?t:null,alt:"",role:"img",class:Object.assign({},D(this.color))},e),this.svgContent?n("div",{class:"icon-inner",innerHTML:this.svgContent}):n("div",{class:"icon-inner"}))}waitUntilVisible(t,n,i){if(typeof window!=="undefined"&&window.IntersectionObserver){const e=this.io=new window.IntersectionObserver((t=>{if(t[0].isIntersecting){e.disconnect();this.io=undefined;i()}}),{rootMargin:n});e.observe(t)}else{i()}}static get assetsDirs(){return["svg"]}get el(){return e(this)}static get watchers(){return{size:["updateStyles"],color:["updateStyles"],name:["loadIcon"],src:["loadIcon"],icon:["loadIcon"]}}};const D=t=>t?{"pds-color":true,[`pds-color-${t}`]:true}:null;k.style=S;export{k as pds_icon};
2
+ //# sourceMappingURL=p-6e8f3bb4.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["missingAssetPathWarning","getAssetPath","path","_a","metaPineAssetPath","document","head","querySelector","dataset","pineAssetPath","windowAssetPath","window","__PINE_ASSET_PATH__","cdnAssetPath","assetBasePath","startsWith","console","warn","assetPath","substring","endsWith","CACHED_MAP","getIconMap","Map","win","PdsIcons","map","getName","iconName","icon","isSrc","isStr","toLower","trim","invalidChars","replace","getNamedUrl","url","get","getSrc","src","getUrl","pdsIcon","name","str","length","test","val","toLowerCase","inheritAttributes","el","attributes","attributeObject","forEach","attr","hasAttribute","value","getAttribute","removeAttribute","validateContent","svgContent","div","createElement","innerHTML","i","childNodes","nodeName","removeChild","svgElm","firstElementChild","svgClass","setAttribute","isValid","elm","nodeType","indexOf","isSvgDataUrl","isEncodedDataUrl","pdsIconContent","requests","parser","getSvgContent","sanitize","req","fetch","DOMParser","doc","parseFromString","svg","set","outerHTML","Promise","resolve","then","rsp","ok","text","pdsIconCss","PdsIconStyle0","PdsIcon","constructor","hostRef","this","inheritedAttributes","hasAriaHidden","ariaLabel","undefined","isVisible","color","size","iconSize","sizes","small","regular","medium","large","componentDidLoad","setCSSVariables","componentWillLoad","style","setProperty","connectedCallback","waitUntilVisible","loadIcon","disconnectedCallback","io","disconnect","updateStyles","has","label","render","h","Host","Object","assign","key","alt","role","class","createColorClasses","rootMargin","cb","IntersectionObserver","data","isIntersecting","observe","assetsDirs"],"sources":["../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/assetPath.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/utils.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/validate.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/request.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.css?tag=pds-icon&encapsulation=shadow","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.js"],"sourcesContent":["import { Build } from \"@stencil/core\";\nlet missingAssetPathWarning = false;\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path) => {\n var _a;\n const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';\n // Display a warning if the assets are fetched from the CDN.\n if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine assets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and set the path accordingly.\\n\\nFor more information, read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `);\n }\n let assetPath = path;\n if (path.startsWith('./')) {\n assetPath = path.substring(2);\n }\n if (!assetBasePath.endsWith('/')) {\n assetPath = '/' + assetPath;\n }\n return assetBasePath + assetPath;\n};\n//# sourceMappingURL=assetPath.js.map\n","import { getAssetPath } from \"./assetPath\";\nlet CACHED_MAP;\nexport const addIcons = (icons) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n};\nexport const getIconMap = () => {\n if (typeof window === 'undefined') {\n return new Map();\n }\n else {\n if (!CACHED_MAP) {\n const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n return CACHED_MAP;\n }\n};\nexport const getName = (iconName, icon) => {\n if (!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi, '');\n if (invalidChars != '') {\n return null;\n }\n return iconName;\n};\nconst getNamedUrl = (iconName) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n return getAssetPath(`svg/${iconName}.svg`);\n};\nexport const getSrc = (src) => {\n if (isStr(src)) {\n src = src.trim();\n if (isSrc(src)) {\n return src;\n }\n }\n return null;\n};\nexport const getUrl = (pdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n if (url) {\n return url;\n }\n }\n return null;\n};\nexport const isSrc = (str) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val) => val.toLowerCase();\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (el, attributes = []) => {\n const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n return attributeObject;\n};\n//# sourceMappingURL=utils.js.map\n","import { isStr } from \"./utils\";\nexport const validateContent = (svgContent) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm)) {\n return div.innerHTML;\n }\n }\n return '';\n};\nexport const isValid = (elm) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i])) {\n return false;\n }\n }\n }\n return true;\n};\nexport const isSvgDataUrl = (url) => url.startsWith('data:image/svg+xml');\nexport const isEncodedDataUrl = (url) => url.indexOf(';utf8,') !== -1;\n//# sourceMappingURL=validate.js.map\n","import { isEncodedDataUrl, isSvgDataUrl, validateContent } from \"./validate\";\nexport const pdsIconContent = new Map();\nconst requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any\nlet parser;\nexport const getSvgContent = (url, sanitize = false) => {\n let req = requests.get(url);\n if (!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {\n if (!parser) {\n parser = new DOMParser();\n }\n const doc = parser.parseFromString(url, 'text/html');\n const svg = doc.querySelector('svg');\n if (svg) {\n pdsIconContent.set(url, svg.outerHTML);\n }\n return Promise.resolve();\n }\n else {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n requests.set(url, req);\n }\n }\n else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n return req;\n};\n//# sourceMappingURL=request.js.map\n",":host {\n --dimension-icon-height: 16px;\n --dimension-icon-width: 16px;\n --color-icon-fill: currentColor;\n contain: strict;\n display: inline-block;\n fill: var(--color-icon-fill);\n height: var(--dimension-icon-height);\n width: var(--dimension-icon-width);\n}\n:host .pdsicon {\n fill: var(--color-icon-fill);\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}","import { Build, Host, h } from \"@stencil/core\";\nimport { getSvgContent, pdsIconContent } from \"./request\";\nimport { getName, getUrl, inheritAttributes } from \"./utils\";\nexport class PdsIcon {\n constructor() {\n this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n this.hasAriaHidden = () => {\n const { el } = this;\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n };\n this.ariaLabel = undefined;\n this.isVisible = false;\n this.svgContent = undefined;\n this.color = undefined;\n this.icon = undefined;\n this.name = undefined;\n this.size = 'regular';\n this.src = undefined;\n }\n iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n };\n if (sizes[this.size]) {\n return sizes[this.size];\n }\n else {\n return this.size;\n }\n }\n componentDidLoad() {\n this.setCSSVariables();\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n this.setCSSVariables();\n }\n setCSSVariables() {\n this.el.style.setProperty(`--dimension-icon-height`, this.iconSize());\n this.el.style.setProperty(`--dimension-icon-width`, this.iconSize());\n this.el.style.setProperty(`--color-icon-fill`, typeof this.color !== 'undefined' ? this.color : 'currentColor');\n }\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n });\n }\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n updateStyles() {\n this.setCSSVariables();\n }\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n }\n else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n const label = getName(this.name, this.icon);\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n return (h(Host, Object.assign({ key: '4bbc232e2530d43e8b5afefb754486d94ea6538b', \"aria-label\": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, alt: \"\", role: \"img\", class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), Build.isBrowser && this.svgContent ? (h(\"div\", { class: \"icon-inner\", innerHTML: this.svgContent })) : (h(\"div\", { class: \"icon-inner\" }))));\n }\n /*****\n * Private Methods\n ****/\n waitUntilVisible(el, rootMargin, cb) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver((data) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n }, { rootMargin }));\n io.observe(el);\n }\n else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n static get is() { return \"pds-icon\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"pds-icon.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"pds-icon.css\"]\n };\n }\n static get assetsDirs() { return [\"svg\"]; }\n static get properties() {\n return {\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nThe color of the icon\"\n },\n \"attribute\": \"color\",\n \"reflect\": false\n },\n \"icon\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This a combination of both `name` and `src`. If a `src` url is detected\\nit will set the `src` property. Otherwise it assumes it's a built-in named\\nSVG and set the `name` property.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the icon to use from\\nthe built-in set.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"| 'small' // 12px\\n | 'regular' // 16px\\n | 'medium' // 20px\\n | 'large' // 24px\\n | 'auto'\\n | string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the icon. This can be\\n'small', 'regular', 'medium', large, or a\\ncustom value (40px, 1rem, etc)\"\n },\n \"attribute\": \"size\",\n \"reflect\": true,\n \"defaultValue\": \"'regular'\"\n },\n \"src\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nSpecifies the exact `src` of an SVG file to use.\"\n },\n \"attribute\": \"src\",\n \"reflect\": false\n }\n };\n }\n static get states() {\n return {\n \"ariaLabel\": {},\n \"isVisible\": {},\n \"svgContent\": {}\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"size\",\n \"methodName\": \"updateStyles\"\n }, {\n \"propName\": \"color\",\n \"methodName\": \"updateStyles\"\n }, {\n \"propName\": \"name\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"src\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"icon\",\n \"methodName\": \"loadIcon\"\n }];\n }\n}\nconst createColorClasses = (color) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n};\n//# sourceMappingURL=pds-icon.js.map\n"],"mappings":"yDACA,IAAIA,EAA0B,MAUvB,MAAMC,EAAgBC,IACzB,IAAIC,EACJ,MAAMC,GAAqBD,EAAKE,SAASC,KAAKC,cAAc,iCAAmC,MAAQJ,SAAY,OAAS,EAAIA,EAAGK,QAAQC,cAE3I,MAAMC,EAAkBC,OAAOC,oBAE/B,MAAMC,EAAe,8DACrB,MAAMC,EAAsDV,GAAqBM,GAAmBG,GAAgB,IAEpH,GAAIC,EAAcC,WAAW,mCAAqCf,EAAyB,CACvFA,EAA0B,KAC1BgB,QAAQC,KAAK,0RAGrB,CACI,IAAIC,EAAYhB,EAChB,GAAIA,EAAKa,WAAW,MAAO,CACvBG,EAAYhB,EAAKiB,UAAU,EACnC,CACI,IAAKL,EAAcM,SAAS,KAAM,CAC9BF,EAAY,IAAMA,CAC1B,CACI,OAAOJ,EAAgBI,CAAS,EChCpC,IAAIG,EAKG,MAAMC,EAAa,KACtB,UAAWX,SAAW,YAAa,CAC/B,OAAO,IAAIY,GACnB,KACS,CACD,IAAKF,EAAY,CACb,MAAMG,EAAMb,OACZa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AOC,OAAO,CAAEC,IAAK,2CAA4C,aAAc9B,IAAcC,YAAcJ,KAAKE,gBAAkBC,EAAY,KAAM+B,IAAK,GAAIC,KAAM,MAAOC,MAAOL,OAAOC,OAAO,GAAIK,EAAmBrC,KAAKM,SAAWL,GAAyCD,KAAK1C,WAAcuE,EAAE,MAAO,CAAEO,MAAO,aAAc3E,UAAWuC,KAAK1C,aAAkBuE,EAAE,MAAO,CAAEO,MAAO,e,CAK1Y,gBAAAhB,CAAiBxE,EAAI0F,EAAYC,GAC7B,UAA8BlI,SAAW,aAAe,OAASmI,qBAAsB,CACnF,MAAMjB,EAAMvB,KAAKuB,GAAK,IAAI,OAASiB,sBAAsBC,IACrD,GAAIA,EAAK,GAAGC,eAAgB,CACxBnB,EAAGC,aACHxB,KAAKuB,GAAKnB,UACVmC,G,IAEL,CAAED,eACLf,EAAGoB,QAAQ/F,E,KAEV,CAGD2F,G,EAeR,qBAAWK,GAAe,MAAO,CAAC,MAAO,C,0JAsH7C,MAAMP,EAAsB/B,GACjBA,EACD,CACE,YAAa,KACb,CAAC,aAAaA,KAAU,MAE1B,K","ignoreList":[]}
@@ -0,0 +1,2 @@
1
+ import{r as e,c as i,h as o,H as r}from"./p-87fe352f.js";import{m as a,a as t}from"./p-47291f05.js";import{P as s}from"./p-0c09ce7a.js";import{b as n}from"./p-d561168e.js";const d=':host{--box-shadow-focus:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);--box-shadow-focus-invalid:0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}:host(.is-invalid) input{border-color:var(--pine-color-border-danger)}:host(.is-invalid) input:checked{background:var(--pine-color-danger)}:host(.is-invalid) input:checked:hover{background:var(--pine-color-danger-hover);border-color:var(--pine-color-border-danger-hover)}:host(.is-invalid) input:focus-visible{-webkit-box-shadow:var(--box-shadow-focus-invalid);box-shadow:var(--box-shadow-focus-invalid);outline:none}:host(.is-invalid) label,:host(.is-invalid) .pds-checkbox__message--error{color:var(--pine-color-text-message-danger)}:host(.is-indeterminate) input{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}:host(.is-indeterminate) input:hover{background:var(--pine-color-accent);border-color:var(--pine-color-accent-hover)}:host(.is-indeterminate) input::after{border:1px solid var(--pine-color-secondary);border-bottom:0;border-left:0;border-top:0;content:"";display:block;height:7px;left:50%;position:absolute;top:50%;-webkit-transform:rotate(90deg) translate3d(-103%, 32%, 0);transform:rotate(90deg) translate3d(-103%, 32%, 0);width:4px}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-dimension-2xs);height:var(--pine-dimension-sm);margin:0;position:relative;width:var(--pine-dimension-sm)}input:hover{background:var(--pine-color-secondary-hover);border:var(--pine-border-hover)}input:checked{background:var(--pine-color-accent);border-color:var(--pine-color-accent)}input:checked:hover{background:var(--pine-color-accent-hover);border-color:var(--pine-color-accent-hover)}input:checked::after{border:1px solid var(--pine-color-secondary);border-left:0;border-top:0;content:"";display:block;height:7px;left:50%;position:absolute;top:50%;-webkit-transform:rotate(43deg) translate3d(-110%, -30%, 0);transform:rotate(43deg) translate3d(-110%, -30%, 0);width:4px}input:disabled{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);cursor:not-allowed}input:disabled:checked{background:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled)}input:disabled:checked::after{border-color:var(--pine-color-grey-300)}input:disabled+label{color:var(--pine-color-text-disabled);cursor:not-allowed}input:disabled~.pds-checkbox__message{color:var(--pine-color-text-disabled)}input:focus-visible{-webkit-box-shadow:var(--box-shadow-focus);box-shadow:var(--box-shadow-focus);outline:none}label{font-weight:var(--pine-font-weight-body-medium);-webkit-margin-start:10px;margin-inline-start:10px}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-checkbox__message{color:var(--pine-color-text-message);-webkit-margin-before:6px;margin-block-start:6px;-webkit-margin-start:26px;margin-inline-start:26px;width:100%}.pds-checkbox__message--error{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;font-size:var(--pine-font-size-085);gap:var(--pine-spacing-050)}';const c=d;const l=class{constructor(o){e(this,o);this.pdsCheckboxChange=i(this,"pdsCheckboxChange",7);this.pdsCheckboxInput=i(this,"pdsCheckboxInput",7);this.handleCheckboxChange=e=>{if(this.disabled){return}const i=e.target;this.checked=i.checked;this.pdsCheckboxChange.emit({checked:i.checked,value:this.value})};this.handleInput=()=>{this.pdsCheckboxInput.emit({checked:this.checked,value:this.value})};this.checked=false;this.componentId=undefined;this.disabled=undefined;this.errorMessage=undefined;this.helperMessage=undefined;this.indeterminate=undefined;this.invalid=undefined;this.label=undefined;this.labelHidden=undefined;this.name=undefined;this.required=undefined;this.value=undefined}updateIndeterminate(){this.indeterminate=undefined}classNames(){const e=[];if(this.invalid){e.push("is-invalid")}if(this.indeterminate){e.push("is-indeterminate")}if(this.disabled){e.push("is-disabled")}return e.join(" ")}render(){return o(r,{key:"a9a36f6b064c3ff184de99514e9dea1f4e59b44d",class:this.classNames()},o("input",{key:"ed7adf4890dd6b7f03659eee3586eeab609af114",type:"checkbox","aria-describedby":t(this.componentId,this.invalid,this.helperMessage),"aria-invalid":this.invalid?"true":undefined,id:this.componentId,indeterminate:this.indeterminate,name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled,onChange:this.handleCheckboxChange,onInput:this.handleInput}),o(s,{key:"a68de459c7a6aef1cfa507808b996ca6b594c165",htmlFor:this.componentId,text:this.label,classNames:this.labelHidden?"visually-hidden":""}),this.helperMessage&&o("div",{key:"34e4b9bc0c8f8e48a5b74e4c2dd695983d640d12",class:"pds-checkbox__message",id:a(this.componentId,"helper")},this.helperMessage),this.errorMessage&&o("div",{key:"8ca0733a88369da4248cb2c98e25d9f7d01d7672",class:`pds-checkbox__message pds-checkbox__message--error`,id:a(this.componentId,"error"),"aria-live":"assertive"},o("pds-icon",{key:"f5a97b3612cb3990770367faaeafbbd1d46e48ee",icon:n,size:"small"}),this.errorMessage))}static get watchers(){return{checked:["updateIndeterminate"]}}};l.style=c;export{l as pds_checkbox};
2
+ //# sourceMappingURL=p-726dc3d1.entry.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["pdsCheckboxCss","PdsCheckboxStyle0","PdsCheckbox","this","handleCheckboxChange","e","disabled","target","checked","pdsCheckboxChange","emit","value","handleInput","pdsCheckboxInput","updateIndeterminate","indeterminate","undefined","classNames","invalid","push","join","render","h","Host","key","class","type","assignDescription","componentId","helperMessage","id","name","required","onChange","onInput","PdsLabel","htmlFor","text","label","labelHidden","messageId","errorMessage","icon","danger","size"],"sources":["src/components/pds-checkbox/pds-checkbox.scss?tag=pds-checkbox&encapsulation=shadow","src/components/pds-checkbox/pds-checkbox.tsx"],"sourcesContent":[":host {\n --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);\n --box-shadow-focus-invalid: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring-danger);\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-danger);\n\n &:hover {\n background: var(--pine-color-danger-hover);\n border-color: var(--pine-color-border-danger-hover);\n }\n }\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-invalid); // Remove when outline radius is supported in Safari\n outline: none;\n }\n }\n\n label,\n .pds-checkbox__message--error {\n color: var(--pine-color-text-message-danger);\n }\n}\n\n:host(.is-indeterminate) {\n input {\n background: var(--pine-color-accent);\n border-color: var(--pine-color-accent);\n\n &:hover {\n background: var(--pine-color-accent);\n border-color: var(--pine-color-accent-hover);\n }\n\n &::after {\n border: 1px solid var(--pine-color-secondary);\n border-bottom: 0;\n border-left: 0;\n border-top: 0;\n content: \"\";\n display: block;\n height: 7px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: rotate(90deg) translate3d(-103%, 32%, 0);\n width: 4px;\n }\n }\n}\n\ninput {\n appearance: none;\n background-color: var(--pine-color-secondary);\n border: var(--pine-border);\n border-radius: var(--pine-dimension-2xs);\n height: var(--pine-dimension-sm);\n margin: 0;\n position: relative;\n width: var(--pine-dimension-sm);\n\n &:hover {\n background: var(--pine-color-secondary-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 border: 1px solid var(--pine-color-secondary);\n border-left: 0;\n border-top: 0;\n content: \"\";\n display: block;\n height: 7px;\n left: 50%;\n position: absolute;\n top: 50%;\n transform: rotate(43deg) translate3d(-110%, -30%, 0);\n width: 4px;\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: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n\n &::after {\n border-color: var(--pine-color-grey-300);\n }\n }\n\n + label {\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n ~ .pds-checkbox__message {\n color: var(--pine-color-text-disabled);\n }\n }\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 }\n}\n\nlabel {\n font-weight: var(--pine-font-weight-body-medium);\n margin-inline-start: 10px;\n}\n\n.visually-hidden {\n border: 0;\n clip: rect(0 0 0 0);\n clip-path: polygon(0 0, 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.pds-checkbox__message {\n color: var(--pine-color-text-message);\n margin-block-start: 6px;\n margin-inline-start: 26px;\n width: 100%;\n}\n\n.pds-checkbox__message--error {\n align-items: center;\n display: flex;\n font-size: var(--pine-font-size-085);\n gap: var(--pine-spacing-050);\n}\n","import { Component, h, Prop, Host, Event, EventEmitter, Watch } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { CheckboxChangeEventDetail } from './checkbox-interface';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-checkbox',\n styleUrls: ['pds-checkbox.scss'],\n shadow: true,\n})\nexport class PdsCheckbox {\n /**\n * It determines whether or not the checkbox is checked.\n */\n @Prop({ mutable: true }) checked?: boolean = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * It determines whether or not the checkbox is disabled.\n */\n @Prop() disabled: boolean;\n\n /**\n * Displays message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * String used for helper message below checkbox.\n */\n @Prop() helperMessage: string;\n\n /**\n * If `true`, the checkbox will visually appear as indeterminate.\n * Only JavaScript can set the objects `indeterminate` property. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/checkbox#indeterminate_state_checkboxes).\n */\n @Prop({ mutable: true }) indeterminate: boolean;\n\n /**\n * It determines whether or not the checkbox is invalid.\n */\n @Prop() invalid: boolean;\n\n /**\n * String used for label text next to checkbox.\n */\n @Prop() label: string;\n\n /**\n * Visually hides the label text for instances where only the checkbox should be displayed. Label remains accessible to assistive technology such as screen readers.\n */\n @Prop() labelHidden: boolean;\n\n /**\n * String used for checkbox `name` attribute.\n */\n @Prop() name: string;\n\n /**\n * It determines whether or not the checkbox is required.\n */\n @Prop() required: boolean;\n\n /**\n * The value of the checkbox that is submitted with a form.\n */\n @Prop() value: string;\n\n /**\n * Event emitted that contains the `value` and `checked`.\n */\n @Event() pdsCheckboxChange: EventEmitter<CheckboxChangeEventDetail>;\n\n @Event() pdsCheckboxInput: EventEmitter<CheckboxChangeEventDetail>;\n\n @Watch('checked')\n updateIndeterminate() {\n this.indeterminate = undefined\n }\n\n private handleCheckboxChange = (e: Event) => {\n if (this.disabled) {\n return;\n }\n\n const target = e.target as HTMLInputElement;\n this.checked = target.checked;\n\n this.pdsCheckboxChange.emit({\n checked: target.checked,\n value: this.value\n });\n }\n\n private handleInput = () => {\n this.pdsCheckboxInput.emit({\n checked: this.checked,\n value: this.value\n });\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.indeterminate) { classNames.push('is-indeterminate'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host class={this.classNames()}>\n <input\n type=\"checkbox\"\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n id={this.componentId}\n indeterminate={this.indeterminate}\n name={this.name}\n value={this.value}\n checked={this.checked}\n required={this.required}\n disabled={this.disabled}\n onChange={this.handleCheckboxChange}\n onInput={this.handleInput}\n />\n <PdsLabel htmlFor={this.componentId} text={this.label} classNames={this.labelHidden ? 'visually-hidden' : ''} />\n {this.helperMessage &&\n <div\n class={'pds-checkbox__message'}\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </div>\n }\n {this.errorMessage &&\n <div\n class={`pds-checkbox__message pds-checkbox__message--error`}\n id={messageId(this.componentId, 'error')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"],"mappings":"4KAAA,MAAMA,EAAiB,44GACvB,MAAAC,EAAeD,E,MCUFE,EAAW,M,iIA0EdC,KAAAC,qBAAwBC,IAC9B,GAAIF,KAAKG,SAAU,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