@pine-ds/core 2.1.1 → 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 (493) 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 +12 -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 +12 -8
  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 +13 -6
  51. package/components/pds-textarea.js.map +1 -1
  52. package/components/pds-tooltip.js +2 -2
  53. package/dist/cjs/{index-8f7870bb.js → index-0079013c.js} +4 -2
  54. package/dist/cjs/index-0079013c.js.map +1 -0
  55. package/dist/cjs/{index-8ad0cd9d.js → index-b7d9268e.js} +3 -2
  56. package/dist/cjs/index-b7d9268e.js.map +1 -0
  57. package/dist/cjs/index.cjs.js +1 -1
  58. package/dist/cjs/loader.cjs.js +2 -2
  59. package/dist/cjs/pds-accordion.cjs.entry.js +2 -2
  60. package/dist/cjs/pds-avatar.cjs.entry.js +2 -2
  61. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  62. package/dist/cjs/pds-button.cjs.entry.js +5 -3
  63. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  64. package/dist/cjs/pds-checkbox.cjs.entry.js +7 -6
  65. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  66. package/dist/cjs/pds-chip.cjs.entry.js +5 -5
  67. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  68. package/dist/cjs/pds-copytext.cjs.entry.js +3 -3
  69. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  70. package/dist/cjs/pds-divider.cjs.entry.js +2 -2
  71. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
  72. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  73. package/dist/cjs/pds-image.cjs.entry.js +3 -3
  74. package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
  75. package/dist/cjs/pds-input.cjs.entry.js +7 -6
  76. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  77. package/dist/cjs/{pds-label-35369959.js → pds-label-05f073ea.js} +2 -2
  78. package/dist/cjs/{pds-label-35369959.js.map → pds-label-05f073ea.js.map} +1 -1
  79. package/dist/cjs/pds-link.cjs.entry.js +4 -4
  80. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  81. package/dist/cjs/pds-loader.cjs.entry.js +2 -2
  82. package/dist/cjs/pds-popover.cjs.entry.js +72 -0
  83. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -0
  84. package/dist/cjs/pds-progress.cjs.entry.js +2 -2
  85. package/dist/cjs/pds-radio.cjs.entry.js +9 -8
  86. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  87. package/dist/cjs/pds-row.cjs.entry.js +2 -2
  88. package/dist/cjs/pds-select.cjs.entry.js +131 -0
  89. package/dist/cjs/pds-select.cjs.entry.js.map +1 -0
  90. package/dist/cjs/pds-sortable-item.cjs.entry.js +3 -3
  91. package/dist/cjs/pds-sortable.cjs.entry.js +2 -2
  92. package/dist/cjs/pds-switch.cjs.entry.js +7 -9
  93. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  94. package/dist/cjs/pds-tab.cjs.entry.js +4 -4
  95. package/dist/cjs/pds-table-body.cjs.entry.js +2 -2
  96. package/dist/cjs/pds-table-cell.cjs.entry.js +3 -3
  97. package/dist/cjs/pds-table-head-cell.cjs.entry.js +4 -4
  98. package/dist/cjs/pds-table-head.cjs.entry.js +2 -2
  99. package/dist/cjs/pds-table-row.cjs.entry.js +2 -2
  100. package/dist/cjs/pds-table.cjs.entry.js +2 -2
  101. package/dist/cjs/pds-tabpanel.cjs.entry.js +2 -2
  102. package/dist/cjs/pds-tabs.cjs.entry.js +2 -2
  103. package/dist/cjs/pds-text.cjs.entry.js +37 -0
  104. package/dist/cjs/pds-text.cjs.entry.js.map +1 -0
  105. package/dist/cjs/pds-textarea.cjs.entry.js +8 -7
  106. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  107. package/dist/cjs/pds-tooltip.cjs.entry.js +3 -3
  108. package/dist/cjs/pine-core.cjs.js +2 -2
  109. package/dist/collection/collection-manifest.json +3 -0
  110. package/dist/collection/components/pds-button/pds-button.js +20 -1
  111. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  112. package/dist/collection/components/pds-button/stories/pds-button.stories.js +8 -1
  113. package/dist/collection/components/pds-checkbox/pds-checkbox.css +9 -1
  114. package/dist/collection/components/pds-checkbox/pds-checkbox.js +4 -3
  115. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  116. package/dist/collection/components/pds-chip/pds-chip.js +26 -26
  117. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  118. package/dist/collection/components/pds-copytext/pds-copytext.js +4 -4
  119. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
  120. package/dist/collection/components/pds-divider/pds-divider.js +2 -2
  121. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -1
  122. package/dist/collection/components/pds-image/pds-image.js +13 -7
  123. package/dist/collection/components/pds-image/pds-image.js.map +1 -1
  124. package/dist/collection/components/pds-input/pds-input.css +6 -1
  125. package/dist/collection/components/pds-input/pds-input.js +4 -3
  126. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  127. package/dist/collection/components/pds-link/pds-link.js +12 -9
  128. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  129. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  130. package/dist/collection/components/pds-popover/pds-popover.css +51 -0
  131. package/dist/collection/components/pds-popover/pds-popover.js +216 -0
  132. package/dist/collection/components/pds-popover/pds-popover.js.map +1 -0
  133. package/dist/collection/components/pds-popover/stories/pds-popover.stories.js +45 -0
  134. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  135. package/dist/collection/components/pds-radio/pds-radio.css +9 -1
  136. package/dist/collection/components/pds-radio/pds-radio.js +41 -40
  137. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
  138. package/dist/collection/components/pds-row/pds-row.js +1 -1
  139. package/dist/collection/components/pds-select/pds-select.css +126 -0
  140. package/dist/collection/components/pds-select/pds-select.js +360 -0
  141. package/dist/collection/components/pds-select/pds-select.js.map +1 -0
  142. package/dist/collection/components/pds-select/stories/pds-select.stories.js +153 -0
  143. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  144. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  145. package/dist/collection/components/pds-switch/pds-switch.css +10 -6
  146. package/dist/collection/components/pds-switch/pds-switch.js +14 -16
  147. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
  148. package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +2 -2
  149. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  150. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  151. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  152. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  153. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  154. package/dist/collection/components/pds-table/pds-table.js +1 -1
  155. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  156. package/dist/collection/components/pds-tabs/pds-tab/stories/pds-tab.stories.js +19 -0
  157. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  158. package/dist/collection/components/pds-tabs/pds-tabpanel/stories/pds-tabpanel.stories.js +19 -0
  159. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  160. package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +18 -18
  161. package/dist/collection/components/pds-text/pds-text.css +218 -0
  162. package/dist/collection/components/pds-text/pds-text.js +143 -0
  163. package/dist/collection/components/pds-text/pds-text.js.map +1 -0
  164. package/dist/collection/components/pds-text/stories/pds-text.stories.js +111 -0
  165. package/dist/collection/components/pds-textarea/pds-textarea.css +4 -0
  166. package/dist/collection/components/pds-textarea/pds-textarea.js +5 -4
  167. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  168. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +2 -2
  169. package/dist/collection/components/pds-tooltip/pds-tooltip.js +2 -2
  170. package/dist/collection/utils/types.js.map +1 -1
  171. package/dist/docs.json +958 -47
  172. package/dist/esm/{index-5e7a8a36.js → index-3ca52e8f.js} +4 -3
  173. package/dist/esm/index-3ca52e8f.js.map +1 -0
  174. package/dist/esm/{index-8b335bbb.js → index-b1696fed.js} +3 -2
  175. package/dist/esm/index-b1696fed.js.map +1 -0
  176. package/dist/esm/index.js +1 -1
  177. package/dist/esm/loader.js +3 -3
  178. package/dist/esm/pds-accordion.entry.js +2 -2
  179. package/dist/esm/pds-avatar.entry.js +2 -2
  180. package/dist/esm/pds-box.entry.js +1 -1
  181. package/dist/esm/pds-button.entry.js +5 -3
  182. package/dist/esm/pds-button.entry.js.map +1 -1
  183. package/dist/esm/pds-checkbox.entry.js +7 -6
  184. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  185. package/dist/esm/pds-chip.entry.js +5 -5
  186. package/dist/esm/pds-chip.entry.js.map +1 -1
  187. package/dist/esm/pds-copytext.entry.js +3 -3
  188. package/dist/esm/pds-copytext.entry.js.map +1 -1
  189. package/dist/esm/pds-divider.entry.js +2 -2
  190. package/dist/esm/pds-divider.entry.js.map +1 -1
  191. package/dist/esm/pds-icon.entry.js +1 -1
  192. package/dist/esm/pds-image.entry.js +3 -3
  193. package/dist/esm/pds-image.entry.js.map +1 -1
  194. package/dist/esm/pds-input.entry.js +7 -6
  195. package/dist/esm/pds-input.entry.js.map +1 -1
  196. package/dist/esm/{pds-label-1f80d632.js → pds-label-62469596.js} +2 -2
  197. package/dist/esm/{pds-label-1f80d632.js.map → pds-label-62469596.js.map} +1 -1
  198. package/dist/esm/pds-link.entry.js +4 -4
  199. package/dist/esm/pds-link.entry.js.map +1 -1
  200. package/dist/esm/pds-loader.entry.js +2 -2
  201. package/dist/esm/pds-popover.entry.js +68 -0
  202. package/dist/esm/pds-popover.entry.js.map +1 -0
  203. package/dist/esm/pds-progress.entry.js +2 -2
  204. package/dist/esm/pds-radio.entry.js +9 -8
  205. package/dist/esm/pds-radio.entry.js.map +1 -1
  206. package/dist/esm/pds-row.entry.js +2 -2
  207. package/dist/esm/pds-select.entry.js +127 -0
  208. package/dist/esm/pds-select.entry.js.map +1 -0
  209. package/dist/esm/pds-sortable-item.entry.js +3 -3
  210. package/dist/esm/pds-sortable.entry.js +2 -2
  211. package/dist/esm/pds-switch.entry.js +7 -9
  212. package/dist/esm/pds-switch.entry.js.map +1 -1
  213. package/dist/esm/pds-tab.entry.js +4 -4
  214. package/dist/esm/pds-table-body.entry.js +2 -2
  215. package/dist/esm/pds-table-cell.entry.js +3 -3
  216. package/dist/esm/pds-table-head-cell.entry.js +4 -4
  217. package/dist/esm/pds-table-head.entry.js +2 -2
  218. package/dist/esm/pds-table-row.entry.js +2 -2
  219. package/dist/esm/pds-table.entry.js +2 -2
  220. package/dist/esm/pds-tabpanel.entry.js +2 -2
  221. package/dist/esm/pds-tabs.entry.js +2 -2
  222. package/dist/esm/pds-text.entry.js +33 -0
  223. package/dist/esm/pds-text.entry.js.map +1 -0
  224. package/dist/esm/pds-textarea.entry.js +8 -7
  225. package/dist/esm/pds-textarea.entry.js.map +1 -1
  226. package/dist/esm/pds-tooltip.entry.js +3 -3
  227. package/dist/esm/pine-core.js +3 -3
  228. package/dist/esm-es5/index-3ca52e8f.js +2 -0
  229. package/dist/esm-es5/index-3ca52e8f.js.map +1 -0
  230. package/dist/esm-es5/{index-8b335bbb.js → index-b1696fed.js} +3 -3
  231. package/dist/esm-es5/index-b1696fed.js.map +1 -0
  232. package/dist/esm-es5/index.js +1 -1
  233. package/dist/esm-es5/loader.js +1 -1
  234. package/dist/esm-es5/loader.js.map +1 -1
  235. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  236. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  237. package/dist/esm-es5/pds-box.entry.js +1 -1
  238. package/dist/esm-es5/pds-button.entry.js +1 -1
  239. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  240. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  241. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  242. package/dist/esm-es5/pds-chip.entry.js +1 -1
  243. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  244. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  245. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  246. package/dist/esm-es5/pds-divider.entry.js +1 -1
  247. package/dist/esm-es5/pds-divider.entry.js.map +1 -1
  248. package/dist/esm-es5/pds-icon.entry.js +1 -1
  249. package/dist/esm-es5/pds-image.entry.js +1 -1
  250. package/dist/esm-es5/pds-image.entry.js.map +1 -1
  251. package/dist/esm-es5/pds-input.entry.js +1 -1
  252. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  253. package/dist/esm-es5/{pds-label-1f80d632.js → pds-label-62469596.js} +2 -2
  254. package/dist/esm-es5/pds-link.entry.js +1 -1
  255. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  256. package/dist/esm-es5/pds-loader.entry.js +1 -1
  257. package/dist/esm-es5/pds-popover.entry.js +2 -0
  258. package/dist/esm-es5/pds-popover.entry.js.map +1 -0
  259. package/dist/esm-es5/pds-progress.entry.js +1 -1
  260. package/dist/esm-es5/pds-radio.entry.js +1 -1
  261. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  262. package/dist/esm-es5/pds-row.entry.js +1 -1
  263. package/dist/esm-es5/pds-select.entry.js +2 -0
  264. package/dist/esm-es5/pds-select.entry.js.map +1 -0
  265. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  266. package/dist/esm-es5/pds-sortable.entry.js +2 -2
  267. package/dist/esm-es5/pds-switch.entry.js +1 -1
  268. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  269. package/dist/esm-es5/pds-tab.entry.js +1 -1
  270. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  271. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  272. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  273. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  274. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  275. package/dist/esm-es5/pds-table.entry.js +1 -1
  276. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  277. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  278. package/dist/esm-es5/pds-text.entry.js +2 -0
  279. package/dist/esm-es5/pds-text.entry.js.map +1 -0
  280. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  281. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  282. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  283. package/dist/esm-es5/pine-core.js +1 -1
  284. package/dist/esm-es5/pine-core.js.map +1 -1
  285. package/dist/pine-core/index.esm.js +1 -1
  286. package/dist/pine-core/{p-053ca95a.entry.js → p-00cccccb.entry.js} +2 -2
  287. package/dist/pine-core/p-06513fe5.entry.js +2 -0
  288. package/dist/pine-core/p-06513fe5.entry.js.map +1 -0
  289. package/dist/pine-core/p-06593922.system.entry.js +2 -0
  290. package/dist/pine-core/p-06593922.system.entry.js.map +1 -0
  291. package/dist/pine-core/{p-e4a1b3f5.system.entry.js → p-08c4f190.system.entry.js} +2 -2
  292. package/dist/pine-core/{p-de0beb45.system.entry.js → p-09d83447.system.entry.js} +2 -2
  293. package/dist/pine-core/{p-de0beb45.system.entry.js.map → p-09d83447.system.entry.js.map} +1 -1
  294. package/dist/pine-core/{p-d464f04f.entry.js → p-0ac04129.entry.js} +2 -2
  295. package/dist/pine-core/{p-d464f04f.entry.js.map → p-0ac04129.entry.js.map} +1 -1
  296. package/dist/pine-core/{p-b78b3492.entry.js → p-0ff89cf4.entry.js} +2 -2
  297. package/dist/pine-core/{p-b78b3492.entry.js.map → p-0ff89cf4.entry.js.map} +1 -1
  298. package/dist/pine-core/p-1010d12b.system.entry.js +2 -0
  299. package/dist/pine-core/p-1010d12b.system.entry.js.map +1 -0
  300. package/dist/pine-core/p-110b2e03.entry.js +2 -0
  301. package/dist/pine-core/p-110b2e03.entry.js.map +1 -0
  302. package/dist/pine-core/{p-143bbe94.system.entry.js → p-172464c1.system.entry.js} +2 -2
  303. package/dist/pine-core/{p-4e39bbd7.system.entry.js → p-1a1a76ea.system.entry.js} +2 -2
  304. package/dist/pine-core/{p-89101362.system.entry.js → p-1df1990d.system.entry.js} +2 -2
  305. package/dist/pine-core/{p-1ca76e21.entry.js → p-1e80f274.entry.js} +2 -2
  306. package/dist/pine-core/{p-3b780711.entry.js → p-239891e6.entry.js} +2 -2
  307. package/dist/pine-core/p-34f84589.entry.js +2 -0
  308. package/dist/pine-core/p-34f84589.entry.js.map +1 -0
  309. package/dist/pine-core/{p-5fb6ab2f.entry.js → p-3acb18ad.entry.js} +2 -2
  310. package/dist/pine-core/{p-330eda0c.entry.js → p-3e4225fc.entry.js} +2 -2
  311. package/dist/pine-core/{p-48f0a5a4.entry.js → p-3ff2642d.entry.js} +2 -2
  312. package/dist/pine-core/{p-48f0a5a4.entry.js.map → p-3ff2642d.entry.js.map} +1 -1
  313. package/dist/pine-core/{p-1c0993d9.system.entry.js → p-4043cf6e.system.entry.js} +2 -2
  314. package/dist/pine-core/{p-1c0993d9.system.entry.js.map → p-4043cf6e.system.entry.js.map} +1 -1
  315. package/dist/pine-core/{p-4c0c0b2d.system.js → p-45cf2585.system.js} +3 -3
  316. package/dist/pine-core/p-45cf2585.system.js.map +1 -0
  317. package/dist/pine-core/{p-136ea1e9.entry.js → p-4d22b02c.entry.js} +2 -2
  318. package/dist/pine-core/p-4f9b1945.entry.js +2 -0
  319. package/dist/pine-core/p-4f9b1945.entry.js.map +1 -0
  320. package/dist/pine-core/{p-70e5e466.system.entry.js → p-50918693.system.entry.js} +2 -2
  321. package/dist/pine-core/p-59214c8b.system.entry.js +2 -0
  322. package/dist/pine-core/p-59214c8b.system.entry.js.map +1 -0
  323. package/dist/pine-core/{p-05d140a3.system.entry.js → p-59327483.system.entry.js} +2 -2
  324. package/dist/pine-core/p-59a43f75.system.entry.js +2 -0
  325. package/dist/pine-core/p-59a43f75.system.entry.js.map +1 -0
  326. package/dist/pine-core/{p-0200fce9.entry.js → p-59fcea0f.entry.js} +2 -2
  327. package/dist/pine-core/p-5c04aee0.system.js +2 -0
  328. package/dist/pine-core/p-5c04aee0.system.js.map +1 -0
  329. package/dist/pine-core/{p-02f06002.system.entry.js → p-5c942465.system.entry.js} +2 -2
  330. package/dist/pine-core/{p-30d979d3.entry.js → p-624de926.entry.js} +2 -2
  331. package/dist/pine-core/{p-e2d793eb.entry.js → p-65229490.entry.js} +2 -2
  332. package/dist/pine-core/{p-a18ff34f.entry.js → p-6e079be2.entry.js} +2 -2
  333. package/dist/pine-core/p-6f8f471b.system.entry.js +2 -0
  334. package/dist/pine-core/p-6f8f471b.system.entry.js.map +1 -0
  335. package/dist/pine-core/{p-62ebfe42.entry.js → p-760e1c32.entry.js} +2 -2
  336. package/dist/pine-core/{p-62ebfe42.entry.js.map → p-760e1c32.entry.js.map} +1 -1
  337. package/dist/pine-core/{p-57dd9a98.system.entry.js → p-81bdf676.system.entry.js} +2 -2
  338. package/dist/pine-core/{p-d618d51b.entry.js → p-84a4930d.entry.js} +2 -2
  339. package/dist/pine-core/{p-4e6e2052.js → p-87fe352f.js} +3 -3
  340. package/dist/pine-core/p-87fe352f.js.map +1 -0
  341. package/dist/pine-core/{p-188be548.entry.js → p-88410213.entry.js} +2 -2
  342. package/dist/pine-core/p-88702fa2.entry.js +2 -0
  343. package/dist/pine-core/p-88702fa2.entry.js.map +1 -0
  344. package/dist/pine-core/{p-82a001ac.system.entry.js → p-88edcb41.system.entry.js} +2 -2
  345. package/dist/pine-core/{p-c5991956.system.entry.js → p-8ae84655.system.entry.js} +2 -2
  346. package/dist/pine-core/{p-c5991956.system.entry.js.map → p-8ae84655.system.entry.js.map} +1 -1
  347. package/dist/pine-core/{p-7d6d3e2b.entry.js → p-9487df53.entry.js} +2 -2
  348. package/dist/pine-core/{p-6deaad03.entry.js → p-953e6fde.entry.js} +2 -2
  349. package/dist/pine-core/{p-6deaad03.entry.js.map → p-953e6fde.entry.js.map} +1 -1
  350. package/dist/pine-core/p-9db668f2.system.entry.js +2 -0
  351. package/dist/pine-core/p-9db668f2.system.entry.js.map +1 -0
  352. package/dist/pine-core/{p-3fc1efe7.system.entry.js → p-a2726d3b.system.entry.js} +2 -2
  353. package/dist/pine-core/{p-5f23f121.entry.js → p-a51098dd.entry.js} +2 -2
  354. package/dist/pine-core/{p-3ec7fac1.js → p-a9038f7f.js} +2 -2
  355. package/dist/pine-core/{p-9dec3592.system.entry.js → p-a9e02a6f.system.entry.js} +2 -2
  356. package/dist/pine-core/{p-5f13c97b.entry.js → p-b7890a73.system.entry.js} +2 -2
  357. package/dist/pine-core/p-b7890a73.system.entry.js.map +1 -0
  358. package/dist/pine-core/{p-0efee237.system.entry.js → p-b7edbe43.system.entry.js} +2 -2
  359. package/dist/pine-core/{p-0e310504.system.entry.js → p-b95522e6.system.entry.js} +2 -2
  360. package/dist/pine-core/{p-94a0fd6e.entry.js → p-bbd19258.entry.js} +2 -2
  361. package/dist/pine-core/{p-e7648adc.system.entry.js → p-c4aec6ce.system.entry.js} +2 -2
  362. package/dist/pine-core/{p-e7648adc.system.entry.js.map → p-c4aec6ce.system.entry.js.map} +1 -1
  363. package/dist/pine-core/p-cbf2acbd.system.entry.js +2 -0
  364. package/dist/pine-core/p-cbf2acbd.system.entry.js.map +1 -0
  365. package/dist/pine-core/{p-1b611a91.system.entry.js → p-ce91ca6a.system.entry.js} +2 -2
  366. package/dist/pine-core/{p-1b611a91.system.entry.js.map → p-ce91ca6a.system.entry.js.map} +1 -1
  367. package/dist/pine-core/{p-c8b0ea02.entry.js → p-ceb66096.entry.js} +3 -3
  368. package/dist/pine-core/{p-be998f90.system.entry.js → p-d3365f49.system.entry.js} +3 -3
  369. package/dist/pine-core/p-d37d900e.entry.js +2 -0
  370. package/dist/pine-core/p-d37d900e.entry.js.map +1 -0
  371. package/dist/pine-core/p-d5c90be4.entry.js +2 -0
  372. package/dist/pine-core/p-d5c90be4.entry.js.map +1 -0
  373. package/dist/pine-core/{p-e9ca5a4e.entry.js → p-d6d8a21a.entry.js} +2 -2
  374. package/dist/pine-core/p-db622f8f.system.js +2 -0
  375. package/dist/pine-core/p-dc4a6d88.js +2 -0
  376. package/dist/pine-core/p-dc4a6d88.js.map +1 -0
  377. package/dist/pine-core/{p-a15c9c4f.entry.js → p-e2a673e8.entry.js} +2 -2
  378. package/dist/pine-core/{p-f408c34a.system.js → p-e3fab4be.system.js} +2 -2
  379. package/dist/pine-core/{p-f6e72c06.system.entry.js → p-e64594ae.system.entry.js} +2 -2
  380. package/dist/pine-core/p-e90b2c75.system.js +2 -0
  381. package/dist/pine-core/p-e90b2c75.system.js.map +1 -0
  382. package/dist/pine-core/p-e936e948.entry.js +2 -0
  383. package/dist/pine-core/p-e936e948.entry.js.map +1 -0
  384. package/dist/pine-core/{p-5c90a600.entry.js → p-ebdaf3ad.entry.js} +2 -2
  385. package/dist/pine-core/{p-c18464e8.system.entry.js → p-ece8530d.system.entry.js} +2 -2
  386. package/dist/pine-core/{p-9c294ea2.system.entry.js → p-ee21fa25.system.entry.js} +2 -2
  387. package/dist/pine-core/p-efbe2dc5.system.entry.js +2 -0
  388. package/dist/pine-core/p-efbe2dc5.system.entry.js.map +1 -0
  389. package/dist/pine-core/{p-a4b85fb8.system.entry.js → p-f16ef73c.system.entry.js} +2 -2
  390. package/dist/pine-core/{p-33a94e8c.system.entry.js → p-f9719887.system.entry.js} +2 -2
  391. package/dist/pine-core/p-ff20b191.entry.js +2 -0
  392. package/dist/pine-core/p-ff20b191.entry.js.map +1 -0
  393. package/dist/pine-core/pine-core.esm.js +1 -1
  394. package/dist/pine-core/pine-core.esm.js.map +1 -1
  395. package/dist/pine-core/pine-core.js +1 -1
  396. package/dist/pine-core/svg/file-add.svg +1 -1
  397. package/dist/types/components/pds-button/pds-button.d.ts +2 -0
  398. package/dist/types/components/pds-chip/pds-chip.d.ts +8 -8
  399. package/dist/types/components/pds-copytext/pds-copytext.d.ts +3 -3
  400. package/dist/types/components/pds-divider/pds-divider.d.ts +1 -1
  401. package/dist/types/components/pds-image/pds-image.d.ts +7 -3
  402. package/dist/types/components/pds-link/pds-link.d.ts +7 -11
  403. package/dist/types/components/pds-popover/pds-popover.d.ts +45 -0
  404. package/dist/types/components/pds-radio/pds-radio.d.ts +11 -11
  405. package/dist/types/components/pds-select/pds-select.d.ts +91 -0
  406. package/dist/types/components/pds-switch/pds-switch.d.ts +10 -13
  407. package/dist/types/components/pds-text/pds-text.d.ts +27 -0
  408. package/dist/types/components.d.ts +395 -49
  409. package/dist/types/utils/types.d.ts +1 -1
  410. package/hydrate/index.js +330 -63
  411. package/hydrate/index.mjs +330 -63
  412. package/package.json +2 -2
  413. package/dist/cjs/index-8ad0cd9d.js.map +0 -1
  414. package/dist/cjs/index-8f7870bb.js.map +0 -1
  415. package/dist/esm/index-5e7a8a36.js.map +0 -1
  416. package/dist/esm/index-8b335bbb.js.map +0 -1
  417. package/dist/esm-es5/index-5e7a8a36.js +0 -2
  418. package/dist/esm-es5/index-5e7a8a36.js.map +0 -1
  419. package/dist/esm-es5/index-8b335bbb.js.map +0 -1
  420. package/dist/pine-core/p-0186301f.entry.js +0 -2
  421. package/dist/pine-core/p-0186301f.entry.js.map +0 -1
  422. package/dist/pine-core/p-0630403a.entry.js +0 -2
  423. package/dist/pine-core/p-0630403a.entry.js.map +0 -1
  424. package/dist/pine-core/p-102222fd.entry.js +0 -2
  425. package/dist/pine-core/p-102222fd.entry.js.map +0 -1
  426. package/dist/pine-core/p-242ccc24.system.entry.js +0 -2
  427. package/dist/pine-core/p-242ccc24.system.entry.js.map +0 -1
  428. package/dist/pine-core/p-3cad7587.entry.js +0 -2
  429. package/dist/pine-core/p-3cad7587.entry.js.map +0 -1
  430. package/dist/pine-core/p-3e0449c5.js +0 -2
  431. package/dist/pine-core/p-3e0449c5.js.map +0 -1
  432. package/dist/pine-core/p-4c0c0b2d.system.js.map +0 -1
  433. package/dist/pine-core/p-4e6e2052.js.map +0 -1
  434. package/dist/pine-core/p-51e94e03.system.js +0 -2
  435. package/dist/pine-core/p-51e94e03.system.js.map +0 -1
  436. package/dist/pine-core/p-55f8a9e4.system.entry.js +0 -2
  437. package/dist/pine-core/p-55f8a9e4.system.entry.js.map +0 -1
  438. package/dist/pine-core/p-5b43ff39.system.entry.js +0 -2
  439. package/dist/pine-core/p-5b43ff39.system.entry.js.map +0 -1
  440. package/dist/pine-core/p-5f13c97b.entry.js.map +0 -1
  441. package/dist/pine-core/p-6bcd89dc.system.js +0 -2
  442. package/dist/pine-core/p-6bcd89dc.system.js.map +0 -1
  443. package/dist/pine-core/p-82096fe4.system.entry.js +0 -2
  444. package/dist/pine-core/p-82096fe4.system.entry.js.map +0 -1
  445. package/dist/pine-core/p-8d34339d.system.js +0 -2
  446. package/dist/pine-core/p-d438c2c8.system.entry.js +0 -2
  447. package/dist/pine-core/p-d438c2c8.system.entry.js.map +0 -1
  448. package/dist/pine-core/p-e22b4427.system.entry.js +0 -2
  449. package/dist/pine-core/p-e22b4427.system.entry.js.map +0 -1
  450. package/dist/pine-core/p-efca871b.entry.js +0 -2
  451. package/dist/pine-core/p-efca871b.entry.js.map +0 -1
  452. /package/dist/esm-es5/{pds-label-1f80d632.js.map → pds-label-62469596.js.map} +0 -0
  453. /package/dist/pine-core/{p-053ca95a.entry.js.map → p-00cccccb.entry.js.map} +0 -0
  454. /package/dist/pine-core/{p-e4a1b3f5.system.entry.js.map → p-08c4f190.system.entry.js.map} +0 -0
  455. /package/dist/pine-core/{p-143bbe94.system.entry.js.map → p-172464c1.system.entry.js.map} +0 -0
  456. /package/dist/pine-core/{p-4e39bbd7.system.entry.js.map → p-1a1a76ea.system.entry.js.map} +0 -0
  457. /package/dist/pine-core/{p-89101362.system.entry.js.map → p-1df1990d.system.entry.js.map} +0 -0
  458. /package/dist/pine-core/{p-1ca76e21.entry.js.map → p-1e80f274.entry.js.map} +0 -0
  459. /package/dist/pine-core/{p-3b780711.entry.js.map → p-239891e6.entry.js.map} +0 -0
  460. /package/dist/pine-core/{p-5fb6ab2f.entry.js.map → p-3acb18ad.entry.js.map} +0 -0
  461. /package/dist/pine-core/{p-330eda0c.entry.js.map → p-3e4225fc.entry.js.map} +0 -0
  462. /package/dist/pine-core/{p-136ea1e9.entry.js.map → p-4d22b02c.entry.js.map} +0 -0
  463. /package/dist/pine-core/{p-70e5e466.system.entry.js.map → p-50918693.system.entry.js.map} +0 -0
  464. /package/dist/pine-core/{p-05d140a3.system.entry.js.map → p-59327483.system.entry.js.map} +0 -0
  465. /package/dist/pine-core/{p-0200fce9.entry.js.map → p-59fcea0f.entry.js.map} +0 -0
  466. /package/dist/pine-core/{p-02f06002.system.entry.js.map → p-5c942465.system.entry.js.map} +0 -0
  467. /package/dist/pine-core/{p-30d979d3.entry.js.map → p-624de926.entry.js.map} +0 -0
  468. /package/dist/pine-core/{p-e2d793eb.entry.js.map → p-65229490.entry.js.map} +0 -0
  469. /package/dist/pine-core/{p-a18ff34f.entry.js.map → p-6e079be2.entry.js.map} +0 -0
  470. /package/dist/pine-core/{p-57dd9a98.system.entry.js.map → p-81bdf676.system.entry.js.map} +0 -0
  471. /package/dist/pine-core/{p-d618d51b.entry.js.map → p-84a4930d.entry.js.map} +0 -0
  472. /package/dist/pine-core/{p-188be548.entry.js.map → p-88410213.entry.js.map} +0 -0
  473. /package/dist/pine-core/{p-82a001ac.system.entry.js.map → p-88edcb41.system.entry.js.map} +0 -0
  474. /package/dist/pine-core/{p-7d6d3e2b.entry.js.map → p-9487df53.entry.js.map} +0 -0
  475. /package/dist/pine-core/{p-3fc1efe7.system.entry.js.map → p-a2726d3b.system.entry.js.map} +0 -0
  476. /package/dist/pine-core/{p-5f23f121.entry.js.map → p-a51098dd.entry.js.map} +0 -0
  477. /package/dist/pine-core/{p-3ec7fac1.js.map → p-a9038f7f.js.map} +0 -0
  478. /package/dist/pine-core/{p-9dec3592.system.entry.js.map → p-a9e02a6f.system.entry.js.map} +0 -0
  479. /package/dist/pine-core/{p-0efee237.system.entry.js.map → p-b7edbe43.system.entry.js.map} +0 -0
  480. /package/dist/pine-core/{p-0e310504.system.entry.js.map → p-b95522e6.system.entry.js.map} +0 -0
  481. /package/dist/pine-core/{p-94a0fd6e.entry.js.map → p-bbd19258.entry.js.map} +0 -0
  482. /package/dist/pine-core/{p-c8b0ea02.entry.js.map → p-ceb66096.entry.js.map} +0 -0
  483. /package/dist/pine-core/{p-be998f90.system.entry.js.map → p-d3365f49.system.entry.js.map} +0 -0
  484. /package/dist/pine-core/{p-e9ca5a4e.entry.js.map → p-d6d8a21a.entry.js.map} +0 -0
  485. /package/dist/pine-core/{p-8d34339d.system.js.map → p-db622f8f.system.js.map} +0 -0
  486. /package/dist/pine-core/{p-a15c9c4f.entry.js.map → p-e2a673e8.entry.js.map} +0 -0
  487. /package/dist/pine-core/{p-f408c34a.system.js.map → p-e3fab4be.system.js.map} +0 -0
  488. /package/dist/pine-core/{p-f6e72c06.system.entry.js.map → p-e64594ae.system.entry.js.map} +0 -0
  489. /package/dist/pine-core/{p-5c90a600.entry.js.map → p-ebdaf3ad.entry.js.map} +0 -0
  490. /package/dist/pine-core/{p-c18464e8.system.entry.js.map → p-ece8530d.system.entry.js.map} +0 -0
  491. /package/dist/pine-core/{p-9c294ea2.system.entry.js.map → p-ee21fa25.system.entry.js.map} +0 -0
  492. /package/dist/pine-core/{p-a4b85fb8.system.entry.js.map → p-f16ef73c.system.entry.js.map} +0 -0
  493. /package/dist/pine-core/{p-33a94e8c.system.entry.js.map → p-f9719887.system.entry.js.map} +0 -0
@@ -1,6 +1,7 @@
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) => {
@@ -10,9 +11,6 @@ export class PdsSwitch {
10
11
  this.checked = input.checked;
11
12
  this.pdsSwitchChange.emit(e);
12
13
  };
13
- /**
14
- * Generate switch classes
15
- */
16
14
  this.switchClassNames = () => {
17
15
  let switchClasses = `pds-switch`;
18
16
  if (this.invalid === true) {
@@ -35,9 +33,9 @@ export class PdsSwitch {
35
33
  this.value = undefined;
36
34
  }
37
35
  render() {
38
- return (h(Host, { key: '6caf30d657b79a0557ce5b22b35d5c07f80e7046', class: this.switchClassNames(), "aria-disabled": this.disabled ? 'true' : null }, h("input", { key: '96cced459d04d1e922d27f933ee1786a0d178608', "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: '86c1452da4a0b029ea17baeb1b0b603c32c9c2d6', classNames: "pds-switch__label", htmlFor: this.componentId, text: this.label }), this.helperMessage &&
39
- h("div", { key: '68599a16f5c18e0d99f189ff728bbbc2962e8985', class: `pds-switch__message`, id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
40
- h("div", { key: '575fa7ca25c933e56691d908a0e840bc80d1822e', 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)));
41
39
  }
42
40
  static get is() { return "pds-switch"; }
43
41
  static get encapsulation() { return "shadow"; }
@@ -82,7 +80,7 @@ export class PdsSwitch {
82
80
  "optional": false,
83
81
  "docs": {
84
82
  "tags": [],
85
- "text": "Determines the input 'checked' state"
83
+ "text": "Determines the input 'checked' state."
86
84
  },
87
85
  "attribute": "checked",
88
86
  "reflect": false,
@@ -100,7 +98,7 @@ export class PdsSwitch {
100
98
  "optional": true,
101
99
  "docs": {
102
100
  "tags": [],
103
- "text": "Determines the input 'disabled' state, preventing user interaction"
101
+ "text": "Determines the input 'disabled' state, preventing user interaction."
104
102
  },
105
103
  "attribute": "disabled",
106
104
  "reflect": false,
@@ -118,7 +116,7 @@ export class PdsSwitch {
118
116
  "optional": true,
119
117
  "docs": {
120
118
  "tags": [],
121
- "text": "Displays message text describing an invalid state"
119
+ "text": "Displays message text describing an invalid state."
122
120
  },
123
121
  "attribute": "error-message",
124
122
  "reflect": false
@@ -135,7 +133,7 @@ export class PdsSwitch {
135
133
  "optional": false,
136
134
  "docs": {
137
135
  "tags": [],
138
- "text": "Displays help text for additional description of an input"
136
+ "text": "Displays help text for additional description of an input."
139
137
  },
140
138
  "attribute": "helper-message",
141
139
  "reflect": false
@@ -152,7 +150,7 @@ export class PdsSwitch {
152
150
  "optional": true,
153
151
  "docs": {
154
152
  "tags": [],
155
- "text": "Determines the input 'invalid' state, signifying an error is present"
153
+ "text": "Determines the input 'invalid' state, signifying an error is present."
156
154
  },
157
155
  "attribute": "invalid",
158
156
  "reflect": false,
@@ -170,7 +168,7 @@ export class PdsSwitch {
170
168
  "optional": false,
171
169
  "docs": {
172
170
  "tags": [],
173
- "text": "Displays text to describe the input"
171
+ "text": "Displays text to describe the input."
174
172
  },
175
173
  "attribute": "label",
176
174
  "reflect": false
@@ -187,7 +185,7 @@ export class PdsSwitch {
187
185
  "optional": false,
188
186
  "docs": {
189
187
  "tags": [],
190
- "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."
191
189
  },
192
190
  "attribute": "name",
193
191
  "reflect": false
@@ -204,7 +202,7 @@ export class PdsSwitch {
204
202
  "optional": true,
205
203
  "docs": {
206
204
  "tags": [],
207
- "text": "Determines the 'required' state of the input"
205
+ "text": "Determines the 'required' state of the input."
208
206
  },
209
207
  "attribute": "required",
210
208
  "reflect": false,
@@ -222,7 +220,7 @@ export class PdsSwitch {
222
220
  "optional": false,
223
221
  "docs": {
224
222
  "tags": [],
225
- "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."
226
224
  },
227
225
  "attribute": "value",
228
226
  "reflect": false
@@ -238,7 +236,7 @@ export class PdsSwitch {
238
236
  "composed": true,
239
237
  "docs": {
240
238
  "tags": [],
241
- "text": "Emits an event on input change"
239
+ "text": "Emits an event on input change."
242
240
  },
243
241
  "complexType": {
244
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;;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;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;;uBApEiC,KAAK;wBAKpB,KAAK;;;uBAeN,KAAK;;;wBAeJ,KAAK;;;IAmCzB,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,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({ 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, 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\n const input = e.target as HTMLInputElement;\n this.checked = input.checked;\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=\"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 {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"]}
@@ -60,9 +60,9 @@ Disabled.args = {
60
60
  type: 'checkbox',
61
61
  };
62
62
 
63
- export const HelperMessage = BaseTemplate.bind({});
63
+ export const WithMessage = BaseTemplate.bind({});
64
64
 
65
- HelperMessage.args = {
65
+ WithMessage.args = {
66
66
  checked: true,
67
67
  disabled: false,
68
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"; }
@@ -1,4 +1,4 @@
1
- import { html, render } from 'lit';
1
+ import { html } from 'lit';
2
2
  import { withActions } from '@storybook/addon-actions/decorator';
3
3
  import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
4
4
 
@@ -12,7 +12,7 @@ export default {
12
12
  },
13
13
  },
14
14
  title: 'components/Tabs',
15
- }
15
+ };
16
16
 
17
17
  const BaseTemplate = (args) => html`
18
18
  <pds-tabs active-tab-name=${args.activeTabName} variant=${args.variant} component-id=${args.componentId} tablist-label=${args.tablistLabel}>
@@ -25,6 +25,22 @@ const BaseTemplate = (args) => html`
25
25
  </pds-tabs>
26
26
  `;
27
27
 
28
+ export const Default = BaseTemplate.bind({});
29
+ Default.args = {
30
+ activeTabName: "Dollop",
31
+ componentId: "primary",
32
+ variant: "primary",
33
+ tablistLabel: "Foo",
34
+ }
35
+
36
+ export const Filter = BaseTemplate.bind({});
37
+ Filter.args = {
38
+ activeTabName: "Sturdy",
39
+ componentId: "filter",
40
+ variant: 'filter',
41
+ tablistLabel: "Foo",
42
+ }
43
+
28
44
  const AvailabilityTemplate = (args) => html`
29
45
  <div style="background-color: #ddd; padding: 20px;">
30
46
  <pds-tabs active-tab-name=${args.activeTabName} variant=${args.variant} component-id=${args.componentId} tablist-label=${args.tablistLabel}>
@@ -38,14 +54,6 @@ const AvailabilityTemplate = (args) => html`
38
54
  </div>
39
55
  `;
40
56
 
41
- export const Primary = BaseTemplate.bind({});
42
- Primary.args = {
43
- activeTabName: "Dollop",
44
- componentId: "primary",
45
- variant: "primary",
46
- tablistLabel: "Foo",
47
- }
48
-
49
57
  export const Availability = AvailabilityTemplate.bind({});
50
58
  Availability.args = {
51
59
  activeTabName: "tuesday",
@@ -53,11 +61,3 @@ Availability.args = {
53
61
  variant: 'availability',
54
62
  tablistLabel: "Foo",
55
63
  }
56
-
57
- export const Filter = BaseTemplate.bind({});
58
- Filter.args = {
59
- activeTabName: "Sturdy",
60
- componentId: "filter",
61
- variant: 'filter',
62
- tablistLabel: "Foo",
63
- }
@@ -0,0 +1,218 @@
1
+ :host {
2
+ display: inline;
3
+ }
4
+
5
+ /* stylelint-disable */
6
+ h1 {
7
+ font-family: "GreetStandard";
8
+ font-size: 28px;
9
+ font-weight: 600;
10
+ letter-spacing: 0.26px;
11
+ line-height: 1.25;
12
+ }
13
+
14
+ h2 {
15
+ font-family: "GreetStandard";
16
+ font-size: 26px;
17
+ font-weight: 600;
18
+ letter-spacing: 0.24px;
19
+ line-height: 1.25;
20
+ }
21
+
22
+ h3 {
23
+ font-family: "GreetStandard";
24
+ font-size: 22px;
25
+ font-weight: 600;
26
+ letter-spacing: 0.22px;
27
+ line-height: 1.25;
28
+ }
29
+
30
+ h4 {
31
+ font-family: "GreetStandard";
32
+ font-size: 20px;
33
+ font-weight: 600;
34
+ letter-spacing: 0.2px;
35
+ line-height: 1.25;
36
+ }
37
+
38
+ h5 {
39
+ font-family: "GreetStandard";
40
+ font-size: 18px;
41
+ font-weight: 500;
42
+ letter-spacing: 0.18px;
43
+ line-height: 1.25;
44
+ }
45
+
46
+ h6 {
47
+ font-family: "GreetStandard";
48
+ font-size: 16px;
49
+ font-weight: 500;
50
+ letter-spacing: 0.16px;
51
+ line-height: 1.25;
52
+ }
53
+
54
+ code, em, p, pre, strong {
55
+ font-family: "Inter";
56
+ font-size: 14px;
57
+ font-weight: 400;
58
+ letter-spacing: -0.16px;
59
+ line-height: 1.425;
60
+ }
61
+
62
+ /* stylelint-enable */
63
+ code, pre {
64
+ font-family: monospace;
65
+ letter-spacing: 0;
66
+ line-height: 1;
67
+ }
68
+
69
+ em {
70
+ font-style: normal;
71
+ }
72
+
73
+ strong {
74
+ font-weight: bolder;
75
+ }
76
+
77
+ h1, h2, h3, h4, h5, h6, p, code, pre, em, strong {
78
+ color: var(--pine-color-text-default);
79
+ margin: 0;
80
+ }
81
+
82
+ :host([truncate]) > * {
83
+ overflow: hidden;
84
+ text-overflow: ellipsis;
85
+ white-space: nowrap;
86
+ }
87
+
88
+ :host([italic]) > * {
89
+ font-style: italic;
90
+ }
91
+
92
+ .pds-text--color-primary {
93
+ color: var(--pine-color-white);
94
+ }
95
+
96
+ .pds-text--color-secondary {
97
+ color: var(--pine-color-grey-800);
98
+ }
99
+
100
+ .pds-text--color-neutral {
101
+ color: var(--pine-color-grey-900);
102
+ }
103
+
104
+ .pds-text--color-accent {
105
+ color: var(--pine-color-purple-900);
106
+ }
107
+
108
+ .pds-text--color-danger {
109
+ color: var(--pine-color-red-900);
110
+ }
111
+
112
+ .pds-text--color-info {
113
+ color: var(--pine-color-blue-900);
114
+ }
115
+
116
+ .pds-text--color-success {
117
+ color: var(--pine-color-green-900);
118
+ }
119
+
120
+ .pds-text--color-warning {
121
+ color: var(--pine-color-yellow-900);
122
+ }
123
+
124
+ .pds-text--size-2xl {
125
+ font-size: 20px;
126
+ }
127
+
128
+ .pds-text--size-xl {
129
+ font-size: 18px;
130
+ }
131
+
132
+ .pds-text--size-lg {
133
+ font-size: 16px;
134
+ }
135
+
136
+ .pds-text--size-md {
137
+ font-size: 14px;
138
+ }
139
+
140
+ .pds-text--size-sm {
141
+ font-size: 12px;
142
+ }
143
+
144
+ .pds-text--size-xs {
145
+ font-size: 10px;
146
+ }
147
+
148
+ .pds-text--size-2xs {
149
+ font-size: 8px;
150
+ }
151
+
152
+ .pds-text--weight-extra-light {
153
+ font-weight: 200;
154
+ }
155
+
156
+ .pds-text--weight-light {
157
+ font-weight: 300;
158
+ }
159
+
160
+ .pds-text--weight-regular {
161
+ font-weight: 400;
162
+ }
163
+
164
+ .pds-text--weight-medium {
165
+ font-weight: 500;
166
+ }
167
+
168
+ .pds-text--weight-semibold {
169
+ font-weight: 600;
170
+ }
171
+
172
+ .pds-text--weight-bold {
173
+ font-weight: 700;
174
+ }
175
+
176
+ .pds-text--gutter-2xl {
177
+ margin-block-end: 48px;
178
+ }
179
+
180
+ .pds-text--gutter-xl {
181
+ margin-block-end: 40px;
182
+ }
183
+
184
+ .pds-text--gutter-lg {
185
+ margin-block-end: 32px;
186
+ }
187
+
188
+ .pds-text--gutter-md {
189
+ margin-block-end: 24px;
190
+ }
191
+
192
+ .pds-text--gutter-sm {
193
+ margin-block-end: 16px;
194
+ }
195
+
196
+ .pds-text--gutter-xs {
197
+ margin-block-end: 8px;
198
+ }
199
+
200
+ .pds-text--gutter-2xs {
201
+ margin-block-end: 4px;
202
+ }
203
+
204
+ .pds-text--align-start {
205
+ text-align: start;
206
+ }
207
+
208
+ .pds-text--align-center {
209
+ text-align: center;
210
+ }
211
+
212
+ .pds-text--align-end {
213
+ text-align: end;
214
+ }
215
+
216
+ .pds-text--align-justify {
217
+ text-align: justify;
218
+ }