@pine-ds/core 2.14.0 → 2.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (722) hide show
  1. package/components/attributes.js +87 -0
  2. package/components/attributes.js.map +1 -0
  3. package/{dist/esm/pds-label-62469596.js → components/form.js} +2 -10
  4. package/components/form.js.map +1 -0
  5. package/components/index2.js +3 -2
  6. package/components/index2.js.map +1 -1
  7. package/components/pds-accordion.js +4 -7
  8. package/components/pds-accordion.js.map +1 -1
  9. package/components/pds-avatar.js +4 -7
  10. package/components/pds-avatar.js.map +1 -1
  11. package/components/pds-box.js +1 -1
  12. package/components/pds-box.js.map +1 -1
  13. package/components/pds-button2.js +6 -12
  14. package/components/pds-button2.js.map +1 -1
  15. package/components/pds-checkbox2.js +8 -10
  16. package/components/pds-checkbox2.js.map +1 -1
  17. package/components/pds-chip.js +4 -4
  18. package/components/pds-chip.js.map +1 -1
  19. package/components/pds-copytext.js +4 -7
  20. package/components/pds-copytext.js.map +1 -1
  21. package/components/pds-divider.js +4 -7
  22. package/components/pds-divider.js.map +1 -1
  23. package/components/pds-icon2.js +1 -1
  24. package/components/pds-icon2.js.map +1 -1
  25. package/components/pds-image.js +4 -7
  26. package/components/pds-image.js.map +1 -1
  27. package/components/pds-input.js +112 -12
  28. package/components/pds-input.js.map +1 -1
  29. package/components/pds-label.js +1 -29
  30. package/components/pds-label.js.map +1 -1
  31. package/components/pds-link.js +5 -8
  32. package/components/pds-link.js.map +1 -1
  33. package/components/pds-loader.js +4 -7
  34. package/components/pds-loader.js.map +1 -1
  35. package/components/pds-popover.js +1 -1
  36. package/components/pds-popover.js.map +1 -1
  37. package/components/pds-progress.js +4 -7
  38. package/components/pds-progress.js.map +1 -1
  39. package/components/pds-radio.js +8 -10
  40. package/components/pds-radio.js.map +1 -1
  41. package/components/pds-row.js +1 -1
  42. package/components/pds-row.js.map +1 -1
  43. package/components/pds-select.js +6 -4
  44. package/components/pds-select.js.map +1 -1
  45. package/components/pds-sortable-item.js +1 -1
  46. package/components/pds-sortable-item.js.map +1 -1
  47. package/components/pds-sortable.js +4 -7
  48. package/components/pds-sortable.js.map +1 -1
  49. package/components/pds-switch.js +8 -10
  50. package/components/pds-switch.js.map +1 -1
  51. package/components/pds-tab.js +1 -1
  52. package/components/pds-tab.js.map +1 -1
  53. package/components/pds-table-body.js +3 -6
  54. package/components/pds-table-body.js.map +1 -1
  55. package/components/pds-table-cell2.js +5 -8
  56. package/components/pds-table-cell2.js.map +1 -1
  57. package/components/pds-table-head-cell2.js +6 -9
  58. package/components/pds-table-head-cell2.js.map +1 -1
  59. package/components/pds-table-head.js +4 -7
  60. package/components/pds-table-head.js.map +1 -1
  61. package/components/pds-table-row.js +4 -7
  62. package/components/pds-table-row.js.map +1 -1
  63. package/components/pds-table.js +3 -6
  64. package/components/pds-table.js.map +1 -1
  65. package/components/pds-tabpanel.js +1 -1
  66. package/components/pds-tabpanel.js.map +1 -1
  67. package/components/pds-tabs.js +4 -7
  68. package/components/pds-tabs.js.map +1 -1
  69. package/components/pds-text.js +1 -1
  70. package/components/pds-text.js.map +1 -1
  71. package/components/pds-textarea.js +108 -18
  72. package/components/pds-textarea.js.map +1 -1
  73. package/components/pds-tooltip.js +15 -8
  74. package/components/pds-tooltip.js.map +1 -1
  75. package/components/utils.js +21 -0
  76. package/components/utils.js.map +1 -0
  77. package/dist/cjs/attributes-73ee8de7.js +90 -0
  78. package/dist/cjs/attributes-73ee8de7.js.map +1 -0
  79. package/dist/cjs/{pds-label-05f073ea.js → form-4f00637c.js} +1 -10
  80. package/dist/cjs/form-4f00637c.js.map +1 -0
  81. package/dist/cjs/{index-3ad62856.js → index-034a8bb0.js} +4 -2
  82. package/dist/cjs/index-034a8bb0.js.map +1 -0
  83. package/dist/cjs/loader.cjs.js +1 -1
  84. package/dist/cjs/pds-accordion.cjs.entry.js +5 -8
  85. package/dist/cjs/pds-accordion.cjs.entry.js.map +1 -1
  86. package/dist/cjs/pds-avatar.cjs.entry.js +5 -8
  87. package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -1
  88. package/dist/cjs/pds-box.cjs.entry.js +1 -1
  89. package/dist/cjs/pds-box.cjs.entry.js.map +1 -1
  90. package/dist/cjs/pds-button.cjs.entry.js +7 -13
  91. package/dist/cjs/pds-button.cjs.entry.js.map +1 -1
  92. package/dist/cjs/pds-checkbox.cjs.entry.js +9 -11
  93. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -1
  94. package/dist/cjs/pds-chip.cjs.entry.js +5 -5
  95. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -1
  96. package/dist/cjs/pds-copytext.cjs.entry.js +5 -8
  97. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -1
  98. package/dist/cjs/pds-divider.cjs.entry.js +4 -7
  99. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -1
  100. package/dist/cjs/pds-icon.cjs.entry.js +1 -1
  101. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -1
  102. package/dist/cjs/pds-image.cjs.entry.js +4 -7
  103. package/dist/cjs/pds-image.cjs.entry.js.map +1 -1
  104. package/dist/cjs/pds-input.cjs.entry.js +106 -12
  105. package/dist/cjs/pds-input.cjs.entry.js.map +1 -1
  106. package/dist/cjs/pds-label-e0d9a97d.js +13 -0
  107. package/dist/cjs/pds-label-e0d9a97d.js.map +1 -0
  108. package/dist/cjs/pds-link.cjs.entry.js +6 -9
  109. package/dist/cjs/pds-link.cjs.entry.js.map +1 -1
  110. package/dist/cjs/pds-loader.cjs.entry.js +4 -7
  111. package/dist/cjs/pds-loader.cjs.entry.js.map +1 -1
  112. package/dist/cjs/pds-popover.cjs.entry.js +1 -1
  113. package/dist/cjs/pds-popover.cjs.entry.js.map +1 -1
  114. package/dist/cjs/pds-progress.cjs.entry.js +4 -7
  115. package/dist/cjs/pds-progress.cjs.entry.js.map +1 -1
  116. package/dist/cjs/pds-radio.cjs.entry.js +9 -11
  117. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -1
  118. package/dist/cjs/pds-row.cjs.entry.js +1 -1
  119. package/dist/cjs/pds-row.cjs.entry.js.map +1 -1
  120. package/dist/cjs/pds-select.cjs.entry.js +7 -5
  121. package/dist/cjs/pds-select.cjs.entry.js.map +1 -1
  122. package/dist/cjs/pds-sortable-item.cjs.entry.js +2 -2
  123. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -1
  124. package/dist/cjs/pds-sortable.cjs.entry.js +4 -7
  125. package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -1
  126. package/dist/cjs/pds-switch.cjs.entry.js +9 -11
  127. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -1
  128. package/dist/cjs/pds-tab.cjs.entry.js +1 -1
  129. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -1
  130. package/dist/cjs/pds-table-body.cjs.entry.js +3 -6
  131. package/dist/cjs/pds-table-body.cjs.entry.js.map +1 -1
  132. package/dist/cjs/pds-table-cell.cjs.entry.js +5 -8
  133. package/dist/cjs/pds-table-cell.cjs.entry.js.map +1 -1
  134. package/dist/cjs/pds-table-head-cell.cjs.entry.js +6 -9
  135. package/dist/cjs/pds-table-head-cell.cjs.entry.js.map +1 -1
  136. package/dist/cjs/pds-table-head.cjs.entry.js +4 -7
  137. package/dist/cjs/pds-table-head.cjs.entry.js.map +1 -1
  138. package/dist/cjs/pds-table-row.cjs.entry.js +4 -7
  139. package/dist/cjs/pds-table-row.cjs.entry.js.map +1 -1
  140. package/dist/cjs/pds-table.cjs.entry.js +3 -6
  141. package/dist/cjs/pds-table.cjs.entry.js.map +1 -1
  142. package/dist/cjs/pds-tabpanel.cjs.entry.js +1 -1
  143. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -1
  144. package/dist/cjs/pds-tabs.cjs.entry.js +4 -7
  145. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -1
  146. package/dist/cjs/pds-text.cjs.entry.js +1 -1
  147. package/dist/cjs/pds-text.cjs.entry.js.map +1 -1
  148. package/dist/cjs/pds-textarea.cjs.entry.js +102 -18
  149. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -1
  150. package/dist/cjs/pds-tooltip.cjs.entry.js +15 -8
  151. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -1
  152. package/dist/cjs/pine-core.cjs.js +1 -1
  153. package/dist/cjs/utils-39c972f8.js +24 -0
  154. package/dist/cjs/utils-39c972f8.js.map +1 -0
  155. package/dist/collection/components/pds-accordion/pds-accordion.css +20 -28
  156. package/dist/collection/components/pds-accordion/pds-accordion.js +3 -3
  157. package/dist/collection/components/pds-accordion/pds-accordion.js.map +1 -1
  158. package/dist/collection/components/pds-avatar/pds-avatar.css +12 -19
  159. package/dist/collection/components/pds-avatar/pds-avatar.js +3 -3
  160. package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -1
  161. package/dist/collection/components/pds-box/pds-box.css +21 -30
  162. package/dist/collection/components/pds-button/pds-button.css +48 -74
  163. package/dist/collection/components/pds-button/pds-button.js +3 -3
  164. package/dist/collection/components/pds-button/pds-button.js.map +1 -1
  165. package/dist/collection/components/pds-checkbox/pds-checkbox.css +32 -48
  166. package/dist/collection/components/pds-checkbox/pds-checkbox.js +5 -5
  167. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -1
  168. package/dist/collection/components/pds-chip/pds-chip.css +75 -125
  169. package/dist/collection/components/pds-chip/pds-chip.js +3 -3
  170. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -1
  171. package/dist/collection/components/pds-chip/pds-chip.tokens.css +23 -0
  172. package/dist/collection/components/pds-copytext/pds-copytext.css +23 -36
  173. package/dist/collection/components/pds-copytext/pds-copytext.js +3 -3
  174. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -1
  175. package/dist/collection/components/pds-divider/pds-divider.css +29 -41
  176. package/dist/collection/components/pds-divider/pds-divider.js +3 -3
  177. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -1
  178. package/dist/collection/components/pds-image/pds-image.css +1 -1
  179. package/dist/collection/components/pds-image/pds-image.js +4 -4
  180. package/dist/collection/components/pds-image/pds-image.js.map +1 -1
  181. package/dist/collection/components/pds-input/input-interface.js +2 -0
  182. package/dist/collection/components/pds-input/input-interface.js.map +1 -0
  183. package/dist/collection/components/pds-input/pds-input.css +34 -59
  184. package/dist/collection/components/pds-input/pds-input.js +215 -17
  185. package/dist/collection/components/pds-input/pds-input.js.map +1 -1
  186. package/dist/collection/components/pds-input/pds-input.tokens.css +6 -0
  187. package/dist/collection/components/pds-input/stories/pds-input.stories.js +8 -2
  188. package/dist/collection/components/pds-link/pds-link.css +15 -27
  189. package/dist/collection/components/pds-link/pds-link.js +4 -4
  190. package/dist/collection/components/pds-link/pds-link.js.map +1 -1
  191. package/dist/collection/components/pds-loader/pds-loader.css +16 -29
  192. package/dist/collection/components/pds-loader/pds-loader.js +3 -3
  193. package/dist/collection/components/pds-loader/pds-loader.js.map +1 -1
  194. package/dist/collection/components/pds-popover/pds-popover.css +14 -35
  195. package/dist/collection/components/pds-progress/pds-progress.css +11 -20
  196. package/dist/collection/components/pds-progress/pds-progress.js +3 -3
  197. package/dist/collection/components/pds-progress/pds-progress.js.map +1 -1
  198. package/dist/collection/components/pds-radio/pds-radio.css +28 -45
  199. package/dist/collection/components/pds-radio/pds-radio.js +5 -5
  200. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -1
  201. package/dist/collection/components/pds-row/pds-row.css +2 -3
  202. package/dist/collection/components/pds-select/pds-select.css +23 -51
  203. package/dist/collection/components/pds-select/pds-select.js +3 -2
  204. package/dist/collection/components/pds-select/pds-select.js.map +1 -1
  205. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +13 -22
  206. package/dist/collection/components/pds-sortable/pds-sortable.css +2 -4
  207. package/dist/collection/components/pds-sortable/pds-sortable.js +3 -3
  208. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -1
  209. package/dist/collection/components/pds-switch/pds-switch.css +30 -51
  210. package/dist/collection/components/pds-switch/pds-switch.js +5 -5
  211. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -1
  212. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js +3 -3
  213. package/dist/collection/components/pds-table/pds-table-body/pds-table-body.js.map +1 -1
  214. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.css +11 -18
  215. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js +4 -4
  216. package/dist/collection/components/pds-table/pds-table-cell/pds-table-cell.js.map +1 -1
  217. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.css +1 -2
  218. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js +3 -3
  219. package/dist/collection/components/pds-table/pds-table-head/pds-table-head.js.map +1 -1
  220. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.css +12 -19
  221. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js +4 -4
  222. package/dist/collection/components/pds-table/pds-table-head-cell/pds-table-head-cell.js.map +1 -1
  223. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.css +1 -2
  224. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js +3 -3
  225. package/dist/collection/components/pds-table/pds-table-row/pds-table-row.js.map +1 -1
  226. package/dist/collection/components/pds-table/pds-table.js +3 -3
  227. package/dist/collection/components/pds-table/pds-table.js.map +1 -1
  228. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +23 -36
  229. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +2 -2
  230. package/dist/collection/components/pds-tabs/pds-tabs.css +8 -11
  231. package/dist/collection/components/pds-tabs/pds-tabs.js +3 -3
  232. package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -1
  233. package/dist/collection/components/pds-text/pds-text.css +37 -58
  234. package/dist/collection/components/pds-textarea/pds-textarea.css +23 -39
  235. package/dist/collection/components/pds-textarea/pds-textarea.js +204 -17
  236. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -1
  237. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +11 -1
  238. package/dist/collection/components/pds-textarea/textarea-interface.js.map +1 -1
  239. package/dist/collection/components/pds-tooltip/pds-tooltip.css +59 -64
  240. package/dist/collection/components/pds-tooltip/pds-tooltip.js +14 -4
  241. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -1
  242. package/dist/collection/global/styles/utils/label.css +16 -0
  243. package/dist/collection/utils/attributes.js +84 -0
  244. package/dist/collection/utils/attributes.js.map +1 -0
  245. package/dist/collection/utils/utils.js +14 -3
  246. package/dist/collection/utils/utils.js.map +1 -1
  247. package/dist/docs.json +243 -18
  248. package/dist/esm/attributes-fe2c8c91.js +87 -0
  249. package/dist/esm/attributes-fe2c8c91.js.map +1 -0
  250. package/dist/esm/form-1b7b69e3.js +31 -0
  251. package/dist/esm/form-1b7b69e3.js.map +1 -0
  252. package/dist/esm/{index-56752d25.js → index-d320cfa9.js} +4 -3
  253. package/dist/esm/index-d320cfa9.js.map +1 -0
  254. package/dist/esm/loader.js +1 -1
  255. package/dist/esm/pds-accordion.entry.js +5 -8
  256. package/dist/esm/pds-accordion.entry.js.map +1 -1
  257. package/dist/esm/pds-avatar.entry.js +5 -8
  258. package/dist/esm/pds-avatar.entry.js.map +1 -1
  259. package/dist/esm/pds-box.entry.js +1 -1
  260. package/dist/esm/pds-box.entry.js.map +1 -1
  261. package/dist/esm/pds-button.entry.js +6 -12
  262. package/dist/esm/pds-button.entry.js.map +1 -1
  263. package/dist/esm/pds-checkbox.entry.js +9 -11
  264. package/dist/esm/pds-checkbox.entry.js.map +1 -1
  265. package/dist/esm/pds-chip.entry.js +5 -5
  266. package/dist/esm/pds-chip.entry.js.map +1 -1
  267. package/dist/esm/pds-copytext.entry.js +5 -8
  268. package/dist/esm/pds-copytext.entry.js.map +1 -1
  269. package/dist/esm/pds-divider.entry.js +4 -7
  270. package/dist/esm/pds-divider.entry.js.map +1 -1
  271. package/dist/esm/pds-icon.entry.js +1 -1
  272. package/dist/esm/pds-icon.entry.js.map +1 -1
  273. package/dist/esm/pds-image.entry.js +4 -7
  274. package/dist/esm/pds-image.entry.js.map +1 -1
  275. package/dist/esm/pds-input.entry.js +107 -13
  276. package/dist/esm/pds-input.entry.js.map +1 -1
  277. package/dist/esm/pds-label-949a17b6.js +11 -0
  278. package/dist/esm/pds-label-949a17b6.js.map +1 -0
  279. package/dist/esm/pds-link.entry.js +6 -9
  280. package/dist/esm/pds-link.entry.js.map +1 -1
  281. package/dist/esm/pds-loader.entry.js +4 -7
  282. package/dist/esm/pds-loader.entry.js.map +1 -1
  283. package/dist/esm/pds-popover.entry.js +1 -1
  284. package/dist/esm/pds-popover.entry.js.map +1 -1
  285. package/dist/esm/pds-progress.entry.js +4 -7
  286. package/dist/esm/pds-progress.entry.js.map +1 -1
  287. package/dist/esm/pds-radio.entry.js +9 -11
  288. package/dist/esm/pds-radio.entry.js.map +1 -1
  289. package/dist/esm/pds-row.entry.js +1 -1
  290. package/dist/esm/pds-row.entry.js.map +1 -1
  291. package/dist/esm/pds-select.entry.js +6 -4
  292. package/dist/esm/pds-select.entry.js.map +1 -1
  293. package/dist/esm/pds-sortable-item.entry.js +2 -2
  294. package/dist/esm/pds-sortable-item.entry.js.map +1 -1
  295. package/dist/esm/pds-sortable.entry.js +4 -7
  296. package/dist/esm/pds-sortable.entry.js.map +1 -1
  297. package/dist/esm/pds-switch.entry.js +9 -11
  298. package/dist/esm/pds-switch.entry.js.map +1 -1
  299. package/dist/esm/pds-tab.entry.js +1 -1
  300. package/dist/esm/pds-tab.entry.js.map +1 -1
  301. package/dist/esm/pds-table-body.entry.js +3 -6
  302. package/dist/esm/pds-table-body.entry.js.map +1 -1
  303. package/dist/esm/pds-table-cell.entry.js +5 -8
  304. package/dist/esm/pds-table-cell.entry.js.map +1 -1
  305. package/dist/esm/pds-table-head-cell.entry.js +6 -9
  306. package/dist/esm/pds-table-head-cell.entry.js.map +1 -1
  307. package/dist/esm/pds-table-head.entry.js +4 -7
  308. package/dist/esm/pds-table-head.entry.js.map +1 -1
  309. package/dist/esm/pds-table-row.entry.js +4 -7
  310. package/dist/esm/pds-table-row.entry.js.map +1 -1
  311. package/dist/esm/pds-table.entry.js +3 -6
  312. package/dist/esm/pds-table.entry.js.map +1 -1
  313. package/dist/esm/pds-tabpanel.entry.js +1 -1
  314. package/dist/esm/pds-tabpanel.entry.js.map +1 -1
  315. package/dist/esm/pds-tabs.entry.js +4 -7
  316. package/dist/esm/pds-tabs.entry.js.map +1 -1
  317. package/dist/esm/pds-text.entry.js +1 -1
  318. package/dist/esm/pds-text.entry.js.map +1 -1
  319. package/dist/esm/pds-textarea.entry.js +102 -18
  320. package/dist/esm/pds-textarea.entry.js.map +1 -1
  321. package/dist/esm/pds-tooltip.entry.js +15 -8
  322. package/dist/esm/pds-tooltip.entry.js.map +1 -1
  323. package/dist/esm/pine-core.js +1 -1
  324. package/dist/esm/utils-5e425aaf.js +21 -0
  325. package/dist/esm/utils-5e425aaf.js.map +1 -0
  326. package/dist/esm-es5/attributes-fe2c8c91.js +2 -0
  327. package/dist/esm-es5/attributes-fe2c8c91.js.map +1 -0
  328. package/dist/esm-es5/form-1b7b69e3.js +2 -0
  329. package/dist/esm-es5/form-1b7b69e3.js.map +1 -0
  330. package/dist/esm-es5/{index-56752d25.js → index-d320cfa9.js} +2 -2
  331. package/dist/{pine-core/p-dec11fa5.system.js.map → esm-es5/index-d320cfa9.js.map} +1 -1
  332. package/dist/esm-es5/loader.js +1 -1
  333. package/dist/esm-es5/loader.js.map +1 -1
  334. package/dist/esm-es5/pds-accordion.entry.js +1 -1
  335. package/dist/esm-es5/pds-accordion.entry.js.map +1 -1
  336. package/dist/esm-es5/pds-avatar.entry.js +1 -1
  337. package/dist/esm-es5/pds-avatar.entry.js.map +1 -1
  338. package/dist/esm-es5/pds-box.entry.js +1 -1
  339. package/dist/esm-es5/pds-box.entry.js.map +1 -1
  340. package/dist/esm-es5/pds-button.entry.js +1 -1
  341. package/dist/esm-es5/pds-button.entry.js.map +1 -1
  342. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  343. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -1
  344. package/dist/esm-es5/pds-chip.entry.js +1 -1
  345. package/dist/esm-es5/pds-chip.entry.js.map +1 -1
  346. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  347. package/dist/esm-es5/pds-copytext.entry.js.map +1 -1
  348. package/dist/esm-es5/pds-divider.entry.js +1 -1
  349. package/dist/esm-es5/pds-divider.entry.js.map +1 -1
  350. package/dist/esm-es5/pds-icon.entry.js +1 -1
  351. package/dist/esm-es5/pds-icon.entry.js.map +1 -1
  352. package/dist/esm-es5/pds-image.entry.js +1 -1
  353. package/dist/esm-es5/pds-image.entry.js.map +1 -1
  354. package/dist/esm-es5/pds-input.entry.js +1 -1
  355. package/dist/esm-es5/pds-input.entry.js.map +1 -1
  356. package/dist/esm-es5/pds-label-949a17b6.js +2 -0
  357. package/dist/esm-es5/pds-label-949a17b6.js.map +1 -0
  358. package/dist/esm-es5/pds-link.entry.js +1 -1
  359. package/dist/esm-es5/pds-link.entry.js.map +1 -1
  360. package/dist/esm-es5/pds-loader.entry.js +1 -1
  361. package/dist/esm-es5/pds-loader.entry.js.map +1 -1
  362. package/dist/esm-es5/pds-popover.entry.js +1 -1
  363. package/dist/esm-es5/pds-popover.entry.js.map +1 -1
  364. package/dist/esm-es5/pds-progress.entry.js +1 -1
  365. package/dist/esm-es5/pds-progress.entry.js.map +1 -1
  366. package/dist/esm-es5/pds-radio.entry.js +1 -1
  367. package/dist/esm-es5/pds-radio.entry.js.map +1 -1
  368. package/dist/esm-es5/pds-row.entry.js +1 -1
  369. package/dist/esm-es5/pds-row.entry.js.map +1 -1
  370. package/dist/esm-es5/pds-select.entry.js +1 -1
  371. package/dist/esm-es5/pds-select.entry.js.map +1 -1
  372. package/dist/esm-es5/pds-sortable-item.entry.js +1 -1
  373. package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -1
  374. package/dist/esm-es5/pds-sortable.entry.js +1 -1
  375. package/dist/esm-es5/pds-sortable.entry.js.map +1 -1
  376. package/dist/esm-es5/pds-switch.entry.js +1 -1
  377. package/dist/esm-es5/pds-switch.entry.js.map +1 -1
  378. package/dist/esm-es5/pds-tab.entry.js +1 -1
  379. package/dist/esm-es5/pds-tab.entry.js.map +1 -1
  380. package/dist/esm-es5/pds-table-body.entry.js +1 -1
  381. package/dist/esm-es5/pds-table-body.entry.js.map +1 -1
  382. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  383. package/dist/esm-es5/pds-table-cell.entry.js.map +1 -1
  384. package/dist/esm-es5/pds-table-head-cell.entry.js +1 -1
  385. package/dist/esm-es5/pds-table-head-cell.entry.js.map +1 -1
  386. package/dist/esm-es5/pds-table-head.entry.js +1 -1
  387. package/dist/esm-es5/pds-table-head.entry.js.map +1 -1
  388. package/dist/esm-es5/pds-table-row.entry.js +1 -1
  389. package/dist/esm-es5/pds-table-row.entry.js.map +1 -1
  390. package/dist/esm-es5/pds-table.entry.js +1 -1
  391. package/dist/esm-es5/pds-table.entry.js.map +1 -1
  392. package/dist/esm-es5/pds-tabpanel.entry.js +1 -1
  393. package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -1
  394. package/dist/esm-es5/pds-tabs.entry.js +1 -1
  395. package/dist/esm-es5/pds-tabs.entry.js.map +1 -1
  396. package/dist/esm-es5/pds-text.entry.js +1 -1
  397. package/dist/esm-es5/pds-text.entry.js.map +1 -1
  398. package/dist/esm-es5/pds-textarea.entry.js +1 -1
  399. package/dist/esm-es5/pds-textarea.entry.js.map +1 -1
  400. package/dist/esm-es5/pds-tooltip.entry.js +1 -1
  401. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -1
  402. package/dist/esm-es5/pine-core.js +1 -1
  403. package/dist/esm-es5/pine-core.js.map +1 -1
  404. package/dist/esm-es5/utils-5e425aaf.js +2 -0
  405. package/dist/esm-es5/utils-5e425aaf.js.map +1 -0
  406. package/dist/pine-core/p-017e1978.system.js +2 -0
  407. package/dist/pine-core/p-017e1978.system.js.map +1 -0
  408. package/dist/pine-core/p-07a7c5bb.entry.js +2 -0
  409. package/dist/pine-core/p-07a7c5bb.entry.js.map +1 -0
  410. package/dist/pine-core/p-0c09ce7a.js +2 -0
  411. package/dist/pine-core/p-0c09ce7a.js.map +1 -0
  412. package/dist/pine-core/p-0e4226b8.entry.js +2 -0
  413. package/dist/pine-core/p-0e4226b8.entry.js.map +1 -0
  414. package/dist/pine-core/p-19be5a8e.system.entry.js +2 -0
  415. package/dist/pine-core/p-19be5a8e.system.entry.js.map +1 -0
  416. package/dist/pine-core/p-1da5aaf3.entry.js +2 -0
  417. package/dist/pine-core/p-1da5aaf3.entry.js.map +1 -0
  418. package/dist/pine-core/p-1e9d6f92.system.entry.js +2 -0
  419. package/dist/pine-core/p-1e9d6f92.system.entry.js.map +1 -0
  420. package/dist/pine-core/p-1edca70e.entry.js +8 -0
  421. package/dist/pine-core/{p-d3365f49.system.entry.js.map → p-1edca70e.entry.js.map} +1 -1
  422. package/dist/pine-core/p-1fd67cb4.system.entry.js +9 -0
  423. package/dist/pine-core/p-1fd67cb4.system.entry.js.map +1 -0
  424. package/dist/pine-core/p-26679956.system.entry.js +2 -0
  425. package/dist/pine-core/p-26679956.system.entry.js.map +1 -0
  426. package/dist/pine-core/p-285cd9d1.system.entry.js +2 -0
  427. package/dist/pine-core/p-285cd9d1.system.entry.js.map +1 -0
  428. package/dist/pine-core/p-29bb6589.entry.js +2 -0
  429. package/dist/pine-core/p-29bb6589.entry.js.map +1 -0
  430. package/dist/pine-core/p-2c0ef946.entry.js +2 -0
  431. package/dist/pine-core/p-2c0ef946.entry.js.map +1 -0
  432. package/dist/pine-core/p-2d52d5f7.entry.js +2 -0
  433. package/dist/pine-core/p-2d52d5f7.entry.js.map +1 -0
  434. package/dist/pine-core/p-2fedf634.system.entry.js +2 -0
  435. package/dist/pine-core/p-2fedf634.system.entry.js.map +1 -0
  436. package/dist/pine-core/p-30cd9f18.entry.js +2 -0
  437. package/dist/pine-core/p-30cd9f18.entry.js.map +1 -0
  438. package/dist/pine-core/p-372a04fa.system.entry.js +2 -0
  439. package/dist/pine-core/p-372a04fa.system.entry.js.map +1 -0
  440. package/dist/pine-core/p-397ce1a8.system.entry.js +2 -0
  441. package/dist/pine-core/p-397ce1a8.system.entry.js.map +1 -0
  442. package/dist/pine-core/p-399617f0.system.entry.js +2 -0
  443. package/dist/pine-core/p-399617f0.system.entry.js.map +1 -0
  444. package/dist/pine-core/p-3c6a0b2a.system.entry.js +2 -0
  445. package/dist/pine-core/p-3c6a0b2a.system.entry.js.map +1 -0
  446. package/dist/pine-core/p-3fbb568f.entry.js +2 -0
  447. package/dist/pine-core/p-3fbb568f.entry.js.map +1 -0
  448. package/dist/pine-core/p-46fb585d.js +2 -0
  449. package/dist/pine-core/p-46fb585d.js.map +1 -0
  450. package/dist/pine-core/p-47291f05.js +2 -0
  451. package/dist/pine-core/p-47291f05.js.map +1 -0
  452. package/dist/pine-core/p-4c252abb.system.entry.js +2 -0
  453. package/dist/pine-core/p-4c252abb.system.entry.js.map +1 -0
  454. package/dist/pine-core/p-4d1fbb88.system.entry.js +2 -0
  455. package/dist/pine-core/p-4d1fbb88.system.entry.js.map +1 -0
  456. package/dist/pine-core/p-4e2fe44a.system.entry.js +2 -0
  457. package/dist/pine-core/p-4e2fe44a.system.entry.js.map +1 -0
  458. package/dist/pine-core/p-521ac753.system.js +2 -0
  459. package/dist/pine-core/p-521ac753.system.js.map +1 -0
  460. package/dist/pine-core/p-5480346a.system.js +2 -0
  461. package/dist/pine-core/p-5480346a.system.js.map +1 -0
  462. package/dist/pine-core/p-59f4c8ab.system.entry.js +2 -0
  463. package/dist/pine-core/p-59f4c8ab.system.entry.js.map +1 -0
  464. package/dist/pine-core/p-5b9f8f6a.system.entry.js +2 -0
  465. package/dist/pine-core/p-5b9f8f6a.system.entry.js.map +1 -0
  466. package/dist/pine-core/p-5c04aee0.system.js +1 -1
  467. package/dist/pine-core/p-5c04aee0.system.js.map +1 -1
  468. package/dist/pine-core/p-5e1b7996.entry.js +2 -0
  469. package/dist/pine-core/p-5e1b7996.entry.js.map +1 -0
  470. package/dist/pine-core/p-5e50a381.entry.js +2 -0
  471. package/dist/pine-core/p-5e50a381.entry.js.map +1 -0
  472. package/dist/pine-core/p-60c2039e.system.entry.js +2 -0
  473. package/dist/pine-core/p-60c2039e.system.entry.js.map +1 -0
  474. package/dist/pine-core/p-650a27ca.entry.js +2 -0
  475. package/dist/pine-core/p-650a27ca.entry.js.map +1 -0
  476. package/dist/pine-core/p-6709f0f7.system.entry.js +2 -0
  477. package/dist/pine-core/p-6709f0f7.system.entry.js.map +1 -0
  478. package/dist/pine-core/p-6ce5b998.entry.js +2 -0
  479. package/dist/pine-core/p-6ce5b998.entry.js.map +1 -0
  480. package/dist/pine-core/p-6d8df897.entry.js +2 -0
  481. package/dist/pine-core/p-6d8df897.entry.js.map +1 -0
  482. package/dist/pine-core/p-6db1fe5c.entry.js +2 -0
  483. package/dist/pine-core/p-6db1fe5c.entry.js.map +1 -0
  484. package/dist/pine-core/p-6e8f3bb4.entry.js +2 -0
  485. package/dist/pine-core/p-6e8f3bb4.entry.js.map +1 -0
  486. package/dist/pine-core/p-726dc3d1.entry.js +2 -0
  487. package/dist/pine-core/p-726dc3d1.entry.js.map +1 -0
  488. package/dist/pine-core/p-74ad0244.entry.js +2 -0
  489. package/dist/pine-core/p-74ad0244.entry.js.map +1 -0
  490. package/dist/pine-core/p-7905b8b8.js +2 -0
  491. package/dist/pine-core/p-7905b8b8.js.map +1 -0
  492. package/dist/pine-core/p-798cde42.system.entry.js +2 -0
  493. package/dist/pine-core/p-798cde42.system.entry.js.map +1 -0
  494. package/dist/pine-core/p-80c582b7.system.entry.js +2 -0
  495. package/dist/pine-core/p-80c582b7.system.entry.js.map +1 -0
  496. package/dist/pine-core/p-8205e4d8.system.entry.js +2 -0
  497. package/dist/pine-core/p-8205e4d8.system.entry.js.map +1 -0
  498. package/dist/pine-core/p-8420594c.system.entry.js +2 -0
  499. package/dist/pine-core/p-8420594c.system.entry.js.map +1 -0
  500. package/dist/pine-core/p-8b2db323.system.entry.js +2 -0
  501. package/dist/pine-core/p-8b2db323.system.entry.js.map +1 -0
  502. package/dist/pine-core/p-8d1efd85.system.js +2 -0
  503. package/dist/pine-core/p-8d1efd85.system.js.map +1 -0
  504. package/dist/pine-core/p-92bcb091.entry.js +2 -0
  505. package/dist/pine-core/p-92bcb091.entry.js.map +1 -0
  506. package/dist/pine-core/p-954098a2.entry.js +2 -0
  507. package/dist/pine-core/p-954098a2.entry.js.map +1 -0
  508. package/dist/pine-core/p-9e976b99.entry.js +2 -0
  509. package/dist/pine-core/p-9e976b99.entry.js.map +1 -0
  510. package/dist/pine-core/p-a2465224.entry.js +2 -0
  511. package/dist/pine-core/p-a2465224.entry.js.map +1 -0
  512. package/dist/pine-core/p-a7d75615.system.js +2 -0
  513. package/dist/pine-core/p-a7d75615.system.js.map +1 -0
  514. package/dist/pine-core/p-b27bbfe3.entry.js +2 -0
  515. package/dist/pine-core/p-b27bbfe3.entry.js.map +1 -0
  516. package/dist/pine-core/p-b29b2e57.system.entry.js +2 -0
  517. package/dist/pine-core/p-b29b2e57.system.entry.js.map +1 -0
  518. package/dist/pine-core/p-b47f9e15.system.entry.js +2 -0
  519. package/dist/pine-core/p-b47f9e15.system.entry.js.map +1 -0
  520. package/dist/pine-core/p-b7e91522.entry.js +2 -0
  521. package/dist/pine-core/p-b7e91522.entry.js.map +1 -0
  522. package/dist/pine-core/p-c68362cc.entry.js +2 -0
  523. package/dist/pine-core/p-c68362cc.entry.js.map +1 -0
  524. package/dist/pine-core/p-cae3e411.entry.js +2 -0
  525. package/dist/pine-core/p-cae3e411.entry.js.map +1 -0
  526. package/dist/pine-core/p-cb3ddff3.entry.js +2 -0
  527. package/dist/pine-core/p-cb3ddff3.entry.js.map +1 -0
  528. package/dist/pine-core/p-cd14918d.system.entry.js +2 -0
  529. package/dist/pine-core/p-cd14918d.system.entry.js.map +1 -0
  530. package/dist/pine-core/p-d0b371ee.system.entry.js +2 -0
  531. package/dist/pine-core/p-d0b371ee.system.entry.js.map +1 -0
  532. package/dist/pine-core/{p-d83716fb.js → p-d561168e.js} +2 -2
  533. package/dist/pine-core/p-d561168e.js.map +1 -0
  534. package/dist/pine-core/p-d6a5ec65.system.entry.js +2 -0
  535. package/dist/pine-core/p-d6a5ec65.system.entry.js.map +1 -0
  536. package/dist/pine-core/p-d8260ebf.system.entry.js +2 -0
  537. package/dist/pine-core/p-d8260ebf.system.entry.js.map +1 -0
  538. package/dist/pine-core/p-da961d2b.entry.js +2 -0
  539. package/dist/pine-core/p-da961d2b.entry.js.map +1 -0
  540. package/dist/pine-core/p-df73ebae.entry.js +2 -0
  541. package/dist/pine-core/p-df73ebae.entry.js.map +1 -0
  542. package/dist/pine-core/p-e356293a.entry.js +2 -0
  543. package/dist/pine-core/p-e356293a.entry.js.map +1 -0
  544. package/dist/pine-core/p-e39bd4b2.system.entry.js +2 -0
  545. package/dist/pine-core/p-e39bd4b2.system.entry.js.map +1 -0
  546. package/dist/pine-core/p-e5b46292.entry.js +2 -0
  547. package/dist/pine-core/p-e5b46292.entry.js.map +1 -0
  548. package/dist/pine-core/p-e60348bc.system.entry.js +2 -0
  549. package/dist/pine-core/p-e60348bc.system.entry.js.map +1 -0
  550. package/dist/pine-core/p-e890c1bb.system.entry.js +2 -0
  551. package/dist/pine-core/p-e890c1bb.system.entry.js.map +1 -0
  552. package/dist/pine-core/p-ed990ad0.system.entry.js +2 -0
  553. package/dist/pine-core/p-ed990ad0.system.entry.js.map +1 -0
  554. package/dist/pine-core/p-f085efeb.entry.js +2 -0
  555. package/dist/pine-core/p-f085efeb.entry.js.map +1 -0
  556. package/dist/pine-core/p-f34096db.system.entry.js +2 -0
  557. package/dist/pine-core/p-f34096db.system.entry.js.map +1 -0
  558. package/dist/pine-core/p-f90088df.entry.js +2 -0
  559. package/dist/pine-core/p-f90088df.entry.js.map +1 -0
  560. package/dist/pine-core/pine-core.css +1 -1
  561. package/dist/pine-core/pine-core.esm.js +1 -1
  562. package/dist/pine-core/pine-core.esm.js.map +1 -1
  563. package/dist/pine-core/svg/trend-down.svg +1 -0
  564. package/dist/pine-core/svg/trend-none.svg +1 -0
  565. package/dist/pine-core/svg/trend-up.svg +1 -0
  566. package/dist/types/components/pds-input/input-interface.d.ts +12 -0
  567. package/dist/types/components/pds-input/pds-input.d.ts +61 -4
  568. package/dist/types/components/pds-textarea/pds-textarea.d.ts +57 -4
  569. package/dist/types/components/pds-textarea/textarea-interface.d.ts +5 -1
  570. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +2 -0
  571. package/dist/types/components.d.ts +65 -9
  572. package/dist/types/utils/attributes.d.ts +10 -0
  573. package/dist/types/utils/utils.d.ts +3 -1
  574. package/hydrate/index.js +426 -200
  575. package/hydrate/index.mjs +426 -200
  576. package/package.json +3 -3
  577. package/readme.md +1 -1
  578. package/dist/cjs/index-3ad62856.js.map +0 -1
  579. package/dist/cjs/pds-label-05f073ea.js.map +0 -1
  580. package/dist/collection/global/styles/base.css +0 -113
  581. package/dist/esm/index-56752d25.js.map +0 -1
  582. package/dist/esm/pds-label-62469596.js.map +0 -1
  583. package/dist/esm-es5/index-56752d25.js.map +0 -1
  584. package/dist/esm-es5/pds-label-62469596.js +0 -2
  585. package/dist/esm-es5/pds-label-62469596.js.map +0 -1
  586. package/dist/pine-core/p-00c8d6d8.entry.js +0 -2
  587. package/dist/pine-core/p-00c8d6d8.entry.js.map +0 -1
  588. package/dist/pine-core/p-031ac651.entry.js +0 -2
  589. package/dist/pine-core/p-031ac651.entry.js.map +0 -1
  590. package/dist/pine-core/p-09d83447.system.entry.js +0 -2
  591. package/dist/pine-core/p-09d83447.system.entry.js.map +0 -1
  592. package/dist/pine-core/p-0ac04129.entry.js +0 -2
  593. package/dist/pine-core/p-0ac04129.entry.js.map +0 -1
  594. package/dist/pine-core/p-0ad64b9d.system.entry.js +0 -2
  595. package/dist/pine-core/p-0ad64b9d.system.entry.js.map +0 -1
  596. package/dist/pine-core/p-1164c32c.system.entry.js +0 -2
  597. package/dist/pine-core/p-1164c32c.system.entry.js.map +0 -1
  598. package/dist/pine-core/p-1351489d.entry.js +0 -2
  599. package/dist/pine-core/p-1351489d.entry.js.map +0 -1
  600. package/dist/pine-core/p-1712d594.entry.js +0 -2
  601. package/dist/pine-core/p-1712d594.entry.js.map +0 -1
  602. package/dist/pine-core/p-196f615c.entry.js +0 -2
  603. package/dist/pine-core/p-196f615c.entry.js.map +0 -1
  604. package/dist/pine-core/p-1a1a76ea.system.entry.js +0 -2
  605. package/dist/pine-core/p-1a1a76ea.system.entry.js.map +0 -1
  606. package/dist/pine-core/p-1a548198.system.entry.js +0 -2
  607. package/dist/pine-core/p-1a548198.system.entry.js.map +0 -1
  608. package/dist/pine-core/p-1a78ee21.entry.js +0 -2
  609. package/dist/pine-core/p-1a78ee21.entry.js.map +0 -1
  610. package/dist/pine-core/p-1df1990d.system.entry.js +0 -2
  611. package/dist/pine-core/p-1df1990d.system.entry.js.map +0 -1
  612. package/dist/pine-core/p-1e80f274.entry.js +0 -2
  613. package/dist/pine-core/p-1e80f274.entry.js.map +0 -1
  614. package/dist/pine-core/p-2e1dc5e5.system.entry.js +0 -2
  615. package/dist/pine-core/p-2e1dc5e5.system.entry.js.map +0 -1
  616. package/dist/pine-core/p-30600b1b.entry.js +0 -2
  617. package/dist/pine-core/p-30600b1b.entry.js.map +0 -1
  618. package/dist/pine-core/p-34cda8d5.system.entry.js +0 -2
  619. package/dist/pine-core/p-34cda8d5.system.entry.js.map +0 -1
  620. package/dist/pine-core/p-364a7555.system.entry.js +0 -2
  621. package/dist/pine-core/p-364a7555.system.entry.js.map +0 -1
  622. package/dist/pine-core/p-37a3c235.entry.js +0 -2
  623. package/dist/pine-core/p-37a3c235.entry.js.map +0 -1
  624. package/dist/pine-core/p-396014d3.entry.js +0 -2
  625. package/dist/pine-core/p-396014d3.entry.js.map +0 -1
  626. package/dist/pine-core/p-3acb18ad.entry.js +0 -2
  627. package/dist/pine-core/p-3acb18ad.entry.js.map +0 -1
  628. package/dist/pine-core/p-3ae15266.entry.js +0 -2
  629. package/dist/pine-core/p-3ae15266.entry.js.map +0 -1
  630. package/dist/pine-core/p-4a10164f.entry.js +0 -2
  631. package/dist/pine-core/p-4a10164f.entry.js.map +0 -1
  632. package/dist/pine-core/p-4d22b02c.entry.js +0 -2
  633. package/dist/pine-core/p-4d22b02c.entry.js.map +0 -1
  634. package/dist/pine-core/p-4f9b1945.entry.js +0 -2
  635. package/dist/pine-core/p-4f9b1945.entry.js.map +0 -1
  636. package/dist/pine-core/p-50918693.system.entry.js +0 -2
  637. package/dist/pine-core/p-50918693.system.entry.js.map +0 -1
  638. package/dist/pine-core/p-5380ad4f.entry.js +0 -2
  639. package/dist/pine-core/p-5380ad4f.entry.js.map +0 -1
  640. package/dist/pine-core/p-539fe011.system.entry.js +0 -2
  641. package/dist/pine-core/p-539fe011.system.entry.js.map +0 -1
  642. package/dist/pine-core/p-59fcea0f.entry.js +0 -2
  643. package/dist/pine-core/p-59fcea0f.entry.js.map +0 -1
  644. package/dist/pine-core/p-5b9d6ad1.entry.js +0 -2
  645. package/dist/pine-core/p-5b9d6ad1.entry.js.map +0 -1
  646. package/dist/pine-core/p-5cb59e3f.system.entry.js +0 -2
  647. package/dist/pine-core/p-5cb59e3f.system.entry.js.map +0 -1
  648. package/dist/pine-core/p-605dc33a.system.entry.js +0 -2
  649. package/dist/pine-core/p-605dc33a.system.entry.js.map +0 -1
  650. package/dist/pine-core/p-630b1802.entry.js +0 -2
  651. package/dist/pine-core/p-630b1802.entry.js.map +0 -1
  652. package/dist/pine-core/p-65229490.entry.js +0 -2
  653. package/dist/pine-core/p-65229490.entry.js.map +0 -1
  654. package/dist/pine-core/p-6d447614.system.entry.js +0 -2
  655. package/dist/pine-core/p-6d447614.system.entry.js.map +0 -1
  656. package/dist/pine-core/p-760e1c32.entry.js +0 -2
  657. package/dist/pine-core/p-760e1c32.entry.js.map +0 -1
  658. package/dist/pine-core/p-84d36583.system.entry.js +0 -2
  659. package/dist/pine-core/p-84d36583.system.entry.js.map +0 -1
  660. package/dist/pine-core/p-88702fa2.entry.js +0 -2
  661. package/dist/pine-core/p-88702fa2.entry.js.map +0 -1
  662. package/dist/pine-core/p-88edcb41.system.entry.js +0 -2
  663. package/dist/pine-core/p-88edcb41.system.entry.js.map +0 -1
  664. package/dist/pine-core/p-892b4a4c.entry.js +0 -2
  665. package/dist/pine-core/p-892b4a4c.entry.js.map +0 -1
  666. package/dist/pine-core/p-8ae84655.system.entry.js +0 -2
  667. package/dist/pine-core/p-8ae84655.system.entry.js.map +0 -1
  668. package/dist/pine-core/p-9487df53.entry.js +0 -2
  669. package/dist/pine-core/p-9487df53.entry.js.map +0 -1
  670. package/dist/pine-core/p-9db668f2.system.entry.js +0 -2
  671. package/dist/pine-core/p-9db668f2.system.entry.js.map +0 -1
  672. package/dist/pine-core/p-a24fa762.system.entry.js +0 -2
  673. package/dist/pine-core/p-a24fa762.system.entry.js.map +0 -1
  674. package/dist/pine-core/p-a2726d3b.system.entry.js +0 -2
  675. package/dist/pine-core/p-a2726d3b.system.entry.js.map +0 -1
  676. package/dist/pine-core/p-a6713696.entry.js +0 -2
  677. package/dist/pine-core/p-a6713696.entry.js.map +0 -1
  678. package/dist/pine-core/p-a9038f7f.js +0 -2
  679. package/dist/pine-core/p-a9038f7f.js.map +0 -1
  680. package/dist/pine-core/p-a9e02a6f.system.entry.js +0 -2
  681. package/dist/pine-core/p-a9e02a6f.system.entry.js.map +0 -1
  682. package/dist/pine-core/p-adda8682.system.entry.js +0 -2
  683. package/dist/pine-core/p-adda8682.system.entry.js.map +0 -1
  684. package/dist/pine-core/p-ae19532d.system.entry.js +0 -2
  685. package/dist/pine-core/p-ae19532d.system.entry.js.map +0 -1
  686. package/dist/pine-core/p-b3e36d77.system.entry.js +0 -2
  687. package/dist/pine-core/p-b3e36d77.system.entry.js.map +0 -1
  688. package/dist/pine-core/p-b7edbe43.system.entry.js +0 -2
  689. package/dist/pine-core/p-b7edbe43.system.entry.js.map +0 -1
  690. package/dist/pine-core/p-b95522e6.system.entry.js +0 -2
  691. package/dist/pine-core/p-b95522e6.system.entry.js.map +0 -1
  692. package/dist/pine-core/p-b9cebd24.entry.js +0 -2
  693. package/dist/pine-core/p-b9cebd24.entry.js.map +0 -1
  694. package/dist/pine-core/p-bbd19258.entry.js +0 -2
  695. package/dist/pine-core/p-bbd19258.entry.js.map +0 -1
  696. package/dist/pine-core/p-cbf2acbd.system.entry.js +0 -2
  697. package/dist/pine-core/p-cbf2acbd.system.entry.js.map +0 -1
  698. package/dist/pine-core/p-cc75a4f7.system.entry.js +0 -2
  699. package/dist/pine-core/p-cc75a4f7.system.entry.js.map +0 -1
  700. package/dist/pine-core/p-ceb66096.entry.js +0 -8
  701. package/dist/pine-core/p-ceb66096.entry.js.map +0 -1
  702. package/dist/pine-core/p-d3365f49.system.entry.js +0 -9
  703. package/dist/pine-core/p-d83716fb.js.map +0 -1
  704. package/dist/pine-core/p-d95b2469.system.entry.js +0 -2
  705. package/dist/pine-core/p-d95b2469.system.entry.js.map +0 -1
  706. package/dist/pine-core/p-da5a1e2c.system.entry.js +0 -2
  707. package/dist/pine-core/p-da5a1e2c.system.entry.js.map +0 -1
  708. package/dist/pine-core/p-de301890.entry.js +0 -2
  709. package/dist/pine-core/p-de301890.entry.js.map +0 -1
  710. package/dist/pine-core/p-dec11fa5.system.js +0 -2
  711. package/dist/pine-core/p-e2a673e8.entry.js +0 -2
  712. package/dist/pine-core/p-e2a673e8.entry.js.map +0 -1
  713. package/dist/pine-core/p-e2badc55.entry.js +0 -2
  714. package/dist/pine-core/p-e2badc55.entry.js.map +0 -1
  715. package/dist/pine-core/p-e3fab4be.system.js +0 -2
  716. package/dist/pine-core/p-e3fab4be.system.js.map +0 -1
  717. package/dist/pine-core/p-ebdaf3ad.entry.js +0 -2
  718. package/dist/pine-core/p-ebdaf3ad.entry.js.map +0 -1
  719. package/dist/pine-core/p-f16ef73c.system.entry.js +0 -2
  720. package/dist/pine-core/p-f16ef73c.system.entry.js.map +0 -1
  721. package/dist/pine-core/p-faa2bf05.system.entry.js +0 -2
  722. package/dist/pine-core/p-faa2bf05.system.entry.js.map +0 -1
@@ -1,18 +1,47 @@
1
1
  import { h, Host } from "@stencil/core";
2
2
  import { assignDescription, messageId } from "../../utils/form";
3
- import { PdsLabel } from "../_internal/pds-label/pds-label";
4
3
  import { danger } from "@pine-ds/icons/icons";
4
+ import { debounceEvent } from "../../utils/utils";
5
+ import { inheritAriaAttributes } from "../../utils/attributes";
5
6
  export class PdsInput {
6
7
  constructor() {
8
+ this.inheritedAttributes = {};
9
+ this.isComposing = false;
7
10
  this.onInputEvent = (ev) => {
8
11
  const input = ev.target;
9
12
  if (input) {
10
13
  this.value = input.value || '';
11
14
  }
12
- this.pdsInput.emit(ev);
15
+ this.emitInputChange(ev);
16
+ };
17
+ this.onChangeEvent = (ev) => {
18
+ this.emitValueChange(ev);
19
+ };
20
+ this.onBlurEvent = (ev) => {
21
+ this.hasFocus = false;
22
+ if (this.focusedValue !== this.value) {
23
+ /**
24
+ * Emits the `pdsChange` event when the input value
25
+ * is different than the value when the input was focused.
26
+ */
27
+ this.emitValueChange(ev);
28
+ }
29
+ this.pdsBlur.emit(ev);
30
+ };
31
+ this.onFocusEvent = (ev) => {
32
+ this.hasFocus = true;
33
+ this.focusedValue = this.value;
34
+ this.pdsFocus.emit(ev);
35
+ };
36
+ this.onCompositionStart = () => {
37
+ this.isComposing = true;
38
+ };
39
+ this.onCompositionEnd = () => {
40
+ this.isComposing = false;
13
41
  };
14
42
  this.autocomplete = undefined;
15
43
  this.componentId = undefined;
44
+ this.debounce = undefined;
16
45
  this.disabled = undefined;
17
46
  this.errorMessage = undefined;
18
47
  this.helperMessage = undefined;
@@ -23,23 +52,76 @@ export class PdsInput {
23
52
  this.readonly = undefined;
24
53
  this.required = undefined;
25
54
  this.type = 'text';
26
- this.value = undefined;
55
+ this.value = '';
56
+ this.hasFocus = false;
57
+ }
58
+ /**
59
+ * Sets focus on the native `input` in the `pds-input`. Use this method instead of the global
60
+ * `input.focus()`.
61
+ */
62
+ async setFocus() {
63
+ if (this.nativeInput) {
64
+ this.nativeInput.focus();
65
+ }
66
+ }
67
+ debounceChanged() {
68
+ const { pdsInput, debounce, originalPdsInput } = this;
69
+ /**
70
+ * If debounce is undefined, we have to manually revert the pdsInput emitter in case
71
+ * debounce used to be set to a number. Otherwise, the event would stay debounced.
72
+ */
73
+ this.pdsInput = debounce === undefined ? originalPdsInput !== null && originalPdsInput !== void 0 ? originalPdsInput : pdsInput : debounceEvent(pdsInput, debounce);
74
+ }
75
+ valueChanged() {
76
+ const nativeInput = this.nativeInput;
77
+ const value = this.getValue();
78
+ if (nativeInput && nativeInput.value !== value && !this.isComposing) {
79
+ nativeInput.value = value;
80
+ }
81
+ }
82
+ getValue() {
83
+ return typeof this.value === 'number' ? this.value.toString() : (this.value || '').toString();
84
+ }
85
+ /**
86
+ * Emits a pdsChange event
87
+ */
88
+ emitValueChange(event) {
89
+ const { value } = this;
90
+ const newValue = value == null ? value : value.toString();
91
+ this.focusedValue = newValue;
92
+ this.pdsChange.emit({ value: newValue, event });
93
+ }
94
+ /**
95
+ *
96
+ * Emits a `pdsInput` event
97
+ */
98
+ emitInputChange(event) {
99
+ const { value } = this;
100
+ // Checks for both null and undefined values
101
+ const newValue = value == null ? value : value.toString();
102
+ this.pdsInput.emit({ value: newValue, event });
103
+ }
104
+ componentWillLoad() {
105
+ this.inheritedAttributes = Object.assign({}, inheritAriaAttributes(this.el));
106
+ }
107
+ componentDidLoad() {
108
+ this.debounceChanged();
27
109
  }
28
110
  render() {
29
- return (h(Host, { key: '2894ea5f48af1818f28ce05c63ec28ee6dff2f5d', "aria-disabled": this.disabled ? 'true' : null }, h("div", { key: '92ce53c22ca6eed66e33c1c50c8d0ff0a3b68b4c', class: "pds-input" }, h(PdsLabel, { key: '71be1b6dbaee982e199e482f1edc21b34621e1a3', htmlFor: this.componentId, text: this.label }), h("input", { key: '4ff1e2d8b3f5156a4f7ace72b168ec1f03959463', class: "pds-input__field", "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, type: this.type, value: this.value, onInput: this.onInputEvent }), this.helperMessage &&
30
- h("p", { key: 'b0b144c49182e233f59d442384a1904b7a8307cd', class: "pds-input__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
31
- h("p", { key: 'f66cc5c3b0463a4f7f62c54626692fa11f221568', class: "pds-input__error-message", id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: 'efaccf89df9ca61b12f48c25c57bc02074d405e8', icon: danger, size: "small" }), this.errorMessage))));
111
+ return (h(Host, { key: '4247c9ed871a2f5e39fea4c222367341eda18e32', "aria-disabled": this.disabled ? 'true' : null, "aria-readonly": this.readonly ? 'true' : null }, h("div", { key: 'b49fb30682b34b2c20ed6b0959d66e18050088d0', class: "pds-input" }, h("label", { key: 'ac028db52deca16edd0663ccccdc01d3651a299a', htmlFor: this.componentId }, this.label), h("input", Object.assign({ key: 'cf478f28743397013c0964aa3f6232de2a319f7a', class: "pds-input__field", ref: (input) => this.nativeInput = input, "aria-describedby": assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, autocomplete: this.autocomplete, disabled: this.disabled, id: this.componentId, name: this.name, placeholder: this.placeholder, readOnly: this.readonly, required: this.required, type: this.type, value: this.value, onInput: this.onInputEvent, onChange: this.onChangeEvent, onBlur: this.onBlurEvent, onFocus: this.onFocusEvent, onCompositionstart: this.onCompositionStart, onCompositionend: this.onCompositionEnd }, this.inheritedAttributes)), this.helperMessage &&
112
+ h("p", { key: '78180c0527fc6ef81d9e915898333a9e09e892e4', class: "pds-input__helper-message", id: messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
113
+ h("p", { key: '9512deaecd57644da843557cd07ac8880cde424f', class: "pds-input__error-message", id: messageId(this.componentId, 'error'), "aria-live": "assertive" }, h("pds-icon", { key: '38c36403181b41c06f16e737f088e58199f07618', icon: danger, size: "small" }), this.errorMessage))));
32
114
  }
33
115
  static get is() { return "pds-input"; }
34
116
  static get encapsulation() { return "shadow"; }
35
117
  static get originalStyleUrls() {
36
118
  return {
37
- "$": ["../../global/styles/base.scss", "pds-input.scss"]
119
+ "$": ["pds-input.tokens.scss", "../../global/styles/utils/label.scss", "pds-input.scss"]
38
120
  };
39
121
  }
40
122
  static get styleUrls() {
41
123
  return {
42
- "$": ["../../global/styles/base.css", "pds-input.css"]
124
+ "$": ["pds-input.tokens.css", "../../global/styles/utils/label.css", "pds-input.css"]
43
125
  };
44
126
  }
45
127
  static get properties() {
@@ -78,6 +160,23 @@ export class PdsInput {
78
160
  "attribute": "component-id",
79
161
  "reflect": false
80
162
  },
163
+ "debounce": {
164
+ "type": "number",
165
+ "mutable": false,
166
+ "complexType": {
167
+ "original": "number",
168
+ "resolved": "number",
169
+ "references": {}
170
+ },
171
+ "required": false,
172
+ "optional": true,
173
+ "docs": {
174
+ "tags": [],
175
+ "text": "Sets the number of milliseconds to wait before updating the value."
176
+ },
177
+ "attribute": "debounce",
178
+ "reflect": false
179
+ },
81
180
  "disabled": {
82
181
  "type": "boolean",
83
182
  "mutable": false,
@@ -253,11 +352,11 @@ export class PdsInput {
253
352
  "defaultValue": "'text'"
254
353
  },
255
354
  "value": {
256
- "type": "string",
355
+ "type": "any",
257
356
  "mutable": true,
258
357
  "complexType": {
259
- "original": "string",
260
- "resolved": "string",
358
+ "original": "string | number | null",
359
+ "resolved": "number | string",
261
360
  "references": {}
262
361
  },
263
362
  "required": false,
@@ -267,12 +366,79 @@ export class PdsInput {
267
366
  "text": "The value of the input."
268
367
  },
269
368
  "attribute": "value",
270
- "reflect": false
369
+ "reflect": false,
370
+ "defaultValue": "''"
271
371
  }
272
372
  };
273
373
  }
374
+ static get states() {
375
+ return {
376
+ "hasFocus": {}
377
+ };
378
+ }
274
379
  static get events() {
275
380
  return [{
381
+ "method": "pdsBlur",
382
+ "name": "pdsBlur",
383
+ "bubbles": true,
384
+ "cancelable": true,
385
+ "composed": true,
386
+ "docs": {
387
+ "tags": [],
388
+ "text": "Emitted when the input loses focus."
389
+ },
390
+ "complexType": {
391
+ "original": "FocusEvent",
392
+ "resolved": "FocusEvent",
393
+ "references": {
394
+ "FocusEvent": {
395
+ "location": "global",
396
+ "id": "global::FocusEvent"
397
+ }
398
+ }
399
+ }
400
+ }, {
401
+ "method": "pdsChange",
402
+ "name": "pdsChange",
403
+ "bubbles": true,
404
+ "cancelable": true,
405
+ "composed": true,
406
+ "docs": {
407
+ "tags": [],
408
+ "text": "\nEmitted when the value has changed.\n\nThis event will not emit when programmatically setting the `value` property."
409
+ },
410
+ "complexType": {
411
+ "original": "InputChangeEventDetail",
412
+ "resolved": "InputChangeEventDetail",
413
+ "references": {
414
+ "InputChangeEventDetail": {
415
+ "location": "import",
416
+ "path": "./input-interface",
417
+ "id": "src/components/pds-input/input-interface.ts::InputChangeEventDetail"
418
+ }
419
+ }
420
+ }
421
+ }, {
422
+ "method": "pdsFocus",
423
+ "name": "pdsFocus",
424
+ "bubbles": true,
425
+ "cancelable": true,
426
+ "composed": true,
427
+ "docs": {
428
+ "tags": [],
429
+ "text": "Emitted when the input has focus."
430
+ },
431
+ "complexType": {
432
+ "original": "FocusEvent",
433
+ "resolved": "FocusEvent",
434
+ "references": {
435
+ "FocusEvent": {
436
+ "location": "global",
437
+ "id": "global::FocusEvent"
438
+ }
439
+ }
440
+ }
441
+ }, {
276
442
  "method": "pdsInput",
277
443
  "name": "pdsInput",
278
444
  "bubbles": true,
@@ -283,16 +449,48 @@ export class PdsInput {
283
449
  "text": "Emitted when a keyboard input occurs."
284
450
  },
285
451
  "complexType": {
286
- "original": "InputEvent",
287
- "resolved": "InputEvent",
452
+ "original": "InputInputEventDetail",
453
+ "resolved": "InputInputEventDetail",
288
454
  "references": {
289
- "InputEvent": {
290
- "location": "global",
291
- "id": "global::InputEvent"
455
+ "InputInputEventDetail": {
456
+ "location": "import",
457
+ "path": "./input-interface",
458
+ "id": "src/components/pds-input/input-interface.ts::InputInputEventDetail"
292
459
  }
293
460
  }
294
461
  }
295
462
  }];
296
463
  }
464
+ static get methods() {
465
+ return {
466
+ "setFocus": {
467
+ "complexType": {
468
+ "signature": "() => Promise<void>",
469
+ "parameters": [],
470
+ "references": {
471
+ "Promise": {
472
+ "location": "global",
473
+ "id": "global::Promise"
474
+ }
475
+ },
476
+ "return": "Promise<void>"
477
+ },
478
+ "docs": {
479
+ "text": "Sets focus on the native `input` in the `pds-input`. Use this method instead of the global\n`input.focus()`.",
480
+ "tags": []
481
+ }
482
+ }
483
+ };
484
+ }
485
+ static get elementRef() { return "el"; }
486
+ static get watchers() {
487
+ return [{
488
+ "propName": "debounce",
489
+ "methodName": "debounceChanged"
490
+ }, {
491
+ "propName": "value",
492
+ "methodName": "valueChanged"
493
+ }];
494
+ }
297
495
  }
298
496
  //# sourceMappingURL=pds-input.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"pds-input.js","sourceRoot":"","sources":["../../../src/components/pds-input/pds-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,MAAM,kCAAkC,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAO9C,MAAM,OAAO,QAAQ;;QA0EX,iBAAY,GAAG,CAAC,EAAS,EAAE,EAAE;YACnC,MAAM,KAAK,GAAG,EAAE,CAAC,MAAiC,CAAC;YACnD,IAAI,KA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AC,0BAA0B,EAChC,EAAE,EAAE,SAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW;wBAErB,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAC,OAAO,GAAG;wBACtC,IAAI,CAAC,YAAY,CAChB,CAEF,CACD,CACR,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\nimport { danger } from '@pine-ds/icons/icons';\n\n@Component({\n tag: 'pds-input',\n styleUrls: ['../../global/styles/base.scss', 'pds-input.scss'],\n shadow: true,\n})\nexport class PdsInput {\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 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'`\n * @defaultValue \"text\"\n */\n @Prop() type = 'text';\n\n /**\n * The value of the input.\n */\n @Prop({mutable: true}) value?: string;\n\n /**\n * Emitted when a keyboard input occurs.\n */\n @Event() pdsInput: EventEmitter<InputEvent>;\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.pdsInput.emit(ev as InputEvent);\n };\n\n render() {\n return (\n <Host\n aria-disabled={this.disabled ? 'true' : null}\n >\n <div class=\"pds-input\">\n <PdsLabel htmlFor={this.componentId} text={this.label} />\n <input class=\"pds-input__field\"\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 />\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')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-input.js","sourceRoot":"","sources":["../../../src/components/pds-input/pds-input.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,KAAK,EAAgB,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,M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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["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'`\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 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 <label htmlFor={this.componentId}>{this.label}</label>\n <input class=\"pds-input__field\"\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')}\n aria-live=\"assertive\"\n >\n <pds-icon icon={danger} size=\"small\" />\n {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"]}
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Do not edit directly, this file was auto-generated.
3
+ */
4
+ :host {
5
+ --pine-input-color-background-danger: var(--pine-color-red-050);
6
+ }
@@ -6,6 +6,7 @@ export default {
6
6
  argTypes: extractArgTypes('pds-input'),
7
7
  args: {
8
8
  autocomplete: null,
9
+ debounce: null,
9
10
  disabled: false,
10
11
  errorMessage: null,
11
12
  helperMessage: null,
@@ -19,7 +20,11 @@ export default {
19
20
  component: 'pds-input',
20
21
  parameters: {
21
22
  actions: {
22
- handles: ['oninput', 'pdsInput'],
23
+ handles: [
24
+ 'oninput', 'pdsInput',
25
+ 'onchange', 'pdsChange',
26
+ 'onblur', 'pdsBlur',
27
+ 'onFocus', 'pdsFocus'],
23
28
  },
24
29
  },
25
30
  title: 'components/Input',
@@ -28,11 +33,12 @@ export default {
28
33
 
29
34
  const BaseTemplate = (args) => html`<pds-input
30
35
  autocomplete="${args.autocomplete}"
36
+ component-id="${args.componentId}"
37
+ debounce="${args.debounce}"
31
38
  disabled="${args.disabled}"
32
39
  error-message="${args.errorMessage}"
33
40
  helper-message="${args.helperMessage}"
34
41
  invalid="${args.invalid}"
35
- component-id="${args.componentId}"
36
42
  label="${args.label}"
37
43
  name="${args.name}"
38
44
  placeholder="${args.placeholder}"
@@ -1,28 +1,16 @@
1
1
  :host {
2
- --border-outline: 4px solid var(--pine-color-blue-200);
3
- --border-radius: var(--pine-border-radius-075);
4
- --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-purple-300);
5
- --color-text-default: var(--pine-color-text-default);
6
- --color-text-hover: var(--pine-color-grey-900);
7
- --font-size-default: var(--pine-font-size-body-md);
8
- --font-size-sm: var(--pine-font-size-body-sm);
9
- --font-size-xs: var(--pine-font-size-body-xs);
10
- --font-weight: var(--pine-font-weight-body-medium);
11
- --spacing-inline-start-margin: var(--pine-spacing-050);
12
- --sizing-svg-lg: var(--font-size-default);
13
- --sizing-svg-md: var(--font-size-sm);
14
- --sizing-svg-sm: var(--font-size-xs);
2
+ --box-shadow-focus: 0 0 0 1px #ffffff, 0 0 0 3px var(--pine-color-focus-ring);
15
3
  display: inline;
16
4
  }
17
5
  :host pds-icon {
18
- margin-inline-start: var(--spacing-inline-start-margin);
6
+ margin-inline-start: var(--pine-dimension-2xs);
19
7
  }
20
8
 
21
9
  .pds-link {
22
10
  align-items: center;
23
- color: var(--color-text);
11
+ color: var(--pine-color-text);
24
12
  display: inline-flex;
25
- font-weight: var(--font-weight);
13
+ font-weight: var(--pine-font-weight-medium);
26
14
  }
27
15
  .pds-link:focus-visible {
28
16
  box-shadow: var(--box-shadow-focus);
@@ -31,34 +19,34 @@
31
19
  }
32
20
 
33
21
  .pds-link--sm {
34
- font-size: var(--font-size-xs);
22
+ font-size: var(--pine-font-size-body-xs);
35
23
  }
36
24
  .pds-link--sm pds-icon {
37
- height: var(--sizing-svg-sm);
38
- width: var(--sizing-svg-sm);
25
+ height: var(--pine-dimension-xs);
26
+ width: var(--pine-dimension-xs);
39
27
  }
40
28
 
41
29
  .pds-link--md {
42
- font-size: var(--font-size-sm);
30
+ font-size: var(--pine-font-size-body-sm);
43
31
  }
44
32
  .pds-link--md pds-icon {
45
- height: var(--sizing-svg-md);
46
- width: var(--sizing-svg-md);
33
+ height: var(--pine-dimension-xs);
34
+ width: var(--pine-dimension-xs);
47
35
  }
48
36
 
49
37
  .pds-link--lg {
50
- font-size: var(--font-size-default);
38
+ font-size: var(--pine-font-size-body-md);
51
39
  }
52
40
  .pds-link--lg pds-icon {
53
- height: var(--sizing-svg-lg);
54
- width: var(--sizing-svg-lg);
41
+ height: var(--pine-dimension-sm);
42
+ width: var(--pine-dimension-sm);
55
43
  }
56
44
 
57
45
  .pds-link--plain {
58
46
  text-decoration: none;
59
47
  }
60
48
  .pds-link--plain:hover {
61
- color: var(--color-text-hover);
49
+ color: var(--pine-color-text-hover);
62
50
  text-decoration: underline;
63
51
  }
64
52
 
@@ -66,6 +54,6 @@
66
54
  text-decoration: underline;
67
55
  }
68
56
  .pds-link--default:hover {
69
- color: var(--color-text-hover);
57
+ color: var(--pine-color-text-hover);
70
58
  text-decoration: none;
71
59
  }
@@ -23,19 +23,19 @@ export class PdsLink {
23
23
  return classNames.join(' ');
24
24
  }
25
25
  render() {
26
- return (h("a", { key: '0301c40c5571d5713ff50262c9cd288b476bfb02', class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined, part: "link" }, h("slot", { key: 'dae97a17d38c0308d74f75b859d704d0d28d789d' }, this.href), this.external &&
27
- h("pds-icon", { key: '5c242186e0080db10ede73c232fd83643b54df03', icon: launch, size: this.fontSize })));
26
+ return (h("a", { key: 'd21ad4828be4f730d996dfa814ea8f8863053a51', class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined, part: "link" }, h("slot", { key: '7e2dd2c8f33a12ba99a7b0c6f80e263c4fc7d695' }, this.href), this.external &&
27
+ h("pds-icon", { key: '8e1597318fb76223ae25232b9f1a814781f25409', icon: launch, size: this.fontSize })));
28
28
  }
29
29
  static get is() { return "pds-link"; }
30
30
  static get encapsulation() { return "shadow"; }
31
31
  static get originalStyleUrls() {
32
32
  return {
33
- "$": ["../../global/styles/base.scss", "pds-link.scss"]
33
+ "$": ["pds-link.scss"]
34
34
  };
35
35
  }
36
36
  static get styleUrls() {
37
37
  return {
38
- "$": ["../../global/styles/base.css", "pds-link.css"]
38
+ "$": ["pds-link.css"]
39
39
  };
40
40
  }
41
41
  static get properties() {
@@ -1 +1 @@
1
- {"version":3,"file":"pds-link.js","sourceRoot":"","sources":["../../../src/components/pds-link/pds-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C;;;GAGG;AAMH,MAAM,OAAO,OAAO;;;wBAUC,KAAK;uBAMc,QAAQ;wBAMP,IAAI;;;IAOnC,UAAU;QAChB,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC,CAAC;QAEhC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QAEJ,OAAO,CACL,0DACE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAC5C,IAAI,EAAC,MAAM;YAEX,+DAAO,IAAI,CAAC,IAAI,CAAQ;YACvB,IAAI,CAAC,QAAQ;gBACZ,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAa,CAExD,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\nimport { launch } from '@pine-ds/icons/icons';\n\n/**\n * @part link - Link element styles.\n * @slot (default) - Text content placed between the opening and closing tags. If no text is provided, the **href** will be used as a fallback.\n */\n@Component({\n tag: 'pds-link',\n styleUrls: ['../../global/styles/base.scss', 'pds-link.scss'],\n shadow: true,\n})\nexport class PdsLink {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether the link should open in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n * Sets the link variant styles.\n * @defaultValue inline\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n * The font size of the link's text.\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The hyperlink's destination URL. If no text is provided in the custom slot, the href will be used.\n */\n @Prop() href!: string;\n\n private classNames() {\n const classNames = ['pds-link'];\n\n if (this.fontSize) {\n classNames.push('pds-link--' + this.fontSize);\n }\n\n if (this.variant) {\n classNames.push('pds-link--' + this.variant);\n }\n\n return classNames.join(' ');\n }\n\n render() {\n\n return (\n <a\n class={this.classNames()}\n href={this.href}\n id={this.componentId}\n target={this.external ? '_blank' : undefined}\n part=\"link\"\n >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon icon={launch} size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"]}
1
+ {"version":3,"file":"pds-link.js","sourceRoot":"","sources":["../../../src/components/pds-link/pds-link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAE9C;;;GAGG;AAMH,MAAM,OAAO,OAAO;;;wBAUC,KAAK;uBAMc,QAAQ;wBAMP,IAAI;;;IAOnC,UAAU;QAChB,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC,CAAC;QAEhC,IAAI,IAAI,CAAC,QAAQ,EAAE,CAAC;YAClB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;QAChD,CAAC;QAED,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;QAC/C,CAAC;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC9B,CAAC;IAED,MAAM;QAEJ,OAAO,CACL,0DACE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,EAC5C,IAAI,EAAC,MAAM;YAEX,+DAAO,IAAI,CAAC,IAAI,CAAQ;YACvB,IAAI,CAAC,QAAQ;gBACZ,iEAAU,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAa,CAExD,CACL,CAAC;IACJ,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACF","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\n\nimport { launch } from '@pine-ds/icons/icons';\n\n/**\n * @part link - Link element styles.\n * @slot (default) - Text content placed between the opening and closing tags. If no text is provided, the **href** will be used as a fallback.\n */\n@Component({\n tag: 'pds-link',\n styleUrls: ['pds-link.scss'],\n shadow: true,\n})\nexport class PdsLink {\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * Determines whether the link should open in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n * Sets the link variant styles.\n * @defaultValue inline\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n * The font size of the link's text.\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The hyperlink's destination URL. If no text is provided in the custom slot, the href will be used.\n */\n @Prop() href!: string;\n\n private classNames() {\n const classNames = ['pds-link'];\n\n if (this.fontSize) {\n classNames.push('pds-link--' + this.fontSize);\n }\n\n if (this.variant) {\n classNames.push('pds-link--' + this.variant);\n }\n\n return classNames.join(' ');\n }\n\n render() {\n\n return (\n <a\n class={this.classNames()}\n href={this.href}\n id={this.componentId}\n target={this.external ? '_blank' : undefined}\n part=\"link\"\n >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon icon={launch} size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"]}
@@ -2,7 +2,7 @@
2
2
  align-items: center;
3
3
  display: flex;
4
4
  flex-direction: column;
5
- gap: var(--pine-spacing-100);
5
+ gap: var(--pine-dimension-xs);
6
6
  }
7
7
 
8
8
  :host(.pds-loader--hidden),
@@ -19,13 +19,11 @@
19
19
  }
20
20
 
21
21
  .pds-loader--spinner svg {
22
- --color-background-spinner: var(--pine-color-mercury-400);
22
+ --color-background-spinner: var(--pine-color-brand);
23
23
  --number-spinner-timing: 2s;
24
24
  --number-spinner-path-timing: 1.5s;
25
25
  animation: rotate var(--number-spinner-timing) linear infinite;
26
- block-size: var(--sizing-spinner);
27
26
  color: var(--color-background-spinner);
28
- inline-size: var(--sizing-spinner);
29
27
  }
30
28
 
31
29
  .pds-loader__spinner-path {
@@ -38,37 +36,26 @@
38
36
  }
39
37
  }
40
38
  .pds-loader--typing {
41
- --border-radius-typing: var(--pine-border-radius-200);
42
- --border-radius-typing-dot: var(--pine-border-radius-circle);
43
- --box-shadow-typing: var(--pine-box-shadow-100);
44
- --color-background-typing-default: var(--pine-color-grey-100);
45
- --color-background-typing-dot-default: var(--pine-color-grey-400);
46
39
  --number-typing-timing: 1s;
47
40
  --opacity-typing-dot-default: 0.4;
48
41
  --opacity-typing-dot-active: 1;
49
- --sizing-typing-dot: calc(var(--pine-spacing-150) / 2);
50
- --spacing-typing-gap: var(--pine-spacing-050);
51
- --spacing-typing-margin-block: var(--pine-spacing-0);
52
- --spacing-typing-margin-inline: auto;
53
- --spacing-typing-padding-block: 15px;
54
- --spacing-typing-padding-inline: var(--pine-spacing-250);
55
42
  align-items: center;
56
- background-color: var(--color-background-typing-default);
57
- border-radius: var(--border-radius-typing);
58
- box-shadow: var(--box-shadow-typing);
43
+ background-color: var(--pine-color-background-container-disabled);
44
+ border-radius: var(--pine-dimension-sm);
45
+ box-shadow: var(--pine-box-shadow);
59
46
  display: inline-flex;
60
- gap: var(--spacing-typing-gap);
61
- margin-block: var(--spacing-typing-margin-block);
62
- margin-inline: var(--spacing-typing-margin-inline);
63
- padding-block: var(--spacing-typing-padding-block);
64
- padding-inline: var(--spacing-typing-padding-inline);
47
+ gap: var(--pine-dimension-2xs);
48
+ margin-block: var(--pine-dimension-none);
49
+ margin-inline: auto;
50
+ padding-block: 15px;
51
+ padding-inline: 20px;
65
52
  position: relative;
66
53
  }
67
54
  .pds-loader--typing span {
68
- background-color: var(--color-background-typing-dot-default);
69
- block-size: var(--sizing-typing-dot);
70
- border-radius: var(--border-radius-typing-dot);
71
- inline-size: var(--sizing-typing-dot);
55
+ background-color: var(--pine-color-border-hover);
56
+ block-size: 6px;
57
+ border-radius: var(--pine-border-radius-full);
58
+ inline-size: 6px;
72
59
  opacity: var(--opacity-typing-dot-default);
73
60
  }
74
61
  .pds-loader--typing span:nth-of-type(1) {
@@ -84,10 +71,10 @@
84
71
  @keyframes typing {
85
72
  50% {
86
73
  opacity: var(--opacity-typing-dot-active);
87
- transform: scale(1.2);
74
+ transform: scale(1.25);
88
75
  }
89
76
  }
90
77
  .pds-loader__label {
91
- --typography-label-default: var(--pine-font-weight-semi-bold) var(--pine-font-size-100)/var(--pine-line-height-150) var(--pine-font-family-circular);
78
+ --typography-label-default: var(--pine-font-weight-medium) var(--pine-font-size-body-md)/var(--pine-line-height-body) var(--pine-font-family-body);
92
79
  font: var(--typography-label-default);
93
80
  }
@@ -33,18 +33,18 @@ export class PdsLoader {
33
33
  }
34
34
  }
35
35
  render() {
36
- return (h(Host, { key: 'e69acbb3ba84e723ce654fb8288c54d6c878a515', class: `pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`, "aria-hidden": !this.isLoading, "aria-busy": this.isLoading, "aria-live": "polite" }, this.variant === 'spinner' && (h("div", { key: 'dd121b0adc8825e8b8e5aa6c4c2756d2bbc8aec3', class: "pds-loader--spinner" }, h("svg", { key: '91474584a672fc78a0e1d169eaff53fbbce1b658', style: this.style(), viewBox: "0 0 200 200", fill: "none" }, h("defs", { key: '38fe6181c360cce4c31402ac7408b3120dbf4419' }, h("linearGradient", { key: '29cf900bc3ab8c6b5cb7da36f96207b4e234179a', id: "spinner-secondHalf" }, h("stop", { key: 'aaa993d38e5cc792417160d8febde05e94a55503', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), h("stop", { key: '3df5fe92f07c054016840413979e6f4bbc967af1', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), h("linearGradient", { key: '853f7b5ae56dab5688c1bbf2e24fd3f38f13997f', id: "spinner-firstHalf" }, h("stop", { key: '54282ea20ec47332c65559f70ca4dd1429c2fe44', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), h("stop", { key: '471bc0aaa05940103ca1aa50b9772e514a19f912', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), h("g", { key: 'de35b85d92de0e958a0ec6753fa2362d2884c99f', class: "pds-loader__spinner-path" }, h("path", { key: '2238b370478f385ad6201b4aeadc9aedc7702ac7', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), h("path", { key: '3a6434262838be8654212f30f40af5bb50c5b679', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), h("path", { key: '687280eed667bfa794c4ea380274867614b66ff6', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (h("div", { key: 'a38bb46b431c96efa00d234ec6ce6b3ff2adb0e5', class: "pds-loader--typing" }, h("span", { key: 'bdd865189cf2fe87181b13fbdb01fcc7086c9f2c' }), h("span", { key: '79be0a18686ac726b3b012cb1b796a1265c45ddb' }), h("span", { key: '351a6709d5b50c27b82d9dfba1d01cd058e8c10f' }))), h("div", { key: '81602e65ce055f10b39a70d5f29ffb62471bcb25', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, h("slot", { key: '1ce406972db7f6ef5cc7d558301facb5e455956b', name: "label" }, "Loading..."))));
36
+ return (h(Host, { key: '0caf3182214726aca594996b43765c540a2bea76', class: `pds-loader ${this.isLoading ? '' : 'pds-loader--hidden'}`, "aria-hidden": !this.isLoading, "aria-busy": this.isLoading, "aria-live": "polite" }, this.variant === 'spinner' && (h("div", { key: 'bf62aea965efcfa2d5331ac9f69fdd60836ec498', class: "pds-loader--spinner" }, h("svg", { key: 'f4a2ca5e27c3c04f70029415996c79d54e3db148', style: this.style(), viewBox: "0 0 200 200", fill: "none" }, h("defs", { key: 'dba4da5d4c65b1322c079b1ef3608044f8a0c12d' }, h("linearGradient", { key: 'da837ec20645bb254a1bf86796306e07744adbdd', id: "spinner-secondHalf" }, h("stop", { key: '922e70ae537fa4541afb13d167ca7578759462fd', offset: "0%", "stop-opacity": "0", "stop-color": "currentColor" }), h("stop", { key: '861e6a6540827f500872f11527301ef563b9d3cd', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" })), h("linearGradient", { key: 'b8675daa4f37de927e8d3742385e2058a0b33f36', id: "spinner-firstHalf" }, h("stop", { key: '754e35be6b1268864743c42adc41ef682dab1307', offset: "0%", "stop-opacity": "1", "stop-color": "currentColor" }), h("stop", { key: '9db1dee07342751a07a6039326bb2fada0ba22d7', offset: "100%", "stop-opacity": "0.5", "stop-color": "currentColor" }))), h("g", { key: 'aee0ed505c0512e831724ca54cb287bde5ab2470', class: "pds-loader__spinner-path" }, h("path", { key: '93096ef22bd2fdbaa819b926b4ec8fabce2050c7', stroke: "url(#spinner-secondHalf)", d: "M 4 100 A 96 96 0 0 1 196 100" }), h("path", { key: '648bde48070689c3b22bc40f1ad17de694d146f7', stroke: "url(#spinner-firstHalf)", d: "M 196 100 A 96 96 0 0 1 4 100" }), h("path", { key: '9a78cd8d70dbeed9cf04deef9ee766c31464b0e6', stroke: "currentColor", "stroke-linecap": "round", d: "M 4 100 A 96 96 0 0 1 4 98" }))))), this.variant === 'typing' && (h("div", { key: '6b5a395b4a7fef244d941d5276ca4348ed2e79de', class: "pds-loader--typing" }, h("span", { key: '7c1e5a5b2441e0c649a1faab10a758290487c492' }), h("span", { key: '39db51a0391c2447ab4ba5a75e8d544c2167e41b' }), h("span", { key: '5315bfc12f3b269ff14ac4abe39c4bd50be4a648' }))), h("div", { key: 'c53aa88ef1f3bbabd67f332529016adbfcd4e82e', class: `pds-loader__label ${this.showLabel ? '' : 'pds-loader--hidden'}` }, h("slot", { key: '3d6dbd3a72223fc49e1ce1f0578296b18c7175ae', name: "label" }, "Loading..."))));
37
37
  }
38
38
  static get is() { return "pds-loader"; }
39
39
  static get encapsulation() { return "shadow"; }
40
40
  static get originalStyleUrls() {
41
41
  return {
42
- "$": ["../../global/styles/base.scss", "pds-loader.scss"]
42
+ "$": ["pds-loader.scss"]
43
43
  };
44
44
  }
45
45
  static get styleUrls() {
46
46
  return {
47
- "$": ["../../global/styles/base.css", "pds-loader.css"]
47
+ "$": ["pds-loader.css"]
48
48
  };
49
49
  }
50
50
  static get properties() {