@pine-ds/core 2.1.0 → 2.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (523) hide show
  1. package/components/index.d.ts +6 -0
  2. package/components/index.js +3 -0
  3. package/components/index.js.map +1 -1
  4. package/components/index2.js +3 -2
  5. package/components/index2.js.map +1 -1
  6. package/components/pds-button2.js +5 -3
  7. package/components/pds-button2.js.map +1 -1
  8. package/components/pds-checkbox2.js +12 -5
  9. package/components/pds-checkbox2.js.map +1 -1
  10. package/components/pds-chip.js +4 -4
  11. package/components/pds-chip.js.map +1 -1
  12. package/components/pds-copytext.js +1 -1
  13. package/components/pds-copytext.js.map +1 -1
  14. package/components/pds-divider.js +1 -1
  15. package/components/pds-divider.js.map +1 -1
  16. package/components/pds-image.js +2 -2
  17. package/components/pds-image.js.map +1 -1
  18. package/components/pds-input.js +14 -5
  19. package/components/pds-input.js.map +1 -1
  20. package/components/pds-link.js +2 -2
  21. package/components/pds-link.js.map +1 -1
  22. package/components/pds-loader.js +1 -1
  23. package/components/pds-popover.d.ts +11 -0
  24. package/components/pds-popover.js +94 -0
  25. package/components/pds-popover.js.map +1 -0
  26. package/components/pds-progress.js +1 -1
  27. package/components/pds-radio.js +16 -9
  28. package/components/pds-radio.js.map +1 -1
  29. package/components/pds-row.js +1 -1
  30. package/components/pds-select.d.ts +11 -0
  31. package/components/pds-select.js +165 -0
  32. package/components/pds-select.js.map +1 -0
  33. package/components/pds-sortable-item.js +1 -1
  34. package/components/pds-sortable.js +1 -1
  35. package/components/pds-switch.js +15 -11
  36. package/components/pds-switch.js.map +1 -1
  37. package/components/pds-tab.js +3 -3
  38. package/components/pds-table-body.js +1 -1
  39. package/components/pds-table-cell2.js +2 -2
  40. package/components/pds-table-head-cell2.js +3 -3
  41. package/components/pds-table-head.js +1 -1
  42. package/components/pds-table-row.js +9 -3
  43. package/components/pds-table-row.js.map +1 -1
  44. package/components/pds-table.js +1 -1
  45. package/components/pds-tabpanel.js +1 -1
  46. package/components/pds-tabs.js +1 -1
  47. package/components/pds-text.d.ts +11 -0
  48. package/components/pds-text.js +58 -0
  49. package/components/pds-text.js.map +1 -0
  50. package/components/pds-textarea.js +16 -7
  51. package/components/pds-textarea.js.map +1 -1
  52. package/components/pds-tooltip.js +6 -8
  53. package/components/pds-tooltip.js.map +1 -1
  54. package/dist/cjs/{index-2240f8f4.js → index-0079013c.js} +4 -2
  55. package/dist/cjs/index-0079013c.js.map +1 -0
  56. package/dist/cjs/{index-d424fb6f.js → index-b7d9268e.js} +14 -7
  57. package/dist/cjs/index-b7d9268e.js.map +1 -0
  58. package/dist/cjs/index.cjs.js +1 -1
  59. package/dist/cjs/loader.cjs.js +2 -2
  60. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  61. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  62. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  63. package/dist/cjs/pds-button.cjs.entry.js +5 -3
  64. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  65. package/dist/cjs/pds-checkbox.cjs.entry.js +7 -6
  66. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  67. package/dist/cjs/pds-chip.cjs.entry.js +5 -5
  68. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  69. package/dist/cjs/pds-copytext.cjs.entry.js +3 -3
  70. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  71. package/dist/cjs/pds-divider.cjs.entry.js +2 -2
  72. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
  73. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  74. package/dist/cjs/pds-image.cjs.entry.js +3 -3
  75. package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
  76. package/dist/cjs/pds-input.cjs.entry.js +8 -6
  77. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  78. package/dist/cjs/{pds-label-397cc854.js → pds-label-05f073ea.js} +2 -2
  79. package/dist/cjs/{pds-label-397cc854.js.map → pds-label-05f073ea.js.map} +1 -1
  80. package/dist/cjs/pds-link.cjs.entry.js +4 -4
  81. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  82. package/dist/cjs/pds-loader.cjs.entry.js +2 -2
  83. package/dist/cjs/pds-popover.cjs.entry.js +72 -0
  84. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -0
  85. package/dist/cjs/pds-progress.cjs.entry.js +2 -2
  86. package/dist/cjs/pds-radio.cjs.entry.js +9 -8
  87. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  88. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  89. package/dist/cjs/pds-select.cjs.entry.js +131 -0
  90. package/dist/cjs/pds-select.cjs.entry.js.map +1 -0
  91. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
  92. package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-switch.cjs.entry.js +9 -10
  94. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  95. package/dist/cjs/pds-tab.cjs.entry.js +4 -4
  96. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  97. package/dist/cjs/pds-table-cell.cjs.entry.js +3 -3
  98. package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
  99. package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
  100. package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
  101. package/dist/cjs/pds-table.cjs.entry.js +2 -2
  102. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
  103. package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
  104. package/dist/cjs/pds-text.cjs.entry.js +37 -0
  105. package/dist/cjs/pds-text.cjs.entry.js.map +1 -0
  106. package/dist/cjs/pds-textarea.cjs.entry.js +10 -8
  107. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  108. package/dist/cjs/pds-tooltip.cjs.entry.js +5 -8
  109. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  110. package/dist/cjs/pine-core.cjs.js +3 -3
  111. package/dist/cjs/pine-core.cjs.js.map +1 -1
  112. package/dist/collection/collection-manifest.json +4 -1
  113. package/dist/collection/components/pds-button/pds-button.js +20 -1
  114. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  115. package/dist/collection/components/pds-button/stories/pds-button.stories.js +8 -1
  116. package/dist/collection/components/pds-checkbox/pds-checkbox.css +9 -1
  117. package/dist/collection/components/pds-checkbox/pds-checkbox.js +4 -3
  118. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  119. package/dist/collection/components/pds-chip/pds-chip.js +26 -26
  120. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  121. package/dist/collection/components/pds-copytext/pds-copytext.js +4 -4
  122. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
  123. package/dist/collection/components/pds-divider/pds-divider.js +2 -2
  124. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -1
  125. package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +1 -1
  126. package/dist/collection/components/pds-image/pds-image.js +13 -7
  127. package/dist/collection/components/pds-image/pds-image.js.map +1 -1
  128. package/dist/collection/components/pds-input/pds-input.css +6 -1
  129. package/dist/collection/components/pds-input/pds-input.js +22 -3
  130. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  131. package/dist/collection/components/pds-input/stories/pds-input.stories.js +10 -0
  132. package/dist/collection/components/pds-link/pds-link.js +12 -9
  133. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  134. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  135. package/dist/collection/components/pds-popover/pds-popover.css +51 -0
  136. package/dist/collection/components/pds-popover/pds-popover.js +216 -0
  137. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -0
  138. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +45 -0
  139. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  140. package/dist/collection/components/pds-radio/pds-radio.css +9 -1
  141. package/dist/collection/components/pds-radio/pds-radio.js +41 -40
  142. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
  143. package/dist/collection/components/pds-row/pds-row.js +1 -1
  144. package/dist/collection/components/pds-select/pds-select.css +126 -0
  145. package/dist/collection/components/pds-select/pds-select.js +360 -0
  146. package/dist/collection/components/pds-select/pds-select.js.map +1 -0
  147. package/dist/collection/components/pds-select/stories/pds-select.stories.js +153 -0
  148. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  149. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  150. package/dist/collection/components/pds-switch/pds-switch.css +10 -6
  151. package/dist/collection/components/pds-switch/pds-switch.js +17 -39
  152. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
  153. package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +2 -15
  154. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  155. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  156. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  157. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  158. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  159. package/dist/collection/components/pds-table/pds-table.js +1 -1
  160. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  161. package/dist/collection/components/pds-tabs/pds-tab/stories/pds-tab.stories.js +19 -0
  162. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  163. package/dist/collection/components/pds-tabs/pds-tabpanel/stories/pds-tabpanel.stories.js +19 -0
  164. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  165. package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +18 -18
  166. package/dist/collection/components/pds-text/pds-text.css +218 -0
  167. package/dist/collection/components/pds-text/pds-text.js +143 -0
  168. package/dist/collection/components/pds-text/pds-text.js.map +1 -0
  169. package/dist/collection/components/pds-text/stories/pds-text.stories.js +111 -0
  170. package/dist/collection/components/pds-textarea/pds-textarea.css +4 -0
  171. package/dist/collection/components/pds-textarea/pds-textarea.js +24 -5
  172. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  173. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +22 -11
  174. package/dist/collection/components/pds-tooltip/pds-tooltip.css +2 -1
  175. package/dist/collection/components/pds-tooltip/pds-tooltip.js +24 -37
  176. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  177. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +15 -15
  178. package/dist/collection/utils/types.js.map +1 -1
  179. package/dist/docs.json +1184 -265
  180. package/dist/esm/{index-786a51ce.js → index-3ca52e8f.js} +4 -3
  181. package/dist/esm/index-3ca52e8f.js.map +1 -0
  182. package/dist/esm/{index-94bbabb0.js → index-b1696fed.js} +14 -7
  183. package/dist/esm/index-b1696fed.js.map +1 -0
  184. package/dist/esm/index.js +1 -1
  185. package/dist/esm/loader.js +3 -3
  186. package/dist/esm/pds-accordion.entry.js +2 -2
  187. package/dist/esm/pds-avatar.entry.js +2 -2
  188. package/dist/esm/pds-box.entry.js +1 -1
  189. package/dist/esm/pds-button.entry.js +5 -3
  190. package/dist/esm/pds-button.entry.js.map +1 -1
  191. package/dist/esm/pds-checkbox.entry.js +7 -6
  192. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  193. package/dist/esm/pds-chip.entry.js +5 -5
  194. package/dist/esm/pds-chip.entry.js.map +1 -1
  195. package/dist/esm/pds-copytext.entry.js +3 -3
  196. package/dist/esm/pds-copytext.entry.js.map +1 -1
  197. package/dist/esm/pds-divider.entry.js +2 -2
  198. package/dist/esm/pds-divider.entry.js.map +1 -1
  199. package/dist/esm/pds-icon.entry.js +1 -1
  200. package/dist/esm/pds-image.entry.js +3 -3
  201. package/dist/esm/pds-image.entry.js.map +1 -1
  202. package/dist/esm/pds-input.entry.js +8 -6
  203. package/dist/esm/pds-input.entry.js.map +1 -1
  204. package/dist/esm/{pds-label-d28da6eb.js → pds-label-62469596.js} +2 -2
  205. package/dist/esm/{pds-label-d28da6eb.js.map → pds-label-62469596.js.map} +1 -1
  206. package/dist/esm/pds-link.entry.js +4 -4
  207. package/dist/esm/pds-link.entry.js.map +1 -1
  208. package/dist/esm/pds-loader.entry.js +2 -2
  209. package/dist/esm/pds-popover.entry.js +68 -0
  210. package/dist/esm/pds-popover.entry.js.map +1 -0
  211. package/dist/esm/pds-progress.entry.js +2 -2
  212. package/dist/esm/pds-radio.entry.js +9 -8
  213. package/dist/esm/pds-radio.entry.js.map +1 -1
  214. package/dist/esm/pds-row.entry.js +2 -2
  215. package/dist/esm/pds-select.entry.js +127 -0
  216. package/dist/esm/pds-select.entry.js.map +1 -0
  217. package/dist/esm/pds-sortable-item.entry.js +3 -3
  218. package/dist/esm/pds-sortable.entry.js +2 -2
  219. package/dist/esm/pds-switch.entry.js +9 -10
  220. package/dist/esm/pds-switch.entry.js.map +1 -1
  221. package/dist/esm/pds-tab.entry.js +4 -4
  222. package/dist/esm/pds-table-body.entry.js +2 -2
  223. package/dist/esm/pds-table-cell.entry.js +3 -3
  224. package/dist/esm/pds-table-head-cell.entry.js +4 -4
  225. package/dist/esm/pds-table-head.entry.js +2 -2
  226. package/dist/esm/pds-table-row.entry.js +2 -2
  227. package/dist/esm/pds-table.entry.js +2 -2
  228. package/dist/esm/pds-tabpanel.entry.js +2 -2
  229. package/dist/esm/pds-tabs.entry.js +2 -2
  230. package/dist/esm/pds-text.entry.js +33 -0
  231. package/dist/esm/pds-text.entry.js.map +1 -0
  232. package/dist/esm/pds-textarea.entry.js +10 -8
  233. package/dist/esm/pds-textarea.entry.js.map +1 -1
  234. package/dist/esm/pds-tooltip.entry.js +5 -8
  235. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  236. package/dist/esm/pine-core.js +4 -4
  237. package/dist/esm/pine-core.js.map +1 -1
  238. package/dist/esm-es5/index-3ca52e8f.js +2 -0
  239. package/dist/esm-es5/index-3ca52e8f.js.map +1 -0
  240. package/dist/esm-es5/index-b1696fed.js +3 -0
  241. package/dist/esm-es5/index-b1696fed.js.map +1 -0
  242. package/dist/esm-es5/index.js +1 -1
  243. package/dist/esm-es5/loader.js +1 -1
  244. package/dist/esm-es5/loader.js.map +1 -1
  245. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  246. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  247. package/dist/esm-es5/pds-box.entry.js +1 -1
  248. package/dist/esm-es5/pds-button.entry.js +1 -1
  249. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  250. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  251. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  252. package/dist/esm-es5/pds-chip.entry.js +1 -1
  253. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  254. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  255. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  256. package/dist/esm-es5/pds-divider.entry.js +1 -1
  257. package/dist/esm-es5/pds-divider.entry.js.map +1 -1
  258. package/dist/esm-es5/pds-icon.entry.js +1 -1
  259. package/dist/esm-es5/pds-image.entry.js +1 -1
  260. package/dist/esm-es5/pds-image.entry.js.map +1 -1
  261. package/dist/esm-es5/pds-input.entry.js +1 -1
  262. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  263. package/dist/esm-es5/{pds-label-d28da6eb.js → pds-label-62469596.js} +2 -2
  264. package/dist/esm-es5/pds-link.entry.js +1 -1
  265. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  266. package/dist/esm-es5/pds-loader.entry.js +1 -1
  267. package/dist/esm-es5/pds-popover.entry.js +2 -0
  268. package/dist/esm-es5/pds-popover.entry.js.map +1 -0
  269. package/dist/esm-es5/pds-progress.entry.js +1 -1
  270. package/dist/esm-es5/pds-radio.entry.js +1 -1
  271. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  272. package/dist/esm-es5/pds-row.entry.js +1 -1
  273. package/dist/esm-es5/pds-select.entry.js +2 -0
  274. package/dist/esm-es5/pds-select.entry.js.map +1 -0
  275. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  276. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  277. package/dist/esm-es5/pds-switch.entry.js +1 -1
  278. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  279. package/dist/esm-es5/pds-tab.entry.js +1 -1
  280. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  281. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  282. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  283. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  284. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  285. package/dist/esm-es5/pds-table.entry.js +1 -1
  286. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  287. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  288. package/dist/esm-es5/pds-text.entry.js +2 -0
  289. package/dist/esm-es5/pds-text.entry.js.map +1 -0
  290. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  291. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  292. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  293. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  294. package/dist/esm-es5/pine-core.js +1 -1
  295. package/dist/esm-es5/pine-core.js.map +1 -1
  296. package/dist/pine-core/index.esm.js +1 -1
  297. package/dist/pine-core/{p-284433e0.entry.js → p-00cccccb.entry.js} +2 -2
  298. package/dist/pine-core/p-06513fe5.entry.js +2 -0
  299. package/dist/pine-core/p-06513fe5.entry.js.map +1 -0
  300. package/dist/pine-core/p-06593922.system.entry.js +2 -0
  301. package/dist/pine-core/p-06593922.system.entry.js.map +1 -0
  302. package/dist/pine-core/{p-a8cb75f0.system.entry.js → p-08c4f190.system.entry.js} +2 -2
  303. package/dist/pine-core/{p-bd5de072.system.entry.js → p-09d83447.system.entry.js} +2 -2
  304. package/dist/pine-core/{p-bd5de072.system.entry.js.map → p-09d83447.system.entry.js.map} +1 -1
  305. package/dist/pine-core/{p-abe6c2d6.entry.js → p-0ac04129.entry.js} +2 -2
  306. package/dist/pine-core/{p-abe6c2d6.entry.js.map → p-0ac04129.entry.js.map} +1 -1
  307. package/dist/pine-core/{p-cd033c2a.entry.js → p-0ff89cf4.entry.js} +2 -2
  308. package/dist/pine-core/{p-cd033c2a.entry.js.map → p-0ff89cf4.entry.js.map} +1 -1
  309. package/dist/pine-core/p-1010d12b.system.entry.js +2 -0
  310. package/dist/pine-core/p-1010d12b.system.entry.js.map +1 -0
  311. package/dist/pine-core/p-110b2e03.entry.js +2 -0
  312. package/dist/pine-core/p-110b2e03.entry.js.map +1 -0
  313. package/dist/pine-core/{p-d8eeadd1.system.entry.js → p-172464c1.system.entry.js} +2 -2
  314. package/dist/pine-core/{p-64c07f01.system.entry.js → p-1a1a76ea.system.entry.js} +2 -2
  315. package/dist/pine-core/{p-e847089d.system.entry.js → p-1df1990d.system.entry.js} +2 -2
  316. package/dist/pine-core/p-1e80f274.entry.js +2 -0
  317. package/dist/pine-core/p-1e80f274.entry.js.map +1 -0
  318. package/dist/pine-core/{p-3558923a.entry.js → p-239891e6.entry.js} +2 -2
  319. package/dist/pine-core/p-34f84589.entry.js +2 -0
  320. package/dist/pine-core/p-34f84589.entry.js.map +1 -0
  321. package/dist/pine-core/{p-1692ed0c.entry.js → p-3acb18ad.entry.js} +2 -2
  322. package/dist/pine-core/{p-57d81378.entry.js → p-3e4225fc.entry.js} +2 -2
  323. package/dist/pine-core/{p-7fb3c253.entry.js → p-3ff2642d.entry.js} +2 -2
  324. package/dist/pine-core/{p-7fb3c253.entry.js.map → p-3ff2642d.entry.js.map} +1 -1
  325. package/dist/pine-core/{p-d9611049.system.entry.js → p-4043cf6e.system.entry.js} +2 -2
  326. package/dist/pine-core/{p-d9611049.system.entry.js.map → p-4043cf6e.system.entry.js.map} +1 -1
  327. package/dist/pine-core/p-45cf2585.system.js +3 -0
  328. package/dist/pine-core/p-45cf2585.system.js.map +1 -0
  329. package/dist/pine-core/{p-03ecf146.entry.js → p-4d22b02c.entry.js} +2 -2
  330. package/dist/pine-core/p-4f9b1945.entry.js +2 -0
  331. package/dist/pine-core/p-4f9b1945.entry.js.map +1 -0
  332. package/dist/pine-core/{p-961f79c5.system.entry.js → p-50918693.system.entry.js} +2 -2
  333. package/dist/pine-core/p-59214c8b.system.entry.js +2 -0
  334. package/dist/pine-core/p-59214c8b.system.entry.js.map +1 -0
  335. package/dist/pine-core/{p-a17dea5e.system.entry.js → p-59327483.system.entry.js} +2 -2
  336. package/dist/pine-core/p-59a43f75.system.entry.js +2 -0
  337. package/dist/pine-core/p-59a43f75.system.entry.js.map +1 -0
  338. package/dist/pine-core/{p-d461bee4.entry.js → p-59fcea0f.entry.js} +2 -2
  339. package/dist/pine-core/p-5c04aee0.system.js +2 -0
  340. package/dist/pine-core/p-5c04aee0.system.js.map +1 -0
  341. package/dist/pine-core/{p-85507ca5.system.entry.js → p-5c942465.system.entry.js} +2 -2
  342. package/dist/pine-core/{p-835c73f4.entry.js → p-624de926.entry.js} +2 -2
  343. package/dist/pine-core/p-65229490.entry.js +2 -0
  344. package/dist/pine-core/{p-ffa8e658.entry.js → p-6e079be2.entry.js} +2 -2
  345. package/dist/pine-core/p-6f8f471b.system.entry.js +2 -0
  346. package/dist/pine-core/p-6f8f471b.system.entry.js.map +1 -0
  347. package/dist/pine-core/{p-58a25131.entry.js → p-760e1c32.entry.js} +2 -2
  348. package/dist/pine-core/{p-58a25131.entry.js.map → p-760e1c32.entry.js.map} +1 -1
  349. package/dist/pine-core/{p-979ab4e2.system.entry.js → p-81bdf676.system.entry.js} +2 -2
  350. package/dist/pine-core/{p-8963f07a.entry.js → p-84a4930d.entry.js} +2 -2
  351. package/dist/pine-core/p-87fe352f.js +3 -0
  352. package/dist/pine-core/p-87fe352f.js.map +1 -0
  353. package/dist/pine-core/{p-6e15f0e1.entry.js → p-88410213.entry.js} +2 -2
  354. package/dist/pine-core/p-88702fa2.entry.js +2 -0
  355. package/dist/pine-core/p-88702fa2.entry.js.map +1 -0
  356. package/dist/pine-core/{p-d41fbbf0.system.entry.js → p-88edcb41.system.entry.js} +2 -2
  357. package/dist/pine-core/{p-469a84a3.system.entry.js → p-8ae84655.system.entry.js} +2 -2
  358. package/dist/pine-core/{p-469a84a3.system.entry.js.map → p-8ae84655.system.entry.js.map} +1 -1
  359. package/dist/pine-core/{p-90707120.entry.js → p-9487df53.entry.js} +2 -2
  360. package/dist/pine-core/{p-c5afbc57.entry.js → p-953e6fde.entry.js} +2 -2
  361. package/dist/pine-core/{p-c5afbc57.entry.js.map → p-953e6fde.entry.js.map} +1 -1
  362. package/dist/pine-core/p-9db668f2.system.entry.js +2 -0
  363. package/dist/pine-core/p-9db668f2.system.entry.js.map +1 -0
  364. package/dist/pine-core/p-a2726d3b.system.entry.js +2 -0
  365. package/dist/pine-core/p-a2726d3b.system.entry.js.map +1 -0
  366. package/dist/pine-core/{p-95c2a6bf.entry.js → p-a51098dd.entry.js} +2 -2
  367. package/dist/pine-core/p-a9038f7f.js +2 -0
  368. package/dist/pine-core/{p-a98f5e91.system.entry.js → p-a9e02a6f.system.entry.js} +2 -2
  369. package/dist/pine-core/{p-a09284c5.entry.js → p-b7890a73.system.entry.js} +2 -2
  370. package/dist/pine-core/p-b7890a73.system.entry.js.map +1 -0
  371. package/dist/pine-core/{p-ca1fa95e.system.entry.js → p-b7edbe43.system.entry.js} +2 -2
  372. package/dist/pine-core/{p-366c4924.system.entry.js → p-b95522e6.system.entry.js} +2 -2
  373. package/dist/pine-core/{p-fe793116.entry.js → p-bbd19258.entry.js} +2 -2
  374. package/dist/pine-core/{p-d2c98df0.system.entry.js → p-c4aec6ce.system.entry.js} +2 -2
  375. package/dist/pine-core/{p-d2c98df0.system.entry.js.map → p-c4aec6ce.system.entry.js.map} +1 -1
  376. package/dist/pine-core/p-cbf2acbd.system.entry.js +2 -0
  377. package/dist/pine-core/p-cbf2acbd.system.entry.js.map +1 -0
  378. package/dist/pine-core/{p-852dce9d.system.entry.js → p-ce91ca6a.system.entry.js} +2 -2
  379. package/dist/pine-core/{p-852dce9d.system.entry.js.map → p-ce91ca6a.system.entry.js.map} +1 -1
  380. package/dist/pine-core/{p-f79b96ee.entry.js → p-ceb66096.entry.js} +3 -3
  381. package/dist/pine-core/{p-8930c3b7.system.entry.js → p-d3365f49.system.entry.js} +3 -3
  382. package/dist/pine-core/p-d37d900e.entry.js +2 -0
  383. package/dist/pine-core/p-d37d900e.entry.js.map +1 -0
  384. package/dist/pine-core/p-d5c90be4.entry.js +2 -0
  385. package/dist/pine-core/p-d5c90be4.entry.js.map +1 -0
  386. package/dist/pine-core/{p-7c4f8c64.entry.js → p-d6d8a21a.entry.js} +2 -2
  387. package/dist/pine-core/p-db622f8f.system.js +2 -0
  388. package/dist/pine-core/p-dc4a6d88.js +2 -0
  389. package/dist/pine-core/p-dc4a6d88.js.map +1 -0
  390. package/dist/pine-core/{p-bd593d1c.entry.js → p-e2a673e8.entry.js} +2 -2
  391. package/dist/pine-core/{p-d6873321.system.js → p-e3fab4be.system.js} +2 -2
  392. package/dist/pine-core/{p-1dccfe1b.system.entry.js → p-e64594ae.system.entry.js} +2 -2
  393. package/dist/pine-core/p-e90b2c75.system.js +2 -0
  394. package/dist/pine-core/p-e90b2c75.system.js.map +1 -0
  395. package/dist/pine-core/p-e936e948.entry.js +2 -0
  396. package/dist/pine-core/p-e936e948.entry.js.map +1 -0
  397. package/dist/pine-core/{p-9b0e5234.entry.js → p-ebdaf3ad.entry.js} +2 -2
  398. package/dist/pine-core/{p-4b856a95.system.entry.js → p-ece8530d.system.entry.js} +2 -2
  399. package/dist/pine-core/{p-0c2553c6.system.entry.js → p-ee21fa25.system.entry.js} +2 -2
  400. package/dist/pine-core/p-efbe2dc5.system.entry.js +2 -0
  401. package/dist/pine-core/p-efbe2dc5.system.entry.js.map +1 -0
  402. package/dist/pine-core/{p-4b06aed0.system.entry.js → p-f16ef73c.system.entry.js} +2 -2
  403. package/dist/pine-core/{p-2a4952ea.system.entry.js → p-f9719887.system.entry.js} +2 -2
  404. package/dist/pine-core/p-ff20b191.entry.js +2 -0
  405. package/dist/pine-core/p-ff20b191.entry.js.map +1 -0
  406. package/dist/pine-core/pine-core.css +1 -1
  407. package/dist/pine-core/pine-core.esm.js +1 -1
  408. package/dist/pine-core/pine-core.esm.js.map +1 -1
  409. package/dist/pine-core/pine-core.js +1 -1
  410. package/dist/pine-core/svg/bookmark.svg +1 -0
  411. package/dist/pine-core/svg/expand.svg +1 -1
  412. package/dist/pine-core/svg/file-add.svg +1 -1
  413. package/dist/pine-core/svg/layout-grid-02.svg +1 -0
  414. package/dist/pine-core/svg/user-star-filled.svg +1 -1
  415. package/dist/pine-core/svg/user-star.svg +1 -1
  416. package/dist/types/components/pds-button/pds-button.d.ts +2 -0
  417. package/dist/types/components/pds-chip/pds-chip.d.ts +8 -8
  418. package/dist/types/components/pds-copytext/pds-copytext.d.ts +3 -3
  419. package/dist/types/components/pds-divider/pds-divider.d.ts +1 -1
  420. package/dist/types/components/pds-image/pds-image.d.ts +7 -3
  421. package/dist/types/components/pds-input/pds-input.d.ts +4 -0
  422. package/dist/types/components/pds-link/pds-link.d.ts +7 -11
  423. package/dist/types/components/pds-popover/pds-popover.d.ts +45 -0
  424. package/dist/types/components/pds-radio/pds-radio.d.ts +11 -11
  425. package/dist/types/components/pds-select/pds-select.d.ts +91 -0
  426. package/dist/types/components/pds-switch/pds-switch.d.ts +11 -19
  427. package/dist/types/components/pds-text/pds-text.d.ts +27 -0
  428. package/dist/types/components/pds-textarea/pds-textarea.d.ts +4 -0
  429. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +5 -9
  430. package/dist/types/components.d.ts +419 -81
  431. package/dist/types/stencil-public-runtime.d.ts +2 -0
  432. package/dist/types/utils/types.d.ts +1 -1
  433. package/hydrate/index.js +350 -79
  434. package/hydrate/index.mjs +350 -79
  435. package/package.json +13 -10
  436. package/dist/cjs/index-2240f8f4.js.map +0 -1
  437. package/dist/cjs/index-d424fb6f.js.map +0 -1
  438. package/dist/esm/index-786a51ce.js.map +0 -1
  439. package/dist/esm/index-94bbabb0.js.map +0 -1
  440. package/dist/esm-es5/index-786a51ce.js +0 -2
  441. package/dist/esm-es5/index-786a51ce.js.map +0 -1
  442. package/dist/esm-es5/index-94bbabb0.js +0 -3
  443. package/dist/esm-es5/index-94bbabb0.js.map +0 -1
  444. package/dist/pine-core/p-0069affa.entry.js +0 -2
  445. package/dist/pine-core/p-0069affa.entry.js.map +0 -1
  446. package/dist/pine-core/p-14d3cdaf.system.js +0 -2
  447. package/dist/pine-core/p-14d3cdaf.system.js.map +0 -1
  448. package/dist/pine-core/p-244e264d.system.js +0 -2
  449. package/dist/pine-core/p-244e264d.system.js.map +0 -1
  450. package/dist/pine-core/p-2665d555.js +0 -2
  451. package/dist/pine-core/p-2665d555.js.map +0 -1
  452. package/dist/pine-core/p-37458cc7.entry.js +0 -2
  453. package/dist/pine-core/p-37458cc7.entry.js.map +0 -1
  454. package/dist/pine-core/p-3886e15a.entry.js +0 -2
  455. package/dist/pine-core/p-3886e15a.entry.js.map +0 -1
  456. package/dist/pine-core/p-496454a3.system.js +0 -2
  457. package/dist/pine-core/p-4fcf94ee.system.entry.js +0 -2
  458. package/dist/pine-core/p-4fcf94ee.system.entry.js.map +0 -1
  459. package/dist/pine-core/p-59cc888d.entry.js +0 -2
  460. package/dist/pine-core/p-72ee760e.entry.js +0 -2
  461. package/dist/pine-core/p-72ee760e.entry.js.map +0 -1
  462. package/dist/pine-core/p-77c5fe7b.entry.js +0 -2
  463. package/dist/pine-core/p-77c5fe7b.entry.js.map +0 -1
  464. package/dist/pine-core/p-7841bd18.js +0 -3
  465. package/dist/pine-core/p-7841bd18.js.map +0 -1
  466. package/dist/pine-core/p-7c79ff32.system.entry.js +0 -2
  467. package/dist/pine-core/p-7c79ff32.system.entry.js.map +0 -1
  468. package/dist/pine-core/p-91cba446.system.entry.js +0 -2
  469. package/dist/pine-core/p-91cba446.system.entry.js.map +0 -1
  470. package/dist/pine-core/p-a09284c5.entry.js.map +0 -1
  471. package/dist/pine-core/p-b54e35d2.system.entry.js +0 -2
  472. package/dist/pine-core/p-b54e35d2.system.entry.js.map +0 -1
  473. package/dist/pine-core/p-bb88538f.system.entry.js +0 -2
  474. package/dist/pine-core/p-bb88538f.system.entry.js.map +0 -1
  475. package/dist/pine-core/p-bc1ecf2f.js +0 -2
  476. package/dist/pine-core/p-c6bee7a0.system.js +0 -3
  477. package/dist/pine-core/p-c6bee7a0.system.js.map +0 -1
  478. package/dist/pine-core/p-d3eeb6f0.system.entry.js +0 -2
  479. package/dist/pine-core/p-d3eeb6f0.system.entry.js.map +0 -1
  480. package/dist/pine-core/p-dbc5775f.entry.js +0 -2
  481. package/dist/pine-core/p-dbc5775f.entry.js.map +0 -1
  482. package/dist/pine-core/p-ea27b026.system.entry.js +0 -2
  483. package/dist/pine-core/p-ea27b026.system.entry.js.map +0 -1
  484. /package/dist/esm-es5/{pds-label-d28da6eb.js.map → pds-label-62469596.js.map} +0 -0
  485. /package/dist/pine-core/{p-284433e0.entry.js.map → p-00cccccb.entry.js.map} +0 -0
  486. /package/dist/pine-core/{p-a8cb75f0.system.entry.js.map → p-08c4f190.system.entry.js.map} +0 -0
  487. /package/dist/pine-core/{p-d8eeadd1.system.entry.js.map → p-172464c1.system.entry.js.map} +0 -0
  488. /package/dist/pine-core/{p-64c07f01.system.entry.js.map → p-1a1a76ea.system.entry.js.map} +0 -0
  489. /package/dist/pine-core/{p-e847089d.system.entry.js.map → p-1df1990d.system.entry.js.map} +0 -0
  490. /package/dist/pine-core/{p-3558923a.entry.js.map → p-239891e6.entry.js.map} +0 -0
  491. /package/dist/pine-core/{p-1692ed0c.entry.js.map → p-3acb18ad.entry.js.map} +0 -0
  492. /package/dist/pine-core/{p-57d81378.entry.js.map → p-3e4225fc.entry.js.map} +0 -0
  493. /package/dist/pine-core/{p-03ecf146.entry.js.map → p-4d22b02c.entry.js.map} +0 -0
  494. /package/dist/pine-core/{p-961f79c5.system.entry.js.map → p-50918693.system.entry.js.map} +0 -0
  495. /package/dist/pine-core/{p-a17dea5e.system.entry.js.map → p-59327483.system.entry.js.map} +0 -0
  496. /package/dist/pine-core/{p-d461bee4.entry.js.map → p-59fcea0f.entry.js.map} +0 -0
  497. /package/dist/pine-core/{p-85507ca5.system.entry.js.map → p-5c942465.system.entry.js.map} +0 -0
  498. /package/dist/pine-core/{p-835c73f4.entry.js.map → p-624de926.entry.js.map} +0 -0
  499. /package/dist/pine-core/{p-59cc888d.entry.js.map → p-65229490.entry.js.map} +0 -0
  500. /package/dist/pine-core/{p-ffa8e658.entry.js.map → p-6e079be2.entry.js.map} +0 -0
  501. /package/dist/pine-core/{p-979ab4e2.system.entry.js.map → p-81bdf676.system.entry.js.map} +0 -0
  502. /package/dist/pine-core/{p-8963f07a.entry.js.map → p-84a4930d.entry.js.map} +0 -0
  503. /package/dist/pine-core/{p-6e15f0e1.entry.js.map → p-88410213.entry.js.map} +0 -0
  504. /package/dist/pine-core/{p-d41fbbf0.system.entry.js.map → p-88edcb41.system.entry.js.map} +0 -0
  505. /package/dist/pine-core/{p-90707120.entry.js.map → p-9487df53.entry.js.map} +0 -0
  506. /package/dist/pine-core/{p-95c2a6bf.entry.js.map → p-a51098dd.entry.js.map} +0 -0
  507. /package/dist/pine-core/{p-bc1ecf2f.js.map → p-a9038f7f.js.map} +0 -0
  508. /package/dist/pine-core/{p-a98f5e91.system.entry.js.map → p-a9e02a6f.system.entry.js.map} +0 -0
  509. /package/dist/pine-core/{p-ca1fa95e.system.entry.js.map → p-b7edbe43.system.entry.js.map} +0 -0
  510. /package/dist/pine-core/{p-366c4924.system.entry.js.map → p-b95522e6.system.entry.js.map} +0 -0
  511. /package/dist/pine-core/{p-fe793116.entry.js.map → p-bbd19258.entry.js.map} +0 -0
  512. /package/dist/pine-core/{p-f79b96ee.entry.js.map → p-ceb66096.entry.js.map} +0 -0
  513. /package/dist/pine-core/{p-8930c3b7.system.entry.js.map → p-d3365f49.system.entry.js.map} +0 -0
  514. /package/dist/pine-core/{p-7c4f8c64.entry.js.map → p-d6d8a21a.entry.js.map} +0 -0
  515. /package/dist/pine-core/{p-496454a3.system.js.map → p-db622f8f.system.js.map} +0 -0
  516. /package/dist/pine-core/{p-bd593d1c.entry.js.map → p-e2a673e8.entry.js.map} +0 -0
  517. /package/dist/pine-core/{p-d6873321.system.js.map → p-e3fab4be.system.js.map} +0 -0
  518. /package/dist/pine-core/{p-1dccfe1b.system.entry.js.map → p-e64594ae.system.entry.js.map} +0 -0
  519. /package/dist/pine-core/{p-9b0e5234.entry.js.map → p-ebdaf3ad.entry.js.map} +0 -0
  520. /package/dist/pine-core/{p-4b856a95.system.entry.js.map → p-ece8530d.system.entry.js.map} +0 -0
  521. /package/dist/pine-core/{p-0c2553c6.system.entry.js.map → p-ee21fa25.system.entry.js.map} +0 -0
  522. /package/dist/pine-core/{p-4b06aed0.system.entry.js.map → p-f16ef73c.system.entry.js.map} +0 -0
  523. /package/dist/pine-core/{p-2a4952ea.system.entry.js.map → p-f9719887.system.entry.js.map} +0 -0
@@ -0,0 +1,153 @@
1
+ import { html } from 'lit';
2
+ import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
3
+ import { withActions } from '@storybook/addon-actions/decorator';
4
+
5
+ export default {
6
+ args: {
7
+ autocomplete: null,
8
+ disabled: false,
9
+ errorMessage: null,
10
+ helperMessage: null,
11
+ invalid: false,
12
+ multiple: false,
13
+ value: null,
14
+ },
15
+ argTypes: extractArgTypes('pds-select'),
16
+ component: 'pds-select',
17
+ decorators: [withActions],
18
+ parameters: {
19
+ actions: {
20
+ handles: ['onchange', 'pdsSelectChange'],
21
+ },
22
+ },
23
+ title: 'components/Select',
24
+ };
25
+
26
+ const options = [
27
+ { value: 'paul', label: 'Paul McCartney' },
28
+ { value: 'john', label: 'John Lennon' },
29
+ { value: 'george', label: 'George Harrison' },
30
+ { value: 'ringo', label: 'Ringo Starr' },
31
+ ];
32
+
33
+ const optgroupOptions = [
34
+ {
35
+ label: 'Correct answers',
36
+ options: [
37
+ { value: 'paul', label: 'Paul McCartney' },
38
+ { value: 'john', label: 'John Lennon' },
39
+ { value: 'george', label: 'George Harrison' },
40
+ ],
41
+ },
42
+ {
43
+ label: 'Incorrect answers',
44
+ options: [{ value: 'ringo', label: 'Ringo Starr' }],
45
+ },
46
+ ];
47
+
48
+ const BaseTemplate = (args) =>
49
+ html`<pds-select
50
+ autocomplete="${args.autocomplete}"
51
+ component-id="${args.componentId}"
52
+ disabled="${args.disabled}"
53
+ error-message="${args.errorMessage}"
54
+ helper-message="${args.helperMessage}"
55
+ invalid="${args.invalid}"
56
+ label="${args.label}"
57
+ multiple="${args.multiple}"
58
+ name="${args.name}"
59
+ required="${args.required}"
60
+ type="${args.type}"
61
+ value="${args.value}"
62
+ >
63
+ ${options.map((option) => html`<option value="${option.value}">${option.label}</option>`)}
64
+ </pds-select>`;
65
+
66
+ const OptgroupTemplate = (args) =>
67
+ html`<pds-select
68
+ autocomplete="${args.autocomplete}"
69
+ component-id="${args.componentId}"
70
+ disabled="${args.disabled}"
71
+ error-message="${args.errorMessage}"
72
+ helper-message="${args.helperMessage}"
73
+ invalid="${args.invalid}"
74
+ label="${args.label}"
75
+ multiple="${args.multiple}"
76
+ name="${args.name}"
77
+ required="${args.required}"
78
+ type="${args.type}"
79
+ value="${args.value}"
80
+ >
81
+ ${optgroupOptions.map(
82
+ (group) => html`<optgroup label="${group.label}">${group.options.map((option) => html`<option value="${option.value}">${option.label}</option>`)}</optgroup>`,
83
+ )}
84
+ </pds-select>`;
85
+
86
+ export const Default = BaseTemplate.bind({});
87
+ Default.args = {
88
+ componentId: 'pds-select-default-example',
89
+ disabled: false,
90
+ label: 'Select your favorite Beatle',
91
+ name: 'beatles',
92
+ required: true,
93
+ value: 'paul',
94
+ };
95
+
96
+ export const Disabled = BaseTemplate.bind({});
97
+ Disabled.args = {
98
+ componentId: 'pds-select-disabled-example',
99
+ disabled: true,
100
+ label: 'Select your favorite Beatle',
101
+ name: 'beatles',
102
+ value: 'george',
103
+ };
104
+
105
+ export const withMessage = BaseTemplate.bind({});
106
+ withMessage.args = {
107
+ componentId: 'pds-select-message-example',
108
+ disabled: false,
109
+ helperMessage: "Please don't pick Ringo",
110
+ label: 'Select your favorite Beatle',
111
+ name: 'beatles',
112
+ value: 'john',
113
+ };
114
+
115
+ export const Invalid = BaseTemplate.bind({});
116
+ Invalid.args = {
117
+ componentId: 'pds-select-invalid-example',
118
+ disabled: false,
119
+ errorMessage: 'Its not Ringo',
120
+ invalid: true,
121
+ label: 'Select your favorite Beatle',
122
+ name: 'beatles',
123
+ value: 'ringo',
124
+ };
125
+
126
+ export const Autocomplete = BaseTemplate.bind({});
127
+ Autocomplete.args = {
128
+ componentId: 'pds-select-autocomplete-example',
129
+ disabled: false,
130
+ autocomplete: 'on',
131
+ label: 'Select your favorite Beatle',
132
+ name: 'beatles',
133
+ value: 'paul',
134
+ };
135
+
136
+ export const Multiple = BaseTemplate.bind({});
137
+ Multiple.args = {
138
+ componentId: 'pds-select-multiple-example',
139
+ disabled: false,
140
+ helperMessage: "Use 'Command' on your keyboard to select multiple options",
141
+ label: 'Select your favorite Beatle',
142
+ multiple: true,
143
+ name: 'beatles',
144
+ };
145
+
146
+ export const WithOptgroup = OptgroupTemplate.bind({});
147
+ WithOptgroup.args = {
148
+ componentId: 'pds-select-optgroup-example',
149
+ disabled: false,
150
+ label: 'Select your favorite Beatle',
151
+ name: 'beatles',
152
+ value: 'george',
153
+ };
@@ -18,7 +18,7 @@ export class PdsSortableItem {
18
18
  }
19
19
  }
20
20
  render() {
21
- return (h(Host, { key: '60214e183314736338f9b38cb93a9c5989e16cdf', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (h("div", { key: '7cc252c99598f384a87518c101d0772a4ce344e4', class: "pds-sortable-item__handle" }, h("pds-icon", { key: 'e2b219927cf717fa53112066ba3fe0ac12688edd', icon: handleIcon }))), h("slot", { key: 'e259bfbf7e8c848567d07639e62adfe5781f29b8' }), this.enableActions && (h("div", { key: 'e83d28d55b6fee971575433a3e3f8b1d5b7e52fe', class: "pds-sortable-item__actions" }, h("slot", { key: '7ac52a8109e49cfff96cead45a3b318646c7f064', name: "sortable-item-actions" })))));
21
+ return (h(Host, { key: '53229fa4308319c59c520bdf84291fb738d6f7c2', class: "pds-sortable-item", id: this.componentId }, this.showHandle && (h("div", { key: '28a4a4fe6a946880e7501fd2a0697152f0665f4c', class: "pds-sortable-item__handle" }, h("pds-icon", { key: 'e45540e3787977b0861418455f6a0689cfcec887', icon: handleIcon }))), h("slot", { key: 'bca5cbb3c4f5b4f1732030428660f5ae976cced0' }), this.enableActions && (h("div", { key: '2928a942128e4bbad4c869f42b59d10501af4419', class: "pds-sortable-item__actions" }, h("slot", { key: 'c2a4e2a47300f1c8f06a23ba134c436a591442bf', name: "sortable-item-actions" })))));
22
22
  }
23
23
  static get is() { return "pds-sortable-item"; }
24
24
  static get encapsulation() { return "scoped"; }
@@ -35,7 +35,7 @@ export class PdsSortable {
35
35
  Sortable.create(this.el, sortableOptions);
36
36
  }
37
37
  render() {
38
- return (h(Host, { key: 'bd922d1fff144b11b407aeb0e389c05fcfa22504', class: this.classNames(), id: this.componentId }, h("slot", { key: 'f25cd77d7735d971903ba9cdeb98f652d45dae41' })));
38
+ return (h(Host, { key: 'e215bbd858767d4c5e5e85bd12352e6a50b7d594', class: this.classNames(), id: this.componentId }, h("slot", { key: 'bd4a58c7ceb78432c77615987e16e979d7240eb4' })));
39
39
  }
40
40
  static get is() { return "pds-sortable"; }
41
41
  static get encapsulation() { return "scoped"; }
@@ -23,7 +23,7 @@
23
23
  --sizing-input-toggle-size: calc(var(--dimension-input-height) - (var(--spacing-input-toggle-offset) * 2));
24
24
  --spacing-label-gap-size: var(--pine-spacing-150);
25
25
  --spacing-input-toggle-offset: calc(var(--pine-spacing-050) / 2);
26
- --spacing-message-block: var(--pine-spacing-050);
26
+ --spacing-message-block: calc(var(--pine-spacing-150) / 2);
27
27
  --spacing-message-inline: calc(var(--dimension-input-width) + var(--spacing-label-gap-size));
28
28
  --number-transition-timing: 0.15s ease-out;
29
29
  align-items: flex-start;
@@ -45,6 +45,9 @@
45
45
  :host(.pds-switch--error) input:focus-visible:not(:disabled):not(:checked) {
46
46
  box-shadow: var(--box-shadow-focus-error);
47
47
  }
48
+ :host(.pds-switch--error) label {
49
+ color: var(--color-text-error);
50
+ }
48
51
 
49
52
  input {
50
53
  appearance: none;
@@ -90,16 +93,17 @@ label {
90
93
  .pds-switch__message {
91
94
  color: var(--color-message-text);
92
95
  flex: 1 0 100%;
93
- font-size: var(--pine-font-size-body-sm);
94
- line-height: var(--pine-line-height-sm);
95
- margin-inline-start: var(--spacing-message-inline);
96
- }
97
- .pds-switch__message + .pds-switch__message {
96
+ font-size: var(--pine-font-size-body-md);
98
97
  margin-block-start: var(--spacing-message-block);
98
+ margin-inline-start: var(--spacing-message-inline);
99
99
  }
100
100
 
101
101
  .pds-switch__message--error {
102
+ align-items: center;
102
103
  color: inherit;
104
+ display: flex;
105
+ font-size: var(--pine-font-size-085);
106
+ gap: var(--pine-spacing-050);
103
107
  }
104
108
 
105
109
  input:disabled {
@@ -1,16 +1,16 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { assignDescription, messageId } from "../../utils/form";
3
3
  import { PdsLabel } from "../_internal/pds-label/pds-label";
4
+ import { danger } from "@pine-ds/icons/icons";
4
5
  export class PdsSwitch {
5
6
  constructor() {
6
7
  this.onSwitchUpdate = (e) => {
7
8
  if (this.disabled)
8
9
  return;
10
+ const input = e.target;
11
+ this.checked = input.checked;
9
12
  this.pdsSwitchChange.emit(e);
10
13
  };
11
- /**
12
- * Generate switch classes
13
- */
14
14
  this.switchClassNames = () => {
15
15
  let switchClasses = `pds-switch`;
16
16
  if (this.invalid === true) {
@@ -30,13 +30,12 @@ export class PdsSwitch {
30
30
  this.label = undefined;
31
31
  this.name = undefined;
32
32
  this.required = false;
33
- this.type = 'checkbox';
34
33
  this.value = undefined;
35
34
  }
36
35
  render() {
37
- return (h(Host, { key: 'cfe44d745504683403b213ab29408db7f8c2b4d7', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("input", { key: '51373deeef6851a469b2bdb1f2c8859a8b97e93a', "aria-describedby": assignDescription(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: this.type, value: this.value }), h(PdsLabel, { key: '0622674c77dfb3bd8e41baea47872d56e2510b9d', classNames: "pds-switch__label", htmlFor: this.componentId, text: this.label }), this.helperMessage &&
38
- h("div", { key: '9097140a515b36a71fa173c4c74c484bb4ad8e31', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
39
- h("div", { key: 'a21ff88ba0418517da90a932b84d44167e6ba295', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
36
+ return (h(Host, { key: '752bc5c5fd8d2cac945d6029656954d3f375ec71', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("input", { key: '04472c44cf63aa671326c774c9fbf6890db69ddb', "aria-describedby": assignDescription(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 }), h(PdsLabel, { key: '8895f0bd3a5eb345a91a9379ecb30cf47637ffe4', classNames: "pds-switch__label", htmlFor: this.componentId, text: this.label }), this.helperMessage &&
37
+ h("div", { key: 'bf29e672c126446faeca4bce2946294e816718f4', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
38
+ h("div", { key: '7428daf37dd2c60e6c0416a72a4f56cbb956dd9a', class: `pds-switch__message pds-switch__message--error`, id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '9efde77b0156883dd9514c9b2fc6f1234d04a645', icon: danger, size: "small" }), this.errorMessage)));
40
39
  }
41
40
  static get is() { return "pds-switch"; }
42
41
  static get encapsulation() { return "shadow"; }
@@ -71,7 +70,7 @@ export class PdsSwitch {
71
70
  },
72
71
  "checked": {
73
72
  "type": "boolean",
74
- "mutable": false,
73
+ "mutable": true,
75
74
  "complexType": {
76
75
  "original": "boolean",
77
76
  "resolved": "boolean",
@@ -81,7 +80,7 @@ export class PdsSwitch {
81
80
  "optional": false,
82
81
  "docs": {
83
82
  "tags": [],
84
- "text": "Determines the input 'checked' state"
83
+ "text": "Determines the input 'checked' state."
85
84
  },
86
85
  "attribute": "checked",
87
86
  "reflect": false,
@@ -99,7 +98,7 @@ export class PdsSwitch {
99
98
  "optional": true,
100
99
  "docs": {
101
100
  "tags": [],
102
- "text": "Determines the input 'disabled' state, preventing user interaction"
101
+ "text": "Determines the input 'disabled' state, preventing user interaction."
103
102
  },
104
103
  "attribute": "disabled",
105
104
  "reflect": false,
@@ -117,7 +116,7 @@ export class PdsSwitch {
117
116
  "optional": true,
118
117
  "docs": {
119
118
  "tags": [],
120
- "text": "Displays message text describing an invalid state"
119
+ "text": "Displays message text describing an invalid state."
121
120
  },
122
121
  "attribute": "error-message",
123
122
  "reflect": false
@@ -134,7 +133,7 @@ export class PdsSwitch {
134
133
  "optional": false,
135
134
  "docs": {
136
135
  "tags": [],
137
- "text": "Displays help text for additional description of an input"
136
+ "text": "Displays help text for additional description of an input."
138
137
  },
139
138
  "attribute": "helper-message",
140
139
  "reflect": false
@@ -151,7 +150,7 @@ export class PdsSwitch {
151
150
  "optional": true,
152
151
  "docs": {
153
152
  "tags": [],
154
- "text": "Determines the input 'invalid' state, signifying an error is present"
153
+ "text": "Determines the input 'invalid' state, signifying an error is present."
155
154
  },
156
155
  "attribute": "invalid",
157
156
  "reflect": false,
@@ -169,7 +168,7 @@ export class PdsSwitch {
169
168
  "optional": false,
170
169
  "docs": {
171
170
  "tags": [],
172
- "text": "Displays text to describe the input"
171
+ "text": "Displays text to describe the input."
173
172
  },
174
173
  "attribute": "label",
175
174
  "reflect": false
@@ -186,7 +185,7 @@ export class PdsSwitch {
186
185
  "optional": false,
187
186
  "docs": {
188
187
  "tags": [],
189
- "text": "Identifies form data and unifies a group of radio inputs for toggling a single property/value"
188
+ "text": "Identifies form data and unifies a group of radio inputs for toggling a single property/value."
190
189
  },
191
190
  "attribute": "name",
192
191
  "reflect": false
@@ -203,33 +202,12 @@ export class PdsSwitch {
203
202
  "optional": true,
204
203
  "docs": {
205
204
  "tags": [],
206
- "text": "Determines the 'required' state of the input"
205
+ "text": "Determines the 'required' state of the input."
207
206
  },
208
207
  "attribute": "required",
209
208
  "reflect": false,
210
209
  "defaultValue": "false"
211
210
  },
212
- "type": {
213
- "type": "string",
214
- "mutable": false,
215
- "complexType": {
216
- "original": "'checkbox' | 'radio'",
217
- "resolved": "\"checkbox\" | \"radio\"",
218
- "references": {}
219
- },
220
- "required": false,
221
- "optional": false,
222
- "docs": {
223
- "tags": [{
224
- "name": "defaultValue",
225
- "text": "'checkbox'"
226
- }],
227
- "text": "Specifies the underlying input element type"
228
- },
229
- "attribute": "type",
230
- "reflect": false,
231
- "defaultValue": "'checkbox'"
232
- },
233
211
  "value": {
234
212
  "type": "string",
235
213
  "mutable": false,
@@ -242,7 +220,7 @@ export class PdsSwitch {
242
220
  "optional": false,
243
221
  "docs": {
244
222
  "tags": [],
245
- "text": "Provides input with a string submitted in form data, and can be used to distinguish radio inputs"
223
+ "text": "Provides input with a string submitted in form data."
246
224
  },
247
225
  "attribute": "value",
248
226
  "reflect": false
@@ -258,7 +236,7 @@ export class PdsSwitch {
258
236
  "composed": true,
259
237
  "docs": {
260
238
  "tags": [],
261
- "text": "Emits an event on input change"
239
+ "text": "Emits an event on input change."
262
240
  },
263
241
  "complexType": {
264
242
  "original": "InputEvent",
@@ -1 +1 @@
1
- {"version":3,"file":"pds-switch.js","sourceRoot":"","sources":["../../../src/components/pds-switch/pds-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAO5D,MAAM,OAAO,SAAS;;QAgEZ,mBAAc,GAAG,CAAC,CAAQ,EAAE,EAAE;YACpC,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAC1B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAe,CAAC,CAAC;QAC7C,CAAC,CAAC;QAEF;;WAEG;QACK,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,aAAa,GAAG,YAAY,CAAC;YAEjC,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;gBAC1B,aAAa,IAAI,oBAAoB,CAAC;YACxC,CAAC;YACD,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;gBACrC,aAAa,IAAI,sBAAsB,CAAC;YAC1C,CAAC;YACD,OAAO,aAAa,CAAC;QACvB,CAAC,CAAC;;uBAvEgB,KAAK;wBAKH,KAAK;;;uBAeN,KAAK;;;wBAeJ,KAAK;oBAMY,UAAU;;;IAgC/C,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,mBAAiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;YAChF,kFACoB,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,kBACzE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC/C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAC,mBAAmB,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAC9C,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB;YACF,EAAC,QAAQ,qDAAC,UAAU,EAAC,mBAAmB,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI;YACvF,IAAI,CAAC,aAAa;gBACjB,4DACE,KAAK,EAAE,qBAAqB,EAC5B,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf;YAEP,IAAI,CAAC,YAAY;gBAChB,4DACE,KAAK,EAAE,gDAAgD,EACvD,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW,IAEpB,IAAI,CAAC,YAAY,CACd,CAEH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Element, Event, EventEmitter, Host, h, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-switch',\n styleUrls: ['../../global/styles/base.scss', '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() 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 * Specifies the underlying input element type\n * @defaultValue 'checkbox'\n */\n @Prop() type: 'checkbox' | 'radio' = 'checkbox';\n\n /**\n * Provides input with a string submitted in form data, and can be used to distinguish radio inputs\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 this.pdsSwitchChange.emit(e as InputEvent);\n };\n\n /**\n * Generate switch classes\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={this.type}\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 {this.errorMessage}\n </div>\n }\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-switch.js","sourceRoot":"","sources":["../../../src/components/pds-switch/pds-switch.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,IAAI,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AACvF,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,MAAM,OAAO,SAAS;;QA0DZ,mBAAc,GAAG,CAAC,CAAQ,EAAE,EAAE;YACpC,IAAI,IAAI,CAAC,QAAQ;gBAAE,OAAO;YAE1B,MAAM,KAAK,GAAG,CAAC,CAAC,MAA0B,CAAC;YAC3C,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC;YAC7B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAe,CAAC,CAAC;QAC7C,CAAC,CAAC;QAEM,qBAAgB,GAAG,GAAG,EAAE;YAC9B,IAAI,aAAa,GAAG,YAAY,CAAC;YAEjC,IAAI,IAAI,CAAC,OAAO,KAAK,IAAI,EAAE,CAAC;gBAC1B,aAAa,IAAI,oBAAoB,CAAC;YACxC,CAAC;YACD,IAAI,IAAI,CAAC,aAAa,KAAK,SAAS,EAAE,CAAC;gBACrC,aAAa,IAAI,sBAAsB,CAAC;YAC1C,CAAC;YACD,OAAO,aAAa,CAAC;QACvB,CAAC,CAAC;;uBAjEiC,KAAK;wBAKpB,KAAK;;;uBAeN,KAAK;;;wBAeJ,KAAK;;;IAgCzB,MAAM;QACJ,OAAO,CACL,EAAC,IAAI,qDAAC,KAAK,EAAE,IAAI,CAAC,gBAAgB,EAAE,mBAAiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI;YAChF,kFACoB,iBAAiB,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,aAAa,CAAC,kBACzE,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAC/C,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAC,mBAAmB,EACzB,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAC9C,QAAQ,EAAE,IAAI,CAAC,cAAc,EAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,EACvB,IAAI,EAAC,UAAU,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB;YACF,EAAC,QAAQ,qDAAC,UAAU,EAAC,mBAAmB,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,EAAE,IAAI,CAAC,KAAK,GAAI;YACvF,IAAI,CAAC,aAAa;gBACjB,4DACE,KAAK,EAAE,qBAAqB,EAC5B,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACf;YAEP,IAAI,CAAC,YAAY;gBAChB,4DACE,KAAK,EAAE,gDAAgD,EACvD,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW;oBAErB,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,OAAO,GAAG;oBACtC,IAAI,CAAC,YAAY,CACd,CAEH,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, 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: ['../../global/styles/base.scss', '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"]}
@@ -47,19 +47,6 @@ Default.args = {
47
47
  type: 'checkbox',
48
48
  };
49
49
 
50
- export const Radio = BaseTemplate.bind({});
51
-
52
- Radio.args = {
53
- checked: false,
54
- disabled: false,
55
- componentId: 'pds-switch-radio-example',
56
- invalid: false,
57
- label: 'radio switch',
58
- name: 'pds-switch-radio',
59
- required: false,
60
- type: 'radio',
61
- };
62
-
63
50
  export const Disabled = BaseTemplate.bind({});
64
51
 
65
52
  Disabled.args = {
@@ -73,9 +60,9 @@ Disabled.args = {
73
60
  type: 'checkbox',
74
61
  };
75
62
 
76
- export const HelperMessage = BaseTemplate.bind({});
63
+ export const WithMessage = BaseTemplate.bind({});
77
64
 
78
- HelperMessage.args = {
65
+ WithMessage.args = {
79
66
  checked: true,
80
67
  disabled: false,
81
68
  componentId: 'pds-switch-helper-example',
@@ -1,7 +1,7 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  export class PdsTableBody {
3
3
  render() {
4
- return (h(Host, { key: 'd47c7a779b96ea7ac9d7cf3b4cdf0973e7ee100c', role: "rowgroup" }, h("slot", { key: '30136cb5047fea4bb9c205f50071d09cb2a83857' })));
4
+ return (h(Host, { key: '2e51c5074e6dca980f24db2f91c66260da53dc57', role: "rowgroup" }, h("slot", { key: 'cec8f94525798f338ef13d8788c862fb6fd699a6' })));
5
5
  }
6
6
  static get is() { return "pds-table-body"; }
7
7
  static get encapsulation() { return "shadow"; }
@@ -34,11 +34,11 @@ export class PdsTableCell {
34
34
  return classNames.join(' ');
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '28e14af2a71566974799bd9894be69257ad0c819', class: this.classNames(), role: "gridcell", style: this.tableRef &&
37
+ return (h(Host, { key: '6481354cb8cd0e573effa15334f0547818cee0fc', class: this.classNames(), role: "gridcell", style: this.tableRef &&
38
38
  this.tableRef.fixedColumn &&
39
39
  this.tableRef.selectable
40
40
  ? { '--fixed-cell-position': '40px' }
41
- : {} }, h("slot", { key: 'c2c98f8cfc27c4f7ee30a488c67c7601cbd882ad' })));
41
+ : {} }, h("slot", { key: 'dc48c3d504c2879faf940756bc42f5570f510a5b' })));
42
42
  }
43
43
  static get is() { return "pds-table-cell"; }
44
44
  static get encapsulation() { return "shadow"; }
@@ -34,7 +34,7 @@ export class PdsTableHead {
34
34
  }
35
35
  }
36
36
  render() {
37
- return (h(Host, { key: '213f85bc482cf8f137acccd858dbd0e207eef425', role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: '1633990c5a5e9eb5786754c5f0013ebe5619bf8e', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: 'd3ff182cfe34e11c04e66964dc295d9654e48cfd', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", labelHidden: true, checked: this.isSelected }))), h("slot", { key: '149366f9587c8fe0c6040abca3a8fc4195fc312a' })));
37
+ return (h(Host, { key: '72c72994423440827b905aa1702741e534204e02', role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-head-cell", { key: 'e46c49148956d51ce155587f711699fa49c4fc6f', part: this.tableRef.selectable ? 'checkbox-cell' : '' }, h("pds-checkbox", { key: 'c7343bdd9e32d861f9647e893ecb73b7b6176ebc', componentId: this.generateUniqueId(), indeterminate: this.indeterminate, onInput: this.handleInput, label: "Select All Rows", labelHidden: true, checked: this.isSelected }))), h("slot", { key: 'b43b9a1bf3384a0e635e57732d91202bbc0d01e2' })));
38
38
  }
39
39
  static get is() { return "pds-table-head"; }
40
40
  static get encapsulation() { return "shadow"; }
@@ -51,11 +51,11 @@ export class PdsTableHeadCell {
51
51
  return classNames.join(' ');
52
52
  }
53
53
  render() {
54
- return (h(Host, { key: '1f10fd14e300a501cf3763b2f0edb02fe957fc4a', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, style: this.tableRef &&
54
+ return (h(Host, { key: 'c31e07c91b395e25893316405bfbb7473621ad5c', class: this.classNames(), role: "columnheader", onClick: this.toggleSort, style: this.tableRef &&
55
55
  this.tableRef.fixedColumn &&
56
56
  this.tableRef.selectable
57
57
  ? { '--fixed-cell-position': '40px' }
58
- : {} }, h("slot", { key: '5e18f22f031f671c7c3ae899d00afb90dd90d633' }), this.sortable && (h("pds-icon", { key: 'ba00ac36b37cc45086fb5989beb71a9fc6a83bd6', icon: this.sortingDirection === 'asc' ? upSmall : downSmall }))));
58
+ : {} }, h("slot", { key: '0c8d8173377d7062531a6ddbca90fa097ffae1bb' }), this.sortable && (h("pds-icon", { key: '52750dafc29ad4af2ce89a5ca2e44e0a261aecac', icon: this.sortingDirection === 'asc' ? upSmall : downSmall }))));
59
59
  }
60
60
  static get is() { return "pds-table-head-cell"; }
61
61
  static get encapsulation() { return "shadow"; }
@@ -45,7 +45,7 @@ export class PdsTableRow {
45
45
  }
46
46
  }
47
47
  render() {
48
- return (h(Host, { key: 'ccc46bba7ffde3633444f7108b0481eff6e43bb8', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: '76743fa777e0d12ccb43579783ae4df4386c4b02', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: '484056e443407c4250098b021484608a4da84f48', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", labelHidden: true, checked: this.isSelected }))), h("slot", { key: '349559a00f291841f7073e6259eb9cffa3a445fd' })));
48
+ return (h(Host, { key: '510501e1d6c567394bfaba09ac44bb9455a169a1', class: this.classNames(), role: "row" }, this.tableRef && this.tableRef.selectable && (h("pds-table-cell", { key: '14105fd6283f92b9158138bc2da1623b24b7796f', part: this.tableRef.fixedColumn ? 'checkbox-cell' : '', class: this.tableRef.selectable ? 'has-checkbox' : '' }, h("pds-checkbox", { key: 'a70e4fb1a7a08d4126a63328fd75970b4a637f76', componentId: this.generateUniqueId(), onClick: this.handleClick, indeterminate: this.indeterminate, label: "Select Row", labelHidden: true, checked: this.isSelected }))), h("slot", { key: '5deb2da8405d0792a43531695ece38afe8fda9b4' })));
49
49
  }
50
50
  static get is() { return "pds-table-row"; }
51
51
  static get encapsulation() { return "shadow"; }
@@ -80,7 +80,7 @@ export class PdsTable {
80
80
  headerCheckbox.indeterminate = !allSelectedRows && !noneSelectedRows;
81
81
  }
82
82
  render() {
83
- return (h(Host, { key: 'e5b9a1f7239dc31f78f8ea3670367e3d633db1a8', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable, tabindex: "0" }, h("slot", { key: 'b745184147807d1a0cc0b36da86b06d8fb71669e' })));
83
+ return (h(Host, { key: 'b7cdce58b3d301540458b9d6763373be0f253346', class: this.classNames(), id: this.componentId, role: "grid", selectable: this.selectable, tabindex: "0" }, h("slot", { key: '780c60ee86ff522719a837b3c8f2a6e47fa00094' })));
84
84
  }
85
85
  static get is() { return "pds-table"; }
86
86
  static get encapsulation() { return "shadow"; }
@@ -11,9 +11,9 @@ export class PdsTab {
11
11
  this.pdsTabClick.emit([index, parentComponentId]);
12
12
  }
13
13
  render() {
14
- const availabilityTabEdgeInlineStart = (h("span", { key: '5ea7f20d14e906993c0cfbef0ae9a37b305be9fd', class: "pds-tab-edge", role: "presentation" }));
15
- const availabilityTabEdgeInlineEnd = (h("span", { key: '9fc8287a57fd777472d9f909a451332b7edd8c39', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
16
- return (h(Host, { key: '16d11c4bda123cbb698674c560dc7c826fe653ca', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '63e18d48cd1206c87e520cbe85c09e7fbd8752f0', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, h("div", { key: '5db0ed6e01b1cfe58f47669b369bb72bd3caa033', class: "pds-tab__content" }, h("slot", { key: '1737f4b6a524cf165deb1eb1a2627ae834a76be2' })))));
14
+ const availabilityTabEdgeInlineStart = (h("span", { key: 'd98a922aaa1b9a6023830badc391c3d1d615ec6a', class: "pds-tab-edge", role: "presentation" }));
15
+ const availabilityTabEdgeInlineEnd = (h("span", { key: '390da28bb3fd9ab1fa2fddda45569e92d4547fa3', class: "pds-tab-edge pds-tab-edge--end", role: "presentation" }));
16
+ return (h(Host, { key: '5996673486d4bd95f98a691b155529a60655e92f', variant: this.variant, slot: "tabs", index: this.index }, h("button", { key: '6eded79f9d5aa9093080933aa9aaa2ad88440759', role: "tab", id: this.parentComponentId + "__" + this.name, "aria-controls": this.parentComponentId + "__" + this.name + "-panel", tabindex: this.selected ? "0" : "-1", "aria-selected": this.selected ? "true" : "false", class: this.selected ? "pds-tab is-active" : "pds-tab", onClick: this.onTabClick.bind(this, this.index, this.parentComponentId) }, this.variant === "availability" && availabilityTabEdgeInlineStart, this.variant === "availability" && availabilityTabEdgeInlineEnd, h("div", { key: '9f8927d976b6964c22414e9fbb8680b9132370fa', class: "pds-tab__content" }, h("slot", { key: '691c6cf5e42bc42c6492276fd5905733c424921c' })))));
17
17
  }
18
18
  static get is() { return "pds-tab"; }
19
19
  static get originalStyleUrls() {
@@ -0,0 +1,19 @@
1
+ import { html } from 'lit-html';
2
+ import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
3
+ import { withActions } from '@storybook/addon-actions/decorator';
4
+
5
+ export default {
6
+ argTypes: extractArgTypes('pds-tab'),
7
+ component: 'pds-tab',
8
+ decorators: [withActions],
9
+ title: 'components/Tabs/Tab',
10
+ }
11
+
12
+ const BaseTemplate = (args) => html`
13
+ <pds-tabs active-tab-name="Sturdy" variant="primary" component-id="primary" tablist-label="Foo">
14
+ <pds-tab name="${args.name}">Sturdy</pds-tab>
15
+ <pds-tabpanel name="Sturdy">Content Sturdy</pds-tabpanel>
16
+ </pds-tabs>
17
+ `;
18
+
19
+ export const Default = BaseTemplate.bind({});
@@ -7,7 +7,7 @@ export class PdsTabpanel {
7
7
  this.selected = false;
8
8
  }
9
9
  render() {
10
- return (h(Host, { key: 'b071d63a6211e70b09f11a18609d15728eb485c6', slot: "tabpanels" }, h("div", { key: 'ab8de65d7142136888c853170b7b8b190f21abcc', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", { key: '0cac8366d5502be7033d1b71b681bf564aa557e8' }))));
10
+ return (h(Host, { key: 'e373f0105e391bcb04888b060f41d96cf374ee2d', slot: "tabpanels" }, h("div", { key: '699b02073f6fa1caafc5920b82f776c86c553599', role: "tabpanel", id: this.parentComponentId + "__" + this.name + '-panel', tabindex: "0", "aria-labelledby": this.parentComponentId + "__" + this.name, class: this.selected ? "pds-tabpanel is-active" : "pds-tabpanel" }, h("slot", { key: 'df59ed91bf0ca60ccbde92b2f84c7c17659bfdbd' }))));
11
11
  }
12
12
  static get is() { return "pds-tabpanel"; }
13
13
  static get originalStyleUrls() {
@@ -0,0 +1,19 @@
1
+ import { html } from 'lit-html';
2
+ import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
3
+ import { withActions } from '@storybook/addon-actions/decorator';
4
+
5
+ export default {
6
+ argTypes: extractArgTypes('pds-tabpanel'),
7
+ component: 'pds-tabpanel',
8
+ decorators: [withActions],
9
+ title: 'components/Tabs/Tabpanel',
10
+ }
11
+
12
+ const BaseTemplate = (args) => html`
13
+ <pds-tabs active-tab-name="Sturdy" variant="primary" component-id="primary" tablist-label="Foo">
14
+ <pds-tab name="Sturdy">Sturdy</pds-tab>
15
+ <pds-tabpanel name="${args.name}">Content Sturdy</pds-tabpanel>
16
+ </pds-tabs>
17
+ `;
18
+
19
+ export const Default = BaseTemplate.bind({});
@@ -83,7 +83,7 @@ export class PdsTabs {
83
83
  this.passPropsToChildren();
84
84
  }
85
85
  render() {
86
- return (h(Host, { key: '590f66c80be5b92b015e6499ee60bef965bbaa1e', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: '7251690cd8b8ac1425763212883c98826d15fed1', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, h("slot", { key: 'd07a6f7b621309db9cd7169184c8e7ae0b3b981f', name: "tabs" })), h("slot", { key: 'dcc5b2ea9bdf45f33d3cb2b0a75fa4a2885ec00b', name: "tabpanels" })));
86
+ return (h(Host, { key: '8b7537e2fc9007aaca3c1a6baff0a1c3d6b2cb07', "active-tab-name": this.activeTabName, class: this.classNames(), id: this.componentId }, h("div", { key: '7afa678022c1170d3912137897a5ece92e7b4394', class: "pds-tabs__tablist", role: "tablist", "aria-label": this.tablistLabel }, h("slot", { key: 'e2026e752548b4cdf8f768137e4bb567550ef3cd', name: "tabs" })), h("slot", { key: 'c3a3fbbfab88494b45e5d1cc6563877df2017f9f', name: "tabpanels" })));
87
87
  }
88
88
  static get is() { return "pds-tabs"; }
89
89
  static get encapsulation() { return "shadow"; }