@pine-ds/core 0.0.2-alpha.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 (665) hide show
  1. package/LICENSE +21 -0
  2. package/dist/cjs/index-13500e25.js +2468 -0
  3. package/dist/cjs/index-13500e25.js.map +1 -0
  4. package/dist/cjs/index.cjs.js +4 -0
  5. package/dist/cjs/index.cjs.js.map +1 -0
  6. package/dist/cjs/loader.cjs.js +15 -0
  7. package/dist/cjs/loader.cjs.js.map +1 -0
  8. package/dist/cjs/pds-avatar.cjs.entry.js +70 -0
  9. package/dist/cjs/pds-avatar.cjs.entry.js.map +1 -0
  10. package/dist/cjs/pds-button.cjs.entry.js +57 -0
  11. package/dist/cjs/pds-button.cjs.entry.js.map +1 -0
  12. package/dist/cjs/pds-checkbox.cjs.entry.js +57 -0
  13. package/dist/cjs/pds-checkbox.cjs.entry.js.map +1 -0
  14. package/dist/cjs/pds-chip.cjs.entry.js +49 -0
  15. package/dist/cjs/pds-chip.cjs.entry.js.map +1 -0
  16. package/dist/cjs/pds-copytext.cjs.entry.js +68 -0
  17. package/dist/cjs/pds-copytext.cjs.entry.js.map +1 -0
  18. package/dist/cjs/pds-divider.cjs.entry.js +35 -0
  19. package/dist/cjs/pds-divider.cjs.entry.js.map +1 -0
  20. package/dist/cjs/pds-icon.cjs.entry.js +277 -0
  21. package/dist/cjs/pds-icon.cjs.entry.js.map +1 -0
  22. package/dist/cjs/pds-image.cjs.entry.js +31 -0
  23. package/dist/cjs/pds-image.cjs.entry.js.map +1 -0
  24. package/dist/cjs/pds-input.cjs.entry.js +44 -0
  25. package/dist/cjs/pds-input.cjs.entry.js.map +1 -0
  26. package/dist/cjs/pds-label-71ea2cad.js +44 -0
  27. package/dist/cjs/pds-label-71ea2cad.js.map +1 -0
  28. package/dist/cjs/pds-link.cjs.entry.js +37 -0
  29. package/dist/cjs/pds-link.cjs.entry.js.map +1 -0
  30. package/dist/cjs/pds-progress.cjs.entry.js +27 -0
  31. package/dist/cjs/pds-progress.cjs.entry.js.map +1 -0
  32. package/dist/cjs/pds-radio.cjs.entry.js +53 -0
  33. package/dist/cjs/pds-radio.cjs.entry.js.map +1 -0
  34. package/dist/cjs/pds-sortable-item.cjs.entry.js +24 -0
  35. package/dist/cjs/pds-sortable-item.cjs.entry.js.map +1 -0
  36. package/dist/cjs/pds-sortable.cjs.entry.js +2706 -0
  37. package/dist/cjs/pds-sortable.cjs.entry.js.map +1 -0
  38. package/dist/cjs/pds-switch.cjs.entry.js +55 -0
  39. package/dist/cjs/pds-switch.cjs.entry.js.map +1 -0
  40. package/dist/cjs/pds-tab.cjs.entry.js +33 -0
  41. package/dist/cjs/pds-tab.cjs.entry.js.map +1 -0
  42. package/dist/cjs/pds-tabpanel.cjs.entry.js +26 -0
  43. package/dist/cjs/pds-tabpanel.cjs.entry.js.map +1 -0
  44. package/dist/cjs/pds-tabs.cjs.entry.js +98 -0
  45. package/dist/cjs/pds-tabs.cjs.entry.js.map +1 -0
  46. package/dist/cjs/pds-textarea.cjs.entry.js +54 -0
  47. package/dist/cjs/pds-textarea.cjs.entry.js.map +1 -0
  48. package/dist/cjs/pds-tooltip.cjs.entry.js +151 -0
  49. package/dist/cjs/pds-tooltip.cjs.entry.js.map +1 -0
  50. package/dist/cjs/pine-core.cjs.js +25 -0
  51. package/dist/cjs/pine-core.cjs.js.map +1 -0
  52. package/dist/collection/collection-manifest.json +37 -0
  53. package/dist/collection/components/_internal/pds-label/pds-label.js +7 -0
  54. package/dist/collection/components/_internal/pds-label/pds-label.js.map +1 -0
  55. package/dist/collection/components/pds-avatar/pds-avatar.css +59 -0
  56. package/dist/collection/components/pds-avatar/pds-avatar.js +217 -0
  57. package/dist/collection/components/pds-avatar/pds-avatar.js.map +1 -0
  58. package/dist/collection/components/pds-avatar/stories/pds-avatar.stories.js +65 -0
  59. package/dist/collection/components/pds-button/pds-button.css +122 -0
  60. package/dist/collection/components/pds-button/pds-button.js +187 -0
  61. package/dist/collection/components/pds-button/pds-button.js.map +1 -0
  62. package/dist/collection/components/pds-button/stories/pds-button.stories.js +65 -0
  63. package/dist/collection/components/pds-checkbox/pds-checkbox.css +106 -0
  64. package/dist/collection/components/pds-checkbox/pds-checkbox.js +266 -0
  65. package/dist/collection/components/pds-checkbox/pds-checkbox.js.map +1 -0
  66. package/dist/collection/components/pds-checkbox/stories/pds-checkbox.stories.js +80 -0
  67. package/dist/collection/components/pds-chip/pds-chip.css +245 -0
  68. package/dist/collection/components/pds-chip/pds-chip.js +188 -0
  69. package/dist/collection/components/pds-chip/pds-chip.js.map +1 -0
  70. package/dist/collection/components/pds-chip/stories/pds-chip.stories.js +79 -0
  71. package/dist/collection/components/pds-copytext/pds-copytext.css +85 -0
  72. package/dist/collection/components/pds-copytext/pds-copytext.js +186 -0
  73. package/dist/collection/components/pds-copytext/pds-copytext.js.map +1 -0
  74. package/dist/collection/components/pds-copytext/stories/pds-copytext.stories.js +57 -0
  75. package/dist/collection/components/pds-divider/pds-divider.css +92 -0
  76. package/dist/collection/components/pds-divider/pds-divider.js +94 -0
  77. package/dist/collection/components/pds-divider/pds-divider.js.map +1 -0
  78. package/dist/collection/components/pds-divider/stories/pds-divider.stories.js +25 -0
  79. package/dist/collection/components/pds-icon/stories/pds-icon.stories.js +16 -0
  80. package/dist/collection/components/pds-image/pds-image.css +13 -0
  81. package/dist/collection/components/pds-image/pds-image.js +173 -0
  82. package/dist/collection/components/pds-image/pds-image.js.map +1 -0
  83. package/dist/collection/components/pds-image/stories/pds-image.stories.js +35 -0
  84. package/dist/collection/components/pds-input/pds-input.css +88 -0
  85. package/dist/collection/components/pds-input/pds-input.js +279 -0
  86. package/dist/collection/components/pds-input/pds-input.js.map +1 -0
  87. package/dist/collection/components/pds-input/stories/pds-input.stories.js +110 -0
  88. package/dist/collection/components/pds-link/pds-link.css +67 -0
  89. package/dist/collection/components/pds-link/pds-link.js +138 -0
  90. package/dist/collection/components/pds-link/pds-link.js.map +1 -0
  91. package/dist/collection/components/pds-link/stories/pds-link.stories.js +49 -0
  92. package/dist/collection/components/pds-progress/pds-progress.css +77 -0
  93. package/dist/collection/components/pds-progress/pds-progress.js +148 -0
  94. package/dist/collection/components/pds-progress/pds-progress.js.map +1 -0
  95. package/dist/collection/components/pds-progress/stories/pds-progress.stories.js +65 -0
  96. package/dist/collection/components/pds-radio/pds-radio.css +101 -0
  97. package/dist/collection/components/pds-radio/pds-radio.js +261 -0
  98. package/dist/collection/components/pds-radio/pds-radio.js.map +1 -0
  99. package/dist/collection/components/pds-radio/stories/pds-radio.stories.js +71 -0
  100. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.css +63 -0
  101. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js +90 -0
  102. package/dist/collection/components/pds-sortable/pds-sortable-item/pds-sortable-item.js.map +1 -0
  103. package/dist/collection/components/pds-sortable/pds-sortable-item/stories/pds-sortable-item.stories.js +24 -0
  104. package/dist/collection/components/pds-sortable/pds-sortable.css +10 -0
  105. package/dist/collection/components/pds-sortable/pds-sortable.js +150 -0
  106. package/dist/collection/components/pds-sortable/pds-sortable.js.map +1 -0
  107. package/dist/collection/components/pds-sortable/stories/pds-sortable.stories.js +130 -0
  108. package/dist/collection/components/pds-switch/pds-switch.css +134 -0
  109. package/dist/collection/components/pds-switch/pds-switch.js +277 -0
  110. package/dist/collection/components/pds-switch/pds-switch.js.map +1 -0
  111. package/dist/collection/components/pds-switch/stories/pds-switch.stories.js +102 -0
  112. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.css +158 -0
  113. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js +154 -0
  114. package/dist/collection/components/pds-tabs/pds-tab/pds-tab.js.map +1 -0
  115. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.css +12 -0
  116. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js +107 -0
  117. package/dist/collection/components/pds-tabs/pds-tabpanel/pds-tabpanel.js.map +1 -0
  118. package/dist/collection/components/pds-tabs/pds-tabs.css +33 -0
  119. package/dist/collection/components/pds-tabs/pds-tabs.js +209 -0
  120. package/dist/collection/components/pds-tabs/pds-tabs.js.map +1 -0
  121. package/dist/collection/components/pds-tabs/stories/pds-tabs.stories.js +63 -0
  122. package/dist/collection/components/pds-textarea/pds-textarea.css +84 -0
  123. package/dist/collection/components/pds-textarea/pds-textarea.js +303 -0
  124. package/dist/collection/components/pds-textarea/pds-textarea.js.map +1 -0
  125. package/dist/collection/components/pds-textarea/stories/pds-textarea.stories.js +111 -0
  126. package/dist/collection/components/pds-textarea/textarea-interface.js +2 -0
  127. package/dist/collection/components/pds-textarea/textarea-interface.js.map +1 -0
  128. package/dist/collection/components/pds-tooltip/pds-tooltip.css +143 -0
  129. package/dist/collection/components/pds-tooltip/pds-tooltip.js +287 -0
  130. package/dist/collection/components/pds-tooltip/pds-tooltip.js.map +1 -0
  131. package/dist/collection/components/pds-tooltip/stories/pds-tooltip.stories.js +114 -0
  132. package/dist/collection/global/pine-ui-global.js +2 -0
  133. package/dist/collection/global/pine-ui-global.js.map +1 -0
  134. package/dist/collection/index.js +2 -0
  135. package/dist/collection/index.js.map +1 -0
  136. package/dist/collection/stories/_helpers/index.js +15 -0
  137. package/dist/collection/stories/_helpers/index.js.map +1 -0
  138. package/dist/collection/utils/form.js +28 -0
  139. package/dist/collection/utils/form.js.map +1 -0
  140. package/dist/collection/utils/overlay.js +68 -0
  141. package/dist/collection/utils/overlay.js.map +1 -0
  142. package/dist/collection/utils/types.js +2 -0
  143. package/dist/collection/utils/types.js.map +1 -0
  144. package/dist/collection/utils/utils.js +7 -0
  145. package/dist/collection/utils/utils.js.map +1 -0
  146. package/dist/docs.d.ts +421 -0
  147. package/dist/docs.json +3718 -0
  148. package/dist/esm/index-a58668b3.js +2438 -0
  149. package/dist/esm/index-a58668b3.js.map +1 -0
  150. package/dist/esm/index.js +3 -0
  151. package/dist/esm/index.js.map +1 -0
  152. package/dist/esm/loader.js +11 -0
  153. package/dist/esm/loader.js.map +1 -0
  154. package/dist/esm/pds-avatar.entry.js +66 -0
  155. package/dist/esm/pds-avatar.entry.js.map +1 -0
  156. package/dist/esm/pds-button.entry.js +53 -0
  157. package/dist/esm/pds-button.entry.js.map +1 -0
  158. package/dist/esm/pds-checkbox.entry.js +53 -0
  159. package/dist/esm/pds-checkbox.entry.js.map +1 -0
  160. package/dist/esm/pds-chip.entry.js +45 -0
  161. package/dist/esm/pds-chip.entry.js.map +1 -0
  162. package/dist/esm/pds-copytext.entry.js +64 -0
  163. package/dist/esm/pds-copytext.entry.js.map +1 -0
  164. package/dist/esm/pds-divider.entry.js +31 -0
  165. package/dist/esm/pds-divider.entry.js.map +1 -0
  166. package/dist/esm/pds-icon.entry.js +273 -0
  167. package/dist/esm/pds-icon.entry.js.map +1 -0
  168. package/dist/esm/pds-image.entry.js +27 -0
  169. package/dist/esm/pds-image.entry.js.map +1 -0
  170. package/dist/esm/pds-input.entry.js +40 -0
  171. package/dist/esm/pds-input.entry.js.map +1 -0
  172. package/dist/esm/pds-label-a26dd876.js +39 -0
  173. package/dist/esm/pds-label-a26dd876.js.map +1 -0
  174. package/dist/esm/pds-link.entry.js +33 -0
  175. package/dist/esm/pds-link.entry.js.map +1 -0
  176. package/dist/esm/pds-progress.entry.js +23 -0
  177. package/dist/esm/pds-progress.entry.js.map +1 -0
  178. package/dist/esm/pds-radio.entry.js +49 -0
  179. package/dist/esm/pds-radio.entry.js.map +1 -0
  180. package/dist/esm/pds-sortable-item.entry.js +20 -0
  181. package/dist/esm/pds-sortable-item.entry.js.map +1 -0
  182. package/dist/esm/pds-sortable.entry.js +2702 -0
  183. package/dist/esm/pds-sortable.entry.js.map +1 -0
  184. package/dist/esm/pds-switch.entry.js +51 -0
  185. package/dist/esm/pds-switch.entry.js.map +1 -0
  186. package/dist/esm/pds-tab.entry.js +29 -0
  187. package/dist/esm/pds-tab.entry.js.map +1 -0
  188. package/dist/esm/pds-tabpanel.entry.js +22 -0
  189. package/dist/esm/pds-tabpanel.entry.js.map +1 -0
  190. package/dist/esm/pds-tabs.entry.js +94 -0
  191. package/dist/esm/pds-tabs.entry.js.map +1 -0
  192. package/dist/esm/pds-textarea.entry.js +50 -0
  193. package/dist/esm/pds-textarea.entry.js.map +1 -0
  194. package/dist/esm/pds-tooltip.entry.js +147 -0
  195. package/dist/esm/pds-tooltip.entry.js.map +1 -0
  196. package/dist/esm/pine-core.js +20 -0
  197. package/dist/esm/pine-core.js.map +1 -0
  198. package/dist/esm/polyfills/core-js.js +11 -0
  199. package/dist/esm/polyfills/dom.js +79 -0
  200. package/dist/esm/polyfills/es5-html-element.js +1 -0
  201. package/dist/esm/polyfills/index.js +34 -0
  202. package/dist/esm/polyfills/system.js +6 -0
  203. package/dist/esm-es5/index-a58668b3.js +3 -0
  204. package/dist/esm-es5/index-a58668b3.js.map +1 -0
  205. package/dist/esm-es5/index.js +2 -0
  206. package/dist/esm-es5/index.js.map +1 -0
  207. package/dist/esm-es5/loader.js +2 -0
  208. package/dist/esm-es5/loader.js.map +1 -0
  209. package/dist/esm-es5/pds-avatar.entry.js +2 -0
  210. package/dist/esm-es5/pds-avatar.entry.js.map +1 -0
  211. package/dist/esm-es5/pds-button.entry.js +2 -0
  212. package/dist/esm-es5/pds-button.entry.js.map +1 -0
  213. package/dist/esm-es5/pds-checkbox.entry.js +2 -0
  214. package/dist/esm-es5/pds-checkbox.entry.js.map +1 -0
  215. package/dist/esm-es5/pds-chip.entry.js +2 -0
  216. package/dist/esm-es5/pds-chip.entry.js.map +1 -0
  217. package/dist/esm-es5/pds-copytext.entry.js +2 -0
  218. package/dist/esm-es5/pds-copytext.entry.js.map +1 -0
  219. package/dist/esm-es5/pds-divider.entry.js +2 -0
  220. package/dist/esm-es5/pds-divider.entry.js.map +1 -0
  221. package/dist/esm-es5/pds-icon.entry.js +2 -0
  222. package/dist/esm-es5/pds-icon.entry.js.map +1 -0
  223. package/dist/esm-es5/pds-image.entry.js +2 -0
  224. package/dist/esm-es5/pds-image.entry.js.map +1 -0
  225. package/dist/esm-es5/pds-input.entry.js +2 -0
  226. package/dist/esm-es5/pds-input.entry.js.map +1 -0
  227. package/dist/esm-es5/pds-label-a26dd876.js +2 -0
  228. package/dist/esm-es5/pds-label-a26dd876.js.map +1 -0
  229. package/dist/esm-es5/pds-link.entry.js +2 -0
  230. package/dist/esm-es5/pds-link.entry.js.map +1 -0
  231. package/dist/esm-es5/pds-progress.entry.js +2 -0
  232. package/dist/esm-es5/pds-progress.entry.js.map +1 -0
  233. package/dist/esm-es5/pds-radio.entry.js +2 -0
  234. package/dist/esm-es5/pds-radio.entry.js.map +1 -0
  235. package/dist/esm-es5/pds-sortable-item.entry.js +2 -0
  236. package/dist/esm-es5/pds-sortable-item.entry.js.map +1 -0
  237. package/dist/esm-es5/pds-sortable.entry.js +8 -0
  238. package/dist/esm-es5/pds-sortable.entry.js.map +1 -0
  239. package/dist/esm-es5/pds-switch.entry.js +2 -0
  240. package/dist/esm-es5/pds-switch.entry.js.map +1 -0
  241. package/dist/esm-es5/pds-tab.entry.js +2 -0
  242. package/dist/esm-es5/pds-tab.entry.js.map +1 -0
  243. package/dist/esm-es5/pds-tabpanel.entry.js +2 -0
  244. package/dist/esm-es5/pds-tabpanel.entry.js.map +1 -0
  245. package/dist/esm-es5/pds-tabs.entry.js +2 -0
  246. package/dist/esm-es5/pds-tabs.entry.js.map +1 -0
  247. package/dist/esm-es5/pds-textarea.entry.js +2 -0
  248. package/dist/esm-es5/pds-textarea.entry.js.map +1 -0
  249. package/dist/esm-es5/pds-tooltip.entry.js +2 -0
  250. package/dist/esm-es5/pds-tooltip.entry.js.map +1 -0
  251. package/dist/esm-es5/pine-core.js +2 -0
  252. package/dist/esm-es5/pine-core.js.map +1 -0
  253. package/dist/index.cjs.js +1 -0
  254. package/dist/index.js +1 -0
  255. package/dist/pine-core/index.esm.js +2 -0
  256. package/dist/pine-core/index.esm.js.map +1 -0
  257. package/dist/pine-core/p-0a776a7b.entry.js +2 -0
  258. package/dist/pine-core/p-0a776a7b.entry.js.map +1 -0
  259. package/dist/pine-core/p-0adb4b48.entry.js +2 -0
  260. package/dist/pine-core/p-0adb4b48.entry.js.map +1 -0
  261. package/dist/pine-core/p-0c26a00d.entry.js +2 -0
  262. package/dist/pine-core/p-0c26a00d.entry.js.map +1 -0
  263. package/dist/pine-core/p-1c0ffcab.entry.js +2 -0
  264. package/dist/pine-core/p-1c0ffcab.entry.js.map +1 -0
  265. package/dist/pine-core/p-22bd3102.system.entry.js +9 -0
  266. package/dist/pine-core/p-22bd3102.system.entry.js.map +1 -0
  267. package/dist/pine-core/p-22dd8116.entry.js +2 -0
  268. package/dist/pine-core/p-22dd8116.entry.js.map +1 -0
  269. package/dist/pine-core/p-23fb6af2.system.entry.js +2 -0
  270. package/dist/pine-core/p-23fb6af2.system.entry.js.map +1 -0
  271. package/dist/pine-core/p-24077dcd.entry.js +2 -0
  272. package/dist/pine-core/p-24077dcd.entry.js.map +1 -0
  273. package/dist/pine-core/p-27fd7f08.system.entry.js +2 -0
  274. package/dist/pine-core/p-27fd7f08.system.entry.js.map +1 -0
  275. package/dist/pine-core/p-331cbf1d.entry.js +2 -0
  276. package/dist/pine-core/p-331cbf1d.entry.js.map +1 -0
  277. package/dist/pine-core/p-3386bfe1.system.entry.js +2 -0
  278. package/dist/pine-core/p-3386bfe1.system.entry.js.map +1 -0
  279. package/dist/pine-core/p-401cd4bc.entry.js +2 -0
  280. package/dist/pine-core/p-401cd4bc.entry.js.map +1 -0
  281. package/dist/pine-core/p-4a804680.entry.js +2 -0
  282. package/dist/pine-core/p-4a804680.entry.js.map +1 -0
  283. package/dist/pine-core/p-4fc42ff3.system.entry.js +2 -0
  284. package/dist/pine-core/p-4fc42ff3.system.entry.js.map +1 -0
  285. package/dist/pine-core/p-50ea2036.system.js +2 -0
  286. package/dist/pine-core/p-50ea2036.system.js.map +1 -0
  287. package/dist/pine-core/p-5b37a4a2.system.entry.js +2 -0
  288. package/dist/pine-core/p-5b37a4a2.system.entry.js.map +1 -0
  289. package/dist/pine-core/p-643f5378.entry.js +2 -0
  290. package/dist/pine-core/p-643f5378.entry.js.map +1 -0
  291. package/dist/pine-core/p-669d948a.system.entry.js +2 -0
  292. package/dist/pine-core/p-669d948a.system.entry.js.map +1 -0
  293. package/dist/pine-core/p-73262287.system.entry.js +2 -0
  294. package/dist/pine-core/p-73262287.system.entry.js.map +1 -0
  295. package/dist/pine-core/p-79d7e0b1.system.entry.js +2 -0
  296. package/dist/pine-core/p-79d7e0b1.system.entry.js.map +1 -0
  297. package/dist/pine-core/p-7bc01826.entry.js +2 -0
  298. package/dist/pine-core/p-7bc01826.entry.js.map +1 -0
  299. package/dist/pine-core/p-7fcd5f0b.entry.js +8 -0
  300. package/dist/pine-core/p-7fcd5f0b.entry.js.map +1 -0
  301. package/dist/pine-core/p-85f6a94e.system.entry.js +2 -0
  302. package/dist/pine-core/p-85f6a94e.system.entry.js.map +1 -0
  303. package/dist/pine-core/p-8f62c812.entry.js +2 -0
  304. package/dist/pine-core/p-8f62c812.entry.js.map +1 -0
  305. package/dist/pine-core/p-930ab8a3.system.entry.js +2 -0
  306. package/dist/pine-core/p-930ab8a3.system.entry.js.map +1 -0
  307. package/dist/pine-core/p-938886d8.system.entry.js +2 -0
  308. package/dist/pine-core/p-938886d8.system.entry.js.map +1 -0
  309. package/dist/pine-core/p-97cb4285.entry.js +2 -0
  310. package/dist/pine-core/p-97cb4285.entry.js.map +1 -0
  311. package/dist/pine-core/p-abdca153.js +3 -0
  312. package/dist/pine-core/p-abdca153.js.map +1 -0
  313. package/dist/pine-core/p-ac31a7c8.system.entry.js +2 -0
  314. package/dist/pine-core/p-ac31a7c8.system.entry.js.map +1 -0
  315. package/dist/pine-core/p-af75cc15.entry.js +2 -0
  316. package/dist/pine-core/p-af75cc15.entry.js.map +1 -0
  317. package/dist/pine-core/p-b17b818b.entry.js +2 -0
  318. package/dist/pine-core/p-b17b818b.entry.js.map +1 -0
  319. package/dist/pine-core/p-b79a8b07.entry.js +2 -0
  320. package/dist/pine-core/p-b79a8b07.entry.js.map +1 -0
  321. package/dist/pine-core/p-bce2d5b5.system.entry.js +2 -0
  322. package/dist/pine-core/p-bce2d5b5.system.entry.js.map +1 -0
  323. package/dist/pine-core/p-bff583bd.system.js +2 -0
  324. package/dist/pine-core/p-bff583bd.system.js.map +1 -0
  325. package/dist/pine-core/p-c0f9dbe1.system.entry.js +2 -0
  326. package/dist/pine-core/p-c0f9dbe1.system.entry.js.map +1 -0
  327. package/dist/pine-core/p-c4dbae0e.system.js +2 -0
  328. package/dist/pine-core/p-c4dbae0e.system.js.map +1 -0
  329. package/dist/pine-core/p-c6d878f8.entry.js +2 -0
  330. package/dist/pine-core/p-c6d878f8.entry.js.map +1 -0
  331. package/dist/pine-core/p-c8a41b43.system.entry.js +2 -0
  332. package/dist/pine-core/p-c8a41b43.system.entry.js.map +1 -0
  333. package/dist/pine-core/p-d3e173ea.system.entry.js +2 -0
  334. package/dist/pine-core/p-d3e173ea.system.entry.js.map +1 -0
  335. package/dist/pine-core/p-f09892d3.system.entry.js +2 -0
  336. package/dist/pine-core/p-f09892d3.system.entry.js.map +1 -0
  337. package/dist/pine-core/p-f168654a.entry.js +2 -0
  338. package/dist/pine-core/p-f168654a.entry.js.map +1 -0
  339. package/dist/pine-core/p-f1d7f16f.js +2 -0
  340. package/dist/pine-core/p-f1d7f16f.js.map +1 -0
  341. package/dist/pine-core/p-f2c3035d.system.entry.js +2 -0
  342. package/dist/pine-core/p-f2c3035d.system.entry.js.map +1 -0
  343. package/dist/pine-core/p-f3af6d74.system.entry.js +2 -0
  344. package/dist/pine-core/p-f3af6d74.system.entry.js.map +1 -0
  345. package/dist/pine-core/p-fa5d4e73.system.js +3 -0
  346. package/dist/pine-core/p-fa5d4e73.system.js.map +1 -0
  347. package/dist/pine-core/p-fba29e90.entry.js +2 -0
  348. package/dist/pine-core/p-fba29e90.entry.js.map +1 -0
  349. package/dist/pine-core/pine-core.css +1 -0
  350. package/dist/pine-core/pine-core.esm.js +2 -0
  351. package/dist/pine-core/pine-core.esm.js.map +1 -0
  352. package/dist/pine-core/pine-core.js +127 -0
  353. package/dist/pine-core/svg/access-key.svg +1 -0
  354. package/dist/pine-core/svg/add-circle.svg +1 -0
  355. package/dist/pine-core/svg/add-image.svg +1 -0
  356. package/dist/pine-core/svg/add-small.svg +1 -0
  357. package/dist/pine-core/svg/add.svg +1 -0
  358. package/dist/pine-core/svg/ai-sparkle.svg +1 -0
  359. package/dist/pine-core/svg/ai-writer-filled.svg +1 -0
  360. package/dist/pine-core/svg/ai-writer.svg +1 -0
  361. package/dist/pine-core/svg/align-center.svg +1 -0
  362. package/dist/pine-core/svg/align-justify.svg +1 -0
  363. package/dist/pine-core/svg/align-left.svg +1 -0
  364. package/dist/pine-core/svg/align-right.svg +1 -0
  365. package/dist/pine-core/svg/analytics-filled.svg +1 -0
  366. package/dist/pine-core/svg/analytics-outline.svg +1 -0
  367. package/dist/pine-core/svg/app-store.svg +1 -0
  368. package/dist/pine-core/svg/archive.svg +1 -0
  369. package/dist/pine-core/svg/arrow-corner.svg +1 -0
  370. package/dist/pine-core/svg/arrow-down.svg +1 -0
  371. package/dist/pine-core/svg/arrow-left.svg +1 -0
  372. package/dist/pine-core/svg/arrow-right.svg +1 -0
  373. package/dist/pine-core/svg/arrow-up.svg +1 -0
  374. package/dist/pine-core/svg/assessment.svg +1 -0
  375. package/dist/pine-core/svg/at-sign.svg +1 -0
  376. package/dist/pine-core/svg/attach.svg +1 -0
  377. package/dist/pine-core/svg/automations.svg +1 -0
  378. package/dist/pine-core/svg/ban.svg +1 -0
  379. package/dist/pine-core/svg/bank.svg +1 -0
  380. package/dist/pine-core/svg/bell.svg +1 -0
  381. package/dist/pine-core/svg/blog-filled.svg +1 -0
  382. package/dist/pine-core/svg/blog.svg +1 -0
  383. package/dist/pine-core/svg/bold.svg +1 -0
  384. package/dist/pine-core/svg/broadcast.svg +1 -0
  385. package/dist/pine-core/svg/calendar-date.svg +1 -0
  386. package/dist/pine-core/svg/calendar-schedule.svg +1 -0
  387. package/dist/pine-core/svg/calendar-simple.svg +1 -0
  388. package/dist/pine-core/svg/card-bw-amex.svg +1 -0
  389. package/dist/pine-core/svg/card-bw-apple-card.svg +1 -0
  390. package/dist/pine-core/svg/card-bw-diners-club.svg +1 -0
  391. package/dist/pine-core/svg/card-bw-discover.svg +1 -0
  392. package/dist/pine-core/svg/card-bw-gpay-card.svg +1 -0
  393. package/dist/pine-core/svg/card-bw-mastercard.svg +1 -0
  394. package/dist/pine-core/svg/card-bw-paypal.svg +1 -0
  395. package/dist/pine-core/svg/card-bw-stripe.svg +1 -0
  396. package/dist/pine-core/svg/card-bw-visa.svg +1 -0
  397. package/dist/pine-core/svg/card-update.svg +1 -0
  398. package/dist/pine-core/svg/caret-down.svg +1 -0
  399. package/dist/pine-core/svg/caret-left.svg +1 -0
  400. package/dist/pine-core/svg/caret-right.svg +1 -0
  401. package/dist/pine-core/svg/caret-up.svg +1 -0
  402. package/dist/pine-core/svg/cart-add.svg +1 -0
  403. package/dist/pine-core/svg/cart.svg +1 -0
  404. package/dist/pine-core/svg/certificate.svg +1 -0
  405. package/dist/pine-core/svg/check-circle-filled.svg +1 -0
  406. package/dist/pine-core/svg/check-circle.svg +1 -0
  407. package/dist/pine-core/svg/check.svg +1 -0
  408. package/dist/pine-core/svg/circle-1.svg +1 -0
  409. package/dist/pine-core/svg/circle-2.svg +1 -0
  410. package/dist/pine-core/svg/circle-3.svg +1 -0
  411. package/dist/pine-core/svg/circle-4.svg +1 -0
  412. package/dist/pine-core/svg/circle-5.svg +1 -0
  413. package/dist/pine-core/svg/circle-6.svg +1 -0
  414. package/dist/pine-core/svg/circle-7.svg +1 -0
  415. package/dist/pine-core/svg/circle-8.svg +1 -0
  416. package/dist/pine-core/svg/circle-9.svg +1 -0
  417. package/dist/pine-core/svg/clock.svg +1 -0
  418. package/dist/pine-core/svg/closed-captions.svg +1 -0
  419. package/dist/pine-core/svg/cloud-upload.svg +1 -0
  420. package/dist/pine-core/svg/code.svg +1 -0
  421. package/dist/pine-core/svg/color.svg +1 -0
  422. package/dist/pine-core/svg/columns.svg +1 -0
  423. package/dist/pine-core/svg/comment.svg +1 -0
  424. package/dist/pine-core/svg/connect.svg +1 -0
  425. package/dist/pine-core/svg/contact.svg +1 -0
  426. package/dist/pine-core/svg/contacts-filled.svg +1 -0
  427. package/dist/pine-core/svg/contacts-outline.svg +1 -0
  428. package/dist/pine-core/svg/conversation.svg +1 -0
  429. package/dist/pine-core/svg/copy.svg +1 -0
  430. package/dist/pine-core/svg/coupon.svg +1 -0
  431. package/dist/pine-core/svg/course.svg +1 -0
  432. package/dist/pine-core/svg/creator-studio-filled.svg +1 -0
  433. package/dist/pine-core/svg/creator-studio.svg +1 -0
  434. package/dist/pine-core/svg/credit-card.svg +1 -0
  435. package/dist/pine-core/svg/custom-field.svg +1 -0
  436. package/dist/pine-core/svg/customize.svg +1 -0
  437. package/dist/pine-core/svg/danger-filled.svg +1 -0
  438. package/dist/pine-core/svg/danger.svg +1 -0
  439. package/dist/pine-core/svg/dashboard-filled.svg +1 -0
  440. package/dist/pine-core/svg/dashboard-outline.svg +1 -0
  441. package/dist/pine-core/svg/delete-circle.svg +1 -0
  442. package/dist/pine-core/svg/delete-key.svg +1 -0
  443. package/dist/pine-core/svg/delete-x.svg +1 -0
  444. package/dist/pine-core/svg/dollar-sign.svg +1 -0
  445. package/dist/pine-core/svg/dot-menu-horizontal.svg +1 -0
  446. package/dist/pine-core/svg/down-small.svg +1 -0
  447. package/dist/pine-core/svg/download.svg +1 -0
  448. package/dist/pine-core/svg/downsell.svg +1 -0
  449. package/dist/pine-core/svg/draft.svg +1 -0
  450. package/dist/pine-core/svg/drop.svg +1 -0
  451. package/dist/pine-core/svg/duplicate.svg +1 -0
  452. package/dist/pine-core/svg/email-activity.svg +1 -0
  453. package/dist/pine-core/svg/emoji.svg +1 -0
  454. package/dist/pine-core/svg/enlarge-vertical.svg +1 -0
  455. package/dist/pine-core/svg/enlarge.svg +1 -0
  456. package/dist/pine-core/svg/expand.svg +1 -0
  457. package/dist/pine-core/svg/facebook-2.svg +1 -0
  458. package/dist/pine-core/svg/facebook.svg +1 -0
  459. package/dist/pine-core/svg/favorite.svg +1 -0
  460. package/dist/pine-core/svg/feedback.svg +1 -0
  461. package/dist/pine-core/svg/file-money.svg +1 -0
  462. package/dist/pine-core/svg/file.svg +1 -0
  463. package/dist/pine-core/svg/filter.svg +1 -0
  464. package/dist/pine-core/svg/flag.svg +1 -0
  465. package/dist/pine-core/svg/flash-filled.svg +1 -0
  466. package/dist/pine-core/svg/flash.svg +1 -0
  467. package/dist/pine-core/svg/folder-group.svg +1 -0
  468. package/dist/pine-core/svg/folder.svg +1 -0
  469. package/dist/pine-core/svg/form-field.svg +1 -0
  470. package/dist/pine-core/svg/form-filled.svg +1 -0
  471. package/dist/pine-core/svg/form.svg +1 -0
  472. package/dist/pine-core/svg/fullscreen.svg +1 -0
  473. package/dist/pine-core/svg/funnel.svg +1 -0
  474. package/dist/pine-core/svg/grant-offer.svg +1 -0
  475. package/dist/pine-core/svg/handle-2-vertical.svg +1 -0
  476. package/dist/pine-core/svg/handle-2.svg +1 -0
  477. package/dist/pine-core/svg/handle.svg +1 -0
  478. package/dist/pine-core/svg/hashtag.svg +1 -0
  479. package/dist/pine-core/svg/hd-video.svg +1 -0
  480. package/dist/pine-core/svg/heading-large.svg +1 -0
  481. package/dist/pine-core/svg/heading-small.svg +1 -0
  482. package/dist/pine-core/svg/headset.svg +1 -0
  483. package/dist/pine-core/svg/help-filled.svg +1 -0
  484. package/dist/pine-core/svg/help-outline.svg +1 -0
  485. package/dist/pine-core/svg/home-alt.svg +1 -0
  486. package/dist/pine-core/svg/horizontal-line.svg +1 -0
  487. package/dist/pine-core/svg/image.svg +1 -0
  488. package/dist/pine-core/svg/info-circle-filled.svg +1 -0
  489. package/dist/pine-core/svg/info-circle.svg +1 -0
  490. package/dist/pine-core/svg/instagram.svg +1 -0
  491. package/dist/pine-core/svg/ios-battery.svg +1 -0
  492. package/dist/pine-core/svg/ios-data.svg +1 -0
  493. package/dist/pine-core/svg/ios-wifi.svg +1 -0
  494. package/dist/pine-core/svg/italic.svg +1 -0
  495. package/dist/pine-core/svg/kajabi-filled.svg +1 -0
  496. package/dist/pine-core/svg/kajabi-outlined.svg +1 -0
  497. package/dist/pine-core/svg/lab.svg +1 -0
  498. package/dist/pine-core/svg/launch.svg +1 -0
  499. package/dist/pine-core/svg/layout-grid.svg +1 -0
  500. package/dist/pine-core/svg/layout-list.svg +1 -0
  501. package/dist/pine-core/svg/left-small.svg +1 -0
  502. package/dist/pine-core/svg/linkedin.svg +1 -0
  503. package/dist/pine-core/svg/list-bullet.svg +1 -0
  504. package/dist/pine-core/svg/list-numbers.svg +1 -0
  505. package/dist/pine-core/svg/location.svg +1 -0
  506. package/dist/pine-core/svg/lock-alt.svg +1 -0
  507. package/dist/pine-core/svg/lock.svg +1 -0
  508. package/dist/pine-core/svg/logo-afterpay.svg +1 -0
  509. package/dist/pine-core/svg/loop.svg +1 -0
  510. package/dist/pine-core/svg/mail-filled.svg +1 -0
  511. package/dist/pine-core/svg/mail.svg +1 -0
  512. package/dist/pine-core/svg/map.svg +1 -0
  513. package/dist/pine-core/svg/mapped.svg +1 -0
  514. package/dist/pine-core/svg/margin-left.svg +1 -0
  515. package/dist/pine-core/svg/margin-right.svg +1 -0
  516. package/dist/pine-core/svg/marker-filled.svg +1 -0
  517. package/dist/pine-core/svg/marker.svg +1 -0
  518. package/dist/pine-core/svg/marketing-filled.svg +1 -0
  519. package/dist/pine-core/svg/marketing-outline.svg +1 -0
  520. package/dist/pine-core/svg/menu-2.svg +1 -0
  521. package/dist/pine-core/svg/menu-alt.svg +1 -0
  522. package/dist/pine-core/svg/menu.svg +1 -0
  523. package/dist/pine-core/svg/merge.svg +1 -0
  524. package/dist/pine-core/svg/microphone-off.svg +1 -0
  525. package/dist/pine-core/svg/microphone.svg +1 -0
  526. package/dist/pine-core/svg/move-left.svg +1 -0
  527. package/dist/pine-core/svg/move-right.svg +1 -0
  528. package/dist/pine-core/svg/multi-pay.svg +1 -0
  529. package/dist/pine-core/svg/newsletter.svg +1 -0
  530. package/dist/pine-core/svg/one-off-session.svg +1 -0
  531. package/dist/pine-core/svg/one-time.svg +1 -0
  532. package/dist/pine-core/svg/partners-filled.svg +1 -0
  533. package/dist/pine-core/svg/partners-outline.svg +1 -0
  534. package/dist/pine-core/svg/pause-circle.svg +1 -0
  535. package/dist/pine-core/svg/pause.svg +1 -0
  536. package/dist/pine-core/svg/payout.svg +1 -0
  537. package/dist/pine-core/svg/pen.svg +1 -0
  538. package/dist/pine-core/svg/phone-portrait.svg +1 -0
  539. package/dist/pine-core/svg/phone-toolbar.svg +1 -0
  540. package/dist/pine-core/svg/play-circle.svg +1 -0
  541. package/dist/pine-core/svg/play-outline.svg +1 -0
  542. package/dist/pine-core/svg/play-store.svg +1 -0
  543. package/dist/pine-core/svg/play.svg +1 -0
  544. package/dist/pine-core/svg/plug.svg +1 -0
  545. package/dist/pine-core/svg/premium.svg +1 -0
  546. package/dist/pine-core/svg/present.svg +1 -0
  547. package/dist/pine-core/svg/preview-off.svg +1 -0
  548. package/dist/pine-core/svg/preview-on.svg +1 -0
  549. package/dist/pine-core/svg/products-filled.svg +1 -0
  550. package/dist/pine-core/svg/products-outline.svg +1 -0
  551. package/dist/pine-core/svg/question-circle.svg +1 -0
  552. package/dist/pine-core/svg/quote.svg +1 -0
  553. package/dist/pine-core/svg/redo.svg +1 -0
  554. package/dist/pine-core/svg/refresh.svg +1 -0
  555. package/dist/pine-core/svg/remove-circle.svg +1 -0
  556. package/dist/pine-core/svg/remove.svg +1 -0
  557. package/dist/pine-core/svg/rename.svg +1 -0
  558. package/dist/pine-core/svg/reset-password.svg +1 -0
  559. package/dist/pine-core/svg/restore.svg +1 -0
  560. package/dist/pine-core/svg/right-small.svg +1 -0
  561. package/dist/pine-core/svg/round-dollar.svg +1 -0
  562. package/dist/pine-core/svg/rows.svg +1 -0
  563. package/dist/pine-core/svg/sales-filled.svg +1 -0
  564. package/dist/pine-core/svg/sales-outline.svg +1 -0
  565. package/dist/pine-core/svg/scissor.svg +1 -0
  566. package/dist/pine-core/svg/screen-share-off.svg +1 -0
  567. package/dist/pine-core/svg/screen-share-on.svg +1 -0
  568. package/dist/pine-core/svg/search-small.svg +1 -0
  569. package/dist/pine-core/svg/search.svg +1 -0
  570. package/dist/pine-core/svg/send-message.svg +1 -0
  571. package/dist/pine-core/svg/sequences.svg +1 -0
  572. package/dist/pine-core/svg/series.svg +1 -0
  573. package/dist/pine-core/svg/settings-filled.svg +1 -0
  574. package/dist/pine-core/svg/settings-outline.svg +1 -0
  575. package/dist/pine-core/svg/share.svg +1 -0
  576. package/dist/pine-core/svg/skipped.svg +1 -0
  577. package/dist/pine-core/svg/slash-divider.svg +1 -0
  578. package/dist/pine-core/svg/sparkle-filled.svg +1 -0
  579. package/dist/pine-core/svg/sparkle.svg +1 -0
  580. package/dist/pine-core/svg/speaker.svg +1 -0
  581. package/dist/pine-core/svg/stack.svg +1 -0
  582. package/dist/pine-core/svg/star.svg +1 -0
  583. package/dist/pine-core/svg/stop.svg +1 -0
  584. package/dist/pine-core/svg/stopwatch.svg +1 -0
  585. package/dist/pine-core/svg/strikethrough.svg +1 -0
  586. package/dist/pine-core/svg/subscript.svg +1 -0
  587. package/dist/pine-core/svg/subscriptions.svg +1 -0
  588. package/dist/pine-core/svg/super-admin.svg +1 -0
  589. package/dist/pine-core/svg/superscript.svg +1 -0
  590. package/dist/pine-core/svg/sync.svg +1 -0
  591. package/dist/pine-core/svg/tablet-landscape.svg +1 -0
  592. package/dist/pine-core/svg/tablet-portrait.svg +1 -0
  593. package/dist/pine-core/svg/text-styles.svg +1 -0
  594. package/dist/pine-core/svg/theme-store-filled.svg +1 -0
  595. package/dist/pine-core/svg/theme-store.svg +1 -0
  596. package/dist/pine-core/svg/thumbs-down-filled.svg +1 -0
  597. package/dist/pine-core/svg/thumbs-down.svg +1 -0
  598. package/dist/pine-core/svg/thumbs-up-filled.svg +1 -0
  599. package/dist/pine-core/svg/thumbs-up.svg +1 -0
  600. package/dist/pine-core/svg/tiktok.svg +1 -0
  601. package/dist/pine-core/svg/trash.svg +1 -0
  602. package/dist/pine-core/svg/twitter.svg +1 -0
  603. package/dist/pine-core/svg/underline.svg +1 -0
  604. package/dist/pine-core/svg/undo.svg +1 -0
  605. package/dist/pine-core/svg/unlock.svg +1 -0
  606. package/dist/pine-core/svg/unmapped.svg +1 -0
  607. package/dist/pine-core/svg/up-small.svg +1 -0
  608. package/dist/pine-core/svg/upload.svg +1 -0
  609. package/dist/pine-core/svg/url.svg +1 -0
  610. package/dist/pine-core/svg/user-filled.svg +1 -0
  611. package/dist/pine-core/svg/user.svg +1 -0
  612. package/dist/pine-core/svg/users-wm.svg +1 -0
  613. package/dist/pine-core/svg/users.svg +1 -0
  614. package/dist/pine-core/svg/video-off.svg +1 -0
  615. package/dist/pine-core/svg/video-on.svg +1 -0
  616. package/dist/pine-core/svg/warning-filled.svg +1 -0
  617. package/dist/pine-core/svg/warning.svg +1 -0
  618. package/dist/pine-core/svg/website-filled.svg +1 -0
  619. package/dist/pine-core/svg/website-outline.svg +1 -0
  620. package/dist/pine-core/svg/window-paragraph.svg +1 -0
  621. package/dist/pine-core/svg/world.svg +1 -0
  622. package/dist/pine-core/svg/wrench.svg +1 -0
  623. package/dist/pine-core/svg/youtube.svg +1 -0
  624. package/dist/scripts/build-tokens.js +160 -0
  625. package/dist/scripts/build-tokens.js.map +1 -0
  626. package/dist/types/components/_internal/pds-label/pds-label.d.ts +22 -0
  627. package/dist/types/components/pds-avatar/pds-avatar.d.ts +42 -0
  628. package/dist/types/components/pds-button/pds-button.d.ts +36 -0
  629. package/dist/types/components/pds-checkbox/pds-checkbox.d.ts +55 -0
  630. package/dist/types/components/pds-chip/pds-chip.d.ts +39 -0
  631. package/dist/types/components/pds-copytext/pds-copytext.d.ts +34 -0
  632. package/dist/types/components/pds-divider/pds-divider.d.ts +17 -0
  633. package/dist/types/components/pds-image/pds-image.d.ts +42 -0
  634. package/dist/types/components/pds-input/pds-input.d.ts +59 -0
  635. package/dist/types/components/pds-link/pds-link.d.ts +34 -0
  636. package/dist/types/components/pds-progress/pds-progress.d.ts +31 -0
  637. package/dist/types/components/pds-radio/pds-radio.d.ts +54 -0
  638. package/dist/types/components/pds-sortable/pds-sortable-item/pds-sortable-item.d.ts +20 -0
  639. package/dist/types/components/pds-sortable/pds-sortable.d.ts +28 -0
  640. package/dist/types/components/pds-switch/pds-switch.d.ts +59 -0
  641. package/dist/types/components/pds-tabs/pds-tab/pds-tab.d.ts +35 -0
  642. package/dist/types/components/pds-tabs/pds-tabpanel/pds-tabpanel.d.ts +23 -0
  643. package/dist/types/components/pds-tabs/pds-tabs.d.ts +40 -0
  644. package/dist/types/components/pds-textarea/pds-textarea.d.ts +64 -0
  645. package/dist/types/components/pds-textarea/textarea-interface.d.ts +8 -0
  646. package/dist/types/components/pds-tooltip/pds-tooltip.d.ts +68 -0
  647. package/dist/types/components.d.ts +1566 -0
  648. package/dist/types/global/pine-ui-global.d.ts +1 -0
  649. package/dist/types/home/runner/work/pine/pine/libs/core/.stencil/scripts/build-tokens.d.ts +1 -0
  650. package/dist/types/index.d.ts +1 -0
  651. package/dist/types/interface.d.ts +17 -0
  652. package/dist/types/stencil-public-runtime.d.ts +1681 -0
  653. package/dist/types/stories/_helpers/index.d.ts +12 -0
  654. package/dist/types/utils/form.d.ts +12 -0
  655. package/dist/types/utils/overlay.d.ts +8 -0
  656. package/dist/types/utils/types.d.ts +1 -0
  657. package/dist/types/utils/utils.d.ts +2 -0
  658. package/loader/cdn.js +3 -0
  659. package/loader/index.cjs.js +3 -0
  660. package/loader/index.d.ts +21 -0
  661. package/loader/index.es2017.js +3 -0
  662. package/loader/index.js +4 -0
  663. package/loader/package.json +11 -0
  664. package/package.json +115 -0
  665. package/readme.md +75 -0
@@ -0,0 +1,277 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-13500e25.js');
6
+
7
+ let CACHED_MAP;
8
+ const getIconMap = () => {
9
+ if (typeof window === 'undefined') {
10
+ return new Map();
11
+ }
12
+ else {
13
+ if (!CACHED_MAP) {
14
+ const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any
15
+ win.PdsIcons = win.PdsIcons || {};
16
+ CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();
17
+ }
18
+ return CACHED_MAP;
19
+ }
20
+ };
21
+ const getName = (iconName, icon) => {
22
+ if (!iconName && icon && !isSrc(icon)) {
23
+ iconName = icon;
24
+ }
25
+ if (isStr(iconName)) {
26
+ iconName = toLower(iconName);
27
+ }
28
+ if (!isStr(iconName) || iconName.trim() === '') {
29
+ return null;
30
+ }
31
+ const invalidChars = iconName.replace(/[a-z]|-|\d/gi, '');
32
+ if (invalidChars != '') {
33
+ return null;
34
+ }
35
+ return iconName;
36
+ };
37
+ const getNamedUrl = (iconName) => {
38
+ const url = getIconMap().get(iconName);
39
+ if (url) {
40
+ return url;
41
+ }
42
+ return index.getAssetPath(`svg/${iconName}.svg`);
43
+ };
44
+ const getSrc = (src) => {
45
+ if (isStr(src)) {
46
+ src = src.trim();
47
+ if (isSrc(src)) {
48
+ return src;
49
+ }
50
+ }
51
+ return null;
52
+ };
53
+ const getUrl = (pdsIcon) => {
54
+ let url = getName(pdsIcon.name, pdsIcon.icon);
55
+ if (url) {
56
+ return getNamedUrl(url);
57
+ }
58
+ if (pdsIcon.icon) {
59
+ url = getSrc(pdsIcon.icon);
60
+ if (url) {
61
+ return url;
62
+ }
63
+ }
64
+ return null;
65
+ };
66
+ const isSrc = (str) => str.length > 0 && /(\/|\.)/.test(str);
67
+ const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any
68
+ const toLower = (val) => val.toLowerCase();
69
+ /**
70
+ * Elements inside of web components sometimes need to inherit global attributes
71
+ * set on the host. For example, the inner input in `ion-input` should inherit
72
+ * the `title` attribute that developers set directly on `ion-input`. This
73
+ * helper function should be called in componentWillLoad and assigned to a variable
74
+ * that is later used in the render function.
75
+ *
76
+ * This does not need to be reactive as changing attributes on the host element
77
+ * does not trigger a re-render.
78
+ */
79
+ const inheritAttributes = (el, attributes = []) => {
80
+ const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
81
+ attributes.forEach(attr => {
82
+ if (el.hasAttribute(attr)) {
83
+ const value = el.getAttribute(attr);
84
+ if (value !== null) {
85
+ attributeObject[attr] = el.getAttribute(attr);
86
+ }
87
+ el.removeAttribute(attr);
88
+ }
89
+ });
90
+ return attributeObject;
91
+ };
92
+
93
+ const validateContent = (svgContent) => {
94
+ const div = document.createElement('div');
95
+ div.innerHTML = svgContent;
96
+ // setup this way to ensure it works on our buddy IE
97
+ for (let i = div.childNodes.length - 1; i >= 0; i--) {
98
+ if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {
99
+ div.removeChild(div.childNodes[i]);
100
+ }
101
+ }
102
+ // must only have 1 root element
103
+ const svgElm = div.firstElementChild;
104
+ if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
105
+ const svgClass = svgElm.getAttribute('class') || '';
106
+ svgElm.setAttribute('class', (svgClass + ' s-ion-icon').trim());
107
+ // root element must be an svg
108
+ // lets double check we've got valid elements
109
+ // do not allow scripts
110
+ if (isValid(svgElm)) {
111
+ return div.innerHTML;
112
+ }
113
+ }
114
+ return '';
115
+ };
116
+ const isValid = (elm) => {
117
+ if (elm.nodeType === 1) {
118
+ if (elm.nodeName.toLowerCase() === 'script') {
119
+ return false;
120
+ }
121
+ for (let i = 0; i < elm.attributes.length; i++) {
122
+ const name = elm.attributes[i].name;
123
+ if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {
124
+ return false;
125
+ }
126
+ }
127
+ for (let i = 0; i < elm.childNodes.length; i++) {
128
+ if (!isValid(elm.childNodes[i])) {
129
+ return false;
130
+ }
131
+ }
132
+ }
133
+ return true;
134
+ };
135
+
136
+ const pdsIconContent = new Map();
137
+ const requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any
138
+ const getSvgContent = (url, sanitize = false) => {
139
+ let req = requests.get(url);
140
+ if (!req) {
141
+ if (typeof fetch != 'undefined' && typeof document !== 'undefined') {
142
+ // we don't have a request
143
+ req = fetch(url).then((rsp) => {
144
+ if (rsp.ok) {
145
+ return rsp.text().then((svgContent) => {
146
+ if (svgContent && sanitize !== false) {
147
+ svgContent = validateContent(svgContent);
148
+ }
149
+ pdsIconContent.set(url, svgContent || '');
150
+ });
151
+ }
152
+ pdsIconContent.set(url, '');
153
+ });
154
+ requests.set(url, req);
155
+ }
156
+ else {
157
+ pdsIconContent.set(url, '');
158
+ return Promise.resolve();
159
+ }
160
+ }
161
+ return req;
162
+ };
163
+
164
+ const pdsIconCss = ":host{contain:strict;display:inline-block;fill:currentColor;height:1em;width:1em}:host .pdsicon{fill:currentColor}.pds-icon-fill-none{fill:none}.icon-inner,.pds-icon,svg{display:block;height:100%;width:100%}";
165
+
166
+ const PdsIcon = class {
167
+ constructor(hostRef) {
168
+ index.registerInstance(this, hostRef);
169
+ this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
170
+ this.hasAriaHidden = () => {
171
+ const { el } = this;
172
+ return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';
173
+ };
174
+ this.ariaLabel = undefined;
175
+ this.isVisible = false;
176
+ this.svgContent = undefined;
177
+ this.color = undefined;
178
+ this.icon = undefined;
179
+ this.name = undefined;
180
+ this.size = 'regular';
181
+ }
182
+ iconSize() {
183
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
184
+ const sizes = {
185
+ small: '12px',
186
+ regular: '16px',
187
+ medium: '20px',
188
+ large: '24px',
189
+ };
190
+ if (sizes[this.size]) {
191
+ return sizes[this.size];
192
+ }
193
+ else {
194
+ return this.size;
195
+ }
196
+ }
197
+ componentWillLoad() {
198
+ this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);
199
+ }
200
+ connectedCallback() {
201
+ this.waitUntilVisible(this.el, '50px', () => {
202
+ this.isVisible = true;
203
+ this.loadIcon();
204
+ });
205
+ }
206
+ disconnectedCallback() {
207
+ if (this.io) {
208
+ this.io.disconnect();
209
+ this.io = undefined;
210
+ }
211
+ }
212
+ loadIcon() {
213
+ if (this.isVisible) {
214
+ const url = getUrl(this);
215
+ if (url) {
216
+ if (pdsIconContent.has(url)) {
217
+ this.svgContent = pdsIconContent.get(url);
218
+ }
219
+ else {
220
+ getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));
221
+ }
222
+ }
223
+ }
224
+ const label = getName(this.name, this.icon);
225
+ if (label) {
226
+ this.ariaLabel = label.replace(/\-/g, ' ');
227
+ }
228
+ }
229
+ render() {
230
+ const { ariaLabel, inheritedAttributes } = this;
231
+ const style = {
232
+ height: this.iconSize(),
233
+ width: this.iconSize(),
234
+ color: this.color,
235
+ };
236
+ return (index.h(index.Host, Object.assign({ "aria-label": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, role: "img", style: style, class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), this.svgContent ? (index.h("div", { class: "icon-inner", innerHTML: this.svgContent })) : (index.h("div", { class: "icon-inner" }))));
237
+ }
238
+ /*****
239
+ * Private Methods
240
+ ****/
241
+ waitUntilVisible(el, rootMargin, cb) {
242
+ if (typeof window !== 'undefined' && (window).IntersectionObserver) {
243
+ const io = (this.io = new (window).IntersectionObserver((data) => {
244
+ if (data[0].isIntersecting) {
245
+ io.disconnect();
246
+ this.io = undefined;
247
+ cb();
248
+ }
249
+ }, { rootMargin }));
250
+ io.observe(el);
251
+ }
252
+ else {
253
+ // browser doesn't support IntersectionObserver
254
+ // so just fallback to always show it
255
+ cb();
256
+ }
257
+ }
258
+ static get assetsDirs() { return ["svg"]; }
259
+ get el() { return index.getElement(this); }
260
+ static get watchers() { return {
261
+ "name": ["loadIcon"],
262
+ "icon": ["loadIcon"]
263
+ }; }
264
+ };
265
+ const createColorClasses = (color) => {
266
+ return color
267
+ ? {
268
+ 'pds-color': true,
269
+ [`pds-color-${color}`]: true,
270
+ }
271
+ : null;
272
+ };
273
+ PdsIcon.style = pdsIconCss;
274
+
275
+ exports.pds_icon = PdsIcon;
276
+
277
+ //# sourceMappingURL=pds-icon.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-icon.entry.cjs.js","mappings":";;;;;;AACA,IAAI,UAAU,CAAC;AAKR,MAAM,UAAU,GAAG,MAAM;AAChC,IAAI,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;AACvC,QAAQ,OAAO,IAAI,GAAG,EAAE,CAAC;AACzB,KAAK;AACL,SAAS;AACT,QAAQ,IAAI,CAAC,UAAU,EAAE;AACzB,YAAY,MAAM,GAAG,GAAG,MAAM,CAAC;AAC/B,YAAY,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;AAC9C,YAAY,UAAU,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,IAAI,IAAI,GAAG,EAAE,CAAC;AAC1E,SAAS;AACT,QAAQ,OAAO,UAAU,CAAC;AAC1B,KAAK;AACL,CAAC,CAAC;AACK,MAAM,OAAO,GAAG,CAAC,QAAQ,EAAE,IAAI,KAAK;AAC3C,IAAI,IAAI,CAAC,QAAQ,IAAI,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE;AAC3C,QAAQ,QAAQ,GAAG,IAAI,CAAC;AACxB,KAAK;AACL,IAAI,IAAI,KAAK,CAAC,QAAQ,CAAC,EAAE;AACzB,QAAQ,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACrC,KAAK;AACL,IAAI,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;AACpD,QAAQ,OAAO,I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W,UAAU,KAAK,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE;;;;;;;AA4F/C,MAAM,kBAAkB,GAAG,CAAC,KAAK;IAC7B,OAAO,KAAK;UACN;YACE,WAAW,EAAE,IAAI;YACjB,CAAC,aAAa,KAAK,EAAE,GAAG,IAAI;SAC/B;UACC,IAAI,CAAC;AACf,CAAC,CAAC;;;;;","names":["getAssetPath","h","Host"],"sources":["../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/utils.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/validate.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/request.js","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.css?tag=pds-icon&encapsulation=shadow","../../node_modules/@pine-ds/icons/dist/collection/components/pds-icon/pds-icon.js"],"sourcesContent":["import { getAssetPath } from \"@stencil/core\";\nlet CACHED_MAP;\nexport const addIcons = (icons) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n};\nexport const getIconMap = () => {\n if (typeof window === 'undefined') {\n return new Map();\n }\n else {\n if (!CACHED_MAP) {\n const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any\n win.PdsIcons = win.PdsIcons || {};\n CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();\n }\n return CACHED_MAP;\n }\n};\nexport const getName = (iconName, icon) => {\n if (!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi, '');\n if (invalidChars != '') {\n return null;\n }\n return iconName;\n};\nconst getNamedUrl = (iconName) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n return getAssetPath(`svg/${iconName}.svg`);\n};\nexport const getSrc = (src) => {\n if (isStr(src)) {\n src = src.trim();\n if (isSrc(src)) {\n return src;\n }\n }\n return null;\n};\nexport const getUrl = (pdsIcon) => {\n let url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n if (url) {\n return url;\n }\n }\n return null;\n};\nexport const isSrc = (str) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val) => val.toLowerCase();\n/**\n * Elements inside of web components sometimes need to inherit global attributes\n * set on the host. For example, the inner input in `ion-input` should inherit\n * the `title` attribute that developers set directly on `ion-input`. This\n * helper function should be called in componentWillLoad and assigned to a variable\n * that is later used in the render function.\n *\n * This does not need to be reactive as changing attributes on the host element\n * does not trigger a re-render.\n */\nexport const inheritAttributes = (el, attributes = []) => {\n const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n attributes.forEach(attr => {\n if (el.hasAttribute(attr)) {\n const value = el.getAttribute(attr);\n if (value !== null) {\n attributeObject[attr] = el.getAttribute(attr);\n }\n el.removeAttribute(attr);\n }\n });\n return attributeObject;\n};\n//# sourceMappingURL=utils.js.map\n","import { isStr } from \"./utils\";\nexport const validateContent = (svgContent) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n // setup this way to ensure it works on our buddy IE\n for (let i = div.childNodes.length - 1; i >= 0; i--) {\n if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {\n div.removeChild(div.childNodes[i]);\n }\n }\n // must only have 1 root element\n const svgElm = div.firstElementChild;\n if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {\n const svgClass = svgElm.getAttribute('class') || '';\n svgElm.setAttribute('class', (svgClass + ' s-ion-icon').trim());\n // root element must be an svg\n // lets double check we've got valid elements\n // do not allow scripts\n if (isValid(svgElm)) {\n return div.innerHTML;\n }\n }\n return '';\n};\nexport const isValid = (elm) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\n for (let i = 0; i < elm.attributes.length; i++) {\n const name = elm.attributes[i].name;\n if (isStr(name) && name.toLowerCase().indexOf('on') === 0) {\n return false;\n }\n }\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i])) {\n return false;\n }\n }\n }\n return true;\n};\n//# sourceMappingURL=validate.js.map\n","import { validateContent } from \"./validate\";\nexport const pdsIconContent = new Map();\nconst requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const getSvgContent = (url, sanitize = false) => {\n let req = requests.get(url);\n if (!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n // we don't have a request\n req = fetch(url).then((rsp) => {\n if (rsp.ok) {\n return rsp.text().then((svgContent) => {\n if (svgContent && sanitize !== false) {\n svgContent = validateContent(svgContent);\n }\n pdsIconContent.set(url, svgContent || '');\n });\n }\n pdsIconContent.set(url, '');\n });\n requests.set(url, req);\n }\n else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n return req;\n};\n//# sourceMappingURL=request.js.map\n",":host {\n contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n}\n:host .pdsicon {\n fill: currentColor;\n}\n\n.pds-icon-fill-none {\n fill: none;\n}\n\n.icon-inner,\n.pds-icon,\nsvg {\n display: block;\n height: 100%;\n width: 100%;\n}","import { Build, Host, h } from \"@stencil/core\";\nimport { getSvgContent, pdsIconContent } from \"./request\";\nimport { getName, getUrl, inheritAttributes } from \"./utils\";\nexport class PdsIcon {\n constructor() {\n this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n this.hasAriaHidden = () => {\n const { el } = this;\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n };\n this.ariaLabel = undefined;\n this.isVisible = false;\n this.svgContent = undefined;\n this.color = undefined;\n this.icon = undefined;\n this.name = undefined;\n this.size = 'regular';\n }\n iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n };\n if (sizes[this.size]) {\n return sizes[this.size];\n }\n else {\n return this.size;\n }\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n }\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n });\n }\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n loadIcon() {\n if (Build.isBrowser && this.isVisible) {\n const url = getUrl(this);\n if (url) {\n if (pdsIconContent.has(url)) {\n this.svgContent = pdsIconContent.get(url);\n }\n else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n const label = getName(this.name, this.icon);\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n };\n return (h(Host, Object.assign({ \"aria-label\": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, role: \"img\", style: style, class: Object.assign({}, createColorClasses(this.color)) }, inheritedAttributes), Build.isBrowser && this.svgContent ? (h(\"div\", { class: \"icon-inner\", innerHTML: this.svgContent })) : (h(\"div\", { class: \"icon-inner\" }))));\n }\n /*****\n * Private Methods\n ****/\n waitUntilVisible(el, rootMargin, cb) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver((data) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n }, { rootMargin }));\n io.observe(el);\n }\n else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n static get is() { return \"pds-icon\"; }\n static get encapsulation() { return \"shadow\"; }\n static get originalStyleUrls() {\n return {\n \"$\": [\"pds-icon.scss\"]\n };\n }\n static get styleUrls() {\n return {\n \"$\": [\"pds-icon.css\"]\n };\n }\n static get assetsDirs() { return [\"svg\"]; }\n static get properties() {\n return {\n \"color\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"\\nThe color of the icon\"\n },\n \"attribute\": \"color\",\n \"reflect\": false\n },\n \"icon\": {\n \"type\": \"any\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"any\",\n \"resolved\": \"any\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"This a combination of both `name` and `src`. If a `src` url is detected\\nit will set the `src` property. Otherwise it assumes it's a built-in named\\nSVG and set the `name` property.\"\n },\n \"attribute\": \"icon\",\n \"reflect\": false\n },\n \"name\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The name of the icon to use from\\nthe built-in set.\"\n },\n \"attribute\": \"name\",\n \"reflect\": true\n },\n \"size\": {\n \"type\": \"string\",\n \"mutable\": false,\n \"complexType\": {\n \"original\": \"| 'small' // 12px\\n | 'regular' // 16px\\n | 'medium' // 20px\\n | 'large' // 24px\\n | 'auto'\\n | string\",\n \"resolved\": \"string\",\n \"references\": {}\n },\n \"required\": false,\n \"optional\": true,\n \"docs\": {\n \"tags\": [],\n \"text\": \"The size of the icon. This can be\\n'small', 'regular', 'medium', large, or a\\ncustom value (40px, 1rem, etc)\"\n },\n \"attribute\": \"size\",\n \"reflect\": true,\n \"defaultValue\": \"'regular'\"\n }\n };\n }\n static get states() {\n return {\n \"ariaLabel\": {},\n \"isVisible\": {},\n \"svgContent\": {}\n };\n }\n static get elementRef() { return \"el\"; }\n static get watchers() {\n return [{\n \"propName\": \"name\",\n \"methodName\": \"loadIcon\"\n }, {\n \"propName\": \"icon\",\n \"methodName\": \"loadIcon\"\n }];\n }\n}\nconst createColorClasses = (color) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n};\n//# sourceMappingURL=pds-icon.js.map\n"],"version":3}
@@ -0,0 +1,31 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-13500e25.js');
6
+
7
+ const pdsImageCss = ":host{--image-aspect-ratio:auto;display:inline-block}img{aspect-ratio:var(--image-aspect-ratio);height:auto;width:100%}";
8
+
9
+ const PdsImage = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.alt = '';
13
+ this.componentId = undefined;
14
+ this.height = undefined;
15
+ this.loading = 'eager';
16
+ this.sizes = undefined;
17
+ this.src = undefined;
18
+ this.srcset = undefined;
19
+ this.width = undefined;
20
+ }
21
+ render() {
22
+ return (index.h(index.Host, { class: {
23
+ 'pds-image': true,
24
+ }, id: this.componentId }, index.h("img", { alt: this.alt, height: this.height, loading: this.loading, sizes: this.sizes, src: this.src, srcset: this.srcset, width: this.width })));
25
+ }
26
+ };
27
+ PdsImage.style = pdsImageCss;
28
+
29
+ exports.pds_image = PdsImage;
30
+
31
+ //# sourceMappingURL=pds-image.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-image.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,WAAW,GAAG,yHAAyH;;MCOhI,QAAQ;;;mBAKJ,EAAE;;;uBAiBoB,OAAO;;;;;;IA0B5C,MAAM;QACJ,QACEA,QAACC,UAAI,IACH,KAAK,EAAE;gBACL,WAAW,EAAE,IAAI;aAClB,EACD,EAAE,EAAE,IAAI,CAAC,WAAW,IAEpBD,iBACE,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,OAAO,EAAE,IAAI,CAAC,OAAO,EACrB,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,GAAG,EAAE,IAAI,CAAC,GAAG,EACb,MAAM,EAAE,IAAI,CAAC,MAAM,EACnB,KAAK,EAAE,IAAI,CAAC,KAAK,GACjB,CACG,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/pds-image/pds-image.scss?tag=pds-image&encapsulation=shadow","src/components/pds-image/pds-image.tsx"],"sourcesContent":[":host {\n /**\n * @prop --image-aspect-ratio: The image's aspect ratio.\n */\n\n --image-aspect-ratio: auto;\n display: inline-block;\n}\n\nimg {\n aspect-ratio: var(--image-aspect-ratio);\n height: auto;\n width: 100%;\n}","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-image',\n styleUrl: 'pds-image.scss',\n shadow: true,\n})\nexport class PdsImage {\n /**\n * The image's alt tag. If none is provided,\n * it will default to an empty string.\n */\n @Prop() alt? = '';\n\n /**\n * A unique identifier used for the underlying component `id` attribute.\n */\n @Prop() componentId: string;\n\n /**\n * The height of the image in pixels. Setting this will\n * devote space in the layout to prevent layout\n * shifts when the image is loaded.\n */\n @Prop() height?: number;\n\n /**\n * Indicates how the browser should load the image.\n */\n @Prop() loading?: 'eager' | 'lazy' = 'eager';\n\n /**\n * Determines the intended display size of an image\n * within certian breakpoints. Has no effect if `srcset`\n * is not set or value has no width descriptor.\n */\n @Prop() sizes?: string;\n\n /**\n * The image's source.\n */\n @Prop() src: string;\n\n /**\n * A set of image sources for the browser to use.\n */\n @Prop() srcset?: string\n\n /**\n * The width of the image in pixels. Setting this will\n * devote space in the layout to prevent layout\n * shifts when the image is loaded.\n */\n @Prop() width?: number;\n\n render() {\n return (\n <Host\n class={{\n 'pds-image': true,\n }}\n id={this.componentId}\n >\n <img\n alt={this.alt}\n height={this.height}\n loading={this.loading}\n sizes={this.sizes}\n src={this.src}\n srcset={this.srcset}\n width={this.width}\n />\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-13500e25.js');
6
+ const pdsLabel = require('./pds-label-71ea2cad.js');
7
+
8
+ const pdsInputCss = ":host{--background:var(--pine-color-base-white);--background-disabled:var(--pine-color-neutral-grey-100);--color:var(--pine-color-neutral-charcoal-500);--color-error:var(--pine-color-red-300);--color-placeholder:var(--pine-color-neutral-charcoal-200);--color-disabled:var(--pine-color-neutral-grey-500);--border-color-default:var(--pine-color-neutral-grey-400);--border-color-hover:var(--pine-color-neutral-grey-500);--focus-box-shadow:0 0 0 4px var(--pine-color-primary-200);--label-font-size:var(--pine-font-size-body);--label-font-weight:var(--pine-font-weight-medium);--label-line-height:var(--pine-line-height-md);--label-margin-block-end:var(--pine-spacing-xs);--field-font-size:var(--pine-font-size-body);--field-font-weight:var(--pine-font-weight-regular);--field-line-height:var(--pine-line-height-md);--field-padding-block:var(--pine-spacing-xs);--field-padding-inline:var(--pine-spacing-sm);--helper-message-font-size:var(--pine-font-size-body);--helper-message-font-weight:var(--pine-font-weight-regular);--helper-message-line-height:var(--pine-line-height-sm);--helper-message-margin-top:var(--pine-spacing-xs);display:inline}.pds-input{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}label{font-size:var(--label-font-size);font-weight:var(--label-font-weight);line-height:var(--label-line-height);-webkit-margin-after:var(--label-margin-block-end);margin-block-end:var(--label-margin-block-end)}input{border:1px solid var(--border-color-default);border-radius:10px;font-size:var(--field-font-size);font-weight:var(--field-font-weight);line-height:var(--field-line-height);padding:var(--field-padding-block) var(--field-padding-inline);}input:disabled{background-color:var(--background-disabled);color:var(--color-disabled);cursor:not-allowed}input:hover{border-color:var(--border-color-hover)}input:focus{-webkit-box-shadow:var(--focus-box-shadow);box-shadow:var(--focus-box-shadow);outline:none}input::-webkit-input-placeholder{color:var(--color-placeholder)}input::-moz-placeholder{color:var(--color-placeholder)}input::-moz-placeholder{color:var(--color-placeholder)}input:-ms-input-placeholder{color:var(--color-placeholder)}input:has(~.pds-input__error-message){border-color:var(--color-error)}.pds-input__error-message,.pds-input__helper-message{font-size:var(--helper-message-font-size);font-weight:var(--helper-message-font-weight);line-height:var(--helper-message-line-height);-webkit-margin-after:0;margin-block-end:0;-webkit-margin-before:var(--helper-message-margin-top);margin-block-start:var(--helper-message-margin-top)}.pds-input__error-message{color:var(--color-error)}";
9
+
10
+ const PdsInput = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.pdsInput = index.createEvent(this, "pdsInput", 7);
14
+ this.onInputEvent = (ev) => {
15
+ const input = ev.target;
16
+ if (input) {
17
+ this.value = input.value || '';
18
+ }
19
+ this.pdsInput.emit(ev);
20
+ };
21
+ this.componentId = undefined;
22
+ this.disabled = undefined;
23
+ this.errorMessage = undefined;
24
+ this.helperMessage = undefined;
25
+ this.invalid = undefined;
26
+ this.label = undefined;
27
+ this.name = undefined;
28
+ this.placeholder = undefined;
29
+ this.readonly = undefined;
30
+ this.required = undefined;
31
+ this.type = 'text';
32
+ this.value = undefined;
33
+ }
34
+ render() {
35
+ return (index.h(index.Host, { "aria-disabled": this.disabled ? 'true' : null }, index.h("div", { class: "pds-input" }, index.h(pdsLabel.PdsLabel, { htmlFor: this.componentId, text: this.label }), index.h("input", { class: "pds-input__field", "aria-describedby": pdsLabel.assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, 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 &&
36
+ index.h("p", { class: "pds-input__helper-message", id: pdsLabel.messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
37
+ index.h("p", { class: "pds-input__error-message", id: pdsLabel.messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage))));
38
+ }
39
+ };
40
+ PdsInput.style = pdsInputCss;
41
+
42
+ exports.pds_input = PdsInput;
43
+
44
+ //# sourceMappingURL=pds-input.cjs.entry.js.map
@@ -0,0 +1 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AAQ,CAAC,IAExC,IAAI,CAAC,aAAa,CACjB,EAEL,IAAI,CAAC,YAAY;YAChBJ,eACE,KAAK,EAAC,0BAA0B,EAChC,EAAE,EAAEI,kBAAS,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,eAC9B,WAAW,IAEpB,IAAI,CAAC,YAAY,CAChB,CAEF,CACD,EACP;KACH;;;;;;","names":["h","Host","PdsLabel","assignDescription","messageId"],"sources":["src/components/pds-input/pds-input.scss?tag=pds-input&encapsulation=shadow","src/components/pds-input/pds-input.tsx"],"sourcesContent":[":host {\n --background: var(--pine-color-base-white);\n --background-disabled: var(--pine-color-neutral-grey-100);\n\n --color: var(--pine-color-neutral-charcoal-500);\n --color-error: var(--pine-color-red-300);\n --color-placeholder: var(--pine-color-neutral-charcoal-200);\n --color-disabled: var(--pine-color-neutral-grey-500);\n\n --border-color-default: var(--pine-color-neutral-grey-400);\n --border-color-hover: var(--pine-color-neutral-grey-500);\n\n --focus-box-shadow: 0 0 0 4px var(--pine-color-primary-200);\n\n --label-font-size: var(--pine-font-size-body);\n --label-font-weight: var(--pine-font-weight-medium);\n --label-line-height: var(--pine-line-height-md);\n --label-margin-block-end: var(--pine-spacing-xs);\n\n --field-font-size: var(--pine-font-size-body);\n --field-font-weight: var(--pine-font-weight-regular);\n --field-line-height: var(--pine-line-height-md);\n --field-padding-block: var(--pine-spacing-xs);\n --field-padding-inline: var(--pine-spacing-sm);\n\n --helper-message-font-size: var(--pine-font-size-body);\n --helper-message-font-weight: var(--pine-font-weight-regular);\n --helper-message-line-height: var(--pine-line-height-sm);\n --helper-message-margin-top: var(--pine-spacing-xs);\n\n display: inline;\n}\n\n.pds-input {\n display: flex;\n flex-direction: column;\n}\n\nlabel {\n font-size: var(--label-font-size);\n font-weight: var(--label-font-weight);\n line-height: var(--label-line-height);\n margin-block-end: var(--label-margin-block-end);\n}\n\ninput {\n border: 1px solid var(--border-color-default);\n border-radius: 10px;\n font-size: var(--field-font-size);\n font-weight: var(--field-font-weight);\n line-height: var(--field-line-height);\n padding: var(--field-padding-block) var(--field-padding-inline);\n\n &:disabled {\n background-color: var(--background-disabled);\n color: var(--color-disabled);\n cursor: not-allowed;\n }\n\n &:hover {\n border-color: var(--border-color-hover);\n }\n\n &:focus {\n box-shadow: var(--focus-box-shadow);\n outline: none;\n }\n\n /* stylelint-disable */\n &::-webkit-input-placeholder {\n color: var(--color-placeholder);\n }\n\n &::-moz-placeholder {\n color: var(--color-placeholder);\n }\n\n &::-moz-placeholder {\n color: var(--color-placeholder);\n }\n\n &:-ms-input-placeholder {\n color: var(--color-placeholder);\n }\n\n &:has(~.pds-input__error-message) {\n border-color: var(--color-error);\n }\n /* stylelint-enable */\n}\n\n.pds-input__error-message,\n.pds-input__helper-message {\n font-size: var(--helper-message-font-size);\n font-weight: var(--helper-message-font-weight);\n line-height: var(--helper-message-line-height);\n margin-block-end: 0;\n margin-block-start: var(--helper-message-margin-top);\n}\n\n.pds-input__error-message {\n color: var(--color-error);\n}\n","import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';\nimport { assignDescription, messageId } from '../../utils/form';\nimport { PdsLabel } from '../_internal/pds-label/pds-label';\n\n@Component({\n tag: 'pds-input',\n styleUrl: 'pds-input.scss',\n shadow: true,\n})\nexport class PdsInput {\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 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 * Indicates 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 * Indicates whether or not the input field is readonly.\n */\n @Prop() readonly?: boolean;\n\n /**\n * Indicates 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 occurred.\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 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 {this.errorMessage}\n </p>\n }\n </div>\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,44 @@
1
+ 'use strict';
2
+
3
+ const index = require('./index-13500e25.js');
4
+
5
+ /**
6
+ * Create id for messaging
7
+ */
8
+ const messageId = (id, messageType) => {
9
+ return `${id}__${messageType}-message`;
10
+ };
11
+ /**
12
+ * Assign aria-description id to relate messages with form element
13
+ */
14
+ const assignDescription = (id, invalid, helperMessage) => {
15
+ if (!helperMessage)
16
+ return;
17
+ let relatedId = messageId(id, 'helper');
18
+ if (invalid)
19
+ relatedId = messageId(id, 'error');
20
+ return relatedId;
21
+ };
22
+ /**
23
+ * Updates the `invalid` prop of a form element based on it's values validity
24
+ */
25
+ const isRequired = (target, component) => {
26
+ if (!target || !component)
27
+ return;
28
+ if (component.required === true) {
29
+ (target.checkValidity() === false) ? component.invalid = true : component.invalid = false;
30
+ }
31
+ };
32
+
33
+ /**
34
+ * Returns markup for an input label.
35
+ * @internal
36
+ */
37
+ const PdsLabel = ({ classNames, htmlFor, text }) => (index.h("label", { class: classNames, htmlFor: htmlFor }, text));
38
+
39
+ exports.PdsLabel = PdsLabel;
40
+ exports.assignDescription = assignDescription;
41
+ exports.isRequired = isRequired;
42
+ exports.messageId = messageId;
43
+
44
+ //# sourceMappingURL=pds-label-71ea2cad.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-label-71ea2cad.js","mappings":";;;;AAAA;;;MAGa,SAAS,GAAG,CAAC,EAAU,EAAE,WAAmB;IACvD,OAAO,GAAG,EAAE,KAAK,WAAW,UAAU,CAAC;AACzC,EAAE;AAEF;;;MAGa,iBAAiB,GAAG,CAAC,EAAU,EAAE,OAAgB,EAAE,aAAqB;IACnF,IAAI,CAAC,aAAa;QAAE,OAAM;IAE1B,IAAI,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;IAEvC,IAAI,OAAO;QAAE,SAAS,GAAG,SAAS,CAAC,EAAE,EAAE,OAAO,CAAC,CAAC;IAEhD,OAAO,SAAS,CAAC;AACnB,EAAE;AAEF;;;MAGa,UAAU,GAAG,CAAC,MAAM,EAAE,SAAS;IAC1C,IAAK,CAAC,MAAM,IAAI,CAAC,SAAS;QAAG,OAAO;IACpC,IAAI,SAAS,CAAC,QAAQ,KAAK,IAAI,EAAE;QAC/B,CAAC,MAAM,CAAC,aAAa,EAAE,KAAK,KAAK,IAAI,SAAS,CAAC,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC,OAAO,GAAG,KAAK,CAAC;KAC3F;AACH;;ACVA;;;;MAIa,QAAQ,GAAoC,CAAC,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,MACrFA,mBAAO,KAAK,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,IAAG,IAAI,CAAS;;;;;;;","names":["h"],"sources":["src/utils/form.ts","src/components/_internal/pds-label/pds-label.tsx"],"sourcesContent":["/**\n * Create id for messaging\n */\nexport const messageId = (id: string, messageType: string) => {\n return `${id}__${messageType}-message`;\n};\n\n/**\n * Assign aria-description id to relate messages with form element\n */\nexport const assignDescription = (id: string, invalid: boolean, helperMessage: string) => {\n if (!helperMessage) return\n\n let relatedId = messageId(id, 'helper')\n\n if (invalid) relatedId = messageId(id, 'error');\n\n return relatedId;\n};\n\n/**\n * Updates the `invalid` prop of a form element based on it's values validity\n */\nexport const isRequired = (target, component) => {\n if ( !target || !component ) return;\n if (component.required === true) {\n (target.checkValidity() === false) ? component.invalid = true : component.invalid = false;\n }\n}\n","import { FunctionalComponent, h } from '@stencil/core';\n\n/**\n * Props for the input label.\n */\ninterface LabelProps {\n classNames?: string,\n /**\n * Corresponds to the 'for' attribute on a label. Useful for\n * associating a label with a specific input.\n */\n htmlFor: string,\n /**\n * Label text displayed.\n */\n text: string,\n}\n\n/**\n * Returns markup for an input label.\n * @internal\n */\nexport const PdsLabel: FunctionalComponent<LabelProps> = ({ classNames, htmlFor, text }) => (\n <label class={classNames} htmlFor={htmlFor}>{text}</label>\n);\n"],"version":3}
@@ -0,0 +1,37 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-13500e25.js');
6
+
7
+ const pdsLinkCss = ":host{--border-radius:var(--pine-border-radius-sm);--color:var(--pine-color-neutral-charcoal-400);--font-size:var(--pine-font-size-body);--font-size-sm:var(--pine-font-size-body-sm);--font-size-xs:var(--pine-font-size-body-xs);--font-weight:var(--pine-font-weight-medium);--margin-inline-start:var(--pine-spacing-xxs);--outline:4px solid var(--pine-color-primary-200);--svg-lg:15px;--svg-md:13px;--svg-sm:11px;display:inline}:host pds-icon{-webkit-margin-start:var(--margin-inline-start);margin-inline-start:var(--margin-inline-start)}.pds-link{-ms-flex-align:center;align-items:center;color:var(--color);display:-ms-inline-flexbox;display:inline-flex;font-weight:inherit}.pds-link:focus{border-radius:var(--border-radius);outline:var(--outline)}.pds-link--sm{font-size:var(--font-size-xs)}.pds-link--sm pds-icon{height:var(--svg-sm);width:var(--svg-sm)}.pds-link--md{font-size:var(--font-size-sm)}.pds-link--md pds-icon{height:var(--svg-md);width:var(--svg-md)}.pds-link--lg{font-size:var(--font-size)}.pds-link--lg pds-icon{height:var(--svg-lg);width:var(--svg-lg)}.pds-link--plain{font-weight:var(--font-weight);text-decoration:none}.pds-link--plain:hover{text-decoration:underline}.pds-link--default{text-decoration:underline}.pds-link--default:hover{text-decoration:none}";
8
+
9
+ const PdsLink = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.componentId = undefined;
13
+ this.external = false;
14
+ this.variant = 'inline';
15
+ this.fontSize = 'lg';
16
+ this.href = undefined;
17
+ }
18
+ classNames() {
19
+ const classNames = ['pds-link'];
20
+ if (this.fontSize) {
21
+ classNames.push('pds-link--' + this.fontSize);
22
+ }
23
+ if (this.variant) {
24
+ classNames.push('pds-link--' + this.variant);
25
+ }
26
+ return classNames.join(' ');
27
+ }
28
+ render() {
29
+ return (index.h("a", { class: this.classNames(), href: this.href, id: this.componentId, target: this.external ? '_blank' : undefined }, index.h("slot", null, this.href), this.external &&
30
+ index.h("pds-icon", { name: "launch", size: this.fontSize })));
31
+ }
32
+ };
33
+ PdsLink.style = pdsLinkCss;
34
+
35
+ exports.pds_link = PdsLink;
36
+
37
+ //# sourceMappingURL=pds-link.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-link.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,UAAU,GAAG,8vCAA8vC;;MCUpwC,OAAO;;;;wBAUC,KAAK;uBAMc,QAAQ;wBAUP,IAAI;;;IAOnC,UAAU;QAChB,MAAM,UAAU,GAAG,CAAC,UAAU,CAAC,CAAC;QAEhC,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,QAAQ,CAAC,CAAC;SAC/C;QAED,IAAI,IAAI,CAAC,OAAO,EAAE;YAChB,UAAU,CAAC,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC;SAC9C;QAED,OAAO,UAAU,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC7B;IAED,MAAM;QAEJ,QACEA,eACE,KAAK,EAAE,IAAI,CAAC,UAAU,EAAE,EACxB,IAAI,EAAE,IAAI,CAAC,IAAI,EACf,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,MAAM,EAAE,IAAI,CAAC,QAAQ,GAAG,QAAQ,GAAG,SAAS,IAE5CA,sBAAO,IAAI,CAAC,IAAI,CAAQ,EACvB,IAAI,CAAC,QAAQ;YACZA,sBAAU,IAAI,EAAC,QAAQ,EAAC,IAAI,EAAE,IAAI,CAAC,QAAQ,GAAa,CAExD,EACJ;KACH;;;;;;","names":["h"],"sources":["src/components/pds-link/pds-link.scss?tag=pds-link&encapsulation=shadow","src/components/pds-link/pds-link.tsx"],"sourcesContent":[":host {\n\n --border-radius: var(--pine-border-radius-sm);\n --color: var(--pine-color-neutral-charcoal-400);\n --font-size: var(--pine-font-size-body);\n --font-size-sm: var(--pine-font-size-body-sm);\n --font-size-xs: var(--pine-font-size-body-xs);\n --font-weight: var(--pine-font-weight-medium);\n --margin-inline-start: var(--pine-spacing-xxs);\n --outline: 4px solid var(--pine-color-primary-200);\n --svg-lg: 15px;\n --svg-md: 13px;\n --svg-sm: 11px;\n\n display: inline;\n\n pds-icon {\n margin-inline-start: var(--margin-inline-start);\n }\n}\n\n.pds-link {\n align-items: center;\n color: var(--color);\n display: inline-flex;\n font-weight: inherit;\n\n &:focus {\n border-radius: var(--border-radius);\n outline: var(--outline);\n }\n}\n\n// We have a small consensus stating that\n// fonts will be REMs, box-model will be\n// discussed later px or (r)em's\n.pds-link--sm {\n font-size: var(--font-size-xs);\n\n pds-icon {\n height: var(--svg-sm);\n width: var(--svg-sm);\n }\n}\n\n.pds-link--md {\n font-size: var(--font-size-sm);\n\n pds-icon {\n height: var(--svg-md);\n width: var(--svg-md);\n }\n}\n\n.pds-link--lg {\n font-size: var(--font-size);\n\n pds-icon {\n height: var(--svg-lg);\n width: var(--svg-lg);\n }\n}\n\n.pds-link--plain {\n font-weight: var(--font-weight);\n text-decoration: none;\n\n &:hover {\n text-decoration: underline;\n }\n}\n\n// Default = inline link\n.pds-link--default {\n text-decoration: underline;\n\n &:hover {\n text-decoration: none;\n }\n}\n","import { Component, h, Prop } from '@stencil/core';\n\n/**\n * @slot - Content is placed between the opening closing tags\n */\n@Component({\n tag: 'pds-link',\n styleUrl: '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 * When enabled, opens link in a new tab.\n * @defaultValue false\n */\n @Prop() external = false;\n\n /**\n *\n * Modifies the look of the link\n */\n @Prop() variant: 'inline' | 'plain' = 'inline';\n\n /**\n *\n * The Font size follows t-shirt model\n * sm: 12px\n * md: 14px\n * lg: 16px\n * @defaultValue lg\n */\n @Prop() fontSize: 'sm' | 'md' | 'lg' = 'lg';\n\n /**\n * The URL that the hyperlink points to.\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 >\n <slot>{this.href}</slot>\n {this.external &&\n <pds-icon name=\"launch\" size={this.fontSize}></pds-icon>\n }\n </a>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-13500e25.js');
6
+
7
+ const pdsProgressCss = ":host{--progress-fill-color:var(--pine-color-primary-300);--height-progress-bar:8px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex}@-webkit-keyframes progressBar{0%{width:0}100%{width:100%}}@keyframes progressBar{0%{width:0}100%{width:100%}}.pds-progress{--background-progress-bar:var(--pine-color-neutral-grey-300);--border-radius:var(--pine-border-radius-xs);-ms-flex-align:center;align-items:center;background-color:var(--background-progress-bar);border-radius:var(--border-radius);display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;height:var(--height-progress-bar);position:relative;width:100%}:host(.is-animated) progress,:host(.is-animated) progress::-webkit-progress-bar{-webkit-animation:progressBar 3s ease;animation:progressBar 3s ease;-webkit-animation-fill-mode:forwards;animation-fill-mode:forwards}progress,progress::-webkit-progress-bar{background-color:transparent;border:0;height:var(--height-progress-bar);width:100%}progress::-webkit-progress-value{--background-color:var(--pine-color-primary-300);--border-radius:var(--pine-border-radius-xs);background-color:var(--progress-fill-color, var(--background-color));border-radius:var(--border-radius)}progress::-moz-progress-bar{--background-color:var(--pine-color-primary-300);--border-radius:var(--pine-border-radius-xs);background-color:var(--progress-fill-color, var(--background-color));border-radius:var(--border-radius)}.pds-progress__label{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.pds-progress__percentage{--font-size:var(--pine-font-size-body-sm);--line-height:var(--pine-line-height-sm);--font-weight:var(--pine-font-weight-medium);--margin-inline-start:var(--pine-spacing-md);font-size:var(--font-size);font-weight:var(--font-weight);line-height:var(--line-height);-webkit-margin-start:calc(var(--margin-inline-start) / 2);margin-inline-start:calc(var(--margin-inline-start) / 2)}";
8
+
9
+ const PdsProgress = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.animated = false;
13
+ this.componentId = undefined;
14
+ this.fillColor = undefined;
15
+ this.label = undefined;
16
+ this.percent = 0;
17
+ this.showPercent = false;
18
+ }
19
+ render() {
20
+ return (index.h(index.Host, { class: this.animated ? { 'is-animated': this.animated } : '' }, index.h("div", { class: "pds-progress" }, index.h("label", { class: "pds-progress__label", htmlFor: this.componentId }, this.label), index.h("progress", { id: this.componentId, max: "100", style: this.fillColor ? { '--progress-fill-color': this.fillColor } : {}, value: this.percent })), this.showPercent && index.h("div", { class: "pds-progress__percentage" }, this.percent, "%")));
21
+ }
22
+ };
23
+ PdsProgress.style = pdsProgressCss;
24
+
25
+ exports.pds_progress = PdsProgress;
26
+
27
+ //# sourceMappingURL=pds-progress.cjs.entry.js.map
@@ -0,0 +1 @@
1
+ {"file":"pds-progress.entry.cjs.js","mappings":";;;;;;AAAA,MAAM,cAAc,GAAG,u7DAAu7D;;MCOj8D,WAAW;;;wBAKH,KAAK;;;;uBAsBN,CAAC;2BAMG,KAAK;;IAE3B,MAAM;QACJ,QACEA,QAACC,UAAI,IAAC,KAAK,EAAE,IAAI,CAAC,QAAQ,GAAG,EAAE,aAAa,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,EAAE,IAChED,iBAAK,KAAK,EAAC,cAAc,IACvBA,mBAAO,KAAK,EAAC,qBAAqB,EAAC,OAAO,EAAE,IAAI,CAAC,WAAW,IACzD,IAAI,CAAC,KAAK,CACL,EACRA,sBACE,EAAE,EAAE,IAAI,CAAC,WAAW,EACpB,GAAG,EAAC,KAAK,EACT,KAAK,EAAE,IAAI,CAAC,SAAS,GAAG,EAAE,uBAAuB,EAAE,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE,EACxE,KAAK,EAAE,IAAI,CAAC,OAAO,GAEV,CACP,EACL,IAAI,CAAC,WAAW,IAAIA,iBAAK,KAAK,EAAC,0BAA0B,IAAE,IAAI,CAAC,OAAO,MAAQ,CAC3E,EACP;KACH;;;;;;","names":["h","Host"],"sources":["src/components/pds-progress/pds-progress.scss?tag=pds-progress&encapsulation=shadow","src/components/pds-progress/pds-progress.tsx"],"sourcesContent":[":host {\n --progress-fill-color: var(--pine-color-primary-300);\n --height-progress-bar: 8px;\n\n align-items: center;\n display: flex;\n}\n\n@keyframes progressBar {\n 0% {\n width: 0\n }\n\n 100% {\n width: 100%\n }\n}\n\n.pds-progress {\n --background-progress-bar: var(--pine-color-neutral-grey-300);\n --border-radius: var(--pine-border-radius-xs);\n\n align-items: center;\n background-color: var(--background-progress-bar);\n border-radius: var(--border-radius);\n display: flex;\n flex-direction: row;\n height: var(--height-progress-bar);\n position: relative;\n width: 100%;\n}\n\n:host(.is-animated) progress,\n:host(.is-animated) progress::-webkit-progress-bar {\n animation: progressBar 3s ease;\n animation-fill-mode: forwards;\n}\n\nprogress,\nprogress::-webkit-progress-bar {\n background-color: transparent;\n border: 0;\n height: var(--height-progress-bar);\n width: 100%;\n}\n\nprogress::-webkit-progress-value {\n --background-color: var(--pine-color-primary-300);\n --border-radius: var(--pine-border-radius-xs);\n\n background-color: var(--progress-fill-color, var(--background-color));\n border-radius: var(--border-radius);\n}\n\nprogress::-moz-progress-bar {\n --background-color: var(--pine-color-primary-300);\n --border-radius: var(--pine-border-radius-xs);\n\n background-color: var(--progress-fill-color, var(--background-color));\n border-radius: var(--border-radius);\n}\n\n.pds-progress__label {\n border: 0;\n clip: rect(0 0 0 0);\n height: 1px;\n margin: -1px;\n overflow: hidden;\n padding: 0;\n position: absolute;\n width: 1px;\n}\n\n.pds-progress__percentage {\n --font-size: var(--pine-font-size-body-sm);\n --line-height: var(--pine-line-height-sm);\n --font-weight: var(--pine-font-weight-medium);\n --margin-inline-start: var(--pine-spacing-md);\n\n font-size: var(--font-size);\n font-weight: var(--font-weight);\n line-height: var(--line-height);\n margin-inline-start: calc(var(--margin-inline-start) / 2);\n}\n","import { Component, Host, h, Prop } from '@stencil/core';\n\n@Component({\n tag: 'pds-progress',\n styleUrl: 'pds-progress.scss',\n shadow: true,\n})\nexport class PdsProgress {\n /**\n * Determines whether or not progress is animated.\n * @defaultValue false\n */\n @Prop() animated = false;\n\n /**\n * A unique identifier used for the underlying component `id` attribute and the label `for` attribute.\n */\n @Prop() componentId!: string;\n\n /**\n * Sets the progress fill color. Accepts a color token or a [valid color value](https://developer.mozilla.org/en-US/docs/Web/CSS/color_value).\n * @defaultValue 'var(--pds-color-primary)'\n */\n @Prop() fillColor: string;\n\n /**\n * String used for label text. Label is visually hidden but required for better accessibility.\n */\n @Prop() label!: string;\n\n /**\n * Sets the progress fill pecentage and visually displayed when `show-percentage=true`.\n * @defaultValue 0\n */\n @Prop() percent = 0;\n\n /**\n * Determines whether or not the percent value should be displayed as text.\n * @defaultValue false\n */\n @Prop() showPercent = false;\n\n render() {\n return (\n <Host class={this.animated ? { 'is-animated': this.animated } : ''}>\n <div class=\"pds-progress\">\n <label class=\"pds-progress__label\" htmlFor={this.componentId}>\n {this.label}\n </label>\n <progress\n id={this.componentId}\n max=\"100\"\n style={this.fillColor ? { '--progress-fill-color': this.fillColor } : {}}\n value={this.percent}\n >\n </progress>\n </div>\n {this.showPercent && <div class=\"pds-progress__percentage\">{this.percent}%</div>}\n </Host>\n );\n }\n}\n"],"version":3}
@@ -0,0 +1,53 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-13500e25.js');
6
+ const pdsLabel = require('./pds-label-71ea2cad.js');
7
+
8
+ const pdsRadioCss = ".sc-pds-radio-h{--background-color:var(--pine-color-base-white);--background-color-hover:var(--pine-color-neutral-grey-100);--background-color-disabled:var(--pine-color-neutral-grey-200);--border:var(--pine-border-interactive);--border-color-hover:var(--pine-border-interactive-hover-color);--border-color-disabled:var(--pine-color-neutral-grey-300);--border-radius:50%;--color:var(--pine-color-neutral-charcoal-200);--color-checked:var(--pine-color-neutral-charcoal-500);--color-disabled:var(--pine-color-neutral-grey-500);--color-focus:var(--pine-color-primary-200);--color-invalid:var(--pine-color-red-300);--color-invalid-focus:var(--pine-color-red-200);--font-size:var(--pine-font-size-body-sm);--input-size:16px;--check-size:6px;-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex-flow:row wrap;flex-flow:row wrap}.is-invalid.sc-pds-radio-h input.sc-pds-radio{border-color:var(--color-invalid)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:checked{background:var(--color-invalid)}.is-invalid.sc-pds-radio-h input.sc-pds-radio:focus-visible{-webkit-box-shadow:0 0 0 4px var(--color-invalid-focus);box-shadow:0 0 0 4px var(--color-invalid-focus);outline:none}.is-invalid.sc-pds-radio-h label.sc-pds-radio,.is-invalid.sc-pds-radio-h .pds-radio__message--error.sc-pds-radio{color:var(--color-invalid)}input.sc-pds-radio{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:var(--border);border-radius:var(--border-radius);height:var(--input-size);margin:0;position:relative;width:var(--input-size)}input.sc-pds-radio:hover{background:var(--background-color-hover);border-color:var(--border-color-hover)}input.sc-pds-radio:checked{background:var(--color-checked);border-color:var(--color-checked)}input.sc-pds-radio:checked::after{background:var(--background-color);border-radius:50%;content:\"\";display:block;height:var(--check-size);left:50%;position:absolute;top:50%;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);width:var(--check-size)}input.sc-pds-radio:disabled{background:var(--background-color-disabled);border-color:var(--border-color-disabled);cursor:not-allowed}input.sc-pds-radio:disabled:checked{background:var(--color-disabled);border-color:var(--border-color-disabled)}input.sc-pds-radio:disabled:checked::after{border-color:var(--border-color-disabled)}input.sc-pds-radio:disabled+label.sc-pds-radio{color:var(--border-color-hover);cursor:not-allowed}input.sc-pds-radio:disabled~.pds-radio__message.sc-pds-radio{color:var(--color-disabled)}input.sc-pds-radio:focus-visible{-webkit-box-shadow:0 0 0 4px var(--color-focus);box-shadow:0 0 0 4px var(--color-focus);outline:none}label.sc-pds-radio{-webkit-margin-start:10px;margin-inline-start:10px}.pds-radio__message.sc-pds-radio{color:var(--color);font-size:var(--font-size);-webkit-margin-before:var(--check-size);margin-block-start:var(--check-size);-webkit-margin-start:26px;margin-inline-start:26px;width:100%}";
9
+
10
+ const PdsRadio = class {
11
+ constructor(hostRef) {
12
+ index.registerInstance(this, hostRef);
13
+ this.pdsRadioChange = index.createEvent(this, "pdsRadioChange", 7);
14
+ this.handleRadioChange = (e) => {
15
+ if (this.disabled) {
16
+ return;
17
+ }
18
+ const target = e.target;
19
+ const isChecked = target.checked;
20
+ this.pdsRadioChange.emit(isChecked);
21
+ };
22
+ this.checked = false;
23
+ this.disabled = false;
24
+ this.errorMessage = undefined;
25
+ this.invalid = false;
26
+ this.componentId = undefined;
27
+ this.label = undefined;
28
+ this.helperMessage = undefined;
29
+ this.name = undefined;
30
+ this.required = false;
31
+ this.value = undefined;
32
+ }
33
+ classNames() {
34
+ const classNames = [];
35
+ if (this.invalid) {
36
+ classNames.push('is-invalid');
37
+ }
38
+ if (this.disabled) {
39
+ classNames.push('is-disabled');
40
+ }
41
+ return classNames.join(' ');
42
+ }
43
+ render() {
44
+ return (index.h(index.Host, { class: this.classNames() }, index.h("input", { "aria-describedby": pdsLabel.assignDescription(this.componentId, this.invalid, this.helperMessage), "aria-invalid": this.invalid ? "true" : undefined, type: "radio", id: this.componentId, name: this.name, value: this.value, checked: this.checked, required: this.required, disabled: this.disabled, onChange: this.handleRadioChange }), index.h(pdsLabel.PdsLabel, { htmlFor: this.componentId, text: this.label }), this.helperMessage &&
45
+ index.h("div", { class: 'pds-radio__message', id: pdsLabel.messageId(this.componentId, 'helper') }, this.helperMessage), this.errorMessage &&
46
+ index.h("div", { class: `pds-radio__message pds-radio__message--error`, id: pdsLabel.messageId(this.componentId, 'error'), "aria-live": "assertive" }, this.errorMessage)));
47
+ }
48
+ };
49
+ PdsRadio.style = pdsRadioCss;
50
+
51
+ exports.pds_radio = PdsRadio;
52
+
53
+ //# sourceMappingURL=pds-radio.cjs.entry.js.map