@pine-ds/icons 7.3.0 → 7.4.1-rc.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 (1014) hide show
  1. package/components/index.d.ts +0 -0
  2. package/components/pds-icon.d.ts +0 -0
  3. package/dist/cheatsheet.html +48 -18
  4. package/dist/docs.json +1 -1
  5. package/dist/pds-icons/index-ff192a13.js +2970 -0
  6. package/dist/pds-icons/index-ff192a13.js.map +1 -0
  7. package/dist/pds-icons/index.esm.js +3 -1
  8. package/dist/pds-icons/index.esm.js.map +1 -1
  9. package/dist/{esm → pds-icons}/pds-icon.entry.js +21 -13
  10. package/dist/pds-icons/pds-icon.entry.js.map +1 -0
  11. package/dist/pds-icons/pds-icons.esm.js +48 -1
  12. package/dist/pds-icons/pds-icons.esm.js.map +1 -1
  13. package/dist/pds-icons/shadow-css-964ae2c5.js +358 -0
  14. package/dist/pds-icons/shadow-css-964ae2c5.js.map +1 -0
  15. package/dist/{esm/utils-6c036ebc.js → pds-icons/utils-39f6c025.js} +3 -3
  16. package/dist/pds-icons/utils-39f6c025.js.map +1 -0
  17. package/dist/pds-icons.json +159 -1
  18. package/dist/pds-icons.symbols.svg +30 -15
  19. package/dist/types/components/pds-icon/pds-icon.d.ts +3 -0
  20. package/icons/index.d.ts +16 -1
  21. package/icons/index.js +30 -15
  22. package/icons/index.mjs +30 -15
  23. package/icons/package.json +1 -1
  24. package/package.json +1 -1
  25. package/components/index.cjs.js +0 -1
  26. package/components/index.js +0 -4
  27. package/components/index.js.map +0 -1
  28. package/components/package.json +0 -8
  29. package/components/pds-icon.js +0 -366
  30. package/components/pds-icon.js.map +0 -1
  31. package/dist/cjs/app-globals-3a1e7e63.js +0 -7
  32. package/dist/cjs/app-globals-3a1e7e63.js.map +0 -1
  33. package/dist/cjs/index-f0b59854.js +0 -1205
  34. package/dist/cjs/index-f0b59854.js.map +0 -1
  35. package/dist/cjs/index.cjs.js +0 -12
  36. package/dist/cjs/index.cjs.js.map +0 -1
  37. package/dist/cjs/loader.cjs.js +0 -17
  38. package/dist/cjs/loader.cjs.js.map +0 -1
  39. package/dist/cjs/pds-icon.cjs.entry.js +0 -211
  40. package/dist/cjs/pds-icon.cjs.entry.js.map +0 -1
  41. package/dist/cjs/pds-icons.cjs.js +0 -27
  42. package/dist/cjs/pds-icons.cjs.js.map +0 -1
  43. package/dist/cjs/utils-958540ce.js +0 -140
  44. package/dist/cjs/utils-958540ce.js.map +0 -1
  45. package/dist/collection/collection-manifest.json +0 -12
  46. package/dist/collection/components/pds-icon/assetPath.js +0 -36
  47. package/dist/collection/components/pds-icon/assetPath.js.map +0 -1
  48. package/dist/collection/components/pds-icon/pds-icon.css +0 -22
  49. package/dist/collection/components/pds-icon/pds-icon.js +0 -228
  50. package/dist/collection/components/pds-icon/pds-icon.js.map +0 -1
  51. package/dist/collection/components/pds-icon/request.js +0 -43
  52. package/dist/collection/components/pds-icon/request.js.map +0 -1
  53. package/dist/collection/components/pds-icon/svg/access-key.svg +0 -1
  54. package/dist/collection/components/pds-icon/svg/add-circle.svg +0 -1
  55. package/dist/collection/components/pds-icon/svg/add-image.svg +0 -1
  56. package/dist/collection/components/pds-icon/svg/add-small.svg +0 -1
  57. package/dist/collection/components/pds-icon/svg/add-square.svg +0 -1
  58. package/dist/collection/components/pds-icon/svg/add.svg +0 -1
  59. package/dist/collection/components/pds-icon/svg/advanced.svg +0 -1
  60. package/dist/collection/components/pds-icon/svg/ai-sparkle.svg +0 -1
  61. package/dist/collection/components/pds-icon/svg/ai-writer-filled.svg +0 -1
  62. package/dist/collection/components/pds-icon/svg/ai-writer.svg +0 -1
  63. package/dist/collection/components/pds-icon/svg/align-center.svg +0 -1
  64. package/dist/collection/components/pds-icon/svg/align-justify.svg +0 -1
  65. package/dist/collection/components/pds-icon/svg/align-left.svg +0 -1
  66. package/dist/collection/components/pds-icon/svg/align-right.svg +0 -1
  67. package/dist/collection/components/pds-icon/svg/app-store.svg +0 -1
  68. package/dist/collection/components/pds-icon/svg/archive.svg +0 -1
  69. package/dist/collection/components/pds-icon/svg/arrow-corner.svg +0 -1
  70. package/dist/collection/components/pds-icon/svg/arrow-down.svg +0 -1
  71. package/dist/collection/components/pds-icon/svg/arrow-left.svg +0 -1
  72. package/dist/collection/components/pds-icon/svg/arrow-right.svg +0 -1
  73. package/dist/collection/components/pds-icon/svg/arrow-up.svg +0 -1
  74. package/dist/collection/components/pds-icon/svg/assessment.svg +0 -1
  75. package/dist/collection/components/pds-icon/svg/at-sign.svg +0 -1
  76. package/dist/collection/components/pds-icon/svg/attach.svg +0 -1
  77. package/dist/collection/components/pds-icon/svg/automations.svg +0 -1
  78. package/dist/collection/components/pds-icon/svg/ban.svg +0 -1
  79. package/dist/collection/components/pds-icon/svg/bank.svg +0 -1
  80. package/dist/collection/components/pds-icon/svg/bell.svg +0 -1
  81. package/dist/collection/components/pds-icon/svg/block.svg +0 -1
  82. package/dist/collection/components/pds-icon/svg/blog-filled.svg +0 -1
  83. package/dist/collection/components/pds-icon/svg/blog.svg +0 -1
  84. package/dist/collection/components/pds-icon/svg/bold.svg +0 -1
  85. package/dist/collection/components/pds-icon/svg/broadcast.svg +0 -1
  86. package/dist/collection/components/pds-icon/svg/bulb.svg +0 -1
  87. package/dist/collection/components/pds-icon/svg/button.svg +0 -1
  88. package/dist/collection/components/pds-icon/svg/calendar-date.svg +0 -1
  89. package/dist/collection/components/pds-icon/svg/calendar-schedule.svg +0 -1
  90. package/dist/collection/components/pds-icon/svg/calendar-simple.svg +0 -1
  91. package/dist/collection/components/pds-icon/svg/card-amex.svg +0 -1
  92. package/dist/collection/components/pds-icon/svg/card-android.svg +0 -1
  93. package/dist/collection/components/pds-icon/svg/card-apple.svg +0 -1
  94. package/dist/collection/components/pds-icon/svg/card-diners-club.svg +0 -1
  95. package/dist/collection/components/pds-icon/svg/card-discover.svg +0 -1
  96. package/dist/collection/components/pds-icon/svg/card-generic.svg +0 -1
  97. package/dist/collection/components/pds-icon/svg/card-gpay.svg +0 -1
  98. package/dist/collection/components/pds-icon/svg/card-mastercard.svg +0 -1
  99. package/dist/collection/components/pds-icon/svg/card-paypal.svg +0 -1
  100. package/dist/collection/components/pds-icon/svg/card-stripe.svg +0 -1
  101. package/dist/collection/components/pds-icon/svg/card-update.svg +0 -1
  102. package/dist/collection/components/pds-icon/svg/card-visa.svg +0 -1
  103. package/dist/collection/components/pds-icon/svg/caret-down.svg +0 -1
  104. package/dist/collection/components/pds-icon/svg/caret-left.svg +0 -1
  105. package/dist/collection/components/pds-icon/svg/caret-right.svg +0 -1
  106. package/dist/collection/components/pds-icon/svg/caret-up.svg +0 -1
  107. package/dist/collection/components/pds-icon/svg/cart-add.svg +0 -1
  108. package/dist/collection/components/pds-icon/svg/cart.svg +0 -1
  109. package/dist/collection/components/pds-icon/svg/certificate.svg +0 -1
  110. package/dist/collection/components/pds-icon/svg/chart-filled.svg +0 -1
  111. package/dist/collection/components/pds-icon/svg/chart.svg +0 -1
  112. package/dist/collection/components/pds-icon/svg/check-circle-filled.svg +0 -1
  113. package/dist/collection/components/pds-icon/svg/check-circle.svg +0 -1
  114. package/dist/collection/components/pds-icon/svg/check.svg +0 -1
  115. package/dist/collection/components/pds-icon/svg/circle-1.svg +0 -1
  116. package/dist/collection/components/pds-icon/svg/circle-2.svg +0 -1
  117. package/dist/collection/components/pds-icon/svg/circle-3.svg +0 -1
  118. package/dist/collection/components/pds-icon/svg/circle-4.svg +0 -1
  119. package/dist/collection/components/pds-icon/svg/circle-5.svg +0 -1
  120. package/dist/collection/components/pds-icon/svg/circle-6.svg +0 -1
  121. package/dist/collection/components/pds-icon/svg/circle-7.svg +0 -1
  122. package/dist/collection/components/pds-icon/svg/circle-8.svg +0 -1
  123. package/dist/collection/components/pds-icon/svg/circle-9.svg +0 -1
  124. package/dist/collection/components/pds-icon/svg/circle-a.svg +0 -1
  125. package/dist/collection/components/pds-icon/svg/circle-b.svg +0 -1
  126. package/dist/collection/components/pds-icon/svg/circle-dashed.svg +0 -1
  127. package/dist/collection/components/pds-icon/svg/clock.svg +0 -1
  128. package/dist/collection/components/pds-icon/svg/closed-captions.svg +0 -1
  129. package/dist/collection/components/pds-icon/svg/cloud-upload.svg +0 -1
  130. package/dist/collection/components/pds-icon/svg/code-block.svg +0 -1
  131. package/dist/collection/components/pds-icon/svg/code.svg +0 -1
  132. package/dist/collection/components/pds-icon/svg/color.svg +0 -1
  133. package/dist/collection/components/pds-icon/svg/columns.svg +0 -1
  134. package/dist/collection/components/pds-icon/svg/comment-no.svg +0 -1
  135. package/dist/collection/components/pds-icon/svg/comment.svg +0 -1
  136. package/dist/collection/components/pds-icon/svg/connect.svg +0 -1
  137. package/dist/collection/components/pds-icon/svg/contact.svg +0 -1
  138. package/dist/collection/components/pds-icon/svg/conversation.svg +0 -1
  139. package/dist/collection/components/pds-icon/svg/copy.svg +0 -1
  140. package/dist/collection/components/pds-icon/svg/coupon.svg +0 -1
  141. package/dist/collection/components/pds-icon/svg/course-filled.svg +0 -1
  142. package/dist/collection/components/pds-icon/svg/course.svg +0 -1
  143. package/dist/collection/components/pds-icon/svg/creator-studio-filled.svg +0 -1
  144. package/dist/collection/components/pds-icon/svg/creator-studio.svg +0 -1
  145. package/dist/collection/components/pds-icon/svg/cursor-pointer.svg +0 -1
  146. package/dist/collection/components/pds-icon/svg/cursor.svg +0 -1
  147. package/dist/collection/components/pds-icon/svg/custom-field.svg +0 -1
  148. package/dist/collection/components/pds-icon/svg/customize.svg +0 -1
  149. package/dist/collection/components/pds-icon/svg/danger-filled.svg +0 -1
  150. package/dist/collection/components/pds-icon/svg/danger.svg +0 -1
  151. package/dist/collection/components/pds-icon/svg/delete-circle.svg +0 -1
  152. package/dist/collection/components/pds-icon/svg/delete-key.svg +0 -1
  153. package/dist/collection/components/pds-icon/svg/delete-x.svg +0 -1
  154. package/dist/collection/components/pds-icon/svg/dollar.svg +0 -1
  155. package/dist/collection/components/pds-icon/svg/dot-menu-horizontal.svg +0 -1
  156. package/dist/collection/components/pds-icon/svg/down-small.svg +0 -1
  157. package/dist/collection/components/pds-icon/svg/download.svg +0 -1
  158. package/dist/collection/components/pds-icon/svg/downsell.svg +0 -1
  159. package/dist/collection/components/pds-icon/svg/draft.svg +0 -1
  160. package/dist/collection/components/pds-icon/svg/drawer-collapse.svg +0 -1
  161. package/dist/collection/components/pds-icon/svg/drawer-expand.svg +0 -1
  162. package/dist/collection/components/pds-icon/svg/drop.svg +0 -1
  163. package/dist/collection/components/pds-icon/svg/duplicate.svg +0 -1
  164. package/dist/collection/components/pds-icon/svg/editor-filled.svg +0 -1
  165. package/dist/collection/components/pds-icon/svg/editor.svg +0 -1
  166. package/dist/collection/components/pds-icon/svg/email-activity.svg +0 -1
  167. package/dist/collection/components/pds-icon/svg/emoji.svg +0 -1
  168. package/dist/collection/components/pds-icon/svg/enlarge-vertical.svg +0 -1
  169. package/dist/collection/components/pds-icon/svg/enlarge.svg +0 -1
  170. package/dist/collection/components/pds-icon/svg/expand.svg +0 -1
  171. package/dist/collection/components/pds-icon/svg/favorite.svg +0 -1
  172. package/dist/collection/components/pds-icon/svg/feedback.svg +0 -1
  173. package/dist/collection/components/pds-icon/svg/file-02.svg +0 -1
  174. package/dist/collection/components/pds-icon/svg/file-money.svg +0 -1
  175. package/dist/collection/components/pds-icon/svg/file.svg +0 -1
  176. package/dist/collection/components/pds-icon/svg/filter.svg +0 -1
  177. package/dist/collection/components/pds-icon/svg/flag.svg +0 -1
  178. package/dist/collection/components/pds-icon/svg/flash-filled.svg +0 -1
  179. package/dist/collection/components/pds-icon/svg/flash.svg +0 -1
  180. package/dist/collection/components/pds-icon/svg/floppy-disk.svg +0 -1
  181. package/dist/collection/components/pds-icon/svg/folder-group.svg +0 -1
  182. package/dist/collection/components/pds-icon/svg/folder.svg +0 -1
  183. package/dist/collection/components/pds-icon/svg/form-field.svg +0 -1
  184. package/dist/collection/components/pds-icon/svg/form-filled.svg +0 -1
  185. package/dist/collection/components/pds-icon/svg/form.svg +0 -1
  186. package/dist/collection/components/pds-icon/svg/fullscreen.svg +0 -1
  187. package/dist/collection/components/pds-icon/svg/funnel.svg +0 -1
  188. package/dist/collection/components/pds-icon/svg/gear-filled.svg +0 -1
  189. package/dist/collection/components/pds-icon/svg/gear.svg +0 -1
  190. package/dist/collection/components/pds-icon/svg/grant-offer.svg +0 -1
  191. package/dist/collection/components/pds-icon/svg/handle-2-vertical.svg +0 -1
  192. package/dist/collection/components/pds-icon/svg/handle-2.svg +0 -1
  193. package/dist/collection/components/pds-icon/svg/handle.svg +0 -1
  194. package/dist/collection/components/pds-icon/svg/hashtag.svg +0 -1
  195. package/dist/collection/components/pds-icon/svg/hd-video.svg +0 -1
  196. package/dist/collection/components/pds-icon/svg/heading-1.svg +0 -1
  197. package/dist/collection/components/pds-icon/svg/heading-2.svg +0 -1
  198. package/dist/collection/components/pds-icon/svg/heading-3.svg +0 -1
  199. package/dist/collection/components/pds-icon/svg/heading-4.svg +0 -1
  200. package/dist/collection/components/pds-icon/svg/heading-5.svg +0 -1
  201. package/dist/collection/components/pds-icon/svg/heading-6.svg +0 -1
  202. package/dist/collection/components/pds-icon/svg/heading-large.svg +0 -1
  203. package/dist/collection/components/pds-icon/svg/heading-small.svg +0 -1
  204. package/dist/collection/components/pds-icon/svg/headset.svg +0 -1
  205. package/dist/collection/components/pds-icon/svg/help-filled.svg +0 -1
  206. package/dist/collection/components/pds-icon/svg/help.svg +0 -1
  207. package/dist/collection/components/pds-icon/svg/home-alt.svg +0 -1
  208. package/dist/collection/components/pds-icon/svg/home-filled.svg +0 -1
  209. package/dist/collection/components/pds-icon/svg/home.svg +0 -1
  210. package/dist/collection/components/pds-icon/svg/horizontal-line.svg +0 -1
  211. package/dist/collection/components/pds-icon/svg/image.svg +0 -1
  212. package/dist/collection/components/pds-icon/svg/info-circle-filled.svg +0 -1
  213. package/dist/collection/components/pds-icon/svg/info-circle.svg +0 -1
  214. package/dist/collection/components/pds-icon/svg/ios-battery.svg +0 -1
  215. package/dist/collection/components/pds-icon/svg/ios-data.svg +0 -1
  216. package/dist/collection/components/pds-icon/svg/ios-wifi.svg +0 -1
  217. package/dist/collection/components/pds-icon/svg/italic.svg +0 -1
  218. package/dist/collection/components/pds-icon/svg/kajabi-filled.svg +0 -1
  219. package/dist/collection/components/pds-icon/svg/kajabi.svg +0 -1
  220. package/dist/collection/components/pds-icon/svg/klarna.svg +0 -1
  221. package/dist/collection/components/pds-icon/svg/lab.svg +0 -1
  222. package/dist/collection/components/pds-icon/svg/launch.svg +0 -1
  223. package/dist/collection/components/pds-icon/svg/layout-grid.svg +0 -1
  224. package/dist/collection/components/pds-icon/svg/layout-list.svg +0 -1
  225. package/dist/collection/components/pds-icon/svg/left-small.svg +0 -1
  226. package/dist/collection/components/pds-icon/svg/list-bullet.svg +0 -1
  227. package/dist/collection/components/pds-icon/svg/list-details.svg +0 -1
  228. package/dist/collection/components/pds-icon/svg/list-numbers.svg +0 -1
  229. package/dist/collection/components/pds-icon/svg/location.svg +0 -1
  230. package/dist/collection/components/pds-icon/svg/lock-alt.svg +0 -1
  231. package/dist/collection/components/pds-icon/svg/lock.svg +0 -1
  232. package/dist/collection/components/pds-icon/svg/logo-afterpay.svg +0 -1
  233. package/dist/collection/components/pds-icon/svg/logo-facebook-round.svg +0 -1
  234. package/dist/collection/components/pds-icon/svg/logo-facebook.svg +0 -1
  235. package/dist/collection/components/pds-icon/svg/logo-instagram.svg +0 -1
  236. package/dist/collection/components/pds-icon/svg/logo-linkedin.svg +0 -1
  237. package/dist/collection/components/pds-icon/svg/logo-tiktok.svg +0 -1
  238. package/dist/collection/components/pds-icon/svg/logo-twitter-x.svg +0 -1
  239. package/dist/collection/components/pds-icon/svg/logo-twitter.svg +0 -1
  240. package/dist/collection/components/pds-icon/svg/logo-youtube.svg +0 -1
  241. package/dist/collection/components/pds-icon/svg/loop.svg +0 -1
  242. package/dist/collection/components/pds-icon/svg/mail-filled.svg +0 -1
  243. package/dist/collection/components/pds-icon/svg/mail-open.svg +0 -1
  244. package/dist/collection/components/pds-icon/svg/mail.svg +0 -1
  245. package/dist/collection/components/pds-icon/svg/map.svg +0 -1
  246. package/dist/collection/components/pds-icon/svg/mapped.svg +0 -1
  247. package/dist/collection/components/pds-icon/svg/margin-left.svg +0 -1
  248. package/dist/collection/components/pds-icon/svg/margin-right.svg +0 -1
  249. package/dist/collection/components/pds-icon/svg/marker-filled.svg +0 -1
  250. package/dist/collection/components/pds-icon/svg/marker.svg +0 -1
  251. package/dist/collection/components/pds-icon/svg/megaphone-filled.svg +0 -1
  252. package/dist/collection/components/pds-icon/svg/megaphone.svg +0 -1
  253. package/dist/collection/components/pds-icon/svg/menu-alt.svg +0 -1
  254. package/dist/collection/components/pds-icon/svg/menu-bordered.svg +0 -1
  255. package/dist/collection/components/pds-icon/svg/menu.svg +0 -1
  256. package/dist/collection/components/pds-icon/svg/merge.svg +0 -1
  257. package/dist/collection/components/pds-icon/svg/microphone-off.svg +0 -1
  258. package/dist/collection/components/pds-icon/svg/microphone.svg +0 -1
  259. package/dist/collection/components/pds-icon/svg/monitor-filled.svg +0 -1
  260. package/dist/collection/components/pds-icon/svg/monitor.svg +0 -1
  261. package/dist/collection/components/pds-icon/svg/more-menu-filled.svg +0 -1
  262. package/dist/collection/components/pds-icon/svg/more-menu.svg +0 -1
  263. package/dist/collection/components/pds-icon/svg/move-left.svg +0 -1
  264. package/dist/collection/components/pds-icon/svg/move-right.svg +0 -1
  265. package/dist/collection/components/pds-icon/svg/multi-pay.svg +0 -1
  266. package/dist/collection/components/pds-icon/svg/newsletter-2.svg +0 -1
  267. package/dist/collection/components/pds-icon/svg/newsletter.svg +0 -1
  268. package/dist/collection/components/pds-icon/svg/one-off-session.svg +0 -1
  269. package/dist/collection/components/pds-icon/svg/one-time.svg +0 -1
  270. package/dist/collection/components/pds-icon/svg/packages.svg +0 -1
  271. package/dist/collection/components/pds-icon/svg/pause-circle.svg +0 -1
  272. package/dist/collection/components/pds-icon/svg/pause.svg +0 -1
  273. package/dist/collection/components/pds-icon/svg/payout.svg +0 -1
  274. package/dist/collection/components/pds-icon/svg/pen.svg +0 -1
  275. package/dist/collection/components/pds-icon/svg/phone-portrait.svg +0 -1
  276. package/dist/collection/components/pds-icon/svg/phone-toolbar-filled.svg +0 -1
  277. package/dist/collection/components/pds-icon/svg/phone-toolbar.svg +0 -1
  278. package/dist/collection/components/pds-icon/svg/play-circle.svg +0 -1
  279. package/dist/collection/components/pds-icon/svg/play-outline.svg +0 -1
  280. package/dist/collection/components/pds-icon/svg/play-store.svg +0 -1
  281. package/dist/collection/components/pds-icon/svg/play.svg +0 -1
  282. package/dist/collection/components/pds-icon/svg/plug.svg +0 -1
  283. package/dist/collection/components/pds-icon/svg/premium.svg +0 -1
  284. package/dist/collection/components/pds-icon/svg/present.svg +0 -1
  285. package/dist/collection/components/pds-icon/svg/preview-off.svg +0 -1
  286. package/dist/collection/components/pds-icon/svg/preview-on.svg +0 -1
  287. package/dist/collection/components/pds-icon/svg/product-filled.svg +0 -1
  288. package/dist/collection/components/pds-icon/svg/product.svg +0 -1
  289. package/dist/collection/components/pds-icon/svg/question-circle.svg +0 -1
  290. package/dist/collection/components/pds-icon/svg/quote.svg +0 -1
  291. package/dist/collection/components/pds-icon/svg/redo.svg +0 -1
  292. package/dist/collection/components/pds-icon/svg/refresh.svg +0 -1
  293. package/dist/collection/components/pds-icon/svg/remove-circle.svg +0 -1
  294. package/dist/collection/components/pds-icon/svg/remove.svg +0 -1
  295. package/dist/collection/components/pds-icon/svg/rename.svg +0 -1
  296. package/dist/collection/components/pds-icon/svg/reset-password.svg +0 -1
  297. package/dist/collection/components/pds-icon/svg/restore.svg +0 -1
  298. package/dist/collection/components/pds-icon/svg/right-small.svg +0 -1
  299. package/dist/collection/components/pds-icon/svg/rocket-filled.svg +0 -1
  300. package/dist/collection/components/pds-icon/svg/rocket.svg +0 -1
  301. package/dist/collection/components/pds-icon/svg/round-dollar.svg +0 -1
  302. package/dist/collection/components/pds-icon/svg/rows.svg +0 -1
  303. package/dist/collection/components/pds-icon/svg/scissor.svg +0 -1
  304. package/dist/collection/components/pds-icon/svg/screen-share-off.svg +0 -1
  305. package/dist/collection/components/pds-icon/svg/screen-share-on.svg +0 -1
  306. package/dist/collection/components/pds-icon/svg/search-small.svg +0 -1
  307. package/dist/collection/components/pds-icon/svg/search.svg +0 -1
  308. package/dist/collection/components/pds-icon/svg/send-message.svg +0 -1
  309. package/dist/collection/components/pds-icon/svg/sequences.svg +0 -1
  310. package/dist/collection/components/pds-icon/svg/share.svg +0 -1
  311. package/dist/collection/components/pds-icon/svg/skipped.svg +0 -1
  312. package/dist/collection/components/pds-icon/svg/slash-divider.svg +0 -1
  313. package/dist/collection/components/pds-icon/svg/speaker.svg +0 -1
  314. package/dist/collection/components/pds-icon/svg/stack.svg +0 -1
  315. package/dist/collection/components/pds-icon/svg/star.svg +0 -1
  316. package/dist/collection/components/pds-icon/svg/stop.svg +0 -1
  317. package/dist/collection/components/pds-icon/svg/stopwatch.svg +0 -1
  318. package/dist/collection/components/pds-icon/svg/strikethrough.svg +0 -1
  319. package/dist/collection/components/pds-icon/svg/subscript.svg +0 -1
  320. package/dist/collection/components/pds-icon/svg/subscriptions.svg +0 -1
  321. package/dist/collection/components/pds-icon/svg/super-admin.svg +0 -1
  322. package/dist/collection/components/pds-icon/svg/superscript.svg +0 -1
  323. package/dist/collection/components/pds-icon/svg/sync.svg +0 -1
  324. package/dist/collection/components/pds-icon/svg/tablet-landscape.svg +0 -1
  325. package/dist/collection/components/pds-icon/svg/tablet-portrait.svg +0 -1
  326. package/dist/collection/components/pds-icon/svg/tag-filled.svg +0 -1
  327. package/dist/collection/components/pds-icon/svg/tag.svg +0 -1
  328. package/dist/collection/components/pds-icon/svg/text-styles.svg +0 -1
  329. package/dist/collection/components/pds-icon/svg/theme-store-filled.svg +0 -1
  330. package/dist/collection/components/pds-icon/svg/theme-store.svg +0 -1
  331. package/dist/collection/components/pds-icon/svg/thumb-down-filled.svg +0 -1
  332. package/dist/collection/components/pds-icon/svg/thumb-down.svg +0 -1
  333. package/dist/collection/components/pds-icon/svg/thumb-up-filled.svg +0 -1
  334. package/dist/collection/components/pds-icon/svg/thumb-up.svg +0 -1
  335. package/dist/collection/components/pds-icon/svg/trash.svg +0 -1
  336. package/dist/collection/components/pds-icon/svg/trophy-filled.svg +0 -1
  337. package/dist/collection/components/pds-icon/svg/trophy.svg +0 -1
  338. package/dist/collection/components/pds-icon/svg/underline.svg +0 -1
  339. package/dist/collection/components/pds-icon/svg/undo.svg +0 -1
  340. package/dist/collection/components/pds-icon/svg/unlock.svg +0 -1
  341. package/dist/collection/components/pds-icon/svg/unmapped.svg +0 -1
  342. package/dist/collection/components/pds-icon/svg/up-small.svg +0 -1
  343. package/dist/collection/components/pds-icon/svg/upload.svg +0 -1
  344. package/dist/collection/components/pds-icon/svg/url.svg +0 -1
  345. package/dist/collection/components/pds-icon/svg/user-circle-filled.svg +0 -1
  346. package/dist/collection/components/pds-icon/svg/user-circle.svg +0 -1
  347. package/dist/collection/components/pds-icon/svg/user-filled.svg +0 -1
  348. package/dist/collection/components/pds-icon/svg/user-star-filled.svg +0 -1
  349. package/dist/collection/components/pds-icon/svg/user-star.svg +0 -1
  350. package/dist/collection/components/pds-icon/svg/user.svg +0 -1
  351. package/dist/collection/components/pds-icon/svg/users-alt.svg +0 -1
  352. package/dist/collection/components/pds-icon/svg/users-filled.svg +0 -1
  353. package/dist/collection/components/pds-icon/svg/users.svg +0 -1
  354. package/dist/collection/components/pds-icon/svg/video-off.svg +0 -1
  355. package/dist/collection/components/pds-icon/svg/video-on.svg +0 -1
  356. package/dist/collection/components/pds-icon/svg/warning-filled.svg +0 -1
  357. package/dist/collection/components/pds-icon/svg/warning.svg +0 -1
  358. package/dist/collection/components/pds-icon/svg/window-paragraph.svg +0 -1
  359. package/dist/collection/components/pds-icon/svg/world.svg +0 -1
  360. package/dist/collection/components/pds-icon/svg/wrench.svg +0 -1
  361. package/dist/collection/components/pds-icon/test/pds-icon.e2e.js +0 -10
  362. package/dist/collection/components/pds-icon/test/pds-icon.e2e.js.map +0 -1
  363. package/dist/collection/components/pds-icon/test/pds-icon.spec.js +0 -108
  364. package/dist/collection/components/pds-icon/test/pds-icon.spec.js.map +0 -1
  365. package/dist/collection/components/pds-icon/utils.js +0 -95
  366. package/dist/collection/components/pds-icon/utils.js.map +0 -1
  367. package/dist/collection/components/pds-icon/validate.js +0 -46
  368. package/dist/collection/components/pds-icon/validate.js.map +0 -1
  369. package/dist/collection/index.js +0 -2
  370. package/dist/collection/index.js.map +0 -1
  371. package/dist/esm/index-f28202cc.js +0 -1177
  372. package/dist/esm/index-f28202cc.js.map +0 -1
  373. package/dist/esm/index.js +0 -4
  374. package/dist/esm/index.js.map +0 -1
  375. package/dist/esm/loader.js +0 -13
  376. package/dist/esm/loader.js.map +0 -1
  377. package/dist/esm/pds-icon.entry.js.map +0 -1
  378. package/dist/esm/pds-icons.js +0 -22
  379. package/dist/esm/pds-icons.js.map +0 -1
  380. package/dist/esm/utils-6c036ebc.js.map +0 -1
  381. package/dist/index.cjs.js +0 -1
  382. package/dist/index.js +0 -1
  383. package/dist/loader/cdn.js +0 -1
  384. package/dist/loader/index.cjs.js +0 -1
  385. package/dist/loader/index.d.ts +0 -21
  386. package/dist/loader/index.es2017.js +0 -1
  387. package/dist/loader/index.js +0 -2
  388. package/dist/loader/package.json +0 -11
  389. package/dist/pds-icons/p-152ef3bc.js +0 -3
  390. package/dist/pds-icons/p-152ef3bc.js.map +0 -1
  391. package/dist/pds-icons/p-20b3c799.entry.js +0 -2
  392. package/dist/pds-icons/p-20b3c799.entry.js.map +0 -1
  393. package/dist/pds-icons/p-e1255160.js +0 -2
  394. package/dist/pds-icons/p-e1255160.js.map +0 -1
  395. package/dist/pds-icons/p-fb6974fd.js +0 -2
  396. package/dist/pds-icons/p-fb6974fd.js.map +0 -1
  397. package/dist/pds-icons/svg/access-key.svg +0 -1
  398. package/dist/pds-icons/svg/add-circle.svg +0 -1
  399. package/dist/pds-icons/svg/add-image.svg +0 -1
  400. package/dist/pds-icons/svg/add-small.svg +0 -1
  401. package/dist/pds-icons/svg/add-square.svg +0 -1
  402. package/dist/pds-icons/svg/add.svg +0 -1
  403. package/dist/pds-icons/svg/advanced.svg +0 -1
  404. package/dist/pds-icons/svg/ai-sparkle.svg +0 -1
  405. package/dist/pds-icons/svg/ai-writer-filled.svg +0 -1
  406. package/dist/pds-icons/svg/ai-writer.svg +0 -1
  407. package/dist/pds-icons/svg/align-center.svg +0 -1
  408. package/dist/pds-icons/svg/align-justify.svg +0 -1
  409. package/dist/pds-icons/svg/align-left.svg +0 -1
  410. package/dist/pds-icons/svg/align-right.svg +0 -1
  411. package/dist/pds-icons/svg/app-store.svg +0 -1
  412. package/dist/pds-icons/svg/archive.svg +0 -1
  413. package/dist/pds-icons/svg/arrow-corner.svg +0 -1
  414. package/dist/pds-icons/svg/arrow-down.svg +0 -1
  415. package/dist/pds-icons/svg/arrow-left.svg +0 -1
  416. package/dist/pds-icons/svg/arrow-right.svg +0 -1
  417. package/dist/pds-icons/svg/arrow-up.svg +0 -1
  418. package/dist/pds-icons/svg/assessment.svg +0 -1
  419. package/dist/pds-icons/svg/at-sign.svg +0 -1
  420. package/dist/pds-icons/svg/attach.svg +0 -1
  421. package/dist/pds-icons/svg/automations.svg +0 -1
  422. package/dist/pds-icons/svg/ban.svg +0 -1
  423. package/dist/pds-icons/svg/bank.svg +0 -1
  424. package/dist/pds-icons/svg/bell.svg +0 -1
  425. package/dist/pds-icons/svg/block.svg +0 -1
  426. package/dist/pds-icons/svg/blog-filled.svg +0 -1
  427. package/dist/pds-icons/svg/blog.svg +0 -1
  428. package/dist/pds-icons/svg/bold.svg +0 -1
  429. package/dist/pds-icons/svg/broadcast.svg +0 -1
  430. package/dist/pds-icons/svg/bulb.svg +0 -1
  431. package/dist/pds-icons/svg/button.svg +0 -1
  432. package/dist/pds-icons/svg/calendar-date.svg +0 -1
  433. package/dist/pds-icons/svg/calendar-schedule.svg +0 -1
  434. package/dist/pds-icons/svg/calendar-simple.svg +0 -1
  435. package/dist/pds-icons/svg/card-amex.svg +0 -1
  436. package/dist/pds-icons/svg/card-android.svg +0 -1
  437. package/dist/pds-icons/svg/card-apple.svg +0 -1
  438. package/dist/pds-icons/svg/card-diners-club.svg +0 -1
  439. package/dist/pds-icons/svg/card-discover.svg +0 -1
  440. package/dist/pds-icons/svg/card-generic.svg +0 -1
  441. package/dist/pds-icons/svg/card-gpay.svg +0 -1
  442. package/dist/pds-icons/svg/card-mastercard.svg +0 -1
  443. package/dist/pds-icons/svg/card-paypal.svg +0 -1
  444. package/dist/pds-icons/svg/card-stripe.svg +0 -1
  445. package/dist/pds-icons/svg/card-update.svg +0 -1
  446. package/dist/pds-icons/svg/card-visa.svg +0 -1
  447. package/dist/pds-icons/svg/caret-down.svg +0 -1
  448. package/dist/pds-icons/svg/caret-left.svg +0 -1
  449. package/dist/pds-icons/svg/caret-right.svg +0 -1
  450. package/dist/pds-icons/svg/caret-up.svg +0 -1
  451. package/dist/pds-icons/svg/cart-add.svg +0 -1
  452. package/dist/pds-icons/svg/cart.svg +0 -1
  453. package/dist/pds-icons/svg/certificate.svg +0 -1
  454. package/dist/pds-icons/svg/chart-filled.svg +0 -1
  455. package/dist/pds-icons/svg/chart.svg +0 -1
  456. package/dist/pds-icons/svg/check-circle-filled.svg +0 -1
  457. package/dist/pds-icons/svg/check-circle.svg +0 -1
  458. package/dist/pds-icons/svg/check.svg +0 -1
  459. package/dist/pds-icons/svg/circle-1.svg +0 -1
  460. package/dist/pds-icons/svg/circle-2.svg +0 -1
  461. package/dist/pds-icons/svg/circle-3.svg +0 -1
  462. package/dist/pds-icons/svg/circle-4.svg +0 -1
  463. package/dist/pds-icons/svg/circle-5.svg +0 -1
  464. package/dist/pds-icons/svg/circle-6.svg +0 -1
  465. package/dist/pds-icons/svg/circle-7.svg +0 -1
  466. package/dist/pds-icons/svg/circle-8.svg +0 -1
  467. package/dist/pds-icons/svg/circle-9.svg +0 -1
  468. package/dist/pds-icons/svg/circle-a.svg +0 -1
  469. package/dist/pds-icons/svg/circle-b.svg +0 -1
  470. package/dist/pds-icons/svg/circle-dashed.svg +0 -1
  471. package/dist/pds-icons/svg/clock.svg +0 -1
  472. package/dist/pds-icons/svg/closed-captions.svg +0 -1
  473. package/dist/pds-icons/svg/cloud-upload.svg +0 -1
  474. package/dist/pds-icons/svg/code-block.svg +0 -1
  475. package/dist/pds-icons/svg/code.svg +0 -1
  476. package/dist/pds-icons/svg/color.svg +0 -1
  477. package/dist/pds-icons/svg/columns.svg +0 -1
  478. package/dist/pds-icons/svg/comment-no.svg +0 -1
  479. package/dist/pds-icons/svg/comment.svg +0 -1
  480. package/dist/pds-icons/svg/connect.svg +0 -1
  481. package/dist/pds-icons/svg/contact.svg +0 -1
  482. package/dist/pds-icons/svg/conversation.svg +0 -1
  483. package/dist/pds-icons/svg/copy.svg +0 -1
  484. package/dist/pds-icons/svg/coupon.svg +0 -1
  485. package/dist/pds-icons/svg/course-filled.svg +0 -1
  486. package/dist/pds-icons/svg/course.svg +0 -1
  487. package/dist/pds-icons/svg/creator-studio-filled.svg +0 -1
  488. package/dist/pds-icons/svg/creator-studio.svg +0 -1
  489. package/dist/pds-icons/svg/cursor-pointer.svg +0 -1
  490. package/dist/pds-icons/svg/cursor.svg +0 -1
  491. package/dist/pds-icons/svg/custom-field.svg +0 -1
  492. package/dist/pds-icons/svg/customize.svg +0 -1
  493. package/dist/pds-icons/svg/danger-filled.svg +0 -1
  494. package/dist/pds-icons/svg/danger.svg +0 -1
  495. package/dist/pds-icons/svg/delete-circle.svg +0 -1
  496. package/dist/pds-icons/svg/delete-key.svg +0 -1
  497. package/dist/pds-icons/svg/delete-x.svg +0 -1
  498. package/dist/pds-icons/svg/dollar.svg +0 -1
  499. package/dist/pds-icons/svg/dot-menu-horizontal.svg +0 -1
  500. package/dist/pds-icons/svg/down-small.svg +0 -1
  501. package/dist/pds-icons/svg/download.svg +0 -1
  502. package/dist/pds-icons/svg/downsell.svg +0 -1
  503. package/dist/pds-icons/svg/draft.svg +0 -1
  504. package/dist/pds-icons/svg/drawer-collapse.svg +0 -1
  505. package/dist/pds-icons/svg/drawer-expand.svg +0 -1
  506. package/dist/pds-icons/svg/drop.svg +0 -1
  507. package/dist/pds-icons/svg/duplicate.svg +0 -1
  508. package/dist/pds-icons/svg/editor-filled.svg +0 -1
  509. package/dist/pds-icons/svg/editor.svg +0 -1
  510. package/dist/pds-icons/svg/email-activity.svg +0 -1
  511. package/dist/pds-icons/svg/emoji.svg +0 -1
  512. package/dist/pds-icons/svg/enlarge-vertical.svg +0 -1
  513. package/dist/pds-icons/svg/enlarge.svg +0 -1
  514. package/dist/pds-icons/svg/expand.svg +0 -1
  515. package/dist/pds-icons/svg/favorite.svg +0 -1
  516. package/dist/pds-icons/svg/feedback.svg +0 -1
  517. package/dist/pds-icons/svg/file-02.svg +0 -1
  518. package/dist/pds-icons/svg/file-money.svg +0 -1
  519. package/dist/pds-icons/svg/file.svg +0 -1
  520. package/dist/pds-icons/svg/filter.svg +0 -1
  521. package/dist/pds-icons/svg/flag.svg +0 -1
  522. package/dist/pds-icons/svg/flash-filled.svg +0 -1
  523. package/dist/pds-icons/svg/flash.svg +0 -1
  524. package/dist/pds-icons/svg/floppy-disk.svg +0 -1
  525. package/dist/pds-icons/svg/folder-group.svg +0 -1
  526. package/dist/pds-icons/svg/folder.svg +0 -1
  527. package/dist/pds-icons/svg/form-field.svg +0 -1
  528. package/dist/pds-icons/svg/form-filled.svg +0 -1
  529. package/dist/pds-icons/svg/form.svg +0 -1
  530. package/dist/pds-icons/svg/fullscreen.svg +0 -1
  531. package/dist/pds-icons/svg/funnel.svg +0 -1
  532. package/dist/pds-icons/svg/gear-filled.svg +0 -1
  533. package/dist/pds-icons/svg/gear.svg +0 -1
  534. package/dist/pds-icons/svg/grant-offer.svg +0 -1
  535. package/dist/pds-icons/svg/handle-2-vertical.svg +0 -1
  536. package/dist/pds-icons/svg/handle-2.svg +0 -1
  537. package/dist/pds-icons/svg/handle.svg +0 -1
  538. package/dist/pds-icons/svg/hashtag.svg +0 -1
  539. package/dist/pds-icons/svg/hd-video.svg +0 -1
  540. package/dist/pds-icons/svg/heading-1.svg +0 -1
  541. package/dist/pds-icons/svg/heading-2.svg +0 -1
  542. package/dist/pds-icons/svg/heading-3.svg +0 -1
  543. package/dist/pds-icons/svg/heading-4.svg +0 -1
  544. package/dist/pds-icons/svg/heading-5.svg +0 -1
  545. package/dist/pds-icons/svg/heading-6.svg +0 -1
  546. package/dist/pds-icons/svg/heading-large.svg +0 -1
  547. package/dist/pds-icons/svg/heading-small.svg +0 -1
  548. package/dist/pds-icons/svg/headset.svg +0 -1
  549. package/dist/pds-icons/svg/help-filled.svg +0 -1
  550. package/dist/pds-icons/svg/help.svg +0 -1
  551. package/dist/pds-icons/svg/home-alt.svg +0 -1
  552. package/dist/pds-icons/svg/home-filled.svg +0 -1
  553. package/dist/pds-icons/svg/home.svg +0 -1
  554. package/dist/pds-icons/svg/horizontal-line.svg +0 -1
  555. package/dist/pds-icons/svg/image.svg +0 -1
  556. package/dist/pds-icons/svg/info-circle-filled.svg +0 -1
  557. package/dist/pds-icons/svg/info-circle.svg +0 -1
  558. package/dist/pds-icons/svg/ios-battery.svg +0 -1
  559. package/dist/pds-icons/svg/ios-data.svg +0 -1
  560. package/dist/pds-icons/svg/ios-wifi.svg +0 -1
  561. package/dist/pds-icons/svg/italic.svg +0 -1
  562. package/dist/pds-icons/svg/kajabi-filled.svg +0 -1
  563. package/dist/pds-icons/svg/kajabi.svg +0 -1
  564. package/dist/pds-icons/svg/klarna.svg +0 -1
  565. package/dist/pds-icons/svg/lab.svg +0 -1
  566. package/dist/pds-icons/svg/launch.svg +0 -1
  567. package/dist/pds-icons/svg/layout-grid.svg +0 -1
  568. package/dist/pds-icons/svg/layout-list.svg +0 -1
  569. package/dist/pds-icons/svg/left-small.svg +0 -1
  570. package/dist/pds-icons/svg/list-bullet.svg +0 -1
  571. package/dist/pds-icons/svg/list-details.svg +0 -1
  572. package/dist/pds-icons/svg/list-numbers.svg +0 -1
  573. package/dist/pds-icons/svg/location.svg +0 -1
  574. package/dist/pds-icons/svg/lock-alt.svg +0 -1
  575. package/dist/pds-icons/svg/lock.svg +0 -1
  576. package/dist/pds-icons/svg/logo-afterpay.svg +0 -1
  577. package/dist/pds-icons/svg/logo-facebook-round.svg +0 -1
  578. package/dist/pds-icons/svg/logo-facebook.svg +0 -1
  579. package/dist/pds-icons/svg/logo-instagram.svg +0 -1
  580. package/dist/pds-icons/svg/logo-linkedin.svg +0 -1
  581. package/dist/pds-icons/svg/logo-tiktok.svg +0 -1
  582. package/dist/pds-icons/svg/logo-twitter-x.svg +0 -1
  583. package/dist/pds-icons/svg/logo-twitter.svg +0 -1
  584. package/dist/pds-icons/svg/logo-youtube.svg +0 -1
  585. package/dist/pds-icons/svg/loop.svg +0 -1
  586. package/dist/pds-icons/svg/mail-filled.svg +0 -1
  587. package/dist/pds-icons/svg/mail-open.svg +0 -1
  588. package/dist/pds-icons/svg/mail.svg +0 -1
  589. package/dist/pds-icons/svg/map.svg +0 -1
  590. package/dist/pds-icons/svg/mapped.svg +0 -1
  591. package/dist/pds-icons/svg/margin-left.svg +0 -1
  592. package/dist/pds-icons/svg/margin-right.svg +0 -1
  593. package/dist/pds-icons/svg/marker-filled.svg +0 -1
  594. package/dist/pds-icons/svg/marker.svg +0 -1
  595. package/dist/pds-icons/svg/megaphone-filled.svg +0 -1
  596. package/dist/pds-icons/svg/megaphone.svg +0 -1
  597. package/dist/pds-icons/svg/menu-alt.svg +0 -1
  598. package/dist/pds-icons/svg/menu-bordered.svg +0 -1
  599. package/dist/pds-icons/svg/menu.svg +0 -1
  600. package/dist/pds-icons/svg/merge.svg +0 -1
  601. package/dist/pds-icons/svg/microphone-off.svg +0 -1
  602. package/dist/pds-icons/svg/microphone.svg +0 -1
  603. package/dist/pds-icons/svg/monitor-filled.svg +0 -1
  604. package/dist/pds-icons/svg/monitor.svg +0 -1
  605. package/dist/pds-icons/svg/more-menu-filled.svg +0 -1
  606. package/dist/pds-icons/svg/more-menu.svg +0 -1
  607. package/dist/pds-icons/svg/move-left.svg +0 -1
  608. package/dist/pds-icons/svg/move-right.svg +0 -1
  609. package/dist/pds-icons/svg/multi-pay.svg +0 -1
  610. package/dist/pds-icons/svg/newsletter-2.svg +0 -1
  611. package/dist/pds-icons/svg/newsletter.svg +0 -1
  612. package/dist/pds-icons/svg/one-off-session.svg +0 -1
  613. package/dist/pds-icons/svg/one-time.svg +0 -1
  614. package/dist/pds-icons/svg/packages.svg +0 -1
  615. package/dist/pds-icons/svg/pause-circle.svg +0 -1
  616. package/dist/pds-icons/svg/pause.svg +0 -1
  617. package/dist/pds-icons/svg/payout.svg +0 -1
  618. package/dist/pds-icons/svg/pen.svg +0 -1
  619. package/dist/pds-icons/svg/phone-portrait.svg +0 -1
  620. package/dist/pds-icons/svg/phone-toolbar-filled.svg +0 -1
  621. package/dist/pds-icons/svg/phone-toolbar.svg +0 -1
  622. package/dist/pds-icons/svg/play-circle.svg +0 -1
  623. package/dist/pds-icons/svg/play-outline.svg +0 -1
  624. package/dist/pds-icons/svg/play-store.svg +0 -1
  625. package/dist/pds-icons/svg/play.svg +0 -1
  626. package/dist/pds-icons/svg/plug.svg +0 -1
  627. package/dist/pds-icons/svg/premium.svg +0 -1
  628. package/dist/pds-icons/svg/present.svg +0 -1
  629. package/dist/pds-icons/svg/preview-off.svg +0 -1
  630. package/dist/pds-icons/svg/preview-on.svg +0 -1
  631. package/dist/pds-icons/svg/product-filled.svg +0 -1
  632. package/dist/pds-icons/svg/product.svg +0 -1
  633. package/dist/pds-icons/svg/question-circle.svg +0 -1
  634. package/dist/pds-icons/svg/quote.svg +0 -1
  635. package/dist/pds-icons/svg/redo.svg +0 -1
  636. package/dist/pds-icons/svg/refresh.svg +0 -1
  637. package/dist/pds-icons/svg/remove-circle.svg +0 -1
  638. package/dist/pds-icons/svg/remove.svg +0 -1
  639. package/dist/pds-icons/svg/rename.svg +0 -1
  640. package/dist/pds-icons/svg/reset-password.svg +0 -1
  641. package/dist/pds-icons/svg/restore.svg +0 -1
  642. package/dist/pds-icons/svg/right-small.svg +0 -1
  643. package/dist/pds-icons/svg/rocket-filled.svg +0 -1
  644. package/dist/pds-icons/svg/rocket.svg +0 -1
  645. package/dist/pds-icons/svg/round-dollar.svg +0 -1
  646. package/dist/pds-icons/svg/rows.svg +0 -1
  647. package/dist/pds-icons/svg/scissor.svg +0 -1
  648. package/dist/pds-icons/svg/screen-share-off.svg +0 -1
  649. package/dist/pds-icons/svg/screen-share-on.svg +0 -1
  650. package/dist/pds-icons/svg/search-small.svg +0 -1
  651. package/dist/pds-icons/svg/search.svg +0 -1
  652. package/dist/pds-icons/svg/send-message.svg +0 -1
  653. package/dist/pds-icons/svg/sequences.svg +0 -1
  654. package/dist/pds-icons/svg/share.svg +0 -1
  655. package/dist/pds-icons/svg/skipped.svg +0 -1
  656. package/dist/pds-icons/svg/slash-divider.svg +0 -1
  657. package/dist/pds-icons/svg/speaker.svg +0 -1
  658. package/dist/pds-icons/svg/stack.svg +0 -1
  659. package/dist/pds-icons/svg/star.svg +0 -1
  660. package/dist/pds-icons/svg/stop.svg +0 -1
  661. package/dist/pds-icons/svg/stopwatch.svg +0 -1
  662. package/dist/pds-icons/svg/strikethrough.svg +0 -1
  663. package/dist/pds-icons/svg/subscript.svg +0 -1
  664. package/dist/pds-icons/svg/subscriptions.svg +0 -1
  665. package/dist/pds-icons/svg/super-admin.svg +0 -1
  666. package/dist/pds-icons/svg/superscript.svg +0 -1
  667. package/dist/pds-icons/svg/sync.svg +0 -1
  668. package/dist/pds-icons/svg/tablet-landscape.svg +0 -1
  669. package/dist/pds-icons/svg/tablet-portrait.svg +0 -1
  670. package/dist/pds-icons/svg/tag-filled.svg +0 -1
  671. package/dist/pds-icons/svg/tag.svg +0 -1
  672. package/dist/pds-icons/svg/text-styles.svg +0 -1
  673. package/dist/pds-icons/svg/theme-store-filled.svg +0 -1
  674. package/dist/pds-icons/svg/theme-store.svg +0 -1
  675. package/dist/pds-icons/svg/thumb-down-filled.svg +0 -1
  676. package/dist/pds-icons/svg/thumb-down.svg +0 -1
  677. package/dist/pds-icons/svg/thumb-up-filled.svg +0 -1
  678. package/dist/pds-icons/svg/thumb-up.svg +0 -1
  679. package/dist/pds-icons/svg/trash.svg +0 -1
  680. package/dist/pds-icons/svg/trophy-filled.svg +0 -1
  681. package/dist/pds-icons/svg/trophy.svg +0 -1
  682. package/dist/pds-icons/svg/underline.svg +0 -1
  683. package/dist/pds-icons/svg/undo.svg +0 -1
  684. package/dist/pds-icons/svg/unlock.svg +0 -1
  685. package/dist/pds-icons/svg/unmapped.svg +0 -1
  686. package/dist/pds-icons/svg/up-small.svg +0 -1
  687. package/dist/pds-icons/svg/upload.svg +0 -1
  688. package/dist/pds-icons/svg/url.svg +0 -1
  689. package/dist/pds-icons/svg/user-circle-filled.svg +0 -1
  690. package/dist/pds-icons/svg/user-circle.svg +0 -1
  691. package/dist/pds-icons/svg/user-filled.svg +0 -1
  692. package/dist/pds-icons/svg/user-star-filled.svg +0 -1
  693. package/dist/pds-icons/svg/user-star.svg +0 -1
  694. package/dist/pds-icons/svg/user.svg +0 -1
  695. package/dist/pds-icons/svg/users-alt.svg +0 -1
  696. package/dist/pds-icons/svg/users-filled.svg +0 -1
  697. package/dist/pds-icons/svg/users.svg +0 -1
  698. package/dist/pds-icons/svg/video-off.svg +0 -1
  699. package/dist/pds-icons/svg/video-on.svg +0 -1
  700. package/dist/pds-icons/svg/warning-filled.svg +0 -1
  701. package/dist/pds-icons/svg/warning.svg +0 -1
  702. package/dist/pds-icons/svg/window-paragraph.svg +0 -1
  703. package/dist/pds-icons/svg/world.svg +0 -1
  704. package/dist/pds-icons/svg/wrench.svg +0 -1
  705. package/dist/svg/access-key.svg +0 -1
  706. package/dist/svg/add-circle.svg +0 -1
  707. package/dist/svg/add-image.svg +0 -1
  708. package/dist/svg/add-small.svg +0 -1
  709. package/dist/svg/add-square.svg +0 -1
  710. package/dist/svg/add.svg +0 -1
  711. package/dist/svg/advanced.svg +0 -1
  712. package/dist/svg/ai-sparkle.svg +0 -1
  713. package/dist/svg/ai-writer-filled.svg +0 -1
  714. package/dist/svg/ai-writer.svg +0 -1
  715. package/dist/svg/align-center.svg +0 -1
  716. package/dist/svg/align-justify.svg +0 -1
  717. package/dist/svg/align-left.svg +0 -1
  718. package/dist/svg/align-right.svg +0 -1
  719. package/dist/svg/app-store.svg +0 -1
  720. package/dist/svg/archive.svg +0 -1
  721. package/dist/svg/arrow-corner.svg +0 -1
  722. package/dist/svg/arrow-down.svg +0 -1
  723. package/dist/svg/arrow-left.svg +0 -1
  724. package/dist/svg/arrow-right.svg +0 -1
  725. package/dist/svg/arrow-up.svg +0 -1
  726. package/dist/svg/assessment.svg +0 -1
  727. package/dist/svg/at-sign.svg +0 -1
  728. package/dist/svg/attach.svg +0 -1
  729. package/dist/svg/automations.svg +0 -1
  730. package/dist/svg/ban.svg +0 -1
  731. package/dist/svg/bank.svg +0 -1
  732. package/dist/svg/bell.svg +0 -1
  733. package/dist/svg/block.svg +0 -1
  734. package/dist/svg/blog-filled.svg +0 -1
  735. package/dist/svg/blog.svg +0 -1
  736. package/dist/svg/bold.svg +0 -1
  737. package/dist/svg/broadcast.svg +0 -1
  738. package/dist/svg/bulb.svg +0 -1
  739. package/dist/svg/button.svg +0 -1
  740. package/dist/svg/calendar-date.svg +0 -1
  741. package/dist/svg/calendar-schedule.svg +0 -1
  742. package/dist/svg/calendar-simple.svg +0 -1
  743. package/dist/svg/card-amex.svg +0 -1
  744. package/dist/svg/card-android.svg +0 -1
  745. package/dist/svg/card-apple.svg +0 -1
  746. package/dist/svg/card-diners-club.svg +0 -1
  747. package/dist/svg/card-discover.svg +0 -1
  748. package/dist/svg/card-generic.svg +0 -1
  749. package/dist/svg/card-gpay.svg +0 -1
  750. package/dist/svg/card-mastercard.svg +0 -1
  751. package/dist/svg/card-paypal.svg +0 -1
  752. package/dist/svg/card-stripe.svg +0 -1
  753. package/dist/svg/card-update.svg +0 -1
  754. package/dist/svg/card-visa.svg +0 -1
  755. package/dist/svg/caret-down.svg +0 -1
  756. package/dist/svg/caret-left.svg +0 -1
  757. package/dist/svg/caret-right.svg +0 -1
  758. package/dist/svg/caret-up.svg +0 -1
  759. package/dist/svg/cart-add.svg +0 -1
  760. package/dist/svg/cart.svg +0 -1
  761. package/dist/svg/certificate.svg +0 -1
  762. package/dist/svg/chart-filled.svg +0 -1
  763. package/dist/svg/chart.svg +0 -1
  764. package/dist/svg/check-circle-filled.svg +0 -1
  765. package/dist/svg/check-circle.svg +0 -1
  766. package/dist/svg/check.svg +0 -1
  767. package/dist/svg/circle-1.svg +0 -1
  768. package/dist/svg/circle-2.svg +0 -1
  769. package/dist/svg/circle-3.svg +0 -1
  770. package/dist/svg/circle-4.svg +0 -1
  771. package/dist/svg/circle-5.svg +0 -1
  772. package/dist/svg/circle-6.svg +0 -1
  773. package/dist/svg/circle-7.svg +0 -1
  774. package/dist/svg/circle-8.svg +0 -1
  775. package/dist/svg/circle-9.svg +0 -1
  776. package/dist/svg/circle-a.svg +0 -1
  777. package/dist/svg/circle-b.svg +0 -1
  778. package/dist/svg/circle-dashed.svg +0 -1
  779. package/dist/svg/clock.svg +0 -1
  780. package/dist/svg/closed-captions.svg +0 -1
  781. package/dist/svg/cloud-upload.svg +0 -1
  782. package/dist/svg/code-block.svg +0 -1
  783. package/dist/svg/code.svg +0 -1
  784. package/dist/svg/color.svg +0 -1
  785. package/dist/svg/columns.svg +0 -1
  786. package/dist/svg/comment-no.svg +0 -1
  787. package/dist/svg/comment.svg +0 -1
  788. package/dist/svg/connect.svg +0 -1
  789. package/dist/svg/contact.svg +0 -1
  790. package/dist/svg/conversation.svg +0 -1
  791. package/dist/svg/copy.svg +0 -1
  792. package/dist/svg/coupon.svg +0 -1
  793. package/dist/svg/course-filled.svg +0 -1
  794. package/dist/svg/course.svg +0 -1
  795. package/dist/svg/creator-studio-filled.svg +0 -1
  796. package/dist/svg/creator-studio.svg +0 -1
  797. package/dist/svg/cursor-pointer.svg +0 -1
  798. package/dist/svg/cursor.svg +0 -1
  799. package/dist/svg/custom-field.svg +0 -1
  800. package/dist/svg/customize.svg +0 -1
  801. package/dist/svg/danger-filled.svg +0 -1
  802. package/dist/svg/danger.svg +0 -1
  803. package/dist/svg/delete-circle.svg +0 -1
  804. package/dist/svg/delete-key.svg +0 -1
  805. package/dist/svg/delete-x.svg +0 -1
  806. package/dist/svg/dollar.svg +0 -1
  807. package/dist/svg/dot-menu-horizontal.svg +0 -1
  808. package/dist/svg/down-small.svg +0 -1
  809. package/dist/svg/download.svg +0 -1
  810. package/dist/svg/downsell.svg +0 -1
  811. package/dist/svg/draft.svg +0 -1
  812. package/dist/svg/drawer-collapse.svg +0 -1
  813. package/dist/svg/drawer-expand.svg +0 -1
  814. package/dist/svg/drop.svg +0 -1
  815. package/dist/svg/duplicate.svg +0 -1
  816. package/dist/svg/editor-filled.svg +0 -1
  817. package/dist/svg/editor.svg +0 -1
  818. package/dist/svg/email-activity.svg +0 -1
  819. package/dist/svg/emoji.svg +0 -1
  820. package/dist/svg/enlarge-vertical.svg +0 -1
  821. package/dist/svg/enlarge.svg +0 -1
  822. package/dist/svg/expand.svg +0 -1
  823. package/dist/svg/favorite.svg +0 -1
  824. package/dist/svg/feedback.svg +0 -1
  825. package/dist/svg/file-02.svg +0 -1
  826. package/dist/svg/file-money.svg +0 -1
  827. package/dist/svg/file.svg +0 -1
  828. package/dist/svg/filter.svg +0 -1
  829. package/dist/svg/flag.svg +0 -1
  830. package/dist/svg/flash-filled.svg +0 -1
  831. package/dist/svg/flash.svg +0 -1
  832. package/dist/svg/floppy-disk.svg +0 -1
  833. package/dist/svg/folder-group.svg +0 -1
  834. package/dist/svg/folder.svg +0 -1
  835. package/dist/svg/form-field.svg +0 -1
  836. package/dist/svg/form-filled.svg +0 -1
  837. package/dist/svg/form.svg +0 -1
  838. package/dist/svg/fullscreen.svg +0 -1
  839. package/dist/svg/funnel.svg +0 -1
  840. package/dist/svg/gear-filled.svg +0 -1
  841. package/dist/svg/gear.svg +0 -1
  842. package/dist/svg/grant-offer.svg +0 -1
  843. package/dist/svg/handle-2-vertical.svg +0 -1
  844. package/dist/svg/handle-2.svg +0 -1
  845. package/dist/svg/handle.svg +0 -1
  846. package/dist/svg/hashtag.svg +0 -1
  847. package/dist/svg/hd-video.svg +0 -1
  848. package/dist/svg/heading-1.svg +0 -1
  849. package/dist/svg/heading-2.svg +0 -1
  850. package/dist/svg/heading-3.svg +0 -1
  851. package/dist/svg/heading-4.svg +0 -1
  852. package/dist/svg/heading-5.svg +0 -1
  853. package/dist/svg/heading-6.svg +0 -1
  854. package/dist/svg/heading-large.svg +0 -1
  855. package/dist/svg/heading-small.svg +0 -1
  856. package/dist/svg/headset.svg +0 -1
  857. package/dist/svg/help-filled.svg +0 -1
  858. package/dist/svg/help.svg +0 -1
  859. package/dist/svg/home-alt.svg +0 -1
  860. package/dist/svg/home-filled.svg +0 -1
  861. package/dist/svg/home.svg +0 -1
  862. package/dist/svg/horizontal-line.svg +0 -1
  863. package/dist/svg/image.svg +0 -1
  864. package/dist/svg/info-circle-filled.svg +0 -1
  865. package/dist/svg/info-circle.svg +0 -1
  866. package/dist/svg/ios-battery.svg +0 -1
  867. package/dist/svg/ios-data.svg +0 -1
  868. package/dist/svg/ios-wifi.svg +0 -1
  869. package/dist/svg/italic.svg +0 -1
  870. package/dist/svg/kajabi-filled.svg +0 -1
  871. package/dist/svg/kajabi.svg +0 -1
  872. package/dist/svg/klarna.svg +0 -1
  873. package/dist/svg/lab.svg +0 -1
  874. package/dist/svg/launch.svg +0 -1
  875. package/dist/svg/layout-grid.svg +0 -1
  876. package/dist/svg/layout-list.svg +0 -1
  877. package/dist/svg/left-small.svg +0 -1
  878. package/dist/svg/list-bullet.svg +0 -1
  879. package/dist/svg/list-details.svg +0 -1
  880. package/dist/svg/list-numbers.svg +0 -1
  881. package/dist/svg/location.svg +0 -1
  882. package/dist/svg/lock-alt.svg +0 -1
  883. package/dist/svg/lock.svg +0 -1
  884. package/dist/svg/logo-afterpay.svg +0 -1
  885. package/dist/svg/logo-facebook-round.svg +0 -1
  886. package/dist/svg/logo-facebook.svg +0 -1
  887. package/dist/svg/logo-instagram.svg +0 -1
  888. package/dist/svg/logo-linkedin.svg +0 -1
  889. package/dist/svg/logo-tiktok.svg +0 -1
  890. package/dist/svg/logo-twitter-x.svg +0 -1
  891. package/dist/svg/logo-twitter.svg +0 -1
  892. package/dist/svg/logo-youtube.svg +0 -1
  893. package/dist/svg/loop.svg +0 -1
  894. package/dist/svg/mail-filled.svg +0 -1
  895. package/dist/svg/mail-open.svg +0 -1
  896. package/dist/svg/mail.svg +0 -1
  897. package/dist/svg/map.svg +0 -1
  898. package/dist/svg/mapped.svg +0 -1
  899. package/dist/svg/margin-left.svg +0 -1
  900. package/dist/svg/margin-right.svg +0 -1
  901. package/dist/svg/marker-filled.svg +0 -1
  902. package/dist/svg/marker.svg +0 -1
  903. package/dist/svg/megaphone-filled.svg +0 -1
  904. package/dist/svg/megaphone.svg +0 -1
  905. package/dist/svg/menu-alt.svg +0 -1
  906. package/dist/svg/menu-bordered.svg +0 -1
  907. package/dist/svg/menu.svg +0 -1
  908. package/dist/svg/merge.svg +0 -1
  909. package/dist/svg/microphone-off.svg +0 -1
  910. package/dist/svg/microphone.svg +0 -1
  911. package/dist/svg/monitor-filled.svg +0 -1
  912. package/dist/svg/monitor.svg +0 -1
  913. package/dist/svg/more-menu-filled.svg +0 -1
  914. package/dist/svg/more-menu.svg +0 -1
  915. package/dist/svg/move-left.svg +0 -1
  916. package/dist/svg/move-right.svg +0 -1
  917. package/dist/svg/multi-pay.svg +0 -1
  918. package/dist/svg/newsletter-2.svg +0 -1
  919. package/dist/svg/newsletter.svg +0 -1
  920. package/dist/svg/one-off-session.svg +0 -1
  921. package/dist/svg/one-time.svg +0 -1
  922. package/dist/svg/packages.svg +0 -1
  923. package/dist/svg/pause-circle.svg +0 -1
  924. package/dist/svg/pause.svg +0 -1
  925. package/dist/svg/payout.svg +0 -1
  926. package/dist/svg/pen.svg +0 -1
  927. package/dist/svg/phone-portrait.svg +0 -1
  928. package/dist/svg/phone-toolbar-filled.svg +0 -1
  929. package/dist/svg/phone-toolbar.svg +0 -1
  930. package/dist/svg/play-circle.svg +0 -1
  931. package/dist/svg/play-outline.svg +0 -1
  932. package/dist/svg/play-store.svg +0 -1
  933. package/dist/svg/play.svg +0 -1
  934. package/dist/svg/plug.svg +0 -1
  935. package/dist/svg/premium.svg +0 -1
  936. package/dist/svg/present.svg +0 -1
  937. package/dist/svg/preview-off.svg +0 -1
  938. package/dist/svg/preview-on.svg +0 -1
  939. package/dist/svg/product-filled.svg +0 -1
  940. package/dist/svg/product.svg +0 -1
  941. package/dist/svg/question-circle.svg +0 -1
  942. package/dist/svg/quote.svg +0 -1
  943. package/dist/svg/redo.svg +0 -1
  944. package/dist/svg/refresh.svg +0 -1
  945. package/dist/svg/remove-circle.svg +0 -1
  946. package/dist/svg/remove.svg +0 -1
  947. package/dist/svg/rename.svg +0 -1
  948. package/dist/svg/reset-password.svg +0 -1
  949. package/dist/svg/restore.svg +0 -1
  950. package/dist/svg/right-small.svg +0 -1
  951. package/dist/svg/rocket-filled.svg +0 -1
  952. package/dist/svg/rocket.svg +0 -1
  953. package/dist/svg/round-dollar.svg +0 -1
  954. package/dist/svg/rows.svg +0 -1
  955. package/dist/svg/scissor.svg +0 -1
  956. package/dist/svg/screen-share-off.svg +0 -1
  957. package/dist/svg/screen-share-on.svg +0 -1
  958. package/dist/svg/search-small.svg +0 -1
  959. package/dist/svg/search.svg +0 -1
  960. package/dist/svg/send-message.svg +0 -1
  961. package/dist/svg/sequences.svg +0 -1
  962. package/dist/svg/share.svg +0 -1
  963. package/dist/svg/skipped.svg +0 -1
  964. package/dist/svg/slash-divider.svg +0 -1
  965. package/dist/svg/speaker.svg +0 -1
  966. package/dist/svg/stack.svg +0 -1
  967. package/dist/svg/star.svg +0 -1
  968. package/dist/svg/stop.svg +0 -1
  969. package/dist/svg/stopwatch.svg +0 -1
  970. package/dist/svg/strikethrough.svg +0 -1
  971. package/dist/svg/subscript.svg +0 -1
  972. package/dist/svg/subscriptions.svg +0 -1
  973. package/dist/svg/super-admin.svg +0 -1
  974. package/dist/svg/superscript.svg +0 -1
  975. package/dist/svg/sync.svg +0 -1
  976. package/dist/svg/tablet-landscape.svg +0 -1
  977. package/dist/svg/tablet-portrait.svg +0 -1
  978. package/dist/svg/tag-filled.svg +0 -1
  979. package/dist/svg/tag.svg +0 -1
  980. package/dist/svg/text-styles.svg +0 -1
  981. package/dist/svg/theme-store-filled.svg +0 -1
  982. package/dist/svg/theme-store.svg +0 -1
  983. package/dist/svg/thumb-down-filled.svg +0 -1
  984. package/dist/svg/thumb-down.svg +0 -1
  985. package/dist/svg/thumb-up-filled.svg +0 -1
  986. package/dist/svg/thumb-up.svg +0 -1
  987. package/dist/svg/trash.svg +0 -1
  988. package/dist/svg/trophy-filled.svg +0 -1
  989. package/dist/svg/trophy.svg +0 -1
  990. package/dist/svg/underline.svg +0 -1
  991. package/dist/svg/undo.svg +0 -1
  992. package/dist/svg/unlock.svg +0 -1
  993. package/dist/svg/unmapped.svg +0 -1
  994. package/dist/svg/up-small.svg +0 -1
  995. package/dist/svg/upload.svg +0 -1
  996. package/dist/svg/url.svg +0 -1
  997. package/dist/svg/user-circle-filled.svg +0 -1
  998. package/dist/svg/user-circle.svg +0 -1
  999. package/dist/svg/user-filled.svg +0 -1
  1000. package/dist/svg/user-star-filled.svg +0 -1
  1001. package/dist/svg/user-star.svg +0 -1
  1002. package/dist/svg/user.svg +0 -1
  1003. package/dist/svg/users-alt.svg +0 -1
  1004. package/dist/svg/users-filled.svg +0 -1
  1005. package/dist/svg/users.svg +0 -1
  1006. package/dist/svg/video-off.svg +0 -1
  1007. package/dist/svg/video-on.svg +0 -1
  1008. package/dist/svg/warning-filled.svg +0 -1
  1009. package/dist/svg/warning.svg +0 -1
  1010. package/dist/svg/window-paragraph.svg +0 -1
  1011. package/dist/svg/world.svg +0 -1
  1012. package/dist/svg/wrench.svg +0 -1
  1013. /package/dist/{esm → pds-icons}/app-globals-0f993ce5.js +0 -0
  1014. /package/dist/{esm → pds-icons}/app-globals-0f993ce5.js.map +0 -0
@@ -1,211 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-f0b59854.js');
6
- const utils = require('./utils-958540ce.js');
7
-
8
- const validateContent = (svgContent) => {
9
- const div = document.createElement('div');
10
- div.innerHTML = svgContent;
11
- // setup this way to ensure it works on our buddy IE
12
- for (let i = div.childNodes.length - 1; i >= 0; i--) {
13
- if (div.childNodes[i].nodeName.toLowerCase() !== 'svg') {
14
- div.removeChild(div.childNodes[i]);
15
- }
16
- }
17
- // must only have 1 root element
18
- const svgElm = div.firstElementChild;
19
- if (svgElm && svgElm.nodeName.toLowerCase() === 'svg') {
20
- const svgClass = svgElm.getAttribute('class') || '';
21
- svgElm.setAttribute('class', (svgClass + ' s-pds-icon').trim());
22
- // root element must be an svg
23
- // lets double check we've got valid elements
24
- // do not allow scripts
25
- if (isValid(svgElm)) {
26
- return div.innerHTML;
27
- }
28
- }
29
- return '';
30
- };
31
- const isValid = (elm) => {
32
- if (elm.nodeType === 1) {
33
- if (elm.nodeName.toLowerCase() === 'script') {
34
- return false;
35
- }
36
- for (let i = 0; i < elm.attributes.length; i++) {
37
- const name = elm.attributes[i].name;
38
- if (utils.isStr(name) && name.toLowerCase().indexOf('on') === 0) {
39
- return false;
40
- }
41
- }
42
- for (let i = 0; i < elm.childNodes.length; i++) {
43
- if (!isValid(elm.childNodes[i])) {
44
- return false;
45
- }
46
- }
47
- }
48
- return true;
49
- };
50
- const isSvgDataUrl = (url) => url.startsWith('data:image/svg+xml');
51
- const isEncodedDataUrl = (url) => url.indexOf(';utf8,') !== -1;
52
-
53
- const pdsIconContent = new Map();
54
- const requests = new Map(); // eslint-disable-line @typescript-eslint/no-explicit-any
55
- let parser;
56
- const getSvgContent = (url, sanitize = false) => {
57
- let req = requests.get(url);
58
- if (!req) {
59
- if (typeof fetch != 'undefined' && typeof document !== 'undefined') {
60
- if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {
61
- if (!parser) {
62
- parser = new DOMParser();
63
- }
64
- const doc = parser.parseFromString(url, 'text/html');
65
- const svg = doc.querySelector('svg');
66
- if (svg) {
67
- pdsIconContent.set(url, svg.outerHTML);
68
- }
69
- return Promise.resolve();
70
- }
71
- else {
72
- // we don't have a request
73
- req = fetch(url).then((rsp) => {
74
- if (rsp.ok) {
75
- return rsp.text().then((svgContent) => {
76
- if (svgContent && sanitize !== false) {
77
- svgContent = validateContent(svgContent);
78
- }
79
- pdsIconContent.set(url, svgContent || '');
80
- });
81
- }
82
- pdsIconContent.set(url, '');
83
- });
84
- requests.set(url, req);
85
- }
86
- }
87
- else {
88
- pdsIconContent.set(url, '');
89
- return Promise.resolve();
90
- }
91
- }
92
- return req;
93
- };
94
-
95
- 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%}";
96
- const PdsIconStyle0 = pdsIconCss;
97
-
98
- const PdsIcon = class {
99
- constructor(hostRef) {
100
- index.registerInstance(this, hostRef);
101
- this.inheritedAttributes = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
102
- this.hasAriaHidden = () => {
103
- const { el } = this;
104
- return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';
105
- };
106
- this.ariaLabel = undefined;
107
- this.isVisible = false;
108
- this.svgContent = undefined;
109
- this.color = undefined;
110
- this.icon = undefined;
111
- this.name = undefined;
112
- this.size = 'regular';
113
- this.src = undefined;
114
- }
115
- iconSize() {
116
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
117
- const sizes = {
118
- small: '12px',
119
- regular: '16px',
120
- medium: '20px',
121
- large: '24px',
122
- };
123
- if (sizes[this.size]) {
124
- return sizes[this.size];
125
- }
126
- else {
127
- return this.size;
128
- }
129
- }
130
- componentWillLoad() {
131
- this.inheritedAttributes = utils.inheritAttributes(this.el, ['aria-label']);
132
- }
133
- connectedCallback() {
134
- this.waitUntilVisible(this.el, '50px', () => {
135
- this.isVisible = true;
136
- this.loadIcon();
137
- });
138
- }
139
- disconnectedCallback() {
140
- if (this.io) {
141
- this.io.disconnect();
142
- this.io = undefined;
143
- }
144
- }
145
- loadIcon() {
146
- if (this.isVisible) {
147
- const url = utils.getUrl(this);
148
- if (url) {
149
- if (pdsIconContent.has(url)) {
150
- this.svgContent = pdsIconContent.get(url);
151
- }
152
- else {
153
- getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));
154
- }
155
- }
156
- }
157
- const label = utils.getName(this.name, this.icon);
158
- if (label) {
159
- this.ariaLabel = label.replace(/\-/g, ' ');
160
- }
161
- }
162
- render() {
163
- const { ariaLabel, inheritedAttributes } = this;
164
- const style = {
165
- height: this.iconSize(),
166
- width: this.iconSize(),
167
- color: this.color,
168
- };
169
- return (index.h(index.Host, Object.assign({ key: '8b9838e26ed7c79b98edeec06b912db75c420045', "aria-label": ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null, alt: "", 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" }))));
170
- }
171
- /*****
172
- * Private Methods
173
- ****/
174
- waitUntilVisible(el, rootMargin, cb) {
175
- if (typeof window !== 'undefined' && (window).IntersectionObserver) {
176
- const io = (this.io = new (window).IntersectionObserver((data) => {
177
- if (data[0].isIntersecting) {
178
- io.disconnect();
179
- this.io = undefined;
180
- cb();
181
- }
182
- }, { rootMargin }));
183
- io.observe(el);
184
- }
185
- else {
186
- // browser doesn't support IntersectionObserver
187
- // so just fallback to always show it
188
- cb();
189
- }
190
- }
191
- static get assetsDirs() { return ["svg"]; }
192
- get el() { return index.getElement(this); }
193
- static get watchers() { return {
194
- "name": ["loadIcon"],
195
- "src": ["loadIcon"],
196
- "icon": ["loadIcon"]
197
- }; }
198
- };
199
- const createColorClasses = (color) => {
200
- return color
201
- ? {
202
- 'pds-color': true,
203
- [`pds-color-${color}`]: true,
204
- }
205
- : null;
206
- };
207
- PdsIcon.style = PdsIconStyle0;
208
-
209
- exports.pds_icon = PdsIcon;
210
-
211
- //# sourceMappingURL=pds-icon.cjs.entry.js.map
@@ -1 +0,0 @@
1
- {"file":"pds-icon.entry.cjs.js","mappings":";;;;;;;AAEO,MAAM,eAAe,GAAG,CAAC,UAAkB;IAChD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IAC1C,GAAG,CAAC,SAAS,GAAG,UAAU,CAAC;;IAG3B,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;QACnD,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;YACtD,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;SACpC;KACF;;IAGD,MAAM,MAAM,GAAG,GAAG,CAAC,iBAAiB,CAAC;IACrC,IAAI,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;QACrD,MAAM,QAAQ,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QACpD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,QAAQ,GAAG,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;;;;QAKhE,IAAI,OAAO,CAAC,MAAqB,CAAC,EAAE;YAClC,OAAO,GAAG,CAAC,SAAS,CAAC;SACtB;KACF;IACD,OA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B,CAAC,EAAe,EAAE,UAAkB,EAAE,EAAc;QAC1E,IAAuB,OAAO,MAAM,KAAK,WAAW,IAAI,CAAC,MAAM,EAAE,oBAAoB,EAAE;YACrF,MAAM,EAAE,IAAI,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE,oBAAoB,CACrD,CAAC,IAAiC;gBAChC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,cAAc,EAAE;oBAC1B,EAAE,CAAC,UAAU,EAAE,CAAC;oBAChB,IAAI,CAAC,EAAE,GAAG,SAAS,CAAC;oBACpB,EAAE,EAAE,CAAC;iBACN;aACF,EACD,EAAE,UAAU,EAAE,CACf,CAAC,CAAC;YAEH,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC;SAChB;aAAM;;;YAGL,EAAE,EAAE,CAAC;SACN;KACF;;;;;;;;;AASH,MAAM,kBAAkB,GAAG,CAAC,KAAyB;IACnD,OAAO,KAAK;UACT;YACE,WAAW,EAAE,IAAI;YACjB,CAAC,aAAa,KAAK,EAAE,GAAG,IAAI;SAC7B;UACD,IAAI,CAAC;AACT,CAAC,CAAC;;;;;","names":["isStr","inheritAttributes","getUrl","getName","h","Host"],"sources":["src/components/pds-icon/validate.ts","src/components/pds-icon/request.ts","src/components/pds-icon/pds-icon.scss?tag=pds-icon&encapsulation=shadow","src/components/pds-icon/pds-icon.tsx"],"sourcesContent":["import { isStr } from './utils';\n\nexport const validateContent = (svgContent: string) => {\n const div = document.createElement('div');\n div.innerHTML = svgContent;\n\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\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-pds-icon').trim());\n\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 as HTMLElement)) {\n return div.innerHTML;\n }\n }\n return '';\n};\n\nexport const isValid = (elm: HTMLElement) => {\n if (elm.nodeType === 1) {\n if (elm.nodeName.toLowerCase() === 'script') {\n return false;\n }\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\n for (let i = 0; i < elm.childNodes.length; i++) {\n if (!isValid(elm.childNodes[i] as HTMLElement)) {\n return false;\n }\n }\n }\n return true;\n};\n\nexport const isSvgDataUrl = (url: string) => url.startsWith('data:image/svg+xml');\nexport const isEncodedDataUrl = (url: string) => url.indexOf(';utf8,') !== -1;\n","import { isEncodedDataUrl, isSvgDataUrl, validateContent } from './validate';\n\nexport const pdsIconContent = new Map<string, string>();\nconst requests = new Map<string, Promise<any>>(); // eslint-disable-line @typescript-eslint/no-explicit-any\n\nlet parser: DOMParser;\n\nexport const getSvgContent = (url: string, sanitize = false) => {\n let req = requests.get(url);\n\n if(!req) {\n if (typeof fetch != 'undefined' && typeof document !== 'undefined') {\n if (isSvgDataUrl(url) && isEncodedDataUrl(url)) {\n if (!parser) {\n parser = new DOMParser();\n }\n\n const doc = parser.parseFromString(url, 'text/html');\n const svg = doc.querySelector('svg');\n\n if (svg) {\n pdsIconContent.set(url, svg.outerHTML);\n }\n\n return Promise.resolve();\n } else {\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\n requests.set(url, req);\n }\n } else {\n pdsIconContent.set(url, '');\n return Promise.resolve();\n }\n }\n\n return req;\n}\n",":host {\n contain: strict;\n display: inline-block;\n fill: currentColor;\n height: 1em;\n width: 1em;\n\n .pdsicon {\n fill: currentColor;\n }\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}\n","import { Build, Component, Element, Host, Prop, State, Watch, h } from '@stencil/core';\nimport { getSvgContent, pdsIconContent } from './request';\nimport { getName, getUrl, inheritAttributes } from './utils';\n\n@Component({\n tag: 'pds-icon',\n assetsDirs: ['svg'],\n styleUrl: 'pds-icon.scss',\n shadow: true,\n})\nexport class PdsIcon {\n private io?: IntersectionObserver;\n private inheritedAttributes: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\n @Element() el!: HTMLPdsIconElement;\n\n @State() private ariaLabel?: string;\n @State() private isVisible = false;\n @State() private svgContent?: string;\n\n /**\n *\n * The color of the icon\n *\n */\n @Prop() color?: string;\n\n /**\n * This a combination of both `name` and `src`. If a `src` url is detected\n * it will set the `src` property. Otherwise it assumes it's a built-in named\n * SVG and set the `name` property.\n */\n @Prop() icon?: any;\n\n /**\n * The name of the icon to use from\n * the built-in set.\n */\n @Prop({ reflect: true }) name?: string;\n\n /**\n * The size of the icon. This can be\n * 'small', 'regular', 'medium', large, or a\n * custom value (40px, 1rem, etc)\n *\n */\n @Prop({ reflect: true }) size?:\n | 'small' // 12px\n | 'regular' // 16px\n | 'medium' // 20px\n | 'large' // 24px\n | 'auto'\n | string = 'regular'\n\n /**\n *\n * Specifies the exact `src` of an SVG file to use.\n */\n @Prop() src?: string;\n\n private iconSize() {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const sizes: { [key: string]: any } = {\n small: '12px',\n regular: '16px',\n medium: '20px',\n large: '24px',\n }\n\n if (sizes[this.size]) {\n return sizes[this.size];\n } else {\n return this.size;\n }\n }\n componentWillLoad() {\n this.inheritedAttributes = inheritAttributes(this.el, ['aria-label']);\n }\n\n connectedCallback() {\n this.waitUntilVisible(this.el, '50px', () => {\n this.isVisible = true;\n this.loadIcon();\n })\n }\n\n disconnectedCallback() {\n if (this.io) {\n this.io.disconnect();\n this.io = undefined;\n }\n }\n\n @Watch('name')\n @Watch('src')\n @Watch('icon')\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 } else {\n getSvgContent(url).then(() => (this.svgContent = pdsIconContent.get(url)));\n }\n }\n }\n\n const label = getName(this.name, this.icon);\n\n if (label) {\n this.ariaLabel = label.replace(/\\-/g, ' ');\n }\n }\n\n render() {\n const { ariaLabel, inheritedAttributes } = this;\n\n const style = {\n height: this.iconSize(),\n width: this.iconSize(),\n color: this.color,\n }\n\n return (\n\n <Host\n aria-label={ariaLabel !== undefined && !this.hasAriaHidden() ? ariaLabel : null }\n alt=\"\"\n role=\"img\"\n style={style}\n class={{\n ...createColorClasses(this.color),\n }}\n {...inheritedAttributes}\n >\n {Build.isBrowser && this.svgContent ? (\n <div class=\"icon-inner\" innerHTML={this.svgContent}></div>\n ) : (\n <div class=\"icon-inner\"></div>\n )}\n </Host>\n )\n }\n\n /*****\n * Private Methods\n ****/\n\n private waitUntilVisible(el: HTMLElement, rootMargin: string, cb: () => void) {\n if (Build.isBrowser && typeof window !== 'undefined' && (window).IntersectionObserver) {\n const io = (this.io = new (window).IntersectionObserver(\n (data: IntersectionObserverEntry[]) => {\n if (data[0].isIntersecting) {\n io.disconnect();\n this.io = undefined;\n cb();\n }\n },\n { rootMargin },\n ));\n\n io.observe(el);\n } else {\n // browser doesn't support IntersectionObserver\n // so just fallback to always show it\n cb();\n }\n }\n\n private hasAriaHidden = () => {\n const { el } = this;\n\n return el.hasAttribute('aria-hidden') && el.getAttribute('aria-hidden') === 'true';\n }\n}\n\nconst createColorClasses = (color: string | undefined) => {\n return color\n ? {\n 'pds-color': true,\n [`pds-color-${color}`]: true,\n }\n : null;\n };\n"],"version":3}
@@ -1,27 +0,0 @@
1
- 'use strict';
2
-
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- const index = require('./index-f0b59854.js');
6
- const appGlobals = require('./app-globals-3a1e7e63.js');
7
-
8
- /*
9
- Stencil Client Patch Browser v4.18.3 | MIT Licensed | https://stenciljs.com
10
- */
11
- var patchBrowser = () => {
12
- const importMeta = (typeof document === 'undefined' ? new (require('u' + 'rl').URL)('file:' + __filename).href : (document.currentScript && document.currentScript.src || new URL('pds-icons.cjs.js', document.baseURI).href));
13
- const opts = {};
14
- if (importMeta !== "") {
15
- opts.resourcesUrl = new URL(".", importMeta).href;
16
- }
17
- return index.promiseResolve(opts);
18
- };
19
-
20
- patchBrowser().then(async (options) => {
21
- await appGlobals.globalScripts();
22
- return index.bootstrapLazy([["pds-icon.cjs",[[1,"pds-icon",{"color":[1],"icon":[8],"name":[513],"size":[513],"src":[1],"ariaLabel":[32],"isVisible":[32],"svgContent":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"]}]]]], options);
23
- });
24
-
25
- exports.setNonce = index.setNonce;
26
-
27
- //# sourceMappingURL=pds-icons.cjs.js.map
@@ -1 +0,0 @@
1
- {"file":"pds-icons.cjs.js","mappings":";;;;;;;AAAA;AACA;AACA;AAKA,IAAI,YAAY,GAAG,MAAM;AAUzB,EAAE,MAAM,UAAU,GAAG,2MAAe,CAAC;AACrC,EAAE,MAAM,IAAI,GAAiE,EAAE,CAAC;AAChF,EAAE,IAAI,UAAU,KAAK,EAAE,EAAE;AACzB,IAAI,IAAI,CAAC,YAAY,GAAG,IAAI,GAAG,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,IAAI,CAAC;AACtD,GAAG;AACH,EAAE,OAAOA,oBAAc,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;;ACnBD,YAAY,EAAE,CAAC,IAAI,CAAC,OAAO,OAAO,KAAK;AACvC,EAAE,MAAMC,wBAAa,EAAE,CAAC;AACxB,EAAE,OAAOC,mBAAa,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;AAC9D,CAAC,CAAC;;;;","names":["promiseResolve","globalScripts","bootstrapLazy"],"sources":["node_modules/@stencil/core/internal/client/patch-browser.js","@lazy-browser-entrypoint?app-data=conditional"],"sourcesContent":["/*\n Stencil Client Patch Browser v4.18.3 | MIT Licensed | https://stenciljs.com\n */\n\n// src/client/client-patch-browser.ts\nimport { BUILD, NAMESPACE } from \"@stencil/core/internal/app-data\";\nimport { consoleDevInfo, doc, H, promiseResolve } from \"@stencil/core\";\nvar patchBrowser = () => {\n if (BUILD.isDev && !BUILD.isTesting) {\n consoleDevInfo(\"Running in development mode.\");\n }\n if (BUILD.cloneNodeFix) {\n patchCloneNodeFix(H.prototype);\n }\n const scriptElm = BUILD.scriptDataOpts ? Array.from(doc.querySelectorAll(\"script\")).find(\n (s) => new RegExp(`/${NAMESPACE}(\\\\.esm)?\\\\.js($|\\\\?|#)`).test(s.src) || s.getAttribute(\"data-stencil-namespace\") === NAMESPACE\n ) : null;\n const importMeta = import.meta.url;\n const opts = BUILD.scriptDataOpts ? (scriptElm || {})[\"data-opts\"] || {} : {};\n if (importMeta !== \"\") {\n opts.resourcesUrl = new URL(\".\", importMeta).href;\n }\n return promiseResolve(opts);\n};\nvar patchCloneNodeFix = (HTMLElementPrototype) => {\n const nativeCloneNodeFn = HTMLElementPrototype.cloneNode;\n HTMLElementPrototype.cloneNode = function(deep) {\n if (this.nodeName === \"TEMPLATE\") {\n return nativeCloneNodeFn.call(this, deep);\n }\n const clonedNode = nativeCloneNodeFn.call(this, false);\n const srcChildNodes = this.childNodes;\n if (deep) {\n for (let i = 0; i < srcChildNodes.length; i++) {\n if (srcChildNodes[i].nodeType !== 2) {\n clonedNode.appendChild(srcChildNodes[i].cloneNode(true));\n }\n }\n }\n return clonedNode;\n };\n};\nexport {\n patchBrowser\n};\n","export { setNonce } from '@stencil/core';\nimport { bootstrapLazy } from '@stencil/core';\nimport { patchBrowser } from '@stencil/core/internal/client/patch-browser';\nimport { globalScripts } from '@stencil/core/internal/app-globals';\npatchBrowser().then(async (options) => {\n await globalScripts();\n return bootstrapLazy([/*!__STENCIL_LAZY_DATA__*/], options);\n});\n"],"version":3}
@@ -1,140 +0,0 @@
1
- 'use strict';
2
-
3
- require('./index-f0b59854.js');
4
-
5
- let missingAssetPathWarning = false;
6
- /**
7
- *
8
- * Reads the component asset path config from meta tag or a global variable.
9
- * This is a temporary workaround until these issues have been addressed:
10
- *
11
- * https://github.com/ionic-team/stencil/issues/2826/
12
- * https://github.com/ionic-team/stencil/issues/3470
13
- * https://github.com/ionic-team/stencil-ds-output-targets/issues/186
14
- */
15
- const getAssetPath = (path) => {
16
- var _a;
17
- const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;
18
- // Get the asset path from the window object if available
19
- const windowAssetPath = window.__PINE_ASSET_PATH__;
20
- // Set the CDN Asset path using the latest version
21
- const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';
22
- const assetBasePath = metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';
23
- // Display a warning if the assets are fetched from the CDN.
24
- if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
25
- missingAssetPathWarning = true;
26
- console.warn(`
27
- Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs
28
- `);
29
- }
30
- let assetPath = path;
31
- if (path.startsWith('./')) {
32
- assetPath = path.substring(2);
33
- }
34
- if (!assetBasePath.endsWith('/')) {
35
- assetPath = '/' + assetPath;
36
- }
37
- return assetBasePath + assetPath;
38
- };
39
-
40
- let CACHED_MAP;
41
- const addIcons = (icons) => {
42
- const map = getIconMap();
43
- Object.keys(icons).forEach(name => map.set(name, icons[name]));
44
- };
45
- const getIconMap = () => {
46
- if (typeof window === 'undefined') {
47
- return new Map();
48
- }
49
- else {
50
- if (!CACHED_MAP) {
51
- const win = window; // eslint-disable-line @typescript-eslint/no-explicit-any
52
- win.PdsIcons = win.PdsIcons || {};
53
- CACHED_MAP = win.PdsIcons.map = win.PdsIcons.map || new Map();
54
- }
55
- return CACHED_MAP;
56
- }
57
- };
58
- const getName = (iconName, icon) => {
59
- if (!iconName && icon && !isSrc(icon)) {
60
- iconName = icon;
61
- }
62
- if (isStr(iconName)) {
63
- iconName = toLower(iconName);
64
- }
65
- if (!isStr(iconName) || iconName.trim() === '') {
66
- return null;
67
- }
68
- const invalidChars = iconName.replace(/[a-z]|-|\d/gi, '');
69
- if (invalidChars != '') {
70
- return null;
71
- }
72
- return iconName;
73
- };
74
- const getNamedUrl = (iconName) => {
75
- const url = getIconMap().get(iconName);
76
- if (url) {
77
- return url;
78
- }
79
- return getAssetPath(`svg/${iconName}.svg`);
80
- };
81
- const getSrc = (src) => {
82
- if (isStr(src)) {
83
- src = src.trim();
84
- if (isSrc(src)) {
85
- return src;
86
- }
87
- }
88
- return null;
89
- };
90
- const getUrl = (pdsIcon) => {
91
- let url = getSrc(pdsIcon.src);
92
- if (url) {
93
- return url;
94
- }
95
- url = getName(pdsIcon.name, pdsIcon.icon);
96
- if (url) {
97
- return getNamedUrl(url);
98
- }
99
- if (pdsIcon.icon) {
100
- url = getSrc(pdsIcon.icon);
101
- if (url) {
102
- return url;
103
- }
104
- }
105
- return null;
106
- };
107
- const isSrc = (str) => str.length > 0 && /(\/|\.)/.test(str);
108
- const isStr = (val) => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any
109
- const toLower = (val) => val.toLowerCase();
110
- /**
111
- * Elements inside of web components sometimes need to inherit global attributes
112
- * set on the host. For example, the inner input in `ion-input` should inherit
113
- * the `title` attribute that developers set directly on `ion-input`. This
114
- * helper function should be called in componentWillLoad and assigned to a variable
115
- * that is later used in the render function.
116
- *
117
- * This does not need to be reactive as changing attributes on the host element
118
- * does not trigger a re-render.
119
- */
120
- const inheritAttributes = (el, attributes = []) => {
121
- const attributeObject = {}; // eslint-disable-line @typescript-eslint/no-explicit-any
122
- attributes.forEach(attr => {
123
- if (el.hasAttribute(attr)) {
124
- const value = el.getAttribute(attr);
125
- if (value !== null) {
126
- attributeObject[attr] = el.getAttribute(attr);
127
- }
128
- el.removeAttribute(attr);
129
- }
130
- });
131
- return attributeObject;
132
- };
133
-
134
- exports.addIcons = addIcons;
135
- exports.getName = getName;
136
- exports.getUrl = getUrl;
137
- exports.inheritAttributes = inheritAttributes;
138
- exports.isStr = isStr;
139
-
140
- //# sourceMappingURL=utils-958540ce.js.map
@@ -1 +0,0 @@
1
- {"file":"utils-958540ce.js","mappings":";;;;AAEA,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;;AASO,MAAM,YAAY,GAAG,CAAC,IAAY;;IACvC,MAAM,iBAAiB,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAkB,4BAA4B,CAAC,0CAAE,OAAO,CAAC,aAAa,CAAC;;IAG5H,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;;IAGnD,MAAM,YAAY,GAAG,6DAA6D,CAAC;IAEnF,MAAM,aAAa,GAA0C,iBAAiB,IAAI,eAAe,IAAI,YAAY,IAAI,GAAG,CAAA;;IAGxH,IAAK,aAAa,CAAC,UAAU,CAAC,+BAA+B,CAAC,IAAI,CAAC,uBAAuB,EAAG;QAC3F,uBAAuB,GAAG,IAAI,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC;;KAEZ,CAAC,CAAA;KACH;IAED,IAAI,SAAS,GAAG,IAAI,CAAC;IAErB,IAAK,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG;QAC5B,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;KAC/B;IAED,IAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAG;QAClC,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC;KAC7B;IAED,OAAO,aAAa,GAAG,SAAS,CAA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,GAAG,CAAC,WAAW,EAAE,CAAC;AAE1D;;;;;;;;;;MAUc,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE;IAC3E,MAAM,eAAe,GAAyB,EAAE,CAAC;IAEjD,UAAU,CAAC,OAAO,CAAC,IAAI;QACrB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;YACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;YACpC,IAAI,KAAK,KAAK,IAAI,EAAE;gBAClB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;aAC/C;YACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;SAC1B;KACF,CAAC,CAAC;IAEH,OAAO,eAAe,CAAC;AACzB;;;;;;;;","names":[],"sources":["src/components/pds-icon/assetPath.ts","src/components/pds-icon/utils.ts"],"sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n","import { getAssetPath } from './assetPath';\n\nimport { PdsIcon } from './pds-icon';\n\nlet CACHED_MAP: Map<string, string>;\n\nexport const addIcons = (icons: { [name: string]: string; }) => {\n const map = getIconMap();\n Object.keys(icons).forEach(name => map.set(name, icons[name]));\n}\n\nexport const getIconMap = (): Map<string, string> => {\n if (typeof window === 'undefined') {\n return new Map();\n } else {\n if (!CACHED_MAP) {\n const win = window as any; // 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\n return CACHED_MAP;\n }\n}\n\nexport const getName = (\n iconName: string | undefined,\n icon: string | undefined\n ) => {\n\n if(!iconName && icon && !isSrc(icon)) {\n iconName = icon;\n }\n\n if (isStr(iconName)) {\n iconName = toLower(iconName);\n }\n\n if (!isStr(iconName) || iconName.trim() === '') {\n return null;\n }\n\n const invalidChars = iconName.replace(/[a-z]|-|\\d/gi,'');\n if (invalidChars != '') { return null; }\n\n return iconName;\n}\n\nconst getNamedUrl = (iconName: string) => {\n const url = getIconMap().get(iconName);\n if (url) {\n return url;\n }\n\n return getAssetPath(`svg/${iconName}.svg`);\n};\n\nexport const getSrc = (src: string | undefined) => {\n if (isStr(src)) {\n src = src.trim();\n\n if (isSrc(src)) {\n return src;\n }\n }\n\n return null;\n}\n\nexport const getUrl = (pdsIcon: PdsIcon) => {\n let url = getSrc(pdsIcon.src);\n if (url) {\n return url;\n }\n\n url = getName(pdsIcon.name, pdsIcon.icon);\n if (url) {\n return getNamedUrl(url);\n }\n\n if (pdsIcon.icon) {\n url = getSrc(pdsIcon.icon);\n\n if(url) {\n return url;\n }\n }\n\n return null;\n};\n\n\nexport const isSrc = (str: string) => str.length > 0 && /(\\/|\\.)/.test(str);\nexport const isStr = (val: any): val is string => typeof val === 'string'; // eslint-disable-line @typescript-eslint/no-explicit-any\nexport const toLower = (val: string) => val.toLowerCase();\n\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 */\n export const inheritAttributes = (el: HTMLElement, attributes: string[] = []) => {\n const attributeObject: { [k: string]: any } = {}; // eslint-disable-line @typescript-eslint/no-explicit-any\n\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\n return attributeObject;\n}\n"],"version":3}
@@ -1,12 +0,0 @@
1
- {
2
- "entries": [
3
- "components/pds-icon/pds-icon.js"
4
- ],
5
- "compiler": {
6
- "name": "@stencil/core",
7
- "version": "4.18.3",
8
- "typescriptVersion": "5.4.5"
9
- },
10
- "collections": [],
11
- "bundles": []
12
- }
@@ -1,36 +0,0 @@
1
- import { Build } from "@stencil/core";
2
- let missingAssetPathWarning = false;
3
- /**
4
- *
5
- * Reads the component asset path config from meta tag or a global variable.
6
- * This is a temporary workaround until these issues have been addressed:
7
- *
8
- * https://github.com/ionic-team/stencil/issues/2826/
9
- * https://github.com/ionic-team/stencil/issues/3470
10
- * https://github.com/ionic-team/stencil-ds-output-targets/issues/186
11
- */
12
- export const getAssetPath = (path) => {
13
- var _a;
14
- const metaPineAssetPath = (_a = document.head.querySelector('meta[data-pine-asset-path]')) === null || _a === void 0 ? void 0 : _a.dataset.pineAssetPath;
15
- // Get the asset path from the window object if available
16
- const windowAssetPath = window.__PINE_ASSET_PATH__;
17
- // Set the CDN Asset path using the latest version
18
- const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';
19
- const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/';
20
- // Display a warning if the assets are fetched from the CDN.
21
- if (assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning) {
22
- missingAssetPathWarning = true;
23
- console.warn(`
24
- Fetching Pine asssets from jsDelivr CDN.\n\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\n\nFor more information you read the documentation: \nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs
25
- `);
26
- }
27
- let assetPath = path;
28
- if (path.startsWith('./')) {
29
- assetPath = path.substring(2);
30
- }
31
- if (!assetBasePath.endsWith('/')) {
32
- assetPath = '/' + assetPath;
33
- }
34
- return assetBasePath + assetPath;
35
- };
36
- //# sourceMappingURL=assetPath.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"assetPath.js","sourceRoot":"","sources":["../../../src/components/pds-icon/assetPath.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAEtC,IAAI,uBAAuB,GAAG,KAAK,CAAC;AAQpC;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,EAAE;;IAC3C,MAAM,iBAAiB,GAAG,MAAA,QAAQ,CAAC,IAAI,CAAC,aAAa,CAAkB,4BAA4B,CAAC,0CAAE,OAAO,CAAC,aAAa,CAAC;IAE5H,yDAAyD;IACzD,MAAM,eAAe,GAAG,MAAM,CAAC,mBAAmB,CAAC;IAEnD,kDAAkD;IAClD,MAAM,YAAY,GAAG,6DAA6D,CAAC;IAEnF,MAAM,aAAa,GAAI,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,IAAI,eAAe,IAAI,YAAY,IAAI,GAAG,CAAA;IAExH,4DAA4D;IAC5D,IAAK,aAAa,CAAC,UAAU,CAAC,+BAA+B,CAAC,IAAI,CAAC,uBAAuB,EAAG,CAAC;QAC5F,uBAAuB,GAAG,IAAI,CAAC;QAC/B,OAAO,CAAC,IAAI,CAAC;;KAEZ,CAAC,CAAA;IACJ,CAAC;IAED,IAAI,SAAS,GAAG,IAAI,CAAC;IAErB,IAAK,IAAI,CAAC,UAAU,CAAE,IAAI,CAAC,EAAG,CAAC;QAC7B,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;IAChC,CAAC;IAED,IAAK,CAAC,aAAa,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAG,CAAC;QACnC,SAAS,GAAG,GAAG,GAAG,SAAS,CAAC;IAC9B,CAAC;IAED,OAAO,aAAa,GAAG,SAAS,CAAC;AACnC,CAAC,CAAA","sourcesContent":["import { Build } from '@stencil/core';\n\nlet missingAssetPathWarning = false;\n\ndeclare global {\n interface Window {\n __PINE_ASSET_PATH__?: string\n }\n}\n\n/**\n *\n * Reads the component asset path config from meta tag or a global variable.\n * This is a temporary workaround until these issues have been addressed:\n *\n * https://github.com/ionic-team/stencil/issues/2826/\n * https://github.com/ionic-team/stencil/issues/3470\n * https://github.com/ionic-team/stencil-ds-output-targets/issues/186\n */\nexport const getAssetPath = (path: string) => {\n const metaPineAssetPath = document.head.querySelector<HTMLMetaElement>('meta[data-pine-asset-path]')?.dataset.pineAssetPath;\n\n // Get the asset path from the window object if available\n const windowAssetPath = window.__PINE_ASSET_PATH__;\n\n // Set the CDN Asset path using the latest version\n const cdnAssetPath = 'https://cdn.jsdelivr.net/npm/@pine-ds/icons/dist/pds-icons/';\n\n const assetBasePath = Build.isTesting ? '/dist/pds-icons' : metaPineAssetPath || windowAssetPath || cdnAssetPath || '/'\n\n // Display a warning if the assets are fetched from the CDN.\n if ( assetBasePath.startsWith('https://cdn.jsdelivr.net/npm/') && !missingAssetPathWarning ) {\n missingAssetPathWarning = true;\n console.warn(`\n Fetching Pine asssets from jsDelivr CDN.\\n\\n It's recommended that you bundle Pine Assets with your application and setting the path accordingly.\\n\\nFor more information you read the documentation: \\nhttps://pine-design-system.netlify.app/?path=/docs/resources-assets--docs\n `)\n }\n\n let assetPath = path;\n\n if ( path.startsWith ('./') ) {\n assetPath = path.substring(2);\n }\n\n if ( !assetBasePath.endsWith('/') ) {\n assetPath = '/' + assetPath;\n }\n\n return assetBasePath + assetPath;\n}\n\n\nexport {};\n"]}
@@ -1,22 +0,0 @@
1
- :host {
2
- contain: strict;
3
- display: inline-block;
4
- fill: currentColor;
5
- height: 1em;
6
- width: 1em;
7
- }
8
- :host .pdsicon {
9
- fill: currentColor;
10
- }
11
-
12
- .pds-icon-fill-none {
13
- fill: none;
14
- }
15
-
16
- .icon-inner,
17
- .pds-icon,
18
- svg {
19
- display: block;
20
- height: 100%;
21
- width: 100%;
22
- }