@pine-ds/core 3.2.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (627) hide show
  1. package/components/floating-ui.dom.js +1321 -0
  2. package/components/floating-ui.dom.js.map +1 -0
  3. package/components/index.d.ts +4 -0
  4. package/components/index.js +2 -0
  5. package/components/index.js.map +1 -1
  6. package/components/index2.js +1 -1
  7. package/components/index2.js.map +1 -1
  8. package/components/mock-pds-modal.js +1 -1
  9. package/components/pds-box2.js.map +1 -1
  10. package/components/pds-button2.js +1 -1
  11. package/components/pds-button2.js.map +1 -1
  12. package/components/pds-chip.js +21 -6
  13. package/components/pds-chip.js.map +1 -1
  14. package/components/pds-combobox.d.ts +11 -0
  15. package/components/pds-combobox.js +1771 -0
  16. package/components/pds-combobox.js.map +1 -0
  17. package/components/pds-copytext.js +1 -1
  18. package/components/pds-divider.js +1 -1
  19. package/components/pds-dropdown-menu-item.js +1 -1
  20. package/components/pds-dropdown-menu-separator.js +1 -1
  21. package/components/pds-dropdown-menu.js +4 -1320
  22. package/components/pds-dropdown-menu.js.map +1 -1
  23. package/components/pds-icon2.js +151 -18
  24. package/components/pds-icon2.js.map +1 -1
  25. package/components/pds-image.js +2 -2
  26. package/components/pds-input.js +111 -21
  27. package/components/pds-input.js.map +1 -1
  28. package/components/pds-link2.js +2 -2
  29. package/components/pds-loader2.js +1 -1
  30. package/components/pds-modal-content.js +2 -2
  31. package/components/pds-modal-footer.js +1 -1
  32. package/components/pds-modal-header.js +1 -1
  33. package/components/pds-modal.js +2 -2
  34. package/components/pds-popover.js +1 -1
  35. package/components/pds-progress.js +1 -1
  36. package/components/pds-property.d.ts +11 -0
  37. package/components/pds-property.js +55 -0
  38. package/components/pds-property.js.map +1 -0
  39. package/components/pds-radio.js +3 -3
  40. package/components/pds-row.js +1 -1
  41. package/components/pds-select.js +12 -3
  42. package/components/pds-select.js.map +1 -1
  43. package/components/pds-sortable-item.js +1 -1
  44. package/components/pds-sortable.js +1 -1
  45. package/components/pds-switch.js +3 -3
  46. package/components/pds-tab.js +3 -3
  47. package/components/pds-table-body.js +1 -1
  48. package/components/pds-table-cell2.js +2 -2
  49. package/components/pds-table-head-cell2.js +2 -2
  50. package/components/pds-table-head.js +1 -1
  51. package/components/pds-table-row.js +1 -1
  52. package/components/pds-table.js +1 -1
  53. package/components/pds-tabpanel.js +1 -1
  54. package/components/pds-tabs.js +1 -1
  55. package/components/pds-text2.js +1 -1
  56. package/components/pds-text2.js.map +1 -1
  57. package/components/pds-textarea.js +18 -5
  58. package/components/pds-textarea.js.map +1 -1
  59. package/components/pds-toast.js +3 -3
  60. package/components/pds-tooltip.js +17 -1
  61. package/components/pds-tooltip.js.map +1 -1
  62. package/dist/cjs/floating-ui.dom-Bz4BD-cr.js +1326 -0
  63. package/dist/cjs/floating-ui.dom-Bz4BD-cr.js.map +1 -0
  64. package/dist/cjs/{index-CG2Rr2io.js → index-BfqrB2cC.js} +3 -3
  65. package/dist/cjs/index-BfqrB2cC.js.map +1 -0
  66. package/dist/cjs/loader.cjs.js +1 -1
  67. package/dist/cjs/mock-pds-modal.cjs.entry.js +1 -1
  68. package/dist/cjs/pds-accordion.cjs.entry.js +1 -1
  69. package/dist/cjs/pds-avatar.cjs.entry.js +1 -1
  70. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  71. package/dist/cjs/pds-box.entry.cjs.js.map +1 -1
  72. package/dist/cjs/pds-button.cjs.entry.js +2 -2
  73. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  74. package/dist/cjs/pds-button.entry.cjs.js.map +1 -1
  75. package/dist/cjs/pds-checkbox.cjs.entry.js +1 -1
  76. package/dist/cjs/pds-chip.cjs.entry.js +21 -7
  77. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  78. package/dist/cjs/pds-chip.entry.cjs.js.map +1 -1
  79. package/dist/cjs/pds-combobox.cjs.entry.js +1717 -0
  80. package/dist/cjs/pds-combobox.cjs.entry.js.map +1 -0
  81. package/dist/cjs/pds-combobox.entry.cjs.js.map +1 -0
  82. package/dist/cjs/pds-copytext.cjs.entry.js +2 -2
  83. package/dist/cjs/pds-divider.cjs.entry.js +1 -1
  84. package/dist/cjs/pds-dropdown-menu-item.cjs.entry.js +1 -1
  85. package/dist/cjs/pds-dropdown-menu-separator.cjs.entry.js +1 -1
  86. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +4 -1320
  87. package/dist/cjs/pds-dropdown-menu.cjs.entry.js.map +1 -1
  88. package/dist/cjs/pds-dropdown-menu.entry.cjs.js.map +1 -1
  89. package/dist/cjs/pds-icon.cjs.entry.js +148 -15
  90. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  91. package/dist/cjs/pds-icon.entry.cjs.js.map +1 -1
  92. package/dist/cjs/pds-image.cjs.entry.js +2 -2
  93. package/dist/cjs/pds-input.cjs.entry.js +100 -21
  94. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  95. package/dist/cjs/pds-input.entry.cjs.js.map +1 -1
  96. package/dist/cjs/pds-link.cjs.entry.js +3 -3
  97. package/dist/cjs/pds-loader.cjs.entry.js +1 -1
  98. package/dist/cjs/pds-modal-content.cjs.entry.js +2 -2
  99. package/dist/cjs/pds-modal-footer.cjs.entry.js +1 -1
  100. package/dist/cjs/pds-modal-header.cjs.entry.js +1 -1
  101. package/dist/cjs/pds-modal.cjs.entry.js +2 -2
  102. package/dist/cjs/pds-popover.cjs.entry.js +1 -1
  103. package/dist/cjs/pds-progress.cjs.entry.js +1 -1
  104. package/dist/cjs/pds-property.cjs.entry.js +24 -0
  105. package/dist/cjs/pds-property.cjs.entry.js.map +1 -0
  106. package/dist/cjs/pds-property.entry.cjs.js.map +1 -0
  107. package/dist/cjs/pds-radio.cjs.entry.js +4 -4
  108. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  109. package/dist/cjs/pds-select.cjs.entry.js +12 -4
  110. package/dist/cjs/pds-select.cjs.entry.js.map +1 -1
  111. package/dist/cjs/pds-select.entry.cjs.js.map +1 -1
  112. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  113. package/dist/cjs/pds-sortable.cjs.entry.js +1 -1
  114. package/dist/cjs/pds-switch.cjs.entry.js +4 -4
  115. package/dist/cjs/pds-tab.cjs.entry.js +3 -3
  116. package/dist/cjs/pds-table-body.cjs.entry.js +1 -1
  117. package/dist/cjs/pds-table-cell.cjs.entry.js +2 -2
  118. package/dist/cjs/pds-table-head-cell.cjs.entry.js +3 -3
  119. package/dist/cjs/pds-table-head.cjs.entry.js +1 -1
  120. package/dist/cjs/pds-table-row.cjs.entry.js +1 -1
  121. package/dist/cjs/pds-table.cjs.entry.js +1 -1
  122. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  123. package/dist/cjs/pds-tabs.cjs.entry.js +1 -1
  124. package/dist/cjs/pds-text.cjs.entry.js +1 -1
  125. package/dist/cjs/pds-text.cjs.entry.js.map +1 -1
  126. package/dist/cjs/pds-text.entry.cjs.js.map +1 -1
  127. package/dist/cjs/pds-textarea.cjs.entry.js +18 -6
  128. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  129. package/dist/cjs/pds-textarea.entry.cjs.js.map +1 -1
  130. package/dist/cjs/pds-toast.cjs.entry.js +3 -3
  131. package/dist/cjs/pds-tooltip.cjs.entry.js +17 -1
  132. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  133. package/dist/cjs/pds-tooltip.entry.cjs.js.map +1 -1
  134. package/dist/cjs/pine-core.cjs.js +1 -1
  135. package/dist/collection/collection-manifest.json +2 -0
  136. package/dist/collection/components/pds-button/pds-button.css +17 -5
  137. package/dist/collection/components/pds-chip/pds-chip.css +48 -11
  138. package/dist/collection/components/pds-chip/pds-chip.js +42 -9
  139. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  140. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +17 -0
  141. package/dist/collection/components/pds-combobox/pds-combobox.css +223 -0
  142. package/dist/collection/components/pds-combobox/pds-combobox.js +783 -0
  143. package/dist/collection/components/pds-combobox/pds-combobox.js.map +1 -0
  144. package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +194 -0
  145. package/dist/collection/components/pds-copytext/pds-copytext.js +1 -1
  146. package/dist/collection/components/pds-divider/pds-divider.js +1 -1
  147. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-item/pds-dropdown-menu-item.js +1 -1
  148. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu-separator/pds-dropdown-menu-separator.js +1 -1
  149. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +1 -1
  150. package/dist/collection/components/pds-image/pds-image.js +2 -2
  151. package/dist/collection/components/pds-input/pds-input.css +184 -43
  152. package/dist/collection/components/pds-input/pds-input.js +226 -21
  153. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  154. package/dist/collection/components/pds-input/stories/pds-input.stories.js +182 -0
  155. package/dist/collection/components/pds-link/pds-link.js +2 -2
  156. package/dist/collection/components/pds-loader/pds-loader.js +1 -1
  157. package/dist/collection/components/pds-modal/pds-modal-content/pds-modal-content.js +2 -2
  158. package/dist/collection/components/pds-modal/pds-modal-footer/pds-modal-footer.js +1 -1
  159. package/dist/collection/components/pds-modal/pds-modal-header/pds-modal-header.js +1 -1
  160. package/dist/collection/components/pds-modal/pds-modal.js +2 -2
  161. package/dist/collection/components/pds-modal/test/mock-pds-modal.js +1 -1
  162. package/dist/collection/components/pds-popover/pds-popover.js +1 -1
  163. package/dist/collection/components/pds-progress/pds-progress.js +1 -1
  164. package/dist/collection/components/pds-property/pds-property.css +4 -0
  165. package/dist/collection/components/pds-property/pds-property.js +71 -0
  166. package/dist/collection/components/pds-property/pds-property.js.map +1 -0
  167. package/dist/collection/components/pds-property/stories/pds-property.stories.js +20 -0
  168. package/dist/collection/components/pds-radio/pds-radio.js +3 -3
  169. package/dist/collection/components/pds-row/pds-row.js +1 -1
  170. package/dist/collection/components/pds-select/pds-select.css +53 -5
  171. package/dist/collection/components/pds-select/pds-select.js +32 -2
  172. package/dist/collection/components/pds-select/pds-select.js.map +1 -1
  173. package/dist/collection/components/pds-select/stories/pds-select.stories.js +44 -0
  174. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +1 -1
  175. package/dist/collection/components/pds-sortable/pds-sortable.js +1 -1
  176. package/dist/collection/components/pds-switch/pds-switch.js +3 -3
  177. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +1 -1
  178. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +2 -2
  179. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +1 -1
  180. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +2 -2
  181. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +1 -1
  182. package/dist/collection/components/pds-table/pds-table.js +1 -1
  183. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +3 -3
  184. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +1 -1
  185. package/dist/collection/components/pds-tabs/pds-tabs.js +1 -1
  186. package/dist/collection/components/pds-text/pds-text.js +4 -1
  187. package/dist/collection/components/pds-text/pds-text.js.map +1 -1
  188. package/dist/collection/components/pds-textarea/pds-textarea.css +18 -0
  189. package/dist/collection/components/pds-textarea/pds-textarea.js +21 -5
  190. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  191. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +48 -1
  192. package/dist/collection/components/pds-toast/pds-toast.js +3 -3
  193. package/dist/collection/components/pds-tooltip/pds-tooltip.js +17 -1
  194. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  195. package/dist/docs.json +1162 -227
  196. package/dist/esm/floating-ui.dom-D_FwyeSw.js +1321 -0
  197. package/dist/esm/floating-ui.dom-D_FwyeSw.js.map +1 -0
  198. package/dist/esm/{index-_4gljHh-.js → index-CzVv99mW.js} +3 -3
  199. package/dist/esm/index-CzVv99mW.js.map +1 -0
  200. package/dist/esm/loader.js +1 -1
  201. package/dist/esm/mock-pds-modal.entry.js +1 -1
  202. package/dist/esm/pds-accordion.entry.js +1 -1
  203. package/dist/esm/pds-avatar.entry.js +1 -1
  204. package/dist/esm/pds-box.entry.js.map +1 -1
  205. package/dist/esm/pds-button.entry.js +2 -2
  206. package/dist/esm/pds-button.entry.js.map +1 -1
  207. package/dist/esm/pds-checkbox.entry.js +1 -1
  208. package/dist/esm/pds-chip.entry.js +21 -7
  209. package/dist/esm/pds-chip.entry.js.map +1 -1
  210. package/dist/esm/pds-combobox.entry.js +1715 -0
  211. package/dist/esm/pds-combobox.entry.js.map +1 -0
  212. package/dist/esm/pds-copytext.entry.js +2 -2
  213. package/dist/esm/pds-divider.entry.js +1 -1
  214. package/dist/esm/pds-dropdown-menu-item.entry.js +1 -1
  215. package/dist/esm/pds-dropdown-menu-separator.entry.js +1 -1
  216. package/dist/esm/pds-dropdown-menu.entry.js +2 -1318
  217. package/dist/esm/pds-dropdown-menu.entry.js.map +1 -1
  218. package/dist/esm/pds-icon.entry.js +148 -15
  219. package/dist/esm/pds-icon.entry.js.map +1 -1
  220. package/dist/esm/pds-image.entry.js +2 -2
  221. package/dist/esm/pds-input.entry.js +100 -21
  222. package/dist/esm/pds-input.entry.js.map +1 -1
  223. package/dist/esm/pds-link.entry.js +3 -3
  224. package/dist/esm/pds-loader.entry.js +1 -1
  225. package/dist/esm/pds-modal-content.entry.js +2 -2
  226. package/dist/esm/pds-modal-footer.entry.js +1 -1
  227. package/dist/esm/pds-modal-header.entry.js +1 -1
  228. package/dist/esm/pds-modal.entry.js +2 -2
  229. package/dist/esm/pds-popover.entry.js +1 -1
  230. package/dist/esm/pds-progress.entry.js +1 -1
  231. package/dist/esm/pds-property.entry.js +22 -0
  232. package/dist/esm/pds-property.entry.js.map +1 -0
  233. package/dist/esm/pds-radio.entry.js +4 -4
  234. package/dist/esm/pds-row.entry.js +1 -1
  235. package/dist/esm/pds-select.entry.js +13 -5
  236. package/dist/esm/pds-select.entry.js.map +1 -1
  237. package/dist/esm/pds-sortable-item.entry.js +2 -2
  238. package/dist/esm/pds-sortable.entry.js +1 -1
  239. package/dist/esm/pds-switch.entry.js +4 -4
  240. package/dist/esm/pds-tab.entry.js +3 -3
  241. package/dist/esm/pds-table-body.entry.js +1 -1
  242. package/dist/esm/pds-table-cell.entry.js +2 -2
  243. package/dist/esm/pds-table-head-cell.entry.js +3 -3
  244. package/dist/esm/pds-table-head.entry.js +1 -1
  245. package/dist/esm/pds-table-row.entry.js +1 -1
  246. package/dist/esm/pds-table.entry.js +1 -1
  247. package/dist/esm/pds-tabpanel.entry.js +1 -1
  248. package/dist/esm/pds-tabs.entry.js +1 -1
  249. package/dist/esm/pds-text.entry.js +1 -1
  250. package/dist/esm/pds-text.entry.js.map +1 -1
  251. package/dist/esm/pds-textarea.entry.js +18 -6
  252. package/dist/esm/pds-textarea.entry.js.map +1 -1
  253. package/dist/esm/pds-toast.entry.js +3 -3
  254. package/dist/esm/pds-tooltip.entry.js +17 -1
  255. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  256. package/dist/esm/pine-core.js +1 -1
  257. package/dist/esm-es5/floating-ui.dom-D_FwyeSw.js +2 -0
  258. package/dist/esm-es5/floating-ui.dom-D_FwyeSw.js.map +1 -0
  259. package/dist/esm-es5/{index-_4gljHh-.js → index-CzVv99mW.js} +1 -1
  260. package/dist/esm-es5/index-CzVv99mW.js.map +1 -0
  261. package/dist/esm-es5/loader.js +1 -1
  262. package/dist/esm-es5/mock-pds-modal.entry.js +1 -1
  263. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  264. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  265. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  266. package/dist/esm-es5/pds-button.entry.js +1 -1
  267. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  268. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  269. package/dist/esm-es5/pds-chip.entry.js +1 -1
  270. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  271. package/dist/esm-es5/pds-combobox.entry.js +3 -0
  272. package/dist/esm-es5/pds-combobox.entry.js.map +1 -0
  273. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  274. package/dist/esm-es5/pds-divider.entry.js +1 -1
  275. package/dist/esm-es5/pds-dropdown-menu-item.entry.js +1 -1
  276. package/dist/esm-es5/pds-dropdown-menu-separator.entry.js +1 -1
  277. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  278. package/dist/esm-es5/pds-dropdown-menu.entry.js.map +1 -1
  279. package/dist/esm-es5/pds-icon.entry.js +1 -1
  280. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  281. package/dist/esm-es5/pds-image.entry.js +1 -1
  282. package/dist/esm-es5/pds-input.entry.js +1 -1
  283. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  284. package/dist/esm-es5/pds-link.entry.js +1 -1
  285. package/dist/esm-es5/pds-loader.entry.js +1 -1
  286. package/dist/esm-es5/pds-modal-content.entry.js +1 -1
  287. package/dist/esm-es5/pds-modal-footer.entry.js +1 -1
  288. package/dist/esm-es5/pds-modal-header.entry.js +1 -1
  289. package/dist/esm-es5/pds-modal.entry.js +1 -1
  290. package/dist/esm-es5/pds-popover.entry.js +1 -1
  291. package/dist/esm-es5/pds-progress.entry.js +1 -1
  292. package/dist/esm-es5/pds-property.entry.js +2 -0
  293. package/dist/esm-es5/pds-property.entry.js.map +1 -0
  294. package/dist/esm-es5/pds-radio.entry.js +1 -1
  295. package/dist/esm-es5/pds-row.entry.js +1 -1
  296. package/dist/esm-es5/pds-select.entry.js +1 -1
  297. package/dist/esm-es5/pds-select.entry.js.map +1 -1
  298. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  299. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  300. package/dist/esm-es5/pds-switch.entry.js +1 -1
  301. package/dist/esm-es5/pds-tab.entry.js +1 -1
  302. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  303. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  304. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  305. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  306. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  307. package/dist/esm-es5/pds-table.entry.js +1 -1
  308. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  309. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  310. package/dist/esm-es5/pds-text.entry.js +1 -1
  311. package/dist/esm-es5/pds-text.entry.js.map +1 -1
  312. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  313. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  314. package/dist/esm-es5/pds-toast.entry.js +1 -1
  315. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  316. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  317. package/dist/esm-es5/pine-core.js +1 -1
  318. package/dist/pine-core/{p-e2dc81c0.entry.js → p-000ed179.entry.js} +2 -2
  319. package/dist/pine-core/{p-c1b0f921.system.entry.js → p-0c6e9ba0.system.entry.js} +2 -2
  320. package/dist/pine-core/p-160c6806.system.entry.js +2 -0
  321. package/dist/pine-core/p-160c6806.system.entry.js.map +1 -0
  322. package/dist/pine-core/p-1e056ca3.system.entry.js +2 -0
  323. package/dist/pine-core/p-1e056ca3.system.entry.js.map +1 -0
  324. package/dist/pine-core/{p-596e0292.system.entry.js → p-1ef5f46b.system.entry.js} +2 -2
  325. package/dist/pine-core/{p-7ff213bb.system.entry.js → p-256d15bc.system.entry.js} +2 -2
  326. package/dist/pine-core/{p-17d3fa8b.entry.js → p-27b52fc5.entry.js} +2 -2
  327. package/dist/pine-core/{p-833f08f3.entry.js → p-2a2cd90d.entry.js} +2 -2
  328. package/dist/pine-core/{p-4288c861.entry.js → p-2f0aedfa.entry.js} +2 -2
  329. package/dist/pine-core/{p-78cb1c40.system.entry.js → p-2fbc5f8c.system.entry.js} +2 -2
  330. package/dist/pine-core/{p-b7ba6316.entry.js → p-30449e82.entry.js} +2 -2
  331. package/dist/pine-core/p-307b456a.entry.js +2 -0
  332. package/dist/pine-core/p-307b456a.entry.js.map +1 -0
  333. package/dist/pine-core/{p-761946a0.entry.js → p-31fe86a6.entry.js} +2 -2
  334. package/dist/pine-core/p-357b6dd6.system.entry.js +2 -0
  335. package/dist/pine-core/{p-85ff1482.entry.js → p-36d3352a.entry.js} +2 -2
  336. package/dist/pine-core/p-38248640.entry.js +2 -0
  337. package/dist/pine-core/p-38248640.entry.js.map +1 -0
  338. package/dist/pine-core/{p-3798a631.system.entry.js → p-383af1d4.system.entry.js} +2 -2
  339. package/dist/pine-core/{p-bcc4edaa.entry.js → p-39fbd912.entry.js} +2 -2
  340. package/dist/pine-core/p-3b43a1ea.entry.js +2 -0
  341. package/dist/pine-core/{p-a52b1413.entry.js.map → p-3b43a1ea.entry.js.map} +1 -1
  342. package/dist/pine-core/{p-5c4aceb7.entry.js → p-3bbb6fc1.entry.js} +2 -2
  343. package/dist/pine-core/p-3df372d1.entry.js +3 -0
  344. package/dist/pine-core/p-3df372d1.entry.js.map +1 -0
  345. package/dist/pine-core/p-3fd658ad.system.entry.js +2 -0
  346. package/dist/pine-core/p-3fd658ad.system.entry.js.map +1 -0
  347. package/dist/pine-core/p-447fa824.system.entry.js +2 -0
  348. package/dist/pine-core/p-447fa824.system.entry.js.map +1 -0
  349. package/dist/pine-core/p-495a206d.entry.js +2 -0
  350. package/dist/pine-core/p-495a206d.entry.js.map +1 -0
  351. package/dist/pine-core/p-4a69106a.system.entry.js +2 -0
  352. package/dist/pine-core/p-4a69106a.system.entry.js.map +1 -0
  353. package/dist/pine-core/p-4d22ca40.entry.js +2 -0
  354. package/dist/pine-core/p-4d22ca40.entry.js.map +1 -0
  355. package/dist/pine-core/p-5033d9e8.entry.js +2 -0
  356. package/dist/pine-core/{p-6a2296e6.system.entry.js → p-5706c81b.system.entry.js} +2 -2
  357. package/dist/pine-core/p-5a1af174.entry.js +2 -0
  358. package/dist/pine-core/p-5a1af174.entry.js.map +1 -0
  359. package/dist/pine-core/{p-1224c874.entry.js → p-5fdbbab9.entry.js} +2 -2
  360. package/dist/pine-core/{p-121e03ad.system.entry.js → p-61b7ff04.system.entry.js} +2 -2
  361. package/dist/pine-core/{p-111e7da2.system.entry.js → p-62bc2080.system.entry.js} +2 -2
  362. package/dist/pine-core/{p-367e188f.entry.js → p-64c897bb.entry.js} +2 -2
  363. package/dist/pine-core/{p-f2c807ac.entry.js → p-667eb50e.entry.js} +2 -2
  364. package/dist/pine-core/{p-77c3a10d.entry.js → p-6d36fae0.entry.js} +2 -2
  365. package/dist/pine-core/p-6ef51211.entry.js +2 -0
  366. package/dist/pine-core/{p-D-4Xbxlj.system.js.map → p-6tdMlyau.system.js.map} +1 -1
  367. package/dist/pine-core/p-708c66c2.entry.js +2 -0
  368. package/dist/pine-core/p-708c66c2.entry.js.map +1 -0
  369. package/dist/pine-core/p-73412ca9.system.entry.js.map +1 -1
  370. package/dist/pine-core/{p-bd04212c.system.entry.js → p-7a431264.system.entry.js} +2 -2
  371. package/dist/pine-core/p-7a431264.system.entry.js.map +1 -0
  372. package/dist/pine-core/{p-d6ac2862.system.entry.js → p-7da6180d.system.entry.js} +2 -2
  373. package/dist/pine-core/{p-c4294be2.entry.js → p-80246c79.entry.js} +2 -2
  374. package/dist/pine-core/{p-2296c34f.entry.js → p-822e90ee.entry.js} +2 -2
  375. package/dist/pine-core/p-822e90ee.entry.js.map +1 -0
  376. package/dist/pine-core/{p-24607f93.entry.js → p-82388e60.entry.js} +2 -2
  377. package/dist/pine-core/p-90a8d1bd.entry.js +2 -0
  378. package/dist/pine-core/p-90a8d1bd.entry.js.map +1 -0
  379. package/dist/pine-core/{p-7b38e384.system.entry.js → p-91520803.system.entry.js} +2 -2
  380. package/dist/pine-core/{p-3f82ac77.system.entry.js → p-982edcaf.system.entry.js} +2 -2
  381. package/dist/pine-core/p-9b8a3659.system.entry.js +2 -0
  382. package/dist/pine-core/{p-730221a8.system.entry.js → p-9cc1844a.system.entry.js} +2 -2
  383. package/dist/pine-core/{p-ef9ed75a.system.entry.js → p-9d8bb7f7.system.entry.js} +2 -2
  384. package/dist/pine-core/{p-71265b2a.system.entry.js → p-9df7ba40.system.entry.js} +2 -2
  385. package/dist/pine-core/p-9e22eab5.system.entry.js +2 -0
  386. package/dist/pine-core/p-B-xQ7Q5Y.system.js.map +1 -0
  387. package/dist/pine-core/p-BHZ6CSg4.system.js.map +1 -1
  388. package/dist/pine-core/{p-CWtKi9tV.system.js.map → p-BJRnZhwF.system.js.map} +1 -1
  389. package/dist/pine-core/{p-Derxa-nn.system.js.map → p-BPlIGHM4.system.js.map} +1 -1
  390. package/dist/pine-core/p-BSg_Clcf.system.js.map +1 -0
  391. package/dist/pine-core/{p-B5JFBYFw.system.js.map → p-Bdnq3aMi.system.js.map} +1 -1
  392. package/dist/pine-core/{p-PkSWq78_.system.js.map → p-Bgszb25I.system.js.map} +1 -1
  393. package/dist/pine-core/p-BlpTiOHo.system.js.map +1 -0
  394. package/dist/pine-core/{p-CzKqvFNN.system.js.map → p-Bok_Wwo5.system.js.map} +1 -1
  395. package/dist/pine-core/{p-DiJV28pi.system.js.map → p-Bpn2QYa2.system.js.map} +1 -1
  396. package/dist/pine-core/{p-DS7q5AvX.system.js.map → p-Bq1H4MPi.system.js.map} +1 -1
  397. package/dist/pine-core/p-BsL2GDnH.system.js +1 -1
  398. package/dist/pine-core/{p-CnPERKGo.system.js.map → p-C47kwjaJ.system.js.map} +1 -1
  399. package/dist/pine-core/{p-D9LPgNmN.system.js.map → p-CD40xhZg.system.js.map} +1 -1
  400. package/dist/pine-core/{p-C-oNYS10.system.js.map → p-CLsVcJCa.system.js.map} +1 -1
  401. package/dist/pine-core/{p-DgOMN0Ur.system.js.map → p-CLscfXhT.system.js.map} +1 -1
  402. package/dist/pine-core/{p-CcsZC7UR.system.js.map → p-CTJnwc4I.system.js.map} +1 -1
  403. package/dist/pine-core/p-CUHK9C55.system.js.map +1 -0
  404. package/dist/pine-core/p-CaJHqbdu.system.js.map +1 -0
  405. package/dist/pine-core/p-Ci1ZzxGS.system.js.map +1 -0
  406. package/dist/pine-core/{p-yku4NLl6.system.js.map → p-ClrDO1lY.system.js.map} +1 -1
  407. package/dist/pine-core/{p-D5vuiRx2.system.js.map → p-Cly-fzRE.system.js.map} +1 -1
  408. package/dist/pine-core/{p-BVUeEWjl.system.js.map → p-CtuIf6LK.system.js.map} +1 -1
  409. package/dist/pine-core/p-Ctwx2R4g.system.js.map +1 -0
  410. package/dist/pine-core/{p-3D0orTx_.system.js.map → p-CuHZffVk.system.js.map} +1 -1
  411. package/dist/pine-core/{p-_4gljHh-.js → p-CzVv99mW.js} +1 -1
  412. package/dist/pine-core/p-CzVv99mW.js.map +1 -0
  413. package/dist/pine-core/{p-DbVkYdnF.system.js.map → p-D1LdgjO0.system.js.map} +1 -1
  414. package/dist/pine-core/p-DJPo1iGw.system.js.map +1 -0
  415. package/dist/pine-core/{p-HBgo7i_E.system.js.map → p-DKGUedTE.system.js.map} +1 -1
  416. package/dist/pine-core/{p-CLNi-hRD.system.js.map → p-DNqc41uY.system.js.map} +1 -1
  417. package/dist/pine-core/{p-Bo6FQRlR.system.js.map → p-DQCWs_Ih.system.js.map} +1 -1
  418. package/dist/pine-core/p-DX9uSGoE.system.js.map +1 -0
  419. package/dist/pine-core/p-D_FwyeSw.js +2 -0
  420. package/dist/pine-core/p-D_FwyeSw.js.map +1 -0
  421. package/dist/pine-core/{p-B4W0_y2p.system.js → p-DiBM9O5Q.system.js} +1 -1
  422. package/dist/pine-core/p-DiBM9O5Q.system.js.map +1 -0
  423. package/dist/pine-core/{p-CV405yTU.system.js.map → p-DwwM3-D4.system.js.map} +1 -1
  424. package/dist/pine-core/{p-Cj2r1nL6.system.js.map → p-DxydR7R6.system.js.map} +1 -1
  425. package/dist/pine-core/{p-DKSZziVY.system.js.map → p-Gn2xhxDz.system.js.map} +1 -1
  426. package/dist/pine-core/{p-B-pTdYoP.system.js.map → p-PuPjQNmU.system.js.map} +1 -1
  427. package/dist/pine-core/{p-DV_GadHU.system.js.map → p-PwBWYqtO.system.js.map} +1 -1
  428. package/dist/pine-core/{p-CsM74dxm.system.js.map → p-U_efBpHV.system.js.map} +1 -1
  429. package/dist/pine-core/p-ZCkmy1Gu.system.js +2 -0
  430. package/dist/pine-core/p-ZCkmy1Gu.system.js.map +1 -0
  431. package/dist/pine-core/{p-83ffc1cc.entry.js → p-a4d19fb1.entry.js} +2 -2
  432. package/dist/pine-core/p-af5c9fbd.system.entry.js +2 -0
  433. package/dist/pine-core/{p-146fcd44.entry.js → p-b214c043.entry.js} +2 -2
  434. package/dist/pine-core/p-b5dc7a18.entry.js +2 -0
  435. package/dist/pine-core/p-b5dc7a18.entry.js.map +1 -0
  436. package/dist/pine-core/{p-c0f74199.entry.js → p-b6d18604.entry.js} +2 -2
  437. package/dist/pine-core/{p-BOJnNd1p.system.js.map → p-b6lYO9O3.system.js.map} +1 -1
  438. package/dist/pine-core/{p-04df41d7.system.entry.js → p-b93825c4.system.entry.js} +2 -2
  439. package/dist/pine-core/{p-48e76945.system.entry.js → p-c5a7c8e9.system.entry.js} +2 -2
  440. package/dist/pine-core/{p-30142a25.system.entry.js → p-c5da4a97.system.entry.js} +2 -2
  441. package/dist/pine-core/p-c93786f1.system.entry.js +2 -0
  442. package/dist/pine-core/{p-78fb945e.system.entry.js → p-cc15bf6c.system.entry.js} +2 -2
  443. package/dist/pine-core/p-d0ec666b.entry.js +2 -0
  444. package/dist/pine-core/p-d21156cf.entry.js +2 -0
  445. package/dist/pine-core/p-d21156cf.entry.js.map +1 -0
  446. package/dist/pine-core/p-d2d6b3a6.system.entry.js +2 -0
  447. package/dist/pine-core/p-d2d6b3a6.system.entry.js.map +1 -0
  448. package/dist/pine-core/{p-942fa145.system.entry.js → p-d451c7b5.system.entry.js} +2 -2
  449. package/dist/pine-core/p-d64527b2.system.entry.js +2 -0
  450. package/dist/pine-core/p-d64527b2.system.entry.js.map +1 -0
  451. package/dist/pine-core/{p-28e28f42.system.entry.js → p-d6b1f60d.system.entry.js} +2 -2
  452. package/dist/pine-core/{p-722012ac.entry.js → p-d989287d.entry.js} +2 -2
  453. package/dist/pine-core/{p-d2ccda59.system.entry.js → p-e0a35811.system.entry.js} +2 -2
  454. package/dist/pine-core/{p-e9d972db.system.entry.js → p-e0a6ba6f.system.entry.js} +2 -2
  455. package/dist/pine-core/{p-1bd715ee.system.entry.js → p-e416f7a8.system.entry.js} +2 -2
  456. package/dist/pine-core/p-e416f7a8.system.entry.js.map +1 -0
  457. package/dist/pine-core/{p-984578f8.system.entry.js → p-e53547e2.system.entry.js} +2 -2
  458. package/dist/pine-core/p-e68dd704.system.entry.js +2 -0
  459. package/dist/pine-core/p-e68dd704.system.entry.js.map +1 -0
  460. package/dist/pine-core/{p-b2796d3c.system.entry.js → p-e7322ff9.system.entry.js} +2 -2
  461. package/dist/pine-core/{p-83c632f6.system.entry.js → p-e8a4eafa.system.entry.js} +2 -2
  462. package/dist/pine-core/{p-f9e01886.system.entry.js → p-ec1c3452.system.entry.js} +2 -2
  463. package/dist/pine-core/p-ee0117a2.entry.js +2 -0
  464. package/dist/pine-core/{p-d1b222f5.entry.js.map → p-ee0117a2.entry.js.map} +1 -1
  465. package/dist/pine-core/{p-a394645a.system.entry.js → p-eef645bd.system.entry.js} +2 -2
  466. package/dist/pine-core/{p-cd2cd116.entry.js → p-ef08f005.entry.js} +2 -2
  467. package/dist/pine-core/p-f256dd8a.entry.js.map +1 -1
  468. package/dist/pine-core/{p-0572825b.entry.js → p-f29baa16.entry.js} +2 -2
  469. package/dist/pine-core/{p-4ff0838c.entry.js → p-f30b1479.entry.js} +2 -2
  470. package/dist/pine-core/p-f455deb5.entry.js +2 -0
  471. package/dist/pine-core/{p-f47133fd.entry.js → p-f7c02b89.entry.js} +2 -2
  472. package/dist/pine-core/p-f9005ac9.entry.js +2 -0
  473. package/dist/pine-core/p-faaa1caa.system.entry.js +4 -0
  474. package/dist/pine-core/p-faaa1caa.system.entry.js.map +1 -0
  475. package/dist/pine-core/{p-99b5e1a5.entry.js → p-fd3b7077.entry.js} +2 -2
  476. package/dist/pine-core/{p-1b109c01.entry.js → p-fe73a67f.entry.js} +2 -2
  477. package/dist/pine-core/{p-DEsea81X.system.js.map → p-ipxZYSGJ.system.js.map} +1 -1
  478. package/dist/pine-core/p-lWwPttyv.system.js.map +1 -0
  479. package/dist/pine-core/{p-CiDIFl28.system.js.map → p-mWJg54bF.system.js.map} +1 -1
  480. package/dist/pine-core/{p-CDIHBBTC.system.js.map → p-y1DacLeb.system.js.map} +1 -1
  481. package/dist/pine-core/{p-Bs9Nyvj2.system.js.map → p-ydqm5FGv.system.js.map} +1 -1
  482. package/dist/pine-core/{p-DN9puCWI.system.js.map → p-zZHye4hT.system.js.map} +1 -1
  483. package/dist/pine-core/pds-box.entry.esm.js.map +1 -1
  484. package/dist/pine-core/pds-button.entry.esm.js.map +1 -1
  485. package/dist/pine-core/pds-chip.entry.esm.js.map +1 -1
  486. package/dist/pine-core/pds-combobox.entry.esm.js.map +1 -0
  487. package/dist/pine-core/pds-dropdown-menu.entry.esm.js.map +1 -1
  488. package/dist/pine-core/pds-icon.entry.esm.js.map +1 -1
  489. package/dist/pine-core/pds-input.entry.esm.js.map +1 -1
  490. package/dist/pine-core/pds-property.entry.esm.js.map +1 -0
  491. package/dist/pine-core/pds-select.entry.esm.js.map +1 -1
  492. package/dist/pine-core/pds-text.entry.esm.js.map +1 -1
  493. package/dist/pine-core/pds-textarea.entry.esm.js.map +1 -1
  494. package/dist/pine-core/pds-tooltip.entry.esm.js.map +1 -1
  495. package/dist/pine-core/pine-core.esm.js +1 -1
  496. package/dist/types/components/pds-chip/pds-chip.d.ts +9 -1
  497. package/dist/types/components/pds-combobox/pds-combobox.d.ts +153 -0
  498. package/dist/types/components/pds-input/pds-input.d.ts +63 -9
  499. package/dist/types/components/pds-property/pds-property.d.ts +14 -0
  500. package/dist/types/components/pds-select/pds-select.d.ts +9 -0
  501. package/dist/types/components/pds-text/pds-text.d.ts +3 -0
  502. package/dist/types/components/pds-textarea/pds-textarea.d.ts +8 -0
  503. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +3 -0
  504. package/dist/types/components.d.ts +275 -6
  505. package/hydrate/index.js +2367 -260
  506. package/hydrate/index.mjs +2367 -260
  507. package/package.json +4 -2
  508. package/dist/cjs/index-CG2Rr2io.js.map +0 -1
  509. package/dist/esm/index-_4gljHh-.js.map +0 -1
  510. package/dist/esm-es5/index-_4gljHh-.js.map +0 -1
  511. package/dist/pine-core/p-0069abf8.system.entry.js +0 -2
  512. package/dist/pine-core/p-0069abf8.system.entry.js.map +0 -1
  513. package/dist/pine-core/p-03d8cb4c.system.entry.js +0 -2
  514. package/dist/pine-core/p-1bd715ee.system.entry.js.map +0 -1
  515. package/dist/pine-core/p-1eec6bea.system.entry.js +0 -2
  516. package/dist/pine-core/p-1eec6bea.system.entry.js.map +0 -1
  517. package/dist/pine-core/p-21c3aaeb.entry.js +0 -2
  518. package/dist/pine-core/p-2296c34f.entry.js.map +0 -1
  519. package/dist/pine-core/p-29ad0b86.entry.js +0 -2
  520. package/dist/pine-core/p-29ad0b86.entry.js.map +0 -1
  521. package/dist/pine-core/p-32bd3e33.entry.js +0 -2
  522. package/dist/pine-core/p-32bd3e33.entry.js.map +0 -1
  523. package/dist/pine-core/p-3e91dccd.entry.js +0 -2
  524. package/dist/pine-core/p-3e91dccd.entry.js.map +0 -1
  525. package/dist/pine-core/p-49265849.system.entry.js +0 -2
  526. package/dist/pine-core/p-513c16c7.entry.js +0 -2
  527. package/dist/pine-core/p-513c16c7.entry.js.map +0 -1
  528. package/dist/pine-core/p-5acda4ac.system.entry.js +0 -2
  529. package/dist/pine-core/p-5acda4ac.system.entry.js.map +0 -1
  530. package/dist/pine-core/p-5e1e7762.entry.js +0 -2
  531. package/dist/pine-core/p-624db3d6.system.entry.js +0 -2
  532. package/dist/pine-core/p-624db3d6.system.entry.js.map +0 -1
  533. package/dist/pine-core/p-71f01676.system.entry.js +0 -2
  534. package/dist/pine-core/p-742d4490.entry.js +0 -2
  535. package/dist/pine-core/p-742d4490.entry.js.map +0 -1
  536. package/dist/pine-core/p-7e92ec48.system.entry.js +0 -2
  537. package/dist/pine-core/p-7e92ec48.system.entry.js.map +0 -1
  538. package/dist/pine-core/p-8023086c.entry.js +0 -2
  539. package/dist/pine-core/p-8023086c.entry.js.map +0 -1
  540. package/dist/pine-core/p-83252078.system.entry.js +0 -2
  541. package/dist/pine-core/p-86d388a2.entry.js +0 -2
  542. package/dist/pine-core/p-929bb7ab.system.entry.js +0 -2
  543. package/dist/pine-core/p-B4W0_y2p.system.js.map +0 -1
  544. package/dist/pine-core/p-B5LBNcOw.system.js.map +0 -1
  545. package/dist/pine-core/p-BO1OsmVU.system.js.map +0 -1
  546. package/dist/pine-core/p-C3ud771n.system.js.map +0 -1
  547. package/dist/pine-core/p-CtAVdPaE.system.js.map +0 -1
  548. package/dist/pine-core/p-D8DRYw9w.system.js.map +0 -1
  549. package/dist/pine-core/p-DyQ_s5MV.system.js.map +0 -1
  550. package/dist/pine-core/p-M2Hhmwex.system.js.map +0 -1
  551. package/dist/pine-core/p-_4gljHh-.js.map +0 -1
  552. package/dist/pine-core/p-a2572675.system.entry.js +0 -2
  553. package/dist/pine-core/p-a2572675.system.entry.js.map +0 -1
  554. package/dist/pine-core/p-a52b1413.entry.js +0 -2
  555. package/dist/pine-core/p-abec6606.entry.js +0 -2
  556. package/dist/pine-core/p-abec6606.entry.js.map +0 -1
  557. package/dist/pine-core/p-b3d05184.entry.js +0 -2
  558. package/dist/pine-core/p-b3d05184.entry.js.map +0 -1
  559. package/dist/pine-core/p-b9c13f99.entry.js +0 -2
  560. package/dist/pine-core/p-bd04212c.system.entry.js.map +0 -1
  561. package/dist/pine-core/p-d1b222f5.entry.js +0 -2
  562. package/dist/pine-core/p-e09a3682.system.entry.js +0 -2
  563. package/dist/pine-core/p-e09a3682.system.entry.js.map +0 -1
  564. package/dist/pine-core/p-e6d6e103.entry.js +0 -2
  565. package/dist/pine-core/p-xgOOHGQo.system.js.map +0 -1
  566. /package/dist/pine-core/{p-e2dc81c0.entry.js.map → p-000ed179.entry.js.map} +0 -0
  567. /package/dist/pine-core/{p-c1b0f921.system.entry.js.map → p-0c6e9ba0.system.entry.js.map} +0 -0
  568. /package/dist/pine-core/{p-596e0292.system.entry.js.map → p-1ef5f46b.system.entry.js.map} +0 -0
  569. /package/dist/pine-core/{p-7ff213bb.system.entry.js.map → p-256d15bc.system.entry.js.map} +0 -0
  570. /package/dist/pine-core/{p-17d3fa8b.entry.js.map → p-27b52fc5.entry.js.map} +0 -0
  571. /package/dist/pine-core/{p-833f08f3.entry.js.map → p-2a2cd90d.entry.js.map} +0 -0
  572. /package/dist/pine-core/{p-4288c861.entry.js.map → p-2f0aedfa.entry.js.map} +0 -0
  573. /package/dist/pine-core/{p-78cb1c40.system.entry.js.map → p-2fbc5f8c.system.entry.js.map} +0 -0
  574. /package/dist/pine-core/{p-b7ba6316.entry.js.map → p-30449e82.entry.js.map} +0 -0
  575. /package/dist/pine-core/{p-761946a0.entry.js.map → p-31fe86a6.entry.js.map} +0 -0
  576. /package/dist/pine-core/{p-83252078.system.entry.js.map → p-357b6dd6.system.entry.js.map} +0 -0
  577. /package/dist/pine-core/{p-85ff1482.entry.js.map → p-36d3352a.entry.js.map} +0 -0
  578. /package/dist/pine-core/{p-3798a631.system.entry.js.map → p-383af1d4.system.entry.js.map} +0 -0
  579. /package/dist/pine-core/{p-bcc4edaa.entry.js.map → p-39fbd912.entry.js.map} +0 -0
  580. /package/dist/pine-core/{p-5c4aceb7.entry.js.map → p-3bbb6fc1.entry.js.map} +0 -0
  581. /package/dist/pine-core/{p-86d388a2.entry.js.map → p-5033d9e8.entry.js.map} +0 -0
  582. /package/dist/pine-core/{p-6a2296e6.system.entry.js.map → p-5706c81b.system.entry.js.map} +0 -0
  583. /package/dist/pine-core/{p-1224c874.entry.js.map → p-5fdbbab9.entry.js.map} +0 -0
  584. /package/dist/pine-core/{p-121e03ad.system.entry.js.map → p-61b7ff04.system.entry.js.map} +0 -0
  585. /package/dist/pine-core/{p-111e7da2.system.entry.js.map → p-62bc2080.system.entry.js.map} +0 -0
  586. /package/dist/pine-core/{p-367e188f.entry.js.map → p-64c897bb.entry.js.map} +0 -0
  587. /package/dist/pine-core/{p-f2c807ac.entry.js.map → p-667eb50e.entry.js.map} +0 -0
  588. /package/dist/pine-core/{p-77c3a10d.entry.js.map → p-6d36fae0.entry.js.map} +0 -0
  589. /package/dist/pine-core/{p-5e1e7762.entry.js.map → p-6ef51211.entry.js.map} +0 -0
  590. /package/dist/pine-core/{p-d6ac2862.system.entry.js.map → p-7da6180d.system.entry.js.map} +0 -0
  591. /package/dist/pine-core/{p-c4294be2.entry.js.map → p-80246c79.entry.js.map} +0 -0
  592. /package/dist/pine-core/{p-24607f93.entry.js.map → p-82388e60.entry.js.map} +0 -0
  593. /package/dist/pine-core/{p-7b38e384.system.entry.js.map → p-91520803.system.entry.js.map} +0 -0
  594. /package/dist/pine-core/{p-3f82ac77.system.entry.js.map → p-982edcaf.system.entry.js.map} +0 -0
  595. /package/dist/pine-core/{p-49265849.system.entry.js.map → p-9b8a3659.system.entry.js.map} +0 -0
  596. /package/dist/pine-core/{p-730221a8.system.entry.js.map → p-9cc1844a.system.entry.js.map} +0 -0
  597. /package/dist/pine-core/{p-ef9ed75a.system.entry.js.map → p-9d8bb7f7.system.entry.js.map} +0 -0
  598. /package/dist/pine-core/{p-71265b2a.system.entry.js.map → p-9df7ba40.system.entry.js.map} +0 -0
  599. /package/dist/pine-core/{p-929bb7ab.system.entry.js.map → p-9e22eab5.system.entry.js.map} +0 -0
  600. /package/dist/pine-core/{p-83ffc1cc.entry.js.map → p-a4d19fb1.entry.js.map} +0 -0
  601. /package/dist/pine-core/{p-03d8cb4c.system.entry.js.map → p-af5c9fbd.system.entry.js.map} +0 -0
  602. /package/dist/pine-core/{p-146fcd44.entry.js.map → p-b214c043.entry.js.map} +0 -0
  603. /package/dist/pine-core/{p-c0f74199.entry.js.map → p-b6d18604.entry.js.map} +0 -0
  604. /package/dist/pine-core/{p-04df41d7.system.entry.js.map → p-b93825c4.system.entry.js.map} +0 -0
  605. /package/dist/pine-core/{p-48e76945.system.entry.js.map → p-c5a7c8e9.system.entry.js.map} +0 -0
  606. /package/dist/pine-core/{p-30142a25.system.entry.js.map → p-c5da4a97.system.entry.js.map} +0 -0
  607. /package/dist/pine-core/{p-71f01676.system.entry.js.map → p-c93786f1.system.entry.js.map} +0 -0
  608. /package/dist/pine-core/{p-78fb945e.system.entry.js.map → p-cc15bf6c.system.entry.js.map} +0 -0
  609. /package/dist/pine-core/{p-b9c13f99.entry.js.map → p-d0ec666b.entry.js.map} +0 -0
  610. /package/dist/pine-core/{p-942fa145.system.entry.js.map → p-d451c7b5.system.entry.js.map} +0 -0
  611. /package/dist/pine-core/{p-28e28f42.system.entry.js.map → p-d6b1f60d.system.entry.js.map} +0 -0
  612. /package/dist/pine-core/{p-722012ac.entry.js.map → p-d989287d.entry.js.map} +0 -0
  613. /package/dist/pine-core/{p-d2ccda59.system.entry.js.map → p-e0a35811.system.entry.js.map} +0 -0
  614. /package/dist/pine-core/{p-e9d972db.system.entry.js.map → p-e0a6ba6f.system.entry.js.map} +0 -0
  615. /package/dist/pine-core/{p-984578f8.system.entry.js.map → p-e53547e2.system.entry.js.map} +0 -0
  616. /package/dist/pine-core/{p-b2796d3c.system.entry.js.map → p-e7322ff9.system.entry.js.map} +0 -0
  617. /package/dist/pine-core/{p-83c632f6.system.entry.js.map → p-e8a4eafa.system.entry.js.map} +0 -0
  618. /package/dist/pine-core/{p-f9e01886.system.entry.js.map → p-ec1c3452.system.entry.js.map} +0 -0
  619. /package/dist/pine-core/{p-a394645a.system.entry.js.map → p-eef645bd.system.entry.js.map} +0 -0
  620. /package/dist/pine-core/{p-cd2cd116.entry.js.map → p-ef08f005.entry.js.map} +0 -0
  621. /package/dist/pine-core/{p-0572825b.entry.js.map → p-f29baa16.entry.js.map} +0 -0
  622. /package/dist/pine-core/{p-4ff0838c.entry.js.map → p-f30b1479.entry.js.map} +0 -0
  623. /package/dist/pine-core/{p-21c3aaeb.entry.js.map → p-f455deb5.entry.js.map} +0 -0
  624. /package/dist/pine-core/{p-f47133fd.entry.js.map → p-f7c02b89.entry.js.map} +0 -0
  625. /package/dist/pine-core/{p-e6d6e103.entry.js.map → p-f9005ac9.entry.js.map} +0 -0
  626. /package/dist/pine-core/{p-99b5e1a5.entry.js.map → p-fd3b7077.entry.js.map} +0 -0
  627. /package/dist/pine-core/{p-1b109c01.entry.js.map → p-fe73a67f.entry.js.map} +0 -0
@@ -1,2 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,r){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,n){function o(e){try{l(r.next(e))}catch(e){n(e)}}function s(e){try{l(r["throw"](e))}catch(e){n(e)}}function l(e){e.done?i(e.value):a(e.value).then(o,s)}l((r=r.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,a,n,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(e){return function(t){return l([e,t])}}function l(s){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(i=0)),i)try{if(r=1,a&&(n=s[0]&2?a["return"]:s[0]?a["throw"]||((n=a["return"])&&n.call(a),0):a.next)&&!(n=n.call(a,s[1])).done)return n;if(a=0,n)s=[s[0]&2,n.value];switch(s[0]){case 0:case 1:n=s;break;case 4:i.label++;return{value:s[1],done:false};case 5:i.label++;a=s[1];s=[0];continue;case 7:s=i.ops.pop();i.trys.pop();continue;default:if(!(n=i.trys,n=n.length>0&&n[n.length-1])&&(s[0]===6||s[0]===2)){i=0;continue}if(s[0]===3&&(!n||s[1]>n[0]&&s[1]<n[3])){i.label=s[1];break}if(s[0]===6&&i.label<n[1]){i.label=n[1];n=s;break}if(n&&i.label<n[2]){i.label=n[2];i.ops.push(s);break}if(n[2])i.ops.pop();i.trys.pop();continue}s=t.call(e,i)}catch(e){s=[6,e];a=0}finally{r=n=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};System.register(["./p-C_8VmA8d.system.js","./p-BG7_qxVr.system.js","./p-BhPuKJbQ.system.js","./p-BhQhw0S3.system.js","./p-B4W0_y2p.system.js"],(function(e){"use strict";var t,i,r,a,n,o,s,l,c,d,u,h;return{setters:[function(e){t=e.r;i=e.c;r=e.h;a=e.H;n=e.g},function(e){o=e.i;s=e.a;l=e.m},function(e){c=e.d},function(e){d=e.i;u=e.a},function(e){h=e.f}],execute:function(){var f=":host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}";var p=":host{--pine-input-color-background-danger:var(--pine-color-red-050)}";var b=":host{display:inline}:host([aria-readonly=true]) textarea{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-readonly)}.pds-textarea{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}label{display:block;-webkit-margin-after:var(--pine-dimension-xs);margin-block-end:var(--pine-dimension-xs)}.pds-textarea__field{background-color:var(--pine-color-background-container);border:var(--pine-border);border-radius:calc(var(--pine-dimension-xs) * 1.25);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-textarea__field:hover:not(:disabled,.is-invalid){border:var(--pine-border-hover)}.pds-textarea__field:disabled{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-textarea__field:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-textarea__field::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field.is-invalid{background-color:var(--pine-input-color-background-danger);border-color:var(--pine-color-border-danger)}.pds-textarea__field.is-invalid:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-textarea__error-message,.pds-textarea__helper-message{font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-xs);margin-block-start:var(--pine-dimension-xs)}.pds-textarea__error-message{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}";var v=e("pds_textarea",function(){function e(e){var r=this;t(this,e);this.pdsBlur=i(this,"pdsBlur");this.pdsFocus=i(this,"pdsFocus");this.pdsInput=i(this,"pdsInput");this.pdsTextareaChange=i(this,"pdsTextareaChange");this.inheritedAttributes={};this.disabled=false;this.invalid=false;this.name=this.componentId;this.readonly=false;this.required=false;this.value="";this.hasFocus=false;this.onBlur=function(e){r.hasFocus=false;if(r.focusedValue!==r.value){r.emitValueChange(e)}r.pdsBlur.emit(e)};this.onFocus=function(e){r.hasFocus=true;r.focusedValue=r.value;r.pdsFocus.emit(e)};this.onInput=function(e){var t=e.target;if(t){r.value=t.value||""}r.emitInputChange(e)};this.onTextareaChange=function(e){r.emitValueChange(e)}}e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.nativeTextarea){this.nativeTextarea.focus()}return[2]}))}))};e.prototype.debounceChanged=function(){var e=this,t=e.pdsInput,i=e.debounce,r=e.originalPdsInput;this.pdsInput=i===undefined?r!==null&&r!==void 0?r:t:c(t,i)};e.prototype.valueChanged=function(){var e=this.nativeTextarea;var t=this.getValue();if(e&&e.value!==t){e.value=t}};e.prototype.emitInputChange=function(e){var t=this.value;this.pdsInput.emit({value:t,event:e})};e.prototype.emitValueChange=function(e){var t=e.target;o(t,this);var i=t.value;var r=i==null?i:i.toString();this.focusedValue=r;this.pdsTextareaChange.emit({value:r,event:e})};e.prototype.getValue=function(){return this.value||""};e.prototype.textareaClassNames=function(){var e=["pds-textarea__field"];if(this.invalid&&this.invalid===true){e.push("is-invalid")}return e.join(" ")};e.prototype.connectedCallback=function(){this.debounceChanged()};e.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign(Object.assign({},d(this.el)),u(this.el))};e.prototype.componentDidLoad=function(){this.originalPdsInput=this.pdsInput};e.prototype.render=function(){var e=this;var t=this.getValue();return r(a,{key:"a7db5e94c424af94616faae520aa8f39ee23cedd","aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly?"true":null},r("div",{key:"26c4a0b5e464e648f627c6de6d948a159e1b4603",class:"pds-textarea"},this.label&&r("label",{key:"b32a15274079ba8fdb4d911dfc4915da9437a57a",htmlFor:this.componentId},this.label),r("textarea",Object.assign({key:"6348ed57813a044849a8de53a172f9f724d7b00e",ref:function(t){return e.nativeTextarea=t},"aria-describedby":s(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,onBlur:this.onBlur,onChange:this.onTextareaChange,onFocus:this.onFocus,onInput:this.onInput},this.inheritedAttributes),t),this.helperMessage&&r("p",{key:"0f9a7606295b5d020e4762f2dc66bc920a60f8da",class:"pds-textarea__helper-message",id:l(this.componentId,"helper")},this.helperMessage),this.invalid&&r("p",{key:"badc7d45069955709993c594ed9792c7cdc8727b","aria-live":"assertive",class:"pds-textarea__error-message",id:l(this.componentId,"error")},r("pds-icon",{key:"460955036713315d8dd7b125a50b09d0cb1a282d",icon:h,size:"small"}),this.errorMessage)))};Object.defineProperty(e.prototype,"el",{get:function(){return n(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{debounce:["debounceChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return e}());v.style=f+(p+b)}}}));
2
- //# sourceMappingURL=p-a2572675.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["labelCss","pdsInputTokensCss","pdsTextareaCss","PdsTextarea","exports","class_1","hostRef","_this","this","inheritedAttributes","disabled","invalid","name","componentId","readonly","required","value","hasFocus","onBlur","ev","focusedValue","emitValueChange","pdsBlur","emit","onFocus","pdsFocus","onInput","input","target","emitInputChange","onTextareaChange","prototype","setFocus","nativeTextarea","focus","debounceChanged","_a","pdsInput","debounce","originalPdsInput","undefined","debounceEvent","valueChanged","getValue","event","textarea","isRequired","newValue","toString","pdsTextareaChange","textareaClassNames","classNames","push","join","connectedCallback","componentWillLoad","Object","assign","inheritAriaAttributes","el","inheritAttributes","componentDidLoad","render","h","Host","key","class","label","htmlFor","ref","assignDescription","helperMessage","autocomplete","id","placeholder","readOnly","rows","onChange","messageId","icon","danger","size","errorMessage"],"sources":["src/global/styles/utils/label.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-input/pds-input.tokens.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-textarea/pds-textarea.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-textarea/pds-textarea.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n","@use '~@kajabi-ui/styles/dist/pine/components/pds-input/pds-input.tokens'\n",":host {\n display: inline;\n}\n\n:host([aria-readonly=\"true\"]) {\n textarea {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-readonly);\n }\n}\n\n.pds-textarea {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\n display: block;\n margin-block-end: var(--pine-dimension-xs);\n}\n\n.pds-textarea__field {\n background-color: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: calc(var(--pine-dimension-xs) * 1.25);\n font: var(--pine-typography-body);\n letter-spacing: var(--pine-letter-spacing);\n padding: var(--pine-dimension-xs) var(--pine-dimension-sm);\n\n &:hover:not(:disabled, .is-invalid) {\n border: var(--pine-border-hover);\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n &:focus-visible {\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-border-width);\n }\n\n &::placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &.is-invalid {\n background-color: var(--pine-input-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n.pds-textarea__error-message,\n.pds-textarea__helper-message {\n font: var(--pine-typography-body-sm-medium);\n margin-block-start: var(--pine-dimension-xs);\n}\n\n.pds-textarea__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail, TextareaInputEventDetail } from './textarea-interface';\nimport { debounceEvent } from '@utils/utils';\nimport type { Attributes } from '@utils/attributes';\nimport { inheritAttributes, inheritAriaAttributes } from '@utils/attributes';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-textarea',\n styleUrls: [\n '../../global/styles/utils/label.scss',\n '../pds-input/pds-input.tokens.scss',\n 'pds-textarea.scss'\n ],\n shadow: true,\n})\nexport class PdsTextarea {\n private nativeTextarea?: HTMLTextAreaElement\n private focusedValue?: string | null;\n private inheritedAttributes: Attributes = {};\n private originalPdsInput?: EventEmitter<TextareaInputEventDetail>;\n\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() pdsBlur!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the input has focus.\n */\n @Event() pdsFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when a keyboard input occurs.\n *\n * For elements that accept text input (`type=text`, `type=tel`, etc.), the interface\n * is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,\n * the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If\n * the input is cleared on edit, the type is `null`.\n */\n @Event() pdsInput: EventEmitter<TextareaInputEventDetail>;\n\n /**\n * Event emitted whenever the value of the textarea changes.\n *\n * This event will not emit when programmatically setting the `value` property.\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n /**\n * Sets focus on the native `textarea` in the `pds-texarea`. Use this method instead of the global\n * `textarea.focus()`.\n */\n @Method()\n async setFocus() {\n if (this.nativeTextarea) {\n this.nativeTextarea.focus();\n }\n }\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines whether or not the textarea is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * The amount of time, in milliseconds, to wait to trigger the event after each keystroke.\n */\n @Prop() debounce?: number;\n\n /**\n * Displays an error message below the textarea field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the textarea field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Determines 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 * Determines whether or not the textarea is readonly.\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Determines 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 | null = '';\n\n @State() hasFocus = false;\n\n @Watch('debounce')\n protected debounceChanged() {\n const { pdsInput, debounce, originalPdsInput } = this;\n\n this.pdsInput = debounce === undefined ? originalPdsInput ?? pdsInput : debounceEvent(pdsInput, debounce);\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n const nativeTextarea = this.nativeTextarea;\n const value = this.getValue();\n\n if (nativeTextarea && nativeTextarea.value !== value) {\n nativeTextarea.value = value;\n }\n }\n\n /**\n * Emits an `pdsInput` event.\n */\n private emitInputChange(event?: Event) {\n const { value } = this;\n this.pdsInput.emit({ value, event });\n }\n\n /**\n * Emits an `pdsTextareaChange` event.\n */\n private emitValueChange(event?: Event) {\n const textarea = event.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n const { value } = textarea;\n\n // Checks for both null and undefined values\n const newValue = value == null ? value : value.toString();\n this.focusedValue = newValue;\n this.pdsTextareaChange.emit({ value: newValue, event });\n }\n\n private getValue(): string {\n return this.value || '';\n }\n\n private onBlur = (ev: FocusEvent) => {\n this.hasFocus = false;\n\n if (this.focusedValue !== this.value) {\n this.emitValueChange(ev);\n }\n\n this.pdsBlur.emit(ev);\n };\n\n private onFocus = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.focusedValue = this.value;\n\n this.pdsFocus.emit(ev);\n };\n\n private onInput = (ev: Event) => {\n const input = ev.target as HTMLTextAreaElement | null;\n if (input) {\n this.value = input.value || '';\n }\n this.emitInputChange(ev);\n };\n\n private onTextareaChange = (ev: Event) => {\n this.emitValueChange(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 connectedCallback() {\n this.debounceChanged();\n }\n\n componentWillLoad() {\n this.inheritedAttributes = {\n ...inheritAriaAttributes(this.el),\n ...inheritAttributes(this.el),\n };\n }\n\n componentDidLoad() {\n this.originalPdsInput = this.pdsInput;\n }\n\n render() {\n const value = this.getValue();\n\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n aria-readonly={this.readonly ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <label htmlFor={this.componentId}>{this.label}</label>\n }\n <textarea\n ref={(el) => this.nativeTextarea = el }\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 onBlur={this.onBlur}\n onChange={this.onTextareaChange}\n onFocus={this.onFocus}\n onInput={this.onInput}\n {...this.inheritedAttributes}\n >\n {value}\n </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"],"mappings":"g0DAAA,IAAMA,EAAW,qTCAjB,IAAMC,EAAoB,wECA1B,IAAMC,EAAiB,i+D,ICiBVC,EAAWC,EAAA,0BATxB,SAAAC,EAAAC,GAAA,IAAAC,EAAAC,K,8JAYU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B9D,KAAKK,YAAaL,KAAKG,QAASH,KAAK+D,eAAc,eACzE/D,KAAKG,QAAU,OAAS6B,UACtCgC,aAAchE,KAAKgE,aACnBN,MAAO1D,KAAK0C,qBACZxC,SAAUF,KAAKE,SACf+D,GAAIjE,KAAKK,YACTD,KAAMJ,KAAKI,KACX8D,YAAalE,KAAKkE,YAClBC,SAAUnE,KAAKM,SACfC,SAAUP,KAAKO,SACf6D,KAAMpE,KAAKoE,KACX1D,OAAQV,KAAKU,OACb2D,SAAUrE,KAAKsB,iBACfN,QAAShB,KAAKgB,QACdE,QAASlB,KAAKkB,SACVlB,KAAKC,qBAERO,GAEFR,KAAK+D,eACJR,EAAA,KAAAE,IAAA,2CACEC,MAAM,+BACNO,GAAIK,EAAUtE,KAAKK,YAAa,WAE/BL,KAAK+D,eAGT/D,KAAKG,SACJoD,EAAA,KAAAE,IAAA,uDACY,YACVC,MAAM,8BACNO,GAAIK,EAAUtE,KAAKK,YAAa,UAEhCkD,EAAA,YAAAE,IAAA,2CAAUc,KAAMC,EAAQC,KAAK,UAC5BzE,KAAK0E,e,4QA/QI,I","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r,h as e,H as s}from"./p-Uh5ntVcq.js";const o=":host hr{border:1px solid var(--pine-color-border);margin-block:var(--pine-dimension-xs)}";const a=class{constructor(e){r(this,e);this.disabled=false}render(){return e(s,{key:"71b19470921b7848e5f0c44ef82aa0d9f8ef2017",id:this.componentId},e("hr",{key:"efc84b6b3f3f35421c0af863fb2d4636e542773e"}))}};a.style=o;export{a as pds_dropdown_menu_separator};
2
- //# sourceMappingURL=p-a52b1413.entry.js.map
@@ -1,2 +0,0 @@
1
- import{r as e,c as s,h as i,H as r}from"./p-Uh5ntVcq.js";import{m as t}from"./p-DTL_39D_.js";import{f as n,g as o}from"./p-_4gljHh-.js";const a=":host{--pine-select-color-background-danger:var(--pine-color-red-050)}";const l=":host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}";const d=':host .hidden,:host :host([hidden]){display:none}.pds-select{display:grid;-ms-flex-direction:column;flex-direction:column;grid-template-areas:"label label" "field field" "message message";grid-template-columns:1fr minmax(2rem, -webkit-min-content);grid-template-columns:1fr minmax(2rem, min-content);grid-template-rows:-webkit-min-content -webkit-min-content -webkit-min-content;grid-template-rows:min-content min-content min-content;position:relative;width:100%}label{grid-area:label;-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}select{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-background-container);border:var(--pine-border);border-radius:var(--pine-dimension-125);font:var(--pine-typography-body);grid-area:field;letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-xs) var(--pine-dimension-150);-webkit-padding-end:var(--pine-dimension-450);padding-inline-end:var(--pine-dimension-450);position:relative}select:hover{border-color:var(--pine-color-border-hover);cursor:pointer}select:focus-visible{border-color:var(--pine-color-border-active);outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}select:disabled{background-color:var(--pine-color-background-container-disabled);border-color:var(--pine-color-border-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}select:has(~.pds-select__message .pds-select__error-message){background-color:var(--pine-select-color-background-danger);border-color:var(--pine-color-border-danger)}select:has(~.pds-select__message .pds-select__error-message):focus-visible{outline-color:var(--pine-color-focus-ring-danger)}:host(.is-invalid) select{background-color:var(--pine-select-color-background-danger);border-color:var(--pine-color-border-danger)}:host(.is-invalid) select:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-select__error-message,.pds-select__helper-message{font:var(--pine-typography-body-sm-medium);-webkit-margin-after:0;margin-block-end:0;-webkit-margin-before:var(--pine-dimension-2xs);margin-block-start:var(--pine-dimension-2xs)}.pds-select__error-message{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-select__message{grid-area:message}.pds-select__select-icon{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;grid-column:-1/-2;grid-row:2/3;height:2.5rem;pointer-events:none;position:relative;z-index:1}';const c=class{constructor(i){e(this,i);this.pdsSelectChange=s(this,"pdsSelectChange");this.disabled=false;this.multiple=false;this.required=false;this.onSelectUpdate=e=>{const s=e.target;const i=Array.from(s.options).filter((e=>e.selected)).map((e=>e.value));if(i.length===1&&!this.multiple){this.value=i[0]}else{this.value=i}this.pdsSelectChange.emit(e)};this.handleSlotChange=()=>{const e=this.slotContainer.querySelector("slot");this.selectEl.innerHTML="";const s=e.assignedElements({flatten:true});s.forEach((e=>{if(["OPTION","OPTGROUP"].includes(e.tagName)){const s=e.cloneNode(true);if(s.tagName==="OPTION"&&s.value===this.value){s.selected=true}this.selectEl.appendChild(s)}}));this.updateSelectedOption()}}valueChanged(){this.updateSelectedOption()}componentWillLoad(){this.updateSelectedOption()}updateSelectedOption(){if(this.selectEl){const e=this.selectEl.options;Array.from(e).map((e=>{if(Array.isArray(this.value)){e.selected=this.value.includes(e.value)}else{e.selected=this.value===e.value}}))}}getHelperMessage(){return this.helperMessage&&i("p",{class:"pds-select__helper-message",id:t(this.componentId,"helper")},this.helperMessage)}getErrorMessage(){return this.errorMessage&&i("p",{class:"pds-select__error-message",id:t(this.componentId,"error"),"aria-live":"assertive"},i("pds-icon",{icon:n,size:"small"}),this.errorMessage)}renderMessages(){if(!this.helperMessage&&!this.errorMessage)return null;return i("div",{class:"pds-select__message"},this.getHelperMessage(),this.getErrorMessage())}classNames(){const e=[];if(this.invalid){e.push("is-invalid")}if(this.disabled){e.push("is-disabled")}return e.join(" ")}render(){return i(r,{key:"2d39b1eac389e27eea511728ef668d4d548d0c09","aria-disabled":this.disabled?"true":null,class:this.classNames()},i("div",{key:"c0c4e64a19b7b11e0d64d94cbc529be7e455b12a",class:"pds-select"},this.label&&i("label",{key:"9eadfcc4e6fd6d42f718eb0ad1542f7c03b67052",htmlFor:this.componentId},this.label),i("select",{key:"eb1d368ed4f765dead79f6101265e922bd06ca94",autocomplete:this.autocomplete||undefined,class:"pds-select__field",disabled:this.disabled,id:this.componentId,multiple:this.multiple,name:this.name,onChange:this.onSelectUpdate,required:this.required,ref:e=>this.selectEl=e}),i("div",{key:"1dcbfe5d51e55af333e80bb99995cef1693f36c1","aria-hidden":"true",class:"hidden",ref:e=>this.slotContainer=e},i("slot",{key:"4d0c76c632e9588dc178c859be5ef1fd474fa191",onSlotchange:this.handleSlotChange})),this.renderMessages(),!this.multiple&&i("pds-icon",{key:"954d31034ed522ba128c9048998e92553592d12f",class:"pds-select__select-icon",icon:o})))}static get watchers(){return{value:["valueChanged"]}}};c.style=a+(l+d);export{c as pds_select};
2
- //# sourceMappingURL=p-abec6606.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pdsSelectTokensCss","labelCss","pdsSelectCss","PdsSelect","constructor","hostRef","this","disabled","multiple","required","onSelectUpdate","e","target","values","Array","from","options","filter","option","map","length","value","pdsSelectChange","emit","handleSlotChange","slot","slotContainer","querySelector","selectEl","innerHTML","assignedElements","flatten","forEach","item","includes","tagName","clonedItem","cloneNode","selected","appendChild","updateSelectedOption","valueChanged","componentWillLoad","isArray","getHelperMessage","helperMessage","h","class","id","messageId","componentId","getErrorMessage","errorMessage","icon","danger","size","renderMessages","classNames","invalid","push","join","render","Host","key","label","htmlFor","autocomplete","undefined","name","onChange","ref","el","onSlotchange","enlarge"],"sources":["src/components/pds-select/pds-select.tokens.scss?tag=pds-select&encapsulation=shadow","src/global/styles/utils/label.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.scss?tag=pds-select&encapsulation=shadow","src/components/pds-select/pds-select.tsx"],"sourcesContent":["@use '~@kajabi-ui/styles/dist/pine/components/pds-select/pds-select.tokens'\n",":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n",":host {\n .hidden,\n :host([hidden]) {\n display: none;\n }\n}\n\n.pds-select {\n display: grid;\n flex-direction: column;\n grid-template-areas:\n 'label label'\n 'field field'\n 'message message';\n grid-template-columns: 1fr minmax(2rem, min-content);\n grid-template-rows: min-content min-content min-content;\n position: relative;\n width: 100%;\n}\n\nlabel {\n grid-area: label;\n margin-block-end: var(--pine-dimension-2xs);\n}\n\nselect {\n appearance: none;\n background: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: var(--pine-dimension-125);\n font: var(--pine-typography-body);\n grid-area: field;\n letter-spacing: var(--pine-letter-spacing);\n padding: var(--pine-dimension-xs) var(--pine-dimension-150);\n padding-inline-end: var(--pine-dimension-450);\n position: relative;\n\n &:hover {\n border-color: var(--pine-color-border-hover);\n cursor: pointer;\n }\n\n &:focus-visible {\n border-color: var(--pine-color-border-active);\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-border-width);\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n &:has(~ .pds-select__message .pds-select__error-message) {\n background-color: var(--pine-select-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n:host(.is-invalid) {\n select {\n background-color: var(--pine-select-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n.pds-select__error-message,\n.pds-select__helper-message {\n font: var(--pine-typography-body-sm-medium);\n margin-block-end: 0;\n margin-block-start: var(--pine-dimension-2xs);\n}\n\n.pds-select__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n\n.pds-select__message {\n grid-area: message;\n}\n\n.pds-select__select-icon {\n align-items: center;\n display: flex;\n grid-column: -1 / -2;\n grid-row: 2 / 3;\n height: 2.5rem;\n pointer-events: none;\n position: relative;\n z-index: 1;\n}\n","import { Component, Event, EventEmitter, Host, h, Prop, Watch } from '@stencil/core';\nimport { messageId } from '../../utils/form';\nimport { danger, enlarge } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-select',\n styleUrls: ['pds-select.tokens.scss', '../../global/styles/utils/label.scss', 'pds-select.scss'],\n shadow: true,\n})\nexport class PdsSelect {\n\n private selectEl!: HTMLSelectElement;\n private slotContainer!: HTMLDivElement;\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Indicates whether or not the select field is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false\n\n /**\n * Displays error message text describing an invalid state.\n */\n @Prop() errorMessage: string;\n\n /**\n * Displays helper message text below select.\n */\n @Prop() helperMessage: string;\n\n /**\n * Determines whether or not the select is invalid.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the select label.\n */\n @Prop() label?: string;\n\n /**\n * Indicates whether multiple options can be selected.\n * @defaultValue false\n */\n @Prop() multiple = false;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name!: string;\n\n /**\n * Indicates whether or not the select field is required.\n * @defaultValue false\n */\n @Prop() required = false;\n\n /**\n * The value(s) of the selected option(s).\n *\n */\n @Prop({ mutable: true }) value?: string | string[];\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsSelectChange: EventEmitter<InputEvent>;\n\n @Watch('value')\n /**\n * Handles the change in the value of the select component.\n * This method is called whenever the value of the select component changes.\n * It updates the selected option accordingly.\n */\n valueChanged() {\n this.updateSelectedOption();\n }\n\n componentWillLoad() {\n this.updateSelectedOption();\n }\n\n /**\n * Updates the selected option in the select element based on the current value.\n *\n * This method iterates through all the options of the select element and sets the\n * 'selected' attribute on the option that matches the current value. If an option\n * does not match the current value, the 'selected' attribute is removed.\n *\n * @private\n * @returns {void}\n */\n private updateSelectedOption() {\n if (this.selectEl) {\n const options = this.selectEl.options;\n\n // Update the selected attribute for all options.\n Array.from(options).map((option: HTMLOptionElement) => {\n if (Array.isArray(this.value)) {\n option.selected = this.value.includes(option.value);\n } else {\n option.selected = this.value === option.value;\n }\n });\n };\n }\n\n /**\n * Emits an event on input change.\n */\n private onSelectUpdate = (e: Event) => {\n const target = e.target as HTMLSelectElement\n\n const values = Array.from(target.options)\n .filter((option) => ( option.selected))\n .map((option) => ( option.value));\n\n if (values.length === 1 && !this.multiple) {\n this.value = values[0];\n } else {\n this.value = values;\n }\n\n this.pdsSelectChange.emit(e as InputEvent);\n };\n\n /**\n * Handles the change event for the slot element.\n * This method is triggered when the slot content changes.\n * It updates the inner HTML of the select element by cloning and appending\n * the assigned <option> elements from the slot.\n */\n private handleSlotChange = () => {\n const slot = this.slotContainer.querySelector('slot') as HTMLSlotElement;\n\n this.selectEl.innerHTML = '';\n const assignedElements = slot.assignedElements({ flatten: true }) as (HTMLOptionElement | HTMLOptGroupElement)[];\n\n assignedElements.forEach((item) => {\n if ( ['OPTION', 'OPTGROUP'].includes(item.tagName)) {\n const clonedItem = item.cloneNode(true) as HTMLOptionElement | HTMLOptGroupElement;\n if (clonedItem.tagName === 'OPTION' && (clonedItem as HTMLOptionElement).value === this.value) {\n (clonedItem as HTMLOptionElement).selected = true;\n }\n this.selectEl.appendChild(clonedItem);\n }\n });\n\n this.updateSelectedOption();\n };\n\n private getHelperMessage() {\n return this.helperMessage && (\n <p class=\"pds-select__helper-message\" id={messageId(this.componentId, 'helper')}>\n {this.helperMessage}\n </p>\n );\n }\n\n private getErrorMessage() {\n return this.errorMessage && (\n <p class=\"pds-select__error-message\" id={messageId(this.componentId, 'error')} aria-live=\"assertive\">\n <pds-icon icon={danger} size=\"small\"></pds-icon>\n {this.errorMessage}\n </p>\n );\n }\n\n private renderMessages() {\n if (!this.helperMessage && !this.errorMessage) return null;\n\n return (\n <div class=\"pds-select__message\">\n {this.getHelperMessage()}\n {this.getErrorMessage()}\n </div>\n );\n }\n\n private classNames() {\n const classNames = [];\n\n if (this.invalid) { classNames.push('is-invalid'); }\n if (this.disabled) { classNames.push('is-disabled'); }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host aria-disabled={this.disabled ? 'true' : null} class={this.classNames()}>\n <div class=\"pds-select\">\n {this.label &&\n <label htmlFor={this.componentId}>{this.label}</label>\n }\n <select\n autocomplete={this.autocomplete || undefined}\n class=\"pds-select__field\"\n disabled={this.disabled}\n id={this.componentId}\n multiple={this.multiple}\n name={this.name}\n onChange={this.onSelectUpdate}\n required={this.required}\n ref={(el) => (this.selectEl = el as HTMLSelectElement)}\n ></select>\n <div aria-hidden=\"true\" class=\"hidden\" ref={(el) => (this.slotContainer = el)}>\n <slot onSlotchange={this.handleSlotChange}></slot>\n </div>\n {this.renderMessages()}\n {!this.multiple && <pds-icon class=\"pds-select__select-icon\" icon={enlarge} />}\n </div>\n </Host>\n );\n }\n}\n"],"mappings":"wIAAA,MAAMA,EAAqB,yECA3B,MAAMC,EAAW,qTCAjB,MAAMC,EAAe,ygF,MCSRC,EAAS,MALtB,WAAAC,CAAAC,G,yDAwBUC,KAAQC,SAAG,MA0BXD,KAAQE,SAAG,MAWXF,KAAQG,SAAG,MAuDXH,KAAAI,eAAkBC,IACxB,MAAMC,EAASD,EAAEC,OAEjB,MAAMC,EAASC,MAAMC,KAAKH,EAAOI,SAC5BC,QAAQC,GAAaA,EAAe,WACpCC,KAAKD,GAAaA,EAAY,QAEnC,GAAIL,EAAOO,SAAW,IAAMd,KAAKE,SAAU,CACvCF,KAAKe,MAAQR,EAAO,E,KACjB,CACHP,KAAKe,MAAQR,C,CAGjBP,KAAKgB,gBAAgBC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EAAa,GAEnB,GAAInD,KAAKoD,QAAS,CAAED,EAAWE,KAAK,a,CACpC,GAAIrD,KAAKC,SAAU,CAAEkD,EAAWE,KAAK,c,CAErC,OAAOF,EAAWG,KAAK,K,CAGzB,MAAAC,GACE,OACEf,EAACgB,EAAI,CAAAC,IAAA,2DAAgBzD,KAAKC,SAAW,OAAS,KAAMwC,MAAOzC,KAAKmD,cAC9DX,EAAK,OAAAiB,IAAA,2CAAAhB,MAAM,cACRzC,KAAK0D,OACJlB,EAAO,SAAAiB,IAAA,2CAAAE,QAAS3D,KAAK4C,aAAc5C,KAAK0D,OAE1ClB,EAAA,UAAAiB,IAAA,2CACEG,aAAc5D,KAAK4D,cAAgBC,UACnCpB,MAAM,oBACNxC,SAAUD,KAAKC,SACfyC,GAAI1C,KAAK4C,YACT1C,SAAUF,KAAKE,SACf4D,KAAM9D,KAAK8D,KACXC,SAAU/D,KAAKI,eACfD,SAAUH,KAAKG,SACf6D,IAAMC,GAAQjE,KAAKsB,SAAW2C,IAEhCzB,EAAA,OAAAiB,IAAA,yDAAiB,OAAOhB,MAAM,SAASuB,IAAMC,GAAQjE,KAAKoB,cAAgB6C,GACxEzB,EAAA,QAAAiB,IAAA,2CAAMS,aAAclE,KAAKkB,oBAE1BlB,KAAKkD,kBACJlD,KAAKE,UAAYsC,EAAA,YAAAiB,IAAA,2CAAUhB,MAAM,0BAA0BM,KAAMoB,K","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as e,c as a,h as i,H as t,g as s}from"./p-Uh5ntVcq.js";import{i as r,a as o,m as l}from"./p-DTL_39D_.js";import{d as n}from"./p-DkabwBZT.js";import{i as d,a as c}from"./p-C0M1gTKv.js";import{f as h}from"./p-_4gljHh-.js";const p=":host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}";const b=":host{--pine-input-color-background-danger:var(--pine-color-red-050)}";const u=":host{display:inline}:host([aria-readonly=true]) textarea{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-readonly)}.pds-textarea{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}label{display:block;-webkit-margin-after:var(--pine-dimension-xs);margin-block-end:var(--pine-dimension-xs)}.pds-textarea__field{background-color:var(--pine-color-background-container);border:var(--pine-border);border-radius:calc(var(--pine-dimension-xs) * 1.25);font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing);padding:var(--pine-dimension-xs) var(--pine-dimension-sm)}.pds-textarea__field:hover:not(:disabled,.is-invalid){border:var(--pine-border-hover)}.pds-textarea__field:disabled{background-color:var(--pine-color-background-container-disabled);color:var(--pine-color-text-disabled);cursor:not-allowed}.pds-textarea__field:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-textarea__field::-webkit-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::-moz-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field:-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::-ms-input-placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field::placeholder{color:var(--pine-color-text-placeholder)}.pds-textarea__field.is-invalid{background-color:var(--pine-input-color-background-danger);border-color:var(--pine-color-border-danger)}.pds-textarea__field.is-invalid:focus-visible{outline-color:var(--pine-color-focus-ring-danger)}.pds-textarea__error-message,.pds-textarea__helper-message{font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-xs);margin-block-start:var(--pine-dimension-xs)}.pds-textarea__error-message{-ms-flex-align:center;align-items:center;color:var(--pine-color-text-message-danger);display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}";const f=class{constructor(i){e(this,i);this.pdsBlur=a(this,"pdsBlur");this.pdsFocus=a(this,"pdsFocus");this.pdsInput=a(this,"pdsInput");this.pdsTextareaChange=a(this,"pdsTextareaChange");this.inheritedAttributes={};this.disabled=false;this.invalid=false;this.name=this.componentId;this.readonly=false;this.required=false;this.value="";this.hasFocus=false;this.onBlur=e=>{this.hasFocus=false;if(this.focusedValue!==this.value){this.emitValueChange(e)}this.pdsBlur.emit(e)};this.onFocus=e=>{this.hasFocus=true;this.focusedValue=this.value;this.pdsFocus.emit(e)};this.onInput=e=>{const a=e.target;if(a){this.value=a.value||""}this.emitInputChange(e)};this.onTextareaChange=e=>{this.emitValueChange(e)}}async setFocus(){if(this.nativeTextarea){this.nativeTextarea.focus()}}debounceChanged(){const{pdsInput:e,debounce:a,originalPdsInput:i}=this;this.pdsInput=a===undefined?i!==null&&i!==void 0?i:e:n(e,a)}valueChanged(){const e=this.nativeTextarea;const a=this.getValue();if(e&&e.value!==a){e.value=a}}emitInputChange(e){const{value:a}=this;this.pdsInput.emit({value:a,event:e})}emitValueChange(e){const a=e.target;r(a,this);const{value:i}=a;const t=i==null?i:i.toString();this.focusedValue=t;this.pdsTextareaChange.emit({value:t,event:e})}getValue(){return this.value||""}textareaClassNames(){const e=["pds-textarea__field"];if(this.invalid&&this.invalid===true){e.push("is-invalid")}return e.join(" ")}connectedCallback(){this.debounceChanged()}componentWillLoad(){this.inheritedAttributes=Object.assign(Object.assign({},d(this.el)),c(this.el))}componentDidLoad(){this.originalPdsInput=this.pdsInput}render(){const e=this.getValue();return i(t,{key:"a7db5e94c424af94616faae520aa8f39ee23cedd","aria-disabled":this.disabled?"true":null,"aria-readonly":this.readonly?"true":null},i("div",{key:"26c4a0b5e464e648f627c6de6d948a159e1b4603",class:"pds-textarea"},this.label&&i("label",{key:"b32a15274079ba8fdb4d911dfc4915da9437a57a",htmlFor:this.componentId},this.label),i("textarea",Object.assign({key:"6348ed57813a044849a8de53a172f9f724d7b00e",ref:e=>this.nativeTextarea=e,"aria-describedby":o(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,onBlur:this.onBlur,onChange:this.onTextareaChange,onFocus:this.onFocus,onInput:this.onInput},this.inheritedAttributes),e),this.helperMessage&&i("p",{key:"0f9a7606295b5d020e4762f2dc66bc920a60f8da",class:"pds-textarea__helper-message",id:l(this.componentId,"helper")},this.helperMessage),this.invalid&&i("p",{key:"badc7d45069955709993c594ed9792c7cdc8727b","aria-live":"assertive",class:"pds-textarea__error-message",id:l(this.componentId,"error")},i("pds-icon",{key:"460955036713315d8dd7b125a50b09d0cb1a282d",icon:h,size:"small"}),this.errorMessage)))}get el(){return s(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}};f.style=p+(b+u);export{f as pds_textarea};
2
- //# sourceMappingURL=p-b3d05184.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["labelCss","pdsInputTokensCss","pdsTextareaCss","PdsTextarea","constructor","hostRef","this","inheritedAttributes","disabled","invalid","name","componentId","readonly","required","value","hasFocus","onBlur","ev","focusedValue","emitValueChange","pdsBlur","emit","onFocus","pdsFocus","onInput","input","target","emitInputChange","onTextareaChange","setFocus","nativeTextarea","focus","debounceChanged","pdsInput","debounce","originalPdsInput","undefined","debounceEvent","valueChanged","getValue","event","textarea","isRequired","newValue","toString","pdsTextareaChange","textareaClassNames","classNames","push","join","connectedCallback","componentWillLoad","Object","assign","inheritAriaAttributes","el","inheritAttributes","componentDidLoad","render","h","Host","key","class","label","htmlFor","ref","assignDescription","helperMessage","autocomplete","id","placeholder","readOnly","rows","onChange","messageId","icon","danger","size","errorMessage"],"sources":["src/global/styles/utils/label.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-input/pds-input.tokens.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-textarea/pds-textarea.scss?tag=pds-textarea&encapsulation=shadow","src/components/pds-textarea/pds-textarea.tsx"],"sourcesContent":[":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n","@use '~@kajabi-ui/styles/dist/pine/components/pds-input/pds-input.tokens'\n",":host {\n display: inline;\n}\n\n:host([aria-readonly=\"true\"]) {\n textarea {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-readonly);\n }\n}\n\n.pds-textarea {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\n display: block;\n margin-block-end: var(--pine-dimension-xs);\n}\n\n.pds-textarea__field {\n background-color: var(--pine-color-background-container);\n border: var(--pine-border);\n border-radius: calc(var(--pine-dimension-xs) * 1.25);\n font: var(--pine-typography-body);\n letter-spacing: var(--pine-letter-spacing);\n padding: var(--pine-dimension-xs) var(--pine-dimension-sm);\n\n &:hover:not(:disabled, .is-invalid) {\n border: var(--pine-border-hover);\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n }\n\n &:focus-visible {\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-border-width);\n }\n\n &::placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &.is-invalid {\n background-color: var(--pine-input-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n.pds-textarea__error-message,\n.pds-textarea__helper-message {\n font: var(--pine-typography-body-sm-medium);\n margin-block-start: var(--pine-dimension-xs);\n}\n\n.pds-textarea__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n","import { Component, Element, Event, EventEmitter, Host, h, Method, Prop, State, Watch } from '@stencil/core';\nimport { assignDescription, isRequired, messageId } from '../../utils/form';\nimport { TextareaChangeEventDetail, TextareaInputEventDetail } from './textarea-interface';\nimport { debounceEvent } from '@utils/utils';\nimport type { Attributes } from '@utils/attributes';\nimport { inheritAttributes, inheritAriaAttributes } from '@utils/attributes';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-textarea',\n styleUrls: [\n '../../global/styles/utils/label.scss',\n '../pds-input/pds-input.tokens.scss',\n 'pds-textarea.scss'\n ],\n shadow: true,\n})\nexport class PdsTextarea {\n private nativeTextarea?: HTMLTextAreaElement\n private focusedValue?: string | null;\n private inheritedAttributes: Attributes = {};\n private originalPdsInput?: EventEmitter<TextareaInputEventDetail>;\n\n @Element() el: HTMLPdsTextareaElement;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() pdsBlur!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when the input has focus.\n */\n @Event() pdsFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when a keyboard input occurs.\n *\n * For elements that accept text input (`type=text`, `type=tel`, etc.), the interface\n * is [`InputEvent`](https://developer.mozilla.org/en-US/docs/Web/API/InputEvent); for others,\n * the interface is [`Event`](https://developer.mozilla.org/en-US/docs/Web/API/Event). If\n * the input is cleared on edit, the type is `null`.\n */\n @Event() pdsInput: EventEmitter<TextareaInputEventDetail>;\n\n /**\n * Event emitted whenever the value of the textarea changes.\n *\n * This event will not emit when programmatically setting the `value` property.\n */\n @Event() pdsTextareaChange: EventEmitter<TextareaChangeEventDetail>;\n\n /**\n * Sets focus on the native `textarea` in the `pds-texarea`. Use this method instead of the global\n * `textarea.focus()`.\n */\n @Method()\n async setFocus() {\n if (this.nativeTextarea) {\n this.nativeTextarea.focus();\n }\n }\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Determines whether or not the textarea is disabled.\n * @defaultValue false\n */\n @Prop() disabled = false;\n\n /**\n * The amount of time, in milliseconds, to wait to trigger the event after each keystroke.\n */\n @Prop() debounce?: number;\n\n /**\n * Displays an error message below the textarea field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the textarea field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Determines 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 * Determines whether or not the textarea is readonly.\n * @defaultValue false\n */\n @Prop() readonly = false;\n\n /**\n * Determines 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 | null = '';\n\n @State() hasFocus = false;\n\n @Watch('debounce')\n protected debounceChanged() {\n const { pdsInput, debounce, originalPdsInput } = this;\n\n this.pdsInput = debounce === undefined ? originalPdsInput ?? pdsInput : debounceEvent(pdsInput, debounce);\n }\n\n /**\n * Update the native input element when the value changes\n */\n @Watch('value')\n protected valueChanged() {\n const nativeTextarea = this.nativeTextarea;\n const value = this.getValue();\n\n if (nativeTextarea && nativeTextarea.value !== value) {\n nativeTextarea.value = value;\n }\n }\n\n /**\n * Emits an `pdsInput` event.\n */\n private emitInputChange(event?: Event) {\n const { value } = this;\n this.pdsInput.emit({ value, event });\n }\n\n /**\n * Emits an `pdsTextareaChange` event.\n */\n private emitValueChange(event?: Event) {\n const textarea = event.target as HTMLTextAreaElement;\n isRequired(textarea, this);\n\n const { value } = textarea;\n\n // Checks for both null and undefined values\n const newValue = value == null ? value : value.toString();\n this.focusedValue = newValue;\n this.pdsTextareaChange.emit({ value: newValue, event });\n }\n\n private getValue(): string {\n return this.value || '';\n }\n\n private onBlur = (ev: FocusEvent) => {\n this.hasFocus = false;\n\n if (this.focusedValue !== this.value) {\n this.emitValueChange(ev);\n }\n\n this.pdsBlur.emit(ev);\n };\n\n private onFocus = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.focusedValue = this.value;\n\n this.pdsFocus.emit(ev);\n };\n\n private onInput = (ev: Event) => {\n const input = ev.target as HTMLTextAreaElement | null;\n if (input) {\n this.value = input.value || '';\n }\n this.emitInputChange(ev);\n };\n\n private onTextareaChange = (ev: Event) => {\n this.emitValueChange(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 connectedCallback() {\n this.debounceChanged();\n }\n\n componentWillLoad() {\n this.inheritedAttributes = {\n ...inheritAriaAttributes(this.el),\n ...inheritAttributes(this.el),\n };\n }\n\n componentDidLoad() {\n this.originalPdsInput = this.pdsInput;\n }\n\n render() {\n const value = this.getValue();\n\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n aria-readonly={this.readonly ? 'true' : null}\n >\n <div class=\"pds-textarea\">\n {this.label &&\n <label htmlFor={this.componentId}>{this.label}</label>\n }\n <textarea\n ref={(el) => this.nativeTextarea = el }\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 onBlur={this.onBlur}\n onChange={this.onTextareaChange}\n onFocus={this.onFocus}\n onInput={this.onInput}\n {...this.inheritedAttributes}\n >\n {value}\n </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"],"mappings":"qOAAA,MAAMA,EAAW,qTCAjB,MAAMC,EAAoB,wECA1B,MAAMC,EAAiB,i+D,MCiBVC,EAAW,MATxB,WAAAC,CAAAC,G,8JAYUC,KAAmBC,oBAAe,GAyDlCD,KAAQE,SAAG,MAqBIF,KAAAG,QAAU,MAUzBH,KAAAI,KAAeJ,KAAKK,YAWpBL,KAAQM,SAAG,MAMXN,KAAQO,SAAG,MAUIP,KAAKQ,MAAmB,GAEtCR,KAAQS,SAAG,MAiDZT,KAAAU,OAAUC,IAChBX,KAAKS,SAAW,MAEhB,GAAIT,KAAKY,eAAiBZ,KAAKQ,MAAO,CACpCR,KAAKa,gBAAgBF,E,CAGvBX,KAAKc,QAAQC,KAAKJ,EAAG,EAGfX,KAAAgB,QAAWL,IACjBX,KAAKS,SAAW,KAChBT,KAAKY,aAAeZ,KAAKQ,MAEzBR,KAAKiB,SAASF,KAAKJ,EAAG,EAGhBX,KAAAkB,QAAWP,IACjB,MAAMQ,EAAQR,EAAGS,OACjB,GAAID,EAAO,CACTnB,KAAKQ,MAAQW,EAAMX,OAAS,E,CAE9BR,KAAKqB,gBAAgBV,EAAG,EAGlBX,KAAAsB,iBAAoBX,IAC1BX,KAAKa,gBAAgBF,EAAG,CAmF3B,CA9OC,cAAMY,GACJ,GAAIvB,KAAKwB,eAAgB,CACvBxB,KAAKwB,eAAeC,O,EAiFd,eAAAC,GACR,MAAMC,SAAEA,EAAQC,SAAEA,EAAQC,iBAAEA,GAAqB7B,KAEjDA,KAAK2B,SAAWC,IAAaE,UAAYD,IAAA,MAAAA,SAAgB,EAAhBA,EAAoBF,EAAWI,EAAcJ,EAAUC,E,CAOxF,YAAAI,GACR,MAAMR,EAAiBxB,KAAKwB,eAC5B,MAAMhB,EAAQR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H,KAAK6D,eAAc,eACzE7D,KAAKG,QAAU,OAAS2B,UACtCgC,aAAc9D,KAAK8D,aACnBN,MAAOxD,KAAKwC,qBACZtC,SAAUF,KAAKE,SACf6D,GAAI/D,KAAKK,YACTD,KAAMJ,KAAKI,KACX4D,YAAahE,KAAKgE,YAClBC,SAAUjE,KAAKM,SACfC,SAAUP,KAAKO,SACf2D,KAAMlE,KAAKkE,KACXxD,OAAQV,KAAKU,OACbyD,SAAUnE,KAAKsB,iBACfN,QAAShB,KAAKgB,QACdE,QAASlB,KAAKkB,SACVlB,KAAKC,qBAERO,GAEFR,KAAK6D,eACJR,EAAA,KAAAE,IAAA,2CACEC,MAAM,+BACNO,GAAIK,EAAUpE,KAAKK,YAAa,WAE/BL,KAAK6D,eAGT7D,KAAKG,SACJkD,EAAA,KAAAE,IAAA,uDACY,YACVC,MAAM,8BACNO,GAAIK,EAAUpE,KAAKK,YAAa,UAEhCgD,EAAA,YAAAE,IAAA,2CAAUc,KAAMC,EAAQC,KAAK,UAC5BvE,KAAKwE,e","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as o,h as s}from"./p-Uh5ntVcq.js";const t="pds-modal-footer{display:block;width:100%}.pds-modal__footer{width:100%}";const c=class{constructor(s){o(this,s)}render(){return s("footer",{key:"ea47425a063c04c1cdff3481fc09f32bd65b7679",class:"pds-modal__footer"},s("slot",{key:"55c560cb8cca95687eb04ba727ae45542ef2209f"}))}};c.style=t;export{c as pds_modal_footer};
2
- //# sourceMappingURL=p-b9c13f99.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pdsTextCss","PdsText","exports","class_1","hostRef","this","tag","prototype","render","Tag","typeClasses","concat","align","undefined","trim","gutter","size","weight","decoration","h","key","style","color","setColor","class"],"sources":["src/components/pds-text/pds-text.scss?tag=pds-text&encapsulation=shadow","src/components/pds-text/pds-text.tsx"],"sourcesContent":[":host {\n display: inline;\n}\n\n:host([decoration=\"underline-dotted\"]) > * {\n text-decoration-color: var(--pine-color-grey-600);\n text-decoration-line: underline;\n text-decoration-style: dotted;\n text-decoration-thickness: 12%;\n text-underline-offset: 0.3rem;\n text-underline-position: under;\n}\n\n:host([decoration=\"strikethrough\"])>* {\n text-decoration: line-through;\n}\n\n/* stylelint-disable */\nh1 {\n font: var(--pine-typography-heading-1);\n letter-spacing: var(--pine-letter-spacing-heading-1);\n}\n\nh2 {\n font: var(--pine-typography-heading-2);\n letter-spacing: var(--pine-letter-spacing-heading-2);\n}\n\nh3 {\n font: var(--pine-typography-heading-3);\n letter-spacing: var(--pine-letter-spacing-heading-3);\n}\n\nh4 {\n font: var(--pine-typography-heading-4);\n letter-spacing: var(--pine-letter-spacing-heading-4);\n}\n\nh5 {\n font: var(--pine-typography-heading-5);\n letter-spacing: var(--pine-letter-spacing-heading-5);\n}\n\nh6 {\n font: var(--pine-typography-heading-6);\n letter-spacing: var(--pine-letter-spacing-heading-6);\n}\n\ncode, em, p, pre, strong {\n font: var(--pine-typography-body);\n letter-spacing: var(--pine-letter-spacing);\n}\n/* stylelint-enable */\n\ncode, pre {\n font-family: monospace;\n letter-spacing: 0;\n line-height: 1;\n}\n\nem {\n font-style: normal;\n}\n\nstrong {\n font-weight: bolder;\n}\n\n:host([truncate]) > * {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n:host([italic]) > * {\n font-style: italic;\n}\n\n// Colors/Variants/Sentiment\n\n// Variable is set in TSX\n// If color prop value isn't valid, will default to body text color\n.pds-text {\n color: var(--color, var(--pine-color-text));\n margin: var(--pine-dimension-none);\n}\n\n// Font Sizes\n$type-sizes: (\n 2xl: var(--pine-font-size-body-2xl),\n xl: var(--pine-font-size-body-xl),\n lg: var(--pine-font-size-body-lg),\n md: var(--pine-font-size-body-md),\n sm: var(--pine-font-size-body-sm),\n xs: var(--pine-font-size-body-xs),\n 2xs: var(--pine-font-size-body-2xs),\n h1: var(--pine-font-size-heading-1),\n h2: var(--pine-font-size-heading-2),\n h3: var(--pine-font-size-heading-3),\n h4: var(--pine-font-size-heading-4),\n h5: var(--pine-font-size-heading-5),\n h6: var(--pine-font-size-heading-6),\n);\n\n@mixin generate-type-sizes($type-sizes) {\n @each $key, $value in $type-sizes {\n .pds-text--size-#{$key} {\n font-size: $value;\n }\n }\n}\n\n@include generate-type-sizes($type-sizes);\n\n// Font Weights\n$type-weights: (\n extra-light: var(--pine-font-weight-extra-light),\n light: var(--pine-font-weight-light),\n regular: var(--pine-font-weight-regular),\n medium: var(--pine-font-weight-medium),\n semibold: var(--pine-font-weight-semi-bold),\n bold: var(--pine-font-weight-bold),\n);\n\n@mixin generate-type-weights($type-weights) {\n @each $key, $value in $type-weights {\n .pds-text--weight-#{$key} {\n font-weight: $value;\n }\n }\n}\n\n@include generate-type-weights($type-weights);\n\n// Gutter Sizes\n$type-gutters: (\n 2xl: var(--pine-dimension-2xl),\n xl: var(--pine-dimension-xl),\n lg: var(--pine-dimension-lg),\n md: var(--pine-dimension-md),\n sm: var(--pine-dimension-sm),\n xs: var(--pine-dimension-xs),\n 2xs: var(--pine-dimension-2xs),\n);\n\n@mixin generate-type-gutters($type-gutters) {\n @each $key, $value in $type-gutters {\n .pds-text--gutter-#{$key} {\n margin-block-end: $value;\n }\n }\n}\n\n@include generate-type-gutters($type-gutters);\n\n// Text Alignment\n$type-alignments: (\n start: start,\n center: center,\n end: end,\n justify: justify,\n);\n\n@mixin generate-type-alignments($type-alignments) {\n @each $key, $value in $type-alignments {\n .pds-text--align-#{$key} {\n text-align: $value;\n }\n }\n}\n\n@include generate-type-alignments($type-alignments);\n","import { Component, h, Prop, Element } from '@stencil/core';\nimport { setColor } from '../../utils/utils';\n\n@Component({\n tag: 'pds-text',\n styleUrl: 'pds-text.scss',\n shadow: true,\n})\nexport class PdsText {\n @Element() el: HTMLPdsTextElement;\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?: string;\n\n /**\n * Sets the text decoration.\n */\n @Prop() decoration?:\n | 'strikethrough'\n | 'underline-dotted';\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 * If set or `true`, the text will be italic.\n */\n @Prop() italic?: boolean;\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 | 'h1'\n | 'h2'\n | 'h3'\n | 'h4'\n | 'h5'\n | 'h6';\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 /**\n * If set or `true`, the text will be truncated. Must add a `width` to the element.\n */\n @Prop({ reflect: true }) truncate?: boolean;\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.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 ${this.decoration !== undefined && this.decoration.trim() !== '' ? `pds-text--decoration-${this.decoration}` : ''}\n `;\n\n return (\n <Tag style={this.color && setColor(this.color)} class={typeClasses}>\n <slot />\n </Tag>\n );\n }\n}\n"],"mappings":"gMAAA,IAAMA,EAAa,o+G,ICQNC,EAAOC,EAAA,sBALpB,SAAAC,EAAAC,G,UAyEUC,KAAGC,IAWF,GAyBV,CAlBCH,EAAAI,UAAAC,OAAA,WACE,IAAMC,EAAMJ,KAAKC,IAEjB,IAAMI,EAAc,2BAAAC,OAEhBN,KAAKO,QAAUC,WAAaR,KAAKO,MAAME,SAAW,GAAK,mBAAAH,OAAmBN,KAAKO,OAAU,GAAE,YAAAD,OAC3FN,KAAKU,SAAWF,WAAaR,KAAKU,OAAOD,SAAW,GAAK,oBAAAH,OAAoBN,KAAKU,QAAW,GAAE,YAAAJ,OAC/FN,KAAKW,OAASH,WAAaR,KAAKW,KAAKF,SAAW,GAAK,kBAAAH,OAAkBN,KAAKW,MAAS,GAAE,YAAAL,OACvFN,KAAKY,SAAWJ,WAAaR,KAAKY,OAAOH,SAAW,GAAK,oBAAAH,OAAoBN,KAAKY,QAAW,GAAE,YAAAN,OAC/FN,KAAKa,aAAeL,WAAaR,KAAKa,WAAWJ,SAAW,GAAK,wBAAAH,OAAwBN,KAAKa,YAAe,GAAE,UAGnH,OACEC,EAACV,EAAG,CAAAW,IAAA,2CAACC,MAAOhB,KAAKiB,OAASC,EAASlB,KAAKiB,OAAQE,MAAOd,GACrDS,EAAQ,QAAAC,IAAA,6C,uHApGI,I","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as i,c as e,h as r,H as s,g as t}from"./p-Uh5ntVcq.js";import{m as n,a}from"./p-DTL_39D_.js";import{f as o}from"./p-_4gljHh-.js";import{i as l}from"./p-C0M1gTKv.js";const d=":host{display:inline-block}:host([aria-disabled=true]) label{color:var(--pine-color-text-label-disabled)}:host([aria-readonly=true]) label{color:var(--pine-color-text-label-readonly)}label{color:var(--pine-color-text-label);font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}";const c=':host{--sizing-input-toggle-size:calc(var(--pine-dimension-250) - (var(--pine-dimension-025) * 2));--pine-dimension-025:2px;--spacing-message-inline:calc(var(--pine-dimension-450) + var(--pine-dimension-150));--number-transition-timing:0.15s ease-out;-ms-flex-align:start;align-items:flex-start;color:var(--pine-color-text);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-flow:row wrap;flex-flow:row wrap;position:relative}:host(.pds-switch--error){color:var(--pine-color-text-message-danger)}:host(.pds-switch--error) input,:host(.pds-switch--error) input:checked,:host(.pds-switch--error) input:hover:not(:disabled):not(:checked){background-color:var(--pine-color-danger)}:host(.pds-switch--error) input:focus-visible:not(:disabled):not(:checked){outline-color:var(--pine-color-focus-ring-danger)}:host(.pds-switch--error) label{color:var(--color-text-error)}input{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:var(--pine-color-neutral);border:0;border-radius:var(--pine-dimension-sm);cursor:pointer;display:inline-block;-ms-flex-negative:0;flex-shrink:0;height:var(--pine-dimension-250);margin:0;padding:0;position:relative;-webkit-transition:var(--number-transition-timing);transition:var(--number-transition-timing);-webkit-transition-property:background, border, color;transition-property:background, border, color;width:var(--pine-dimension-450)}input::after{background:var(--pine-color-secondary);border-radius:var(--pine-border-radius-full);-webkit-box-shadow:var(--pine-box-shadow);box-shadow:var(--pine-box-shadow);content:"";display:block;height:var(--sizing-input-toggle-size);inset-block-start:50%;inset-inline-start:50%;position:absolute;-webkit-transform:translate3d(-100%, -50%, 0);transform:translate3d(-100%, -50%, 0);-webkit-transition:-webkit-transform var(--number-transition-timing);transition:-webkit-transform var(--number-transition-timing);transition:transform var(--number-transition-timing);transition:transform var(--number-transition-timing), -webkit-transform var(--number-transition-timing);width:var(--sizing-input-toggle-size)}label{display:-ms-flexbox;display:flex;gap:var(--pine-dimension-150)}.pds-switch--error label{color:inherit}.visually-hidden{border:0;clip:rect(0 0 0 0);-webkit-clip-path:polygon(0 0, 0 0, 0 0);clip-path:polygon(0 0, 0 0, 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px}.pds-switch__message{color:var(--pine-color-text-message);font:var(--pine-typography-body-sm-medium);-webkit-margin-before:var(--pine-dimension-xs);margin-block-start:var(--pine-dimension-xs);-webkit-margin-start:var(--spacing-message-inline);margin-inline-start:var(--spacing-message-inline);width:100%}.pds-switch__message+.pds-switch__message{-webkit-margin-before:var(--spacing-message-inline);margin-block-start:var(--spacing-message-inline)}.pds-switch__message--error{color:inherit;display:-ms-flexbox;display:flex;gap:var(--pine-dimension-2xs)}.pds-switch__message--error pds-icon{-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}input:disabled{background-color:var(--pine-color-neutral-disabled);cursor:not-allowed}input:disabled~label{cursor:initial}input:disabled:hover::after{background-color:var(--pine-color-background-container-disabled)}input:disabled .pds-switch__message{color:initial}input:hover:not(:disabled){background-color:var(--pine-color-neutral-hover)}input:focus-visible:not(:disabled){outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}input:checked::after{-webkit-transform:translate3d(0, -50%, 0);transform:translate3d(0, -50%, 0)}input:checked:not(:disabled){background-color:currentColor;color:var(--pine-color-accent)}input:checked:not(:disabled):hover{border-color:currentColor;color:var(--pine-color-accent-hover)}';const p=class{constructor(r){i(this,r);this.pdsSwitchChange=e(this,"pdsSwitchChange");this.inheritedAttributes={};this.checked=false;this.disabled=false;this.invalid=false;this.required=false;this.onSwitchUpdate=i=>{if(this.disabled)return;const e=i.target;this.checked=e.checked;this.pdsSwitchChange.emit(i)};this.switchClassNames=()=>{let i=`pds-switch`;if(this.invalid===true){i+=" pds-switch--error"}if(this.helperMessage!==undefined){i+=" pds-switch--message"}return i}}componentWillLoad(){this.inheritedAttributes=Object.assign({},l(this.el))}render(){return r(s,{key:"04755f80f89f4eff8d44f8c8e76e6020f6be65fb",class:this.switchClassNames(),"aria-disabled":this.disabled?"true":null},r("label",{key:"cdf1c4d58c640954ada9d50b4832fa26094b3476",htmlFor:this.componentId},r("input",Object.assign({key:"f141885523b649f8dca4e9fe11494ebf640510bc","aria-describedby":a(this.componentId,this.invalid,this.errorMessage||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},this.inheritedAttributes)),r("span",{key:"f80b28bd0904dfae3a4e7b46bfecc46c82843764",class:this.hideLabel?"visually-hidden":""},this.label)),this.helperMessage&&r("div",{key:"7b60b9c273f4773f9d0e90fd8132dc979c088183",class:`pds-switch__message`,id:n(this.componentId,"helper")},this.helperMessage),this.errorMessage&&r("div",{key:"9d068c8da41e985ff63851a909f985a80bdabf89",class:`pds-switch__message pds-switch__message--error`,id:n(this.componentId,"error"),"aria-live":"assertive"},r("pds-icon",{key:"14a69e6ce04e3434f440f19d6ea0e9b347a9b352",icon:o,size:"small"}),this.errorMessage))}get el(){return t(this)}};p.style=d+c;export{p as pds_switch};
2
- //# sourceMappingURL=p-d1b222f5.entry.js.map
@@ -1,2 +0,0 @@
1
- System.register(["./p-C_8VmA8d.system.js","./p-B4W0_y2p.system.js"],(function(i){"use strict";var e,n,o,r,p,c;return{setters:[function(i){e=i.r;n=i.c;o=i.h;r=i.H},function(i){p=i.d;c=i.r}],execute:function(){var s=":host{--pine-chip-color-accent:var(--pine-color-purple-100);--pine-chip-color-accent-hover:var(--pine-color-purple-300);--pine-chip-color-accent-dot:var(--pine-color-purple-600);--pine-chip-color-danger:var(--pine-color-red-100);--pine-chip-color-danger-hover:var(--pine-color-red-300);--pine-chip-color-danger-dot:var(--pine-color-red-600);--pine-chip-color-info:var(--pine-color-blue-100);--pine-chip-color-info-hover:var(--pine-color-blue-300);--pine-chip-color-info-dot:var(--pine-color-blue-600);--pine-chip-color-neutral:var(--pine-color-grey-100);--pine-chip-color-neutral-hover:var(--pine-color-grey-300);--pine-chip-color-neutral-dot:var(--pine-color-grey-600);--pine-chip-color-success:var(--pine-color-green-100);--pine-chip-color-success-hover:var(--pine-color-green-300);--pine-chip-color-success-dot:var(--pine-color-green-600);--pine-chip-color-warning:var(--pine-color-yellow-100);--pine-chip-color-warning-hover:var(--pine-color-yellow-300);--pine-chip-color-warning-dot:var(--pine-color-yellow-600)}";var a=":host{--sizing-close:var(--pine-dimension-125);-ms-flex-align:center;align-items:center;border-radius:var(--pine-dimension-sm);display:-ms-inline-flexbox;display:inline-flex;padding-block:var(--pine-dimension-2xs);padding-inline:var(--pine-dimension-150)}:host(.pds-chip--accent){background:var(--pine-chip-color-accent);border:var(--pine-border-width) solid var(--pine-chip-color-accent-hover)}:host(.pds-chip--accent) .pds-chip__dot{background:var(--pine-chip-color-accent-dot)}:host(.pds-chip--accent) .pds-chip__label,:host(.pds-chip--accent) .pds-chip__button,:host(.pds-chip--accent) .pds-chip__close{color:var(--pine-color-text-accent);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--accent) .pds-chip__close:hover{background:var(--pine-chip-color-accent-hover)}:host(.pds-chip--accent.pds-chip--dropdown:hover){background:var(--pine-chip-color-accent-hover)}:host(.pds-chip--danger){background:var(--pine-chip-color-danger);border:var(--pine-border-width) solid var(--pine-chip-color-danger-hover)}:host(.pds-chip--danger) .pds-chip__dot{background:var(--pine-chip-color-danger-dot)}:host(.pds-chip--danger) .pds-chip__label,:host(.pds-chip--danger) .pds-chip__button,:host(.pds-chip--danger) .pds-chip__close{color:var(--pine-color-text-danger);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--danger) .pds-chip__close:hover{background:var(--pine-chip-color-danger-hover)}:host(.pds-chip--danger.pds-chip--dropdown:hover){background:var(--pine-chip-color-danger-hover)}:host(.pds-chip--info){background:var(--pine-chip-color-info);border:var(--pine-border-width) solid var(--pine-chip-color-info-hover)}:host(.pds-chip--info) .pds-chip__dot{background:var(--pine-chip-color-info-dot)}:host(.pds-chip--info) .pds-chip__label,:host(.pds-chip--info) .pds-chip__button,:host(.pds-chip--info) .pds-chip__close{color:var(--pine-color-text-info);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--info) .pds-chip__close:hover{background:var(--pine-chip-color-info-hover)}:host(.pds-chip--info.pds-chip--dropdown:hover){background:var(--pine-chip-color-info-hover)}:host(.pds-chip--neutral){background:var(--pine-chip-color-neutral);border:var(--pine-border-width) solid var(--pine-chip-color-neutral-hover)}:host(.pds-chip--neutral) .pds-chip__dot{background:var(--pine-chip-color-neutral-dot)}:host(.pds-chip--neutral) .pds-chip__label,:host(.pds-chip--neutral) .pds-chip__button,:host(.pds-chip--neutral) .pds-chip__close{color:var(--pine-color-text-neutral);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--neutral) .pds-chip__close:hover{background:var(--pine-chip-color-neutral-hover)}:host(.pds-chip--neutral.pds-chip--dropdown:hover){background:var(--pine-chip-color-neutral-hover)}:host(.pds-chip--success){background:var(--pine-chip-color-success);border:var(--pine-border-width) solid var(--pine-chip-color-success-hover)}:host(.pds-chip--success) .pds-chip__dot{background:var(--pine-chip-color-success-dot)}:host(.pds-chip--success) .pds-chip__label,:host(.pds-chip--success) .pds-chip__button,:host(.pds-chip--success) .pds-chip__close{color:var(--pine-color-text-success);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--success) .pds-chip__close:hover{background:var(--pine-chip-color-success-hover)}:host(.pds-chip--success.pds-chip--dropdown:hover){background:var(--pine-chip-color-success-hover)}:host(.pds-chip--warning){background:var(--pine-chip-color-warning);border:var(--pine-border-width) solid var(--pine-chip-color-warning-hover)}:host(.pds-chip--warning) .pds-chip__dot{background:var(--pine-chip-color-warning-dot)}:host(.pds-chip--warning) .pds-chip__label,:host(.pds-chip--warning) .pds-chip__button,:host(.pds-chip--warning) .pds-chip__close{color:var(--pine-color-text-warning);font-weight:var(--pine-font-weight-medium)}:host(.pds-chip--warning) .pds-chip__close:hover{background:var(--pine-chip-color-warning-hover)}:host(.pds-chip--warning.pds-chip--dropdown:hover){background:var(--pine-chip-color-warning-hover)}.pds-chip__dot{border:var(--pine-border-width) solid transparent;border-radius:var(--pine-border-radius-full);display:inline-block;height:var(--pine-dimension-2xs);-webkit-margin-after:var(--pine-dimension-025);margin-block-end:var(--pine-dimension-025);-webkit-margin-end:var(--pine-dimension-2xs);margin-inline-end:var(--pine-dimension-2xs);width:var(--pine-dimension-2xs)}.pds-chip__label{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}.pds-chip__label,.pds-chip__button{font:var(--pine-typography-body-medium);letter-spacing:var(--pine-letter-spacing)}:host(.pds-chip--dropdown){padding:var(--pine-dimension-none)}:host(.pds-chip--dropdown) .pds-chip__dot{-webkit-margin-after:calc(var(--pine-dimension-025) / 4);margin-block-end:calc(var(--pine-dimension-025) / 4);-webkit-margin-before:var(--pine-dimension-025);margin-block-start:var(--pine-dimension-025)}.pds-chip__button{-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:var(--pine-dimension-none);border-radius:var(--pine-dimension-sm);cursor:pointer;display:-ms-flexbox;display:flex;padding:var(--pine-dimension-2xs) var(--pine-dimension-150)}.pds-chip__button:focus-visible{outline:var(--pine-outline-focus);outline-offset:var(--pine-border-width)}.pds-chip__button pds-icon{-webkit-margin-end:calc(var(--pine-dimension-025) * -1);margin-inline-end:calc(var(--pine-dimension-025) * -1);-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs)}.pds-chip__close{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-border-radius-full);height:var(--sizing-close);-webkit-margin-end:calc(var(--pine-dimension-xs) * -1);margin-inline-end:calc(var(--pine-dimension-xs) * -1);-webkit-margin-start:var(--pine-dimension-2xs);margin-inline-start:var(--pine-dimension-2xs);padding:var(--sizing-close);position:relative;width:var(--sizing-close)}.pds-chip__close pds-icon{left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%)}.pds-chip__close:focus-visible{outline:var(--pine-outline-focus)}:host(.pds-chip--large){padding-block:var(--pine-dimension-2xs);padding-inline:var(--pine-dimension-150)}:host(.pds-chip--large) .pds-chip__label,:host(.pds-chip--large) .pds-chip__button{font:var(--pine-typography-heading-6);letter-spacing:var(--pine-letter-spacing-heading-6)}:host(.pds-chip--large):has(.pds-chip__button){padding:var(--pine-dimension-none)}";var d=i("pds_chip",function(){function i(i){var o=this;e(this,i);this.pdsTagCloseClick=n(this,"pdsTagCloseClick");this.dot=false;this.large=false;this.sentiment="neutral";this.variant="text";this.handleCloseClick=function(){o.pdsTagCloseClick.emit()}}i.prototype.classNames=function(){var i=["pds-chip"];if(this.large){i.push("pds-chip--large")}if(this.variant){i.push("pds-chip--"+this.variant)}if(this.sentiment){i.push("pds-chip--"+this.sentiment)}return i.join(" ")};i.prototype.setChipContent=function(){var i=this.variant==="dropdown";var e=i?o("button",{class:"pds-chip__button",type:"button"},this.dot&&o("i",{class:"pds-chip__dot","aria-hidden":"true"}),o("slot",null),o("pds-icon",{icon:p,size:"12px","aria-hidden":"true"})):o("span",{class:"pds-chip__label"},this.dot&&o("i",{class:"pds-chip__dot","aria-hidden":"true"}),o("slot",null));return e};i.prototype.render=function(){return o(r,{key:"b1987e434a5b9dcc4a5536660822bcb9c1f79e4f",class:this.classNames(),id:this.componentId},this.setChipContent(),this.variant==="tag"&&o("button",{key:"8f658cd564e86297a9b988d6080135e6d612be36",class:"pds-chip__close",type:"button",onClick:this.handleCloseClick,"aria-label":"Remove"},o("pds-icon",{key:"32266c84697e0ffa3ff5d2e554cdf6b7e598d0e6",icon:c,size:"12px"})))};return i}());d.style=s+a}}}));
2
- //# sourceMappingURL=p-e09a3682.system.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["pdsChipTokensCss","pdsChipCss","PdsChip","exports","class_1","hostRef","_this","this","dot","large","sentiment","variant","handleCloseClick","pdsTagCloseClick","emit","prototype","classNames","push","join","setChipContent","isDropdown","chipContent","h","class","type","icon","downSmall","size","render","Host","key","id","componentId","onClick","remove"],"sources":["src/components/pds-chip/pds-chip.tokens.scss?tag=pds-chip&encapsulation=shadow","src/components/pds-chip/pds-chip.scss?tag=pds-chip&encapsulation=shadow","src/components/pds-chip/pds-chip.tsx"],"sourcesContent":["@use '~@kajabi-ui/styles/dist/pine/components/pds-chip/pds-chip.tokens'\n",":host {\n --sizing-close: var(--pine-dimension-125);\n\n align-items: center;\n border-radius: var(--pine-dimension-sm);\n display: inline-flex;\n padding-block: var(--pine-dimension-2xs);\n padding-inline: var(--pine-dimension-150);\n}\n\n$pds-chip-sentiment: (\n accent: var(--pine-chip-color-accent),\n danger: var(--pine-chip-color-danger),\n info: var(--pine-chip-color-info),\n neutral: var(--pine-chip-color-neutral),\n success: var(--pine-chip-color-success),\n warning: var(--pine-chip-color-warning),\n);\n\n$pds-chip-sentiment-text: (\n accent: var(--pine-color-text-accent),\n danger: var(--pine-color-text-danger),\n info: var(--pine-color-text-info),\n neutral: var(--pine-color-text-neutral),\n success: var(--pine-color-text-success),\n warning: var(--pine-color-text-warning),\n);\n\n$pds-chip-sentiment-dots: (\n accent: var(--pine-chip-color-accent-dot),\n danger: var(--pine-chip-color-danger-dot),\n info: var(--pine-chip-color-info-dot),\n neutral: var(--pine-chip-color-neutral-dot),\n success: var(--pine-chip-color-success-dot),\n warning: var(--pine-chip-color-warning-dot),\n);\n\n$pds-chip-sentiment-hover: (\n accent: var(--pine-chip-color-accent-hover),\n danger: var(--pine-chip-color-danger-hover),\n info: var(--pine-chip-color-info-hover),\n neutral: var(--pine-chip-color-neutral-hover),\n success: var(--pine-chip-color-success-hover),\n warning: var(--pine-chip-color-warning-hover),\n);\n\n@each $sentiment, $value in $pds-chip-sentiment {\n :host(.pds-chip--#{$sentiment}) {\n background: $value;\n border: var(--pine-border-width) solid var(--pine-chip-color-#{$sentiment}-hover);\n\n // dot colors\n .pds-chip__dot {\n /* stylelint-disable-next-line */\n background: map-get($pds-chip-sentiment-dots, $sentiment);\n }\n\n .pds-chip__label, .pds-chip__button, .pds-chip__close {\n /* stylelint-disable-next-line */\n color: map-get($pds-chip-sentiment-text, $sentiment);\n font-weight: var(--pine-font-weight-medium);\n }\n\n // tag close hover colors\n .pds-chip__close:hover {\n /* stylelint-disable-next-line */\n background: map-get($pds-chip-sentiment-hover, $sentiment);\n }\n }\n // dropdown hover colors\n :host(.pds-chip--#{$sentiment}.pds-chip--dropdown:hover) {\n /* stylelint-disable-next-line */\n background: map-get($pds-chip-sentiment-hover, $sentiment);\n }\n}\n\n.pds-chip__dot {\n border: var(--pine-border-width) solid transparent;\n border-radius: var(--pine-border-radius-full);\n display: inline-block;\n height: var(--pine-dimension-2xs);\n margin-block-end: var(--pine-dimension-025);\n margin-inline-end: var(--pine-dimension-2xs);\n width: var(--pine-dimension-2xs);\n}\n\n.pds-chip__label {\n align-items: center;\n display: flex;\n}\n\n.pds-chip__label, .pds-chip__button {\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n\n// dropdown\n\n:host(.pds-chip--dropdown) {\n padding: var(--pine-dimension-none);\n\n .pds-chip__dot {\n margin-block-end: calc(var(--pine-dimension-025) / 4);\n margin-block-start: var(--pine-dimension-025);\n }\n}\n\n.pds-chip__button {\n align-items: center;\n appearance: none;\n background: transparent;\n border: var(--pine-dimension-none);\n border-radius: var(--pine-dimension-sm);\n cursor: pointer;\n display: flex;\n padding: var(--pine-dimension-2xs) var(--pine-dimension-150);\n\n &:focus-visible {\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-border-width);\n }\n\n pds-icon {\n margin-inline-end: calc(var(--pine-dimension-025) * -1);\n margin-inline-start: var(--pine-dimension-2xs);\n }\n}\n\n.pds-chip__close {\n appearance: none;\n background: transparent;\n border: 0;\n border-radius: var(--pine-border-radius-full);\n height: var(--sizing-close);\n margin-inline-end: calc(var(--pine-dimension-xs) * -1);\n margin-inline-start: var(--pine-dimension-2xs);\n padding: var(--sizing-close);\n position: relative;\n width: var(--sizing-close);\n\n pds-icon {\n left: 50%;\n position: absolute;\n top: 50%;\n transform: translate(-50%, -50%);\n }\n\n &:focus-visible {\n outline: var(--pine-outline-focus);\n }\n}\n\n// large\n\n:host(.pds-chip--large) {\n padding-block: var(--pine-dimension-2xs);\n padding-inline: var(--pine-dimension-150);\n\n .pds-chip__label, .pds-chip__button {\n font: var(--pine-typography-heading-6);\n letter-spacing: var(--pine-letter-spacing-heading-6);\n }\n}\n\n:host(.pds-chip--large):has(.pds-chip__button) {\n padding: var(--pine-dimension-none);\n}\n","import { downSmall, remove } from '@pine-ds/icons/icons';\nimport { Component, Host, h, Prop, Event, EventEmitter } from '@stencil/core';\n\n/**\n * @slot (default) - The chip's label text.\n */\n\n@Component({\n tag: 'pds-chip',\n styleUrls: ['pds-chip.tokens.scss', 'pds-chip.scss'],\n shadow: true,\n})\nexport class PdsChip {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether a dot should be displayed on the chip.\n * @defaultValue false\n */\n @Prop() dot = false;\n\n\n /**\n * Determines whether the chip should be displayed in a larger size.\n * @defaultValue false\n */\n @Prop() large = false;\n\n /**\n * Defines the color scheme of the chip.\n * @defaultValue 'neutral'\n */\n @Prop() sentiment: 'accent' | 'danger' | 'info' | 'neutral' | 'success' | 'warning' = 'neutral';\n\n /**\n * Sets the style variant of the chip.\n * @defaultValue 'text'\n */\n @Prop() variant: 'text' | 'tag' | 'dropdown' = 'text';\n\n /**\n * Event emitted when the close button is clicked on a tag variant chip.\n */\n @Event() pdsTagCloseClick: EventEmitter;\n\n private handleCloseClick = () => {\n this.pdsTagCloseClick.emit();\n };\n\n private classNames() {\n const classNames = ['pds-chip'];\n\n if (this.large) {\n classNames.push('pds-chip--large');\n }\n if (this.variant) {\n classNames.push('pds-chip--' + this.variant);\n }\n if (this.sentiment) {\n classNames.push('pds-chip--' + this.sentiment);\n }\n\n return classNames.join(' ');\n }\n\n private setChipContent() {\n const isDropdown = this.variant === 'dropdown';\n const chipContent = isDropdown ? (\n <button class=\"pds-chip__button\" type=\"button\">\n {this.dot && <i class=\"pds-chip__dot\" aria-hidden=\"true\"></i>}\n <slot></slot>\n <pds-icon icon={downSmall} size=\"12px\" aria-hidden=\"true\"></pds-icon>\n </button>\n ) : (\n <span class=\"pds-chip__label\">\n {this.dot && <i class=\"pds-chip__dot\" aria-hidden=\"true\"></i>}\n <slot></slot>\n </span>\n );\n\n return chipContent;\n }\n\n render() {\n return (\n <Host class={this.classNames()} id={this.componentId}>\n {this.setChipContent()}\n {this.variant === 'tag' && (\n <button class=\"pds-chip__close\" type=\"button\" onClick={this.handleCloseClick} aria-label=\"Remove\">\n <pds-icon icon={remove} size=\"12px\"></pds-icon>\n </button>\n )}\n </Host>\n );\n }\n}\n"],"mappings":"gNAAA,IAAMA,EAAmB,4/BCAzB,IAAMC,EAAa,86M,ICYNC,EAAOC,EAAA,sBALpB,SAAAC,EAAAC,GAAA,IAAAC,EAAAC,K,2DAeUA,KAAGC,IAAG,MAOND,KAAKE,MAAG,MAMRF,KAASG,UAAqE,UAM9EH,KAAOI,QAAgC,OAOvCJ,KAAgBK,iBAAG,WACzBN,EAAKO,iBAAiBC,MACxB,CAgDD,CA9CSV,EAAAW,UAAAC,WAAA,WACN,IAAMA,EAAa,CAAC,YAEpB,GAAIT,KAAKE,MAAO,CACdO,EAAWC,KAAK,kB,CAElB,GAAIV,KAAKI,QAAS,CAChBK,EAAWC,KAAK,aAAeV,KAAKI,Q,CAEtC,GAAIJ,KAAKG,UAAW,CAClBM,EAAWC,KAAK,aAAeV,KAAKG,U,CAGtC,OAAOM,EAAWE,KAAK,I,EAGjBd,EAAAW,UAAAI,eAAA,WACN,IAAMC,EAAab,KAAKI,UAAY,WACpC,IAAMU,EAAcD,EAClBE,EAAQ,UAAAC,MAAM,mBAAmBC,KAAK,UACnCjB,KAAKC,KAAOc,EAAA,KAAGC,MAAM,gBAA4B,uBAClDD,EAAa,aACbA,EAAA,YAAUG,KAAMC,EAAWC,KAAK,OAAmB,wBAGrDL,EAAM,QAAAC,MAAM,mBACThB,KAAKC,KAAOc,EAAA,KAAGC,MAAM,gBAA4B,uBAClDD,EAAa,cAIjB,OAAOD,C,EAGTjB,EAAAW,UAAAa,OAAA,WACE,OACEN,EAACO,EAAI,CAAAC,IAAA,2CAACP,MAAOhB,KAAKS,aAAce,GAAIxB,KAAKyB,aACtCzB,KAAKY,iBACLZ,KAAKI,UAAY,OAChBW,EAAA,UAAAQ,IAAA,2CAAQP,MAAM,kBAAkBC,KAAK,SAASS,QAAS1B,KAAKK,iBAAgB,aAAa,UACvFU,EAAA,YAAAQ,IAAA,2CAAUL,KAAMS,EAAQP,KAAK,U,WAhFrB,I","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- import{r as d,h as e}from"./p-Uh5ntVcq.js";const s="pds-modal-header{display:block;width:100%}.pds-modal__header{width:100%}";const a=class{constructor(e){d(this,e)}render(){return e("header",{key:"63d1121b84d10ea99354d07b029b7625d52d9095",class:"pds-modal__header"},e("slot",{key:"dd08fc600f122e422ccd3161bc558f3b9cc075f9"}))}};a.style=s;export{a as pds_modal_header};
2
- //# sourceMappingURL=p-e6d6e103.entry.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"p-xgOOHGQo.system.js","sources":["src/components/pds-input/pds-input.tokens.scss?tag=pds-input&encapsulation=shadow","src/global/styles/utils/label.scss?tag=pds-input&encapsulation=shadow","src/components/pds-input/pds-input.scss?tag=pds-input&encapsulation=shadow","src/components/pds-input/pds-input.tsx"],"sourcesContent":["@use '~@kajabi-ui/styles/dist/pine/components/pds-input/pds-input.tokens'\n",":host {\n display: inline-block;\n}\n\n:host([aria-disabled=\"true\"]) label {\n color: var(--pine-color-text-label-disabled);\n}\n\n:host([aria-readonly=\"true\"]) {\n label {\n color: var(--pine-color-text-label-readonly);\n }\n}\n\nlabel {\n color: var(--pine-color-text-label);\n font: var(--pine-typography-body-medium);\n letter-spacing: var(--pine-letter-spacing);\n}\n",":host {\n display: inline;\n}\n\n:host([aria-readonly=\"true\"]) {\n input {\n background-color: var(--pine-color-background-container-disabled);\n color: var(--pine-color-text-readonly);\n }\n}\n\n.pds-input {\n display: flex;\n flex-direction: column;\n}\n\n.pds-input__label {\n margin-block-end: var(--pine-dimension-2xs)\n}\n\n.pds-input__field {\n background: var(--pine-color-background-container);\n border: 1px solid var(--pine-color-border);\n border-radius: var(--pine-dimension-125);\n color: var(--pine-color-text-active);\n font: var(--pine-typography-body);\n letter-spacing: var(--pine-letter-spacing);\n padding: var(--pine-dimension-xs) var(--pine-dimension-sm);\n\n &:hover:not(:disabled, .is-invalid) {\n border: var(--pine-border-hover);\n }\n\n &:disabled {\n background-color: var(--pine-color-background-container-disabled);\n border-color: var(--pine-color-border-disabled);\n color: var(--pine-color-text-disabled);\n cursor: not-allowed;\n\n /* stylelint-disable */\n &::-webkit-input-placeholder {\n color: var(--pine-color-text-placeholder-disabled);\n }\n\n &::-moz-placeholder {\n color: var(--pine-color-text-placeholder-disabled);\n }\n\n &::-moz-placeholder {\n color: var(--pine-color-text-placeholder-disabled);\n }\n\n &:-ms-input-placeholder {\n color: var(--pine-color-text-placeholder-disabled);\n }\n /* stylelint-enable */\n }\n\n &:hover {\n border-color: var(--pine-color-border-hover);\n }\n\n &:focus-visible {\n border-color: var(--pine-color-border-active);\n outline: var(--pine-outline-focus);\n outline-offset: var(--pine-border-width);\n }\n\n /* stylelint-disable */\n &::-webkit-input-placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &::-moz-placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &::-moz-placeholder {\n color: var(--pine-color-text-placeholder);\n }\n\n &:-ms-input-placeholder {\n color: var(--pine-color-text-placeholder);\n }\n /* stylelint-enable */\n\n &.is-invalid {\n background-color: var(--pine-input-color-background-danger);\n border-color: var(--pine-color-border-danger);\n\n &:focus-visible {\n outline-color: var(--pine-color-focus-ring-danger);\n }\n }\n}\n\n.pds-input__error-message,\n.pds-input__helper-message {\n font: var(--pine-typography-body-sm-medium);\n margin-block-end: 0;\n margin-block-start: var(--pine-dimension-2xs)\n}\n\n.pds-input__error-message {\n align-items: center;\n color: var(--pine-color-text-message-danger);\n display: flex;\n gap: var(--pine-dimension-2xs);\n}\n","import { Component, Element, Event, EventEmitter, h, Host, Method, Prop, State, Watch } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { danger } from '@pine-ds/icons/icons';\n\nimport { debounceEvent } from '@utils/utils';\nimport { inheritAriaAttributes } from '@utils/attributes';\n\nimport type { Attributes } from '@utils/attributes';\nimport type { InputChangeEventDetail, InputInputEventDetail } from './input-interface';\n\n@Component({\n tag: 'pds-input',\n styleUrls: ['pds-input.tokens.scss', '../../global/styles/utils/label.scss', 'pds-input.scss'],\n shadow: true,\n})\nexport class PdsInput {\n private nativeInput?: HTMLInputElement;\n private inheritedAttributes: Attributes = {};\n private isComposing = false;\n /**\n * The value of the input when the input is focused.\n */\n private focusedValue?: string | number | null;\n\n private originalPdsInput?: EventEmitter<InputInputEventDetail>;\n\n @Element() el!: HTMLPdsInputElement;\n\n /**\n * Emitted when the input loses focus.\n */\n @Event() pdsBlur!: EventEmitter<FocusEvent>;\n\n /**\n *\n * Emitted when the value has changed.\n *\n * This event will not emit when programmatically setting the `value` property.\n */\n @Event() pdsChange!: EventEmitter<InputChangeEventDetail>;\n\n /**\n * Emitted when the input has focus.\n */\n @Event() pdsFocus!: EventEmitter<FocusEvent>;\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsInput: EventEmitter<InputInputEventDetail>;\n\n /**\n * Sets focus on the native `input` in the `pds-input`. Use this method instead of the global\n * `input.focus()`.\n */\n @Method()\n async setFocus() {\n if ( this.nativeInput ) {\n this.nativeInput.focus();\n }\n }\n\n /**\n * Specifies if and how the browser provides `autocomplete` assistance for the field.\n */\n @Prop() autocomplete: string;\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Sets the number of milliseconds to wait before updating the value.\n */\n @Prop() debounce?: number;\n\n /**\n * Determines whether or not the input field is disabled.\n */\n @Prop() disabled?: boolean;\n\n /**\n * Specifies the error message and provides an error-themed treatment to the field.\n */\n @Prop() errorMessage?: string;\n\n /**\n * Displays a message or hint below the input field.\n */\n @Prop() helperMessage?: string;\n\n /**\n * Determines whether or not the input field is invalid or throws an error.\n */\n @Prop() invalid?: boolean;\n\n /**\n * Text to be displayed as the input label.\n */\n @Prop() label?: string;\n\n /**\n * Specifies the name. Submitted with the form name/value pair.\n */\n @Prop() name?: string;\n\n /**\n * Specifies a short hint that describes the expected value of the input field.\n */\n @Prop() placeholder?: string;\n\n /**\n * Determines whether or not the input field is readonly.\n */\n @Prop() readonly?: boolean;\n\n /**\n * Determines whether or not the input field is required.\n */\n @Prop() required?: boolean;\n\n /**\n * Determines the type of control that will be displayed\n * `'email'`, `'number'`, `'password'`, `'tel'`, `'text'`, `'url'`\n * @defaultValue \"text\"\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({mutable: true}) value?: string | number | null = '';\n\n /**\n * Determines if the input has focus.\n */\n @State() hasFocus = false;\n\n\n @Watch('debounce')\n protected debounceChanged() {\n const { pdsInput, debounce, originalPdsInput } = this;\n\n /**\n * If debounce is undefined, we have to manually revert the pdsInput emitter in case\n * debounce used to be set to a number. Otherwise, the event would stay debounced.\n */\n this.pdsInput = debounce === undefined ? originalPdsInput ?? pdsInput : debounceEvent(pdsInput, debounce);\n }\n\n @Watch('value')\n protected valueChanged() {\n const nativeInput = this.nativeInput;\n const value = this.getValue();\n\n if (nativeInput && nativeInput.value !== value && !this.isComposing) {\n nativeInput.value = value;\n }\n }\n\n private getValue(): string {\n return typeof this.value === 'number' ? this.value.toString() : (this.value || '').toString();\n }\n\n private onInputEvent = (ev: Event) => {\n const input = ev.target as HTMLInputElement | null;\n if (input) {\n this.value = input.value || '';\n }\n this.emitInputChange(ev);\n };\n\n private onChangeEvent = (ev: Event) => {\n this.emitValueChange(ev);\n };\n\n private onBlurEvent = (ev: FocusEvent) => {\n this.hasFocus = false;\n\n if (this.focusedValue !== this.value) {\n /**\n * Emits the `pdsChange` event when the input value\n * is different than the value when the input was focused.\n */\n this.emitValueChange(ev);\n }\n\n this.pdsBlur.emit(ev);\n };\n\n private onFocusEvent = (ev: FocusEvent) => {\n this.hasFocus = true;\n this.focusedValue = this.value;\n\n this.pdsFocus.emit(ev);\n };\n\n private onCompositionStart = () => {\n this.isComposing = true;\n }\n\n private onCompositionEnd = () => {\n this.isComposing = false;\n }\n\n /**\n * Emits a pdsChange event\n */\n private emitValueChange(event?: Event) {\n const { value } = this;\n const newValue = value == null ? value : value.toString();\n\n this.focusedValue = newValue;\n this.pdsChange.emit({ value: newValue, event });\n }\n\n /**\n *\n * Emits a `pdsInput` event\n */\n private emitInputChange(event?: Event) {\n const { value } = this;\n\n // Checks for both null and undefined values\n const newValue = value == null ? value : value.toString();\n\n this.pdsInput.emit({ value: newValue, event });\n }\n\n\n componentWillLoad() {\n this.inheritedAttributes = {\n ...inheritAriaAttributes(this.el)\n }\n }\n\n componentDidLoad() {\n this.debounceChanged();\n }\n\n private inputClassNames() {\n const classNames = ['pds-input__field'];\n\n if (this.invalid && this.invalid === true) {\n classNames.push('is-invalid');\n }\n\n return classNames.join(' ');\n }\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n aria-readonly={this.readonly ? 'true' : null}\n >\n <div class=\"pds-input\">\n {this.label &&\n <label class=\"pds-input__label\" htmlFor={this.componentId}>{this.label}</label>\n }\n <input\n class={this.inputClassNames()}\n ref={(input) => this.nativeInput = input}\n aria-describedby={assignDescription(this.componentId, this.invalid, this.helperMessage)}\n aria-invalid={this.invalid ? \"true\" : undefined}\n autocomplete={this.autocomplete}\n disabled={this.disabled}\n id={this.componentId}\n name={this.name}\n placeholder={this.placeholder}\n readOnly={this.readonly}\n required={this.required}\n type={this.type}\n value={this.value}\n onInput={this.onInputEvent}\n onChange={this.onChangeEvent}\n onBlur={this.onBlurEvent}\n onFocus={this.onFocusEvent}\n onCompositionstart={this.onCompositionStart}\n onCompositionend={this.onCompositionEnd}\n {...this.inheritedAttributes}\n />\n {this.helperMessage &&\n <p\n class=\"pds-input__helper-message\"\n id={messageId(this.componentId, 'helper')}\n >\n {this.helperMessage}\n </p>\n }\n {this.errorMessage &&\n <p\n class=\"pds-input__error-message\"\n id={messageId(this.componentId, 'error')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