@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
@@ -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
+ }
@@ -0,0 +1,143 @@
1
+ import { h } from "@stencil/core";
2
+ export class PdsText {
3
+ constructor() {
4
+ this.align = undefined;
5
+ this.color = undefined;
6
+ this.gutter = undefined;
7
+ this.size = undefined;
8
+ this.weight = undefined;
9
+ this.tag = "p";
10
+ }
11
+ render() {
12
+ const Tag = this.tag;
13
+ const typeClasses = `
14
+ pds-text
15
+ ${this.align !== undefined && this.align.trim() !== '' ? `pds-text--align-${this.align}` : ''}
16
+ ${this.color !== undefined && this.color.trim() !== '' ? `pds-text--color-${this.color}` : ''}
17
+ ${this.gutter !== undefined && this.gutter.trim() !== '' ? `pds-text--gutter-${this.gutter}` : ''}
18
+ ${this.size !== undefined && this.size.trim() !== '' ? `pds-text--size-${this.size}` : ''}
19
+ ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}
20
+ `;
21
+ return (h(Tag, { key: '3ccf61734e14ed7ea5013bce54717d2846b64f07', class: typeClasses }, h("slot", { key: '7368685e2042d306006bf8fc83b80ec246ca252d' })));
22
+ }
23
+ static get is() { return "pds-text"; }
24
+ static get encapsulation() { return "shadow"; }
25
+ static get originalStyleUrls() {
26
+ return {
27
+ "$": ["pds-text.scss"]
28
+ };
29
+ }
30
+ static get styleUrls() {
31
+ return {
32
+ "$": ["pds-text.css"]
33
+ };
34
+ }
35
+ static get properties() {
36
+ return {
37
+ "align": {
38
+ "type": "string",
39
+ "mutable": false,
40
+ "complexType": {
41
+ "original": "'start' | 'center' | 'end' | 'justify'",
42
+ "resolved": "\"center\" | \"end\" | \"justify\" | \"start\"",
43
+ "references": {}
44
+ },
45
+ "required": false,
46
+ "optional": true,
47
+ "docs": {
48
+ "tags": [],
49
+ "text": "Sets the text alignment."
50
+ },
51
+ "attribute": "align",
52
+ "reflect": false
53
+ },
54
+ "color": {
55
+ "type": "string",
56
+ "mutable": false,
57
+ "complexType": {
58
+ "original": "| 'primary'\n | 'secondary'\n | 'neutral'\n | 'accent'\n | 'danger'\n | 'info'\n | 'success'\n | 'warning'",
59
+ "resolved": "\"accent\" | \"danger\" | \"info\" | \"neutral\" | \"primary\" | \"secondary\" | \"success\" | \"warning\"",
60
+ "references": {}
61
+ },
62
+ "required": false,
63
+ "optional": true,
64
+ "docs": {
65
+ "tags": [],
66
+ "text": "Sets the text color."
67
+ },
68
+ "attribute": "color",
69
+ "reflect": false
70
+ },
71
+ "gutter": {
72
+ "type": "string",
73
+ "mutable": false,
74
+ "complexType": {
75
+ "original": "| '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs'",
76
+ "resolved": "\"2xl\" | \"2xs\" | \"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\"",
77
+ "references": {}
78
+ },
79
+ "required": false,
80
+ "optional": true,
81
+ "docs": {
82
+ "tags": [],
83
+ "text": "Set the bottom margin for the text."
84
+ },
85
+ "attribute": "gutter",
86
+ "reflect": false
87
+ },
88
+ "size": {
89
+ "type": "string",
90
+ "mutable": false,
91
+ "complexType": {
92
+ "original": "| '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs'",
93
+ "resolved": "\"2xl\" | \"2xs\" | \"lg\" | \"md\" | \"sm\" | \"xl\" | \"xs\"",
94
+ "references": {}
95
+ },
96
+ "required": false,
97
+ "optional": true,
98
+ "docs": {
99
+ "tags": [],
100
+ "text": "Sets the font size."
101
+ },
102
+ "attribute": "size",
103
+ "reflect": false
104
+ },
105
+ "weight": {
106
+ "type": "string",
107
+ "mutable": false,
108
+ "complexType": {
109
+ "original": "| 'extra-light'\n | 'light'\n | 'regular'\n | 'medium'\n | 'semibold'\n | 'bold'",
110
+ "resolved": "\"bold\" | \"extra-light\" | \"light\" | \"medium\" | \"regular\" | \"semibold\"",
111
+ "references": {}
112
+ },
113
+ "required": false,
114
+ "optional": true,
115
+ "docs": {
116
+ "tags": [],
117
+ "text": "Sets the font weight."
118
+ },
119
+ "attribute": "weight",
120
+ "reflect": false
121
+ },
122
+ "tag": {
123
+ "type": "string",
124
+ "mutable": false,
125
+ "complexType": {
126
+ "original": "| 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'p'\n | 'code'\n | 'pre'\n | 'strong'\n | 'em'",
127
+ "resolved": "\"code\" | \"em\" | \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\" | \"p\" | \"pre\" | \"strong\"",
128
+ "references": {}
129
+ },
130
+ "required": false,
131
+ "optional": false,
132
+ "docs": {
133
+ "tags": [],
134
+ "text": "Determines what semantic text tag to render."
135
+ },
136
+ "attribute": "tag",
137
+ "reflect": false,
138
+ "defaultValue": "\"p\""
139
+ }
140
+ };
141
+ }
142
+ }
143
+ //# sourceMappingURL=pds-text.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pds-text.js","sourceRoot":"","sources":["../../../src/components/pds-text/pds-text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAOnD,MAAM,OAAO,OAAO;;;;;;;mBAqET,GAAG;;IAEZ,MAAM;QACJ,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC;QAErB,MAAM,WAAW,GAAG;;QAEhB,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;QAC3F,IAAI,CAAC,KAAK,KAAK,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,mBAAmB,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE;QAC3F,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;QAC/F,IAAI,CAAC,IAAI,KAAK,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,kBAAkB,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE;QACvF,IAAI,CAAC,MAAM,KAAK,SAAS,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC,CAAC,oBAAoB,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE;KAClG,CAAC;QAEF,OAAO,CACL,EAAC,GAAG,qDAAC,KAAK,EAAE,WAAW;YACrB,8DAAQ,CACJ,CACP,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-text',\n styleUrl: 'pds-text.scss',\n shadow: true,\n})\nexport class PdsText {\n\n /**\n * Sets the text alignment.\n */\n @Prop() align?: 'start' | 'center' | 'end' | 'justify';\n\n /**\n * Sets the text color.\n */\n @Prop() color?:\n | 'primary'\n | 'secondary'\n | 'neutral'\n | 'accent'\n | 'danger'\n | 'info'\n | 'success'\n | 'warning';\n\n /**\n * Set the bottom margin for the text.\n */\n @Prop() gutter?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs';\n\n /**\n * Sets the font size.\n */\n @Prop() size?:\n | '2xl'\n | 'xl'\n | 'lg'\n | 'md'\n | 'sm'\n | 'xs'\n | '2xs';\n\n /**\n * Sets the font weight.\n */\n @Prop() weight?:\n | 'extra-light'\n | 'light'\n | 'regular'\n | 'medium'\n | 'semibold'\n | 'bold';\n\n /**\n * Determines what semantic text tag to render.\n */\n @Prop() tag:\n | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6'\n | 'p'\n | 'code'\n | 'pre'\n | 'strong'\n | 'em' = \"p\";\n\n render() {\n const Tag = this.tag;\n\n const typeClasses = `\n pds-text\n ${this.align !== undefined && this.align.trim() !== '' ? `pds-text--align-${this.align}` : ''}\n ${this.color !== undefined && this.color.trim() !== '' ? `pds-text--color-${this.color}` : ''}\n ${this.gutter !== undefined && this.gutter.trim() !== '' ? `pds-text--gutter-${this.gutter}` : ''}\n ${this.size !== undefined && this.size.trim() !== '' ? `pds-text--size-${this.size}` : ''}\n ${this.weight !== undefined && this.weight.trim() !== '' ? `pds-text--weight-${this.weight}` : ''}\n `;\n\n return (\n <Tag class={typeClasses}>\n <slot />\n </Tag>\n );\n }\n}\n"]}
@@ -0,0 +1,111 @@
1
+ import { html } from 'lit';
2
+
3
+ import { extractArgTypes } from '@pxtrn/storybook-addon-docs-stencil';
4
+
5
+ export default {
6
+ argTypes: extractArgTypes('pds-text'),
7
+ component: 'pds-text',
8
+ title: 'components/Text',
9
+ }
10
+
11
+ const BaseTemplate = (args) => html`
12
+ <pds-text
13
+ align="${args.align}"
14
+ color="${args.color}"
15
+ size="${args.size}"
16
+ tag="${args.tag}"
17
+ weight="${args.weight}"
18
+ >
19
+ ${args.slot}
20
+ </pds-text>`;
21
+
22
+ export const Default = BaseTemplate.bind();
23
+ Default.args = {
24
+ slot: 'Hello World',
25
+ tag: 'h1',
26
+ };
27
+
28
+ export const Align = BaseTemplate.bind();
29
+ Align.args = {
30
+ slot: '"Had to be me. Someone else might have gotten it wrong."',
31
+ align: 'center',
32
+ tag: 'em',
33
+ };
34
+
35
+ export const Color = BaseTemplate.bind();
36
+ Color.args = {
37
+ slot: 'Hello World',
38
+ color: 'accent',
39
+ tag: 'p',
40
+ };
41
+
42
+ export const FontSize = BaseTemplate.bind();
43
+ FontSize.args = {
44
+ slot: 'Hello World',
45
+ size: '2xl',
46
+ tag: 'p',
47
+ };
48
+
49
+ export const FontWeight = BaseTemplate.bind();
50
+ FontWeight.args = {
51
+ slot: 'Hello World',
52
+ weight: 'bold',
53
+ tag: 'p',
54
+ };
55
+
56
+ const GutterTemplate = (args) => html`
57
+ <pds-text
58
+ align="${args.align}"
59
+ color="${args.color}"
60
+ gutter="${args.gutter}"
61
+ size="${args.size}"
62
+ tag="${args.tag}"
63
+ weight="${args.weight}"
64
+ truncate
65
+ >
66
+ ${args.slot}
67
+ </pds-text>
68
+ <pds-text tag="p">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam in dui mauris. Vivamus hendrerit arcu sed</pds-text>`;
69
+
70
+ export const Gutter = GutterTemplate.bind();
71
+ Gutter.args = {
72
+ slot: 'Title',
73
+ gutter: 'lg',
74
+ tag: 'h2',
75
+ };
76
+
77
+ const ItalicTemplate = (args) => html`
78
+ <pds-text
79
+ align="${args.align}"
80
+ color="${args.color}"
81
+ size="${args.size}"
82
+ tag="${args.tag}"
83
+ weight="${args.weight}"
84
+ italic
85
+ >
86
+ ${args.slot}
87
+ </pds-text>`;
88
+
89
+ export const Italic = ItalicTemplate.bind();
90
+ Italic.args = {
91
+ slot: 'Id irure id magna ipsum voluptate irure esse eu nulla',
92
+ tag: 'p',
93
+ };
94
+
95
+ const TruncateTemplate = (args) => html`
96
+ <pds-text
97
+ align="${args.align}"
98
+ color="${args.color}"
99
+ size="${args.size}"
100
+ tag="${args.tag}"
101
+ weight="${args.weight}"
102
+ truncate
103
+ >
104
+ ${args.slot}
105
+ </pds-text>`;
106
+
107
+ export const Truncate = TruncateTemplate.bind();
108
+ Truncate.args = {
109
+ slot: 'Id irure id magna ipsum voluptate irure esse eu nulla. Ullamco officia adipisicing qui nulla non sint. Mollit tempor veniam quis nisi aliqua duis elit eu laborum et incididunt ut sit irure. Nisi aute veniam sint do amet consectetur velit. Quis sunt enim mollit deserunt laboris dolor elit exercitation. Id labore deserunt sint consequat laboris nulla do ut magna. Aliquip labore esse sint consequat voluptate tempor consectetur sit sint culpa occaecat ut velit est.',
110
+ tag: 'p',
111
+ };
@@ -21,6 +21,7 @@
21
21
  --spacing-margin-block-start-helper-message: var(--pine-spacing-100);
22
22
  --spacing-padding-block-field: var(--pine-spacing-100);
23
23
  --spacing-padding-inline-field: var(--pine-spacing-200);
24
+ --spacing-icon-error-message: var(--pine-spacing-050);
24
25
  --typography-message-default: var(--pine-typography-body-sm-default);
25
26
  display: inline;
26
27
  }
@@ -71,5 +72,8 @@ label {
71
72
  }
72
73
 
73
74
  .pds-textarea__error-message {
75
+ align-items: center;
74
76
  color: var(--color-text-message-error-default);
77
+ display: flex;
78
+ gap: var(--spacing-icon-error-message);
75
79
  }
@@ -1,16 +1,18 @@
1
1
  import { Host, h } from "@stencil/core";
2
2
  import { assignDescription, isRequired, 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 PdsTextarea {
5
6
  constructor() {
6
7
  this.onTextareaChange = (ev) => {
7
8
  const textarea = ev.target;
8
9
  isRequired(textarea, this);
9
10
  if (textarea) {
10
- this.value = textarea.innerHTML;
11
+ this.value = textarea.value;
11
12
  }
12
13
  this.pdsTextareaChange.emit({ value: this.value, event: ev });
13
14
  };
15
+ this.autocomplete = undefined;
14
16
  this.componentId = undefined;
15
17
  this.disabled = false;
16
18
  this.errorMessage = undefined;
@@ -32,10 +34,10 @@ export class PdsTextarea {
32
34
  return classNames.join(' ');
33
35
  }
34
36
  render() {
35
- return (h(Host, { key: '178de49f01c711145054009b42828b846b7670b9', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: 'b62cfd1551b4923990b2b806a9ad07755b82a2a4', class: "pds-textarea" }, this.label &&
36
- h(PdsLabel, { key: '3a5990ac49ad3367d3f59dd8ff6e986920ccccc5', htmlFor: this.componentId, text: this.label }), h("textarea", { key: 'e27ff5eb4350be9a1c2351ccda578588241e85d7', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
37
- h("p", { key: '71e4839681208e2a11e79d0a9e3d1542da566dcf', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
38
- h("p", { key: '64de96c3dcf76d0e1d888f9e88f4bec66138010d', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, this.errorMessage))));
37
+ return (h(Host, { key: 'd3cec920aa6de1d10734cf532441b7cd33262f03', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: '66865515eeeb7c68887135e82a4d99e0f63011ca', class: "pds-textarea" }, this.label &&
38
+ h(PdsLabel, { key: '390b6073cc628fba80754e27785045b927559406', htmlFor: this.componentId, text: this.label }), h("textarea", { key: '6a9232804406c1a92ea1a4b792c69f2c116728b8', "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, class: this.textareaClassNames(), disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, rows: this.rows, onChange: this.onTextareaChange }, this.value), this.helperMessage &&
39
+ h("p", { key: '066c5533e0f18c1536bd05aecca1e0ed82a7a115', class: "pds-textarea__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.invalid &&
40
+ h("p", { key: 'bb18f8d1f229e48b6039244559a06b0de607f582', "aria-live": "assertive", class: "pds-textarea__error-message", id: messageId(this.componentId, 'error') }, h("pds-icon", { key: 'f619f844ca95981f6986a1f29f1a60774c4281f5', icon: danger, size: "small" }), this.errorMessage))));
39
41
  }
40
42
  static get is() { return "pds-textarea"; }
41
43
  static get encapsulation() { return "shadow"; }
@@ -51,6 +53,23 @@ export class PdsTextarea {
51
53
  }
52
54
  static get properties() {
53
55
  return {
56
+ "autocomplete": {
57
+ "type": "string",
58
+ "mutable": false,
59
+ "complexType": {
60
+ "original": "string",
61
+ "resolved": "string",
62
+ "references": {}
63
+ },
64
+ "required": false,
65
+ "optional": false,
66
+ "docs": {
67
+ "tags": [],
68
+ "text": "Specifies if and how the browser provides `autocomplete` assistance for the field."
69
+ },
70
+ "attribute": "autocomplete",
71
+ "reflect": false
72
+ },
54
73
  "componentId": {
55
74
  "type": "string",
56
75
  "mutable": false,
@@ -1 +1 @@
1
- {"version":3,"file":"pds-textarea.js","sourceRoot":"","sources":["../../../src/components/pds-textarea/pds-textarea.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail } from './textarea-interface';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-textarea',\n styleUrls: ['../../global/styles/base.scss', 'pds-textarea.scss'],\n shadow: true,\n})\nexport class PdsTextarea {\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the textarea is disabled\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Specifies the error text and provides an error-themed treatment to the field\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a hint or description of the textarea\n */\n @Prop() helperMessage?: string;\n\n /**\n * Indicates whether or not the textarea is invalid or throws an error\n * @defaultValue false\n */\n @Prop({mutable: true}) invalid = false; // eslint-disable-line @stencil-community/strict-mutable\n\n /**\n * Text to be displayed as the textarea label\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name, submitted with the form name/value pair. This value will mirror the componentId\n */\n @Prop() name: string = this.componentId;\n\n /**\n * Specifies a short hint that describes the expected value of the textarea\n */\n @Prop() placeholder?: string;\n\n /**\n * Indicates whether or not the textarea is readonly\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Indicates whether or not the textarea is required\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * Sets number of rows of text visible without needing to scroll in the textarea\n */\n @Prop() rows?: number;\n\n /**\n * The value of the textarea\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Event emitted whenever the value of the textarea changes\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n private onTextareaChange = (ev: Event) => {\n const textarea = ev.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n if (textarea) {\n this.value = textarea.innerHTML;\n }\n\n this.pdsTextareaChange.emit({value: this.value, event: ev});\n };\n\n private textareaClassNames() {\n const classNames = ['pds-textarea__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n }\n <textarea\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n class={this.textareaClassNames()}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n rows={this.rows}\n onChange={this.onTextareaChange}\n >{this.value}</textarea>\n {this.helperMessage &&\n <p\n class=\"pds-textarea__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.invalid &&\n <p\n aria-live=\"assertive\"\n class=\"pds-textarea__error-message\"\n id={messageId(this.componentId, 'error')}\n >\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-textarea.js","sourceRoot":"","sources":["../../../src/components/pds-textarea/pds-textarea.tsx"],"names":[],"mappings":"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","sourcesContent":["import { Component, Element, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail } from './textarea-interface';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-textarea',\n styleUrls: ['../../global/styles/base.scss', 'pds-textarea.scss'],\n shadow: true,\n})\nexport class PdsTextarea {\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the textarea is disabled\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * Specifies the error text and provides an error-themed treatment to the field\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a hint or description of the textarea\n */\n @Prop() helperMessage?: string;\n\n /**\n * Indicates whether or not the textarea is invalid or throws an error\n * @defaultValue false\n */\n @Prop({mutable: true}) invalid = false; // eslint-disable-line @stencil-community/strict-mutable\n\n /**\n * Text to be displayed as the textarea label\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name, submitted with the form name/value pair. This value will mirror the componentId\n */\n @Prop() name: string = this.componentId;\n\n /**\n * Specifies a short hint that describes the expected value of the textarea\n */\n @Prop() placeholder?: string;\n\n /**\n * Indicates whether or not the textarea is readonly\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Indicates whether or not the textarea is required\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * Sets number of rows of text visible without needing to scroll in the textarea\n */\n @Prop() rows?: number;\n\n /**\n * The value of the textarea\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Event emitted whenever the value of the textarea changes\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n private onTextareaChange = (ev: Event) => {\n const textarea = ev.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n if (textarea) {\n this.value = textarea.value;\n }\n\n this.pdsTextareaChange.emit({value: this.value, event: ev});\n };\n\n private textareaClassNames() {\n const classNames = ['pds-textarea__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n }\n <textarea\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n autocomplete={this.autocomplete}\n class={this.textareaClassNames()}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n rows={this.rows}\n onChange={this.onTextareaChange}\n >{this.value}</textarea>\n {this.helperMessage &&\n <p\n class=\"pds-textarea__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.invalid &&\n <p\n aria-live=\"assertive\"\n class=\"pds-textarea__error-message\"\n id={messageId(this.componentId, 'error')}\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"]}