@pine-ds/icons 2.0.2 → 3.0.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 (181) hide show
  1. package/dist/cheatsheet.html +88 -70
  2. package/dist/collection/components/pds-icon/pds-icon.js.map +1 -1
  3. package/dist/collection/components/pds-icon/request.js.map +1 -1
  4. package/dist/collection/components/pds-icon/svg/access-key.svg +1 -1
  5. package/dist/collection/components/pds-icon/svg/align-center.svg +1 -1
  6. package/dist/collection/components/pds-icon/svg/align-left.svg +1 -1
  7. package/dist/collection/components/pds-icon/svg/app-store.svg +1 -1
  8. package/dist/collection/components/pds-icon/svg/arrow-corner.svg +1 -1
  9. package/dist/collection/components/pds-icon/svg/automations.svg +1 -1
  10. package/dist/collection/components/pds-icon/svg/bank.svg +1 -1
  11. package/dist/collection/components/pds-icon/svg/blog-filled.svg +1 -0
  12. package/dist/collection/components/pds-icon/svg/calendar-date.svg +1 -1
  13. package/dist/collection/components/pds-icon/svg/caret-down.svg +1 -1
  14. package/dist/collection/components/pds-icon/svg/cart.svg +1 -1
  15. package/dist/collection/components/pds-icon/svg/certificate.svg +1 -1
  16. package/dist/collection/components/pds-icon/svg/cloud-upload.svg +1 -0
  17. package/dist/collection/components/pds-icon/svg/code.svg +1 -1
  18. package/dist/collection/components/pds-icon/svg/contact.svg +1 -1
  19. package/dist/collection/components/pds-icon/svg/creator-studio-filled.svg +1 -1
  20. package/dist/collection/components/pds-icon/svg/creator-studio.svg +1 -1
  21. package/dist/collection/components/pds-icon/svg/dashboard-filled.svg +1 -1
  22. package/dist/collection/components/pds-icon/svg/dashboard-outline.svg +1 -1
  23. package/dist/collection/components/pds-icon/svg/download.svg +1 -1
  24. package/dist/collection/components/pds-icon/svg/draft.svg +1 -1
  25. package/dist/collection/components/pds-icon/svg/drop.svg +1 -1
  26. package/dist/collection/components/pds-icon/svg/emoji.svg +1 -1
  27. package/dist/collection/components/pds-icon/svg/expand.svg +1 -1
  28. package/dist/collection/components/pds-icon/svg/feedback.svg +1 -1
  29. package/dist/collection/components/pds-icon/svg/flash-filled.svg +1 -0
  30. package/dist/collection/components/pds-icon/svg/flash.svg +1 -0
  31. package/dist/collection/components/pds-icon/svg/form-filled.svg +1 -0
  32. package/dist/collection/components/pds-icon/svg/fullscreen.svg +1 -1
  33. package/dist/collection/components/pds-icon/svg/funnel.svg +1 -1
  34. package/dist/collection/components/pds-icon/svg/hd-video.svg +1 -0
  35. package/dist/collection/components/pds-icon/svg/heading-small.svg +1 -1
  36. package/dist/collection/components/pds-icon/svg/italic.svg +1 -1
  37. package/dist/collection/components/pds-icon/svg/lab.svg +1 -1
  38. package/dist/collection/components/pds-icon/svg/left-small.svg +1 -1
  39. package/dist/collection/components/pds-icon/svg/list-bullet.svg +1 -1
  40. package/dist/collection/components/pds-icon/svg/list-numbers.svg +1 -1
  41. package/dist/collection/components/pds-icon/svg/location.svg +1 -1
  42. package/dist/collection/components/pds-icon/svg/logo-afterpay.svg +1 -1
  43. package/dist/collection/components/pds-icon/svg/loop.svg +1 -1
  44. package/dist/collection/components/pds-icon/svg/mail-filled.svg +1 -0
  45. package/dist/collection/components/pds-icon/svg/map.svg +1 -0
  46. package/dist/collection/components/pds-icon/svg/margin-left.svg +1 -1
  47. package/dist/collection/components/pds-icon/svg/margin-right.svg +1 -1
  48. package/dist/collection/components/pds-icon/svg/marketing-filled.svg +1 -1
  49. package/dist/collection/components/pds-icon/svg/marketing-outline.svg +1 -1
  50. package/dist/collection/components/pds-icon/svg/merge.svg +1 -1
  51. package/dist/collection/components/pds-icon/svg/microphone-off.svg +1 -1
  52. package/dist/collection/components/pds-icon/svg/partners-filled.svg +1 -1
  53. package/dist/collection/components/pds-icon/svg/partners-outline.svg +1 -1
  54. package/dist/collection/components/pds-icon/svg/pause.svg +1 -1
  55. package/dist/collection/components/pds-icon/svg/payout.svg +1 -1
  56. package/dist/collection/components/pds-icon/svg/play-circle.svg +1 -1
  57. package/dist/collection/components/pds-icon/svg/play-store.svg +1 -1
  58. package/dist/collection/components/pds-icon/svg/present.svg +1 -1
  59. package/dist/collection/components/pds-icon/svg/preview-off.svg +1 -1
  60. package/dist/collection/components/pds-icon/svg/products-filled.svg +1 -1
  61. package/dist/collection/components/pds-icon/svg/products-outline.svg +1 -1
  62. package/dist/collection/components/pds-icon/svg/refresh.svg +1 -1
  63. package/dist/collection/components/pds-icon/svg/remove.svg +1 -1
  64. package/dist/collection/components/pds-icon/svg/reset-password.svg +1 -1
  65. package/dist/collection/components/pds-icon/svg/restore.svg +1 -1
  66. package/dist/collection/components/pds-icon/svg/sales-filled.svg +1 -1
  67. package/dist/collection/components/pds-icon/svg/sales-outline.svg +1 -1
  68. package/dist/collection/components/pds-icon/svg/send-message.svg +1 -1
  69. package/dist/collection/components/pds-icon/svg/sequences.svg +1 -1
  70. package/dist/collection/components/pds-icon/svg/subscriptions.svg +1 -1
  71. package/dist/collection/components/pds-icon/svg/super-admin.svg +1 -1
  72. package/dist/collection/components/pds-icon/svg/sync.svg +1 -1
  73. package/dist/collection/components/pds-icon/svg/tablet-landscape.svg +1 -1
  74. package/dist/collection/components/pds-icon/svg/tablet-portrait.svg +1 -1
  75. package/dist/collection/components/pds-icon/svg/unlock.svg +1 -1
  76. package/dist/collection/components/pds-icon/svg/user-filled.svg +1 -1
  77. package/dist/collection/components/pds-icon/svg/users.svg +1 -1
  78. package/dist/collection/components/pds-icon/svg/wrench.svg +1 -0
  79. package/dist/collection/components/pds-icon/test/pds-icon.e2e.js.map +1 -1
  80. package/dist/collection/components/pds-icon/test/pds-icon.spec.js.map +1 -1
  81. package/dist/collection/components/pds-icon/utils.js.map +1 -1
  82. package/dist/collection/components/pds-icon/validate.js.map +1 -1
  83. package/dist/collection/index.js.map +1 -1
  84. package/dist/docs.json +1 -1
  85. package/dist/pds-icons.json +133 -4
  86. package/dist/pds-icons.symbols.svg +76 -67
  87. package/dist/svg/access-key.svg +1 -1
  88. package/dist/svg/align-center.svg +1 -1
  89. package/dist/svg/align-left.svg +1 -1
  90. package/dist/svg/app-store.svg +1 -1
  91. package/dist/svg/arrow-corner.svg +1 -1
  92. package/dist/svg/automations.svg +1 -1
  93. package/dist/svg/bank.svg +1 -1
  94. package/dist/svg/blog-filled.svg +1 -0
  95. package/dist/svg/calendar-date.svg +1 -1
  96. package/dist/svg/caret-down.svg +1 -1
  97. package/dist/svg/cart.svg +1 -1
  98. package/dist/svg/certificate.svg +1 -1
  99. package/dist/svg/cloud-upload.svg +1 -0
  100. package/dist/svg/code.svg +1 -1
  101. package/dist/svg/contact.svg +1 -1
  102. package/dist/svg/creator-studio-filled.svg +1 -1
  103. package/dist/svg/creator-studio.svg +1 -1
  104. package/dist/svg/dashboard-filled.svg +1 -1
  105. package/dist/svg/dashboard-outline.svg +1 -1
  106. package/dist/svg/download.svg +1 -1
  107. package/dist/svg/draft.svg +1 -1
  108. package/dist/svg/drop.svg +1 -1
  109. package/dist/svg/emoji.svg +1 -1
  110. package/dist/svg/expand.svg +1 -1
  111. package/dist/svg/feedback.svg +1 -1
  112. package/dist/svg/flash-filled.svg +1 -0
  113. package/dist/svg/flash.svg +1 -0
  114. package/dist/svg/form-filled.svg +1 -0
  115. package/dist/svg/fullscreen.svg +1 -1
  116. package/dist/svg/funnel.svg +1 -1
  117. package/dist/svg/hd-video.svg +1 -0
  118. package/dist/svg/heading-small.svg +1 -1
  119. package/dist/svg/italic.svg +1 -1
  120. package/dist/svg/lab.svg +1 -1
  121. package/dist/svg/left-small.svg +1 -1
  122. package/dist/svg/list-bullet.svg +1 -1
  123. package/dist/svg/list-numbers.svg +1 -1
  124. package/dist/svg/location.svg +1 -1
  125. package/dist/svg/logo-afterpay.svg +1 -1
  126. package/dist/svg/loop.svg +1 -1
  127. package/dist/svg/mail-filled.svg +1 -0
  128. package/dist/svg/map.svg +1 -0
  129. package/dist/svg/margin-left.svg +1 -1
  130. package/dist/svg/margin-right.svg +1 -1
  131. package/dist/svg/marketing-filled.svg +1 -1
  132. package/dist/svg/marketing-outline.svg +1 -1
  133. package/dist/svg/merge.svg +1 -1
  134. package/dist/svg/microphone-off.svg +1 -1
  135. package/dist/svg/partners-filled.svg +1 -1
  136. package/dist/svg/partners-outline.svg +1 -1
  137. package/dist/svg/pause.svg +1 -1
  138. package/dist/svg/payout.svg +1 -1
  139. package/dist/svg/play-circle.svg +1 -1
  140. package/dist/svg/play-store.svg +1 -1
  141. package/dist/svg/present.svg +1 -1
  142. package/dist/svg/preview-off.svg +1 -1
  143. package/dist/svg/products-filled.svg +1 -1
  144. package/dist/svg/products-outline.svg +1 -1
  145. package/dist/svg/refresh.svg +1 -1
  146. package/dist/svg/remove.svg +1 -1
  147. package/dist/svg/reset-password.svg +1 -1
  148. package/dist/svg/restore.svg +1 -1
  149. package/dist/svg/sales-filled.svg +1 -1
  150. package/dist/svg/sales-outline.svg +1 -1
  151. package/dist/svg/send-message.svg +1 -1
  152. package/dist/svg/sequences.svg +1 -1
  153. package/dist/svg/subscriptions.svg +1 -1
  154. package/dist/svg/super-admin.svg +1 -1
  155. package/dist/svg/sync.svg +1 -1
  156. package/dist/svg/tablet-landscape.svg +1 -1
  157. package/dist/svg/tablet-portrait.svg +1 -1
  158. package/dist/svg/unlock.svg +1 -1
  159. package/dist/svg/user-filled.svg +1 -1
  160. package/dist/svg/users.svg +1 -1
  161. package/dist/svg/wrench.svg +1 -0
  162. package/icons/index.d.ts +10 -1
  163. package/icons/index.js +76 -67
  164. package/icons/index.mjs +76 -67
  165. package/icons/package.json +1 -1
  166. package/package.json +1 -1
  167. package/dist/scripts/collection-copy.js +0 -28
  168. package/dist/scripts/collection-copy.js.map +0 -1
  169. package/dist/scripts/figma_icons/figma-icon-export.js +0 -666
  170. package/dist/scripts/figma_icons/figma-icon-export.js.map +0 -1
  171. package/dist/scripts/figma_icons/types.js +0 -2
  172. package/dist/scripts/figma_icons/types.js.map +0 -1
  173. package/dist/scripts/helpers.js +0 -51
  174. package/dist/scripts/helpers.js.map +0 -1
  175. package/dist/scripts/optimize-svgs.js +0 -352
  176. package/dist/scripts/optimize-svgs.js.map +0 -1
  177. package/dist/types/Users/julian.skinner/kajabi/pine-icons/.stencil/scripts/collection-copy.d.ts +0 -1
  178. package/dist/types/Users/julian.skinner/kajabi/pine-icons/.stencil/scripts/figma_icons/figma-icon-export.d.ts +0 -1
  179. package/dist/types/Users/julian.skinner/kajabi/pine-icons/.stencil/scripts/figma_icons/types.d.ts +0 -112
  180. package/dist/types/Users/julian.skinner/kajabi/pine-icons/.stencil/scripts/helpers.d.ts +0 -55
  181. package/dist/types/Users/julian.skinner/kajabi/pine-icons/.stencil/scripts/optimize-svgs.d.ts +0 -7
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M.667 0A.667.667 0 0 0 0 .667v6c0 .176.07.346.195.471l8 8c.26.26.683.26.943 0l6-6a.667.667 0 0 0 0-.943l-8-8A.667.667 0 0 0 6.667 0h-6Zm4 3.333a1.333 1.333 0 1 0 0 2.667 1.333 1.333 0 0 0 0-2.667Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M.696 0A.696.696 0 0 0 0 .696v6.26c0 .185.073.362.204.492l8.348 8.348a.696.696 0 0 0 .983 0l6.261-6.26a.696.696 0 0 0 0-.984L7.448.204A.696.696 0 0 0 6.957 0H.696ZM4.87 3.478a1.391 1.391 0 1 0 0 2.783 1.391 1.391 0 0 0 0-2.783Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M.667 0A.667.667 0 0 0 0 .667v6c0 .176.07.346.195.471l8 8c.26.26.683.26.943 0l6-6a.667.667 0 0 0 0-.943l-8-8A.667.667 0 0 0 6.667 0h-6Zm.666 6.39V1.334h5.058l7.333 7.334-5.057 5.057L1.333 6.39ZM4 4.668a.667.667 0 1 1 1.333 0 .667.667 0 0 1-1.333 0Zm.667-2a2 2 0 1 0 0 4 2 2 0 0 0 0-4Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M.696 0A.696.696 0 0 0 0 .696v6.26c0 .185.073.362.204.492l8.348 8.348a.696.696 0 0 0 .983 0l6.261-6.26a.696.696 0 0 0 0-.984L7.448.204A.696.696 0 0 0 6.957 0H.696Zm.695 6.668V1.391h5.277l7.652 7.652-5.277 5.277-7.652-7.652ZM4.174 4.87a.696.696 0 1 1 1.391 0 .696.696 0 0 1-1.391 0Zm.696-2.087a2.087 2.087 0 1 0 0 4.174 2.087 2.087 0 0 0 0-4.174Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M14.66 1.96a.791.791 0 0 0-.033-.173c-.006-.02-.013-.04-.026-.067a.558.558 0 0 0-.134-.193.657.657 0 0 0-.433-.187c-.013-.007-.033-.007-.046-.007a.577.577 0 0 0-.214.04L1.108 6.04a.665.665 0 0 0-.073 1.22l5.133 2.567 2.566 5.133c.12.227.347.373.6.373h.04a.657.657 0 0 0 .587-.433l4.666-12.667c.027-.066.034-.14.04-.213 0-.027-.006-.047-.006-.06Zm-3.28 1.713L6.535 8.52 3.008 6.753l8.373-3.08Zm-2.14 9.314L7.48 9.46l4.848-4.847-3.087 8.374Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M14.66 1.96a.797.797 0 0 0-.033-.173c-.006-.02-.013-.04-.026-.067a.558.558 0 0 0-.134-.193.657.657 0 0 0-.433-.187c-.013-.007-.033-.007-.046-.007a.578.578 0 0 0-.214.04L1.107 6.04a.665.665 0 0 0-.073 1.22l5.133 2.567 2.567 5.133c.12.227.347.373.6.373h.04a.657.657 0 0 0 .587-.433l4.666-12.667c.027-.066.034-.14.04-.213 0-.027-.006-.047-.006-.06Zm-3.28 1.713L6.535 8.52 3.007 6.753l8.374-3.08Zm-2.14 9.314L7.48 9.46l4.848-4.847-3.087 8.374Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M4.644.662c0-.366.296-.662.662-.662h5.296a.662.662 0 0 1 0 1.324H5.306a.662.662 0 0 1-.662-.662ZM3.32 2.648a.662.662 0 0 0 0 1.324h9.268a.662.662 0 1 0 0-1.324H3.32Zm-.331 2.318a1.65 1.65 0 0 0-1.154.468c-.31.3-.502.721-.502 1.187v7.724c0 .914.741 1.655 1.656 1.655h9.93c.915 0 1.656-.741 1.656-1.655V6.62c0-.914-.741-1.655-1.655-1.655H2.989Zm-.552 9.379v-7.58l5.146 4.678c.21.191.532.191.742 0l5.146-4.679v7.58a.552.552 0 0 1-.552.553H2.99a.552.552 0 0 1-.552-.552Zm.875-8.276h9.284l-4.642 4.22-4.642-4.22Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M4.69.662c0-.366.296-.662.662-.662h5.296a.662.662 0 0 1 0 1.324H5.352A.662.662 0 0 1 4.69.662ZM3.366 2.648a.662.662 0 0 0 0 1.324h9.268a.662.662 0 0 0 0-1.324H3.366Zm-.332 2.318a1.65 1.65 0 0 0-1.153.468c-.31.3-.502.721-.502 1.187v7.724c0 .914.741 1.655 1.655 1.655h9.931c.915 0 1.656-.741 1.656-1.655V6.62c0-.914-.741-1.655-1.655-1.655H3.034Zm-.551 9.379v-7.58l5.146 4.678c.21.191.532.191.742 0l5.146-4.679v7.58a.552.552 0 0 1-.551.553H3.034a.552.552 0 0 1-.551-.552Zm.875-8.276h9.284L8 10.289l-4.642-4.22Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M10.4 9.249a1.516 1.516 0 0 1-.55 1.222c-.445.337-.982.53-1.54.552v.98h-.655v-.961c-.702 0-1.398-.14-2.046-.411V9.369c.32.153.656.274 1 .363.341.097.691.16 1.045.187V8.436l-.32-.124a3.571 3.571 0 0 1-1.342-.81A1.555 1.555 0 0 1 5.6 6.417a1.414 1.414 0 0 1 .543-1.14c.44-.326.966-.515 1.513-.541v-.734h.655v.713c.682.02 1.353.17 1.98.44l-.45 1.119a5.178 5.178 0 0 0-1.533-.373v1.41c.462.163.907.371 1.327.622.235.146.432.344.579.579.127.224.191.478.186.736ZM7.04 6.418a.452.452 0 0 0 .146.347c.14.118.3.212.471.28V5.92c-.411.06-.617.226-.617.497ZM8.96 9.321a.43.43 0 0 0-.162-.34 2.116 2.116 0 0 0-.488-.287v1.19c.433-.073.65-.26.65-.563Z"/><path fill-rule="evenodd" d="M2.06.096c.366.046.625.379.579.744l-.361 2.87 2.83-.788a.667.667 0 0 1 .357 1.285L1.67 5.264a.667.667 0 0 1-.84-.725L1.316.674a.667.667 0 0 1 .745-.578Z"/><path fill-rule="evenodd" d="M10.342 1.758a6.667 6.667 0 0 0-8.259 3.17A.667.667 0 1 1 .9 4.315a8 8 0 1 1-.9 3.69.667.667 0 1 1 1.333 0 6.667 6.667 0 1 0 9.01-6.246Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M10.4 9.249a1.516 1.516 0 0 1-.55 1.222c-.445.337-.982.53-1.54.552v.98h-.654v-.961c-.703 0-1.399-.14-2.047-.411V9.369c.32.153.656.274 1 .363.341.097.691.16 1.045.187V8.436l-.32-.124a3.571 3.571 0 0 1-1.342-.81A1.555 1.555 0 0 1 5.6 6.417a1.414 1.414 0 0 1 .543-1.14c.44-.326.966-.515 1.513-.541v-.734h.655v.713c.682.02 1.353.17 1.98.44l-.45 1.119a5.179 5.179 0 0 0-1.533-.373v1.41c.462.163.907.371 1.328.622.234.146.431.344.578.579.127.224.191.478.186.736ZM7.04 6.418a.452.452 0 0 0 .146.347c.14.118.3.212.471.28V5.92c-.41.06-.617.226-.617.497Zm1.923 2.903a.43.43 0 0 0-.163-.34 2.115 2.115 0 0 0-.488-.287v1.19c.433-.073.65-.26.65-.563Z"/><path fill-rule="evenodd" d="M2.06.096c.366.046.625.379.579.744l-.361 2.87 2.83-.788a.667.667 0 0 1 .357 1.285L1.67 5.264a.667.667 0 0 1-.84-.725L1.316.674a.667.667 0 0 1 .745-.578Z"/><path fill-rule="evenodd" d="M10.342 1.758a6.667 6.667 0 0 0-8.259 3.17A.667.667 0 1 1 .9 4.315a8 8 0 1 1-.9 3.69.667.667 0 1 1 1.333 0 6.667 6.667 0 1 0 9.01-6.246Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 18 18" class="pdsicon"><path fill-rule="evenodd" d="M9 0C4.05 0 0 4.05 0 9s4.05 9 9 9 9-4.05 9-9-4.05-9-9-9Zm-.375 9.75c-.975 0-1.875.225-2.475.45a.72.72 0 0 0-.525.675V12H8.25c.225 0 .375.15.375.375s-.15.375-.375.375h-3c-.225 0-.375-.15-.375-.375v-1.5c0-.675.375-1.2 1.05-1.425.233-.093.496-.158.787-.23.177-.042.365-.088.563-.145L7.05 8.85c-.375-.525-.6-1.125-.6-1.725V6.75c0-1.275.975-2.25 2.25-2.25s2.25.975 2.25 2.25v.375c0 .6-.225 1.275-.6 1.725-.525.525-1.05.9-1.725.9Zm4.875 3.375c0 .225-.15.375-.375.375h-3c-.225 0-.375-.15-.375-.375V11.25c0-.225.15-.375.375-.375h.375v-.75c0-.6.525-1.125 1.125-1.125s1.125.525 1.125 1.125v.75h.375c.225 0 .375.15.375.375v1.875ZM11.625 9.75c.225 0 .375.15.375.375v.75h-.75v-.75c0-.225.15-.375.375-.375Zm-1.125 3v-1.125h2.25v1.125H10.5Zm-1.875-7.5c.825 0 1.5.675 1.5 1.5v.375c0 .45-.15.9-.45 1.275-.3.375-.675.6-1.05.6s-.75-.225-1.05-.6c-.3-.375-.45-.825-.45-1.275V6.75c0-.825.675-1.5 1.5-1.5Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm-.333 8.667c-.867 0-1.667.2-2.2.4a.64.64 0 0 0-.467.6v1h2.333c.2 0 .334.133.334.333s-.134.333-.334.333H4.667c-.2 0-.334-.133-.334-.333V9.667c0-.6.334-1.067.934-1.267.207-.083.44-.14.7-.204.157-.038.324-.079.5-.13l-.2-.2c-.334-.466-.534-1-.534-1.533V6c0-1.133.867-2 2-2 1.134 0 2 .867 2 2v.333c0 .534-.2 1.134-.533 1.534-.467.466-.933.8-1.533.8Zm4.333 3c0 .2-.133.333-.333.333H9c-.2 0-.333-.133-.333-.333V10c0-.2.133-.333.333-.333h.333V9c0-.533.467-1 1-1 .534 0 1 .467 1 1v.667h.334c.2 0 .333.133.333.333v1.667Zm-1.667-3c.2 0 .334.133.334.333v.667H10V9c0-.2.133-.333.333-.333Zm-1 2.666v-1h2v1h-2ZM7.667 4.667C8.4 4.667 9 5.267 9 6v.333c0 .4-.133.8-.4 1.134C8.333 7.8 8 8 7.667 8c-.334 0-.667-.2-.934-.533a1.81 1.81 0 0 1-.4-1.134V6c0-.733.6-1.333 1.334-1.333Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M14.623.473c.365.05.62.385.57.75l-.532 3.933a.667.667 0 0 1-.75.572l-4-.534a.667.667 0 0 1 .177-1.321l2.567.342A5.926 5.926 0 0 0 8 2C4.702 2 2 4.702 2 8A.667.667 0 1 1 .667 8C.667 3.965 3.965.667 8 .667c2.228 0 4.24.981 5.576 2.567l.297-2.19a.667.667 0 0 1 .75-.571ZM15.333 8A.667.667 0 1 0 14 8c0 3.299-2.701 6-6 6a5.926 5.926 0 0 1-4.655-2.215l2.567.342a.667.667 0 0 0 .176-1.321l-4-.533a.667.667 0 0 0-.749.57l-.533 3.934a.667.667 0 0 0 1.321.18l.297-2.192A7.264 7.264 0 0 0 8 15.333c4.035 0 7.333-3.298 7.333-7.333Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M14.623.473c.365.05.62.385.57.75l-.532 3.933a.667.667 0 0 1-.75.571l-4-.533a.667.667 0 1 1 .177-1.321l2.567.342A5.926 5.926 0 0 0 8 2C4.701 2 2 4.702 2 8A.667.667 0 1 1 .667 8C.667 3.965 3.965.667 8 .667c2.228 0 4.24.981 5.576 2.567l.297-2.19a.667.667 0 0 1 .75-.571ZM15.333 8A.667.667 0 0 0 14 8c0 3.299-2.702 6-6 6a5.926 5.926 0 0 1-4.655-2.215l2.567.342a.667.667 0 0 0 .176-1.321l-4-.533a.667.667 0 0 0-.749.57l-.533 3.934a.667.667 0 0 0 1.321.18l.297-2.192A7.264 7.264 0 0 0 8 15.333c4.035 0 7.333-3.298 7.333-7.333Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M14.667 13.333A.667.667 0 0 1 14 14H2a.667.667 0 0 1-.667-.667V2.667A.667.667 0 0 1 2 2h12a.667.667 0 0 1 .667.667v10.666Zm.747 1.415A2 2 0 0 0 16 13.332V2.667a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v10.666a2 2 0 0 0 2 2h12a2 2 0 0 0 1.414-.585Z"/><path d="M12 8a.667.667 0 1 1 1.333 0A.667.667 0 0 1 12 8Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M14.667 13.333A.667.667 0 0 1 14 14H2a.666.666 0 0 1-.667-.667V2.667A.667.667 0 0 1 2 2h12a.667.667 0 0 1 .667.667v10.666Zm.747 1.415A2 2 0 0 0 16 13.333V2.667a2 2 0 0 0-2-2H2a2 2 0 0 0-2 2v10.666a2 2 0 0 0 2 2h12a2 2 0 0 0 1.414-.585Z"/><path d="M12 8a.667.667 0 1 1 1.333 0A.667.667 0 0 1 12 8Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M2.667 14.667A.667.667 0 0 1 2 14V2a.667.667 0 0 1 .667-.667h10.666A.667.667 0 0 1 14 2v12a.666.666 0 0 1-.667.667H2.667Zm-1.415.747A2 2 0 0 0 2.667 16h10.666a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2.667a2 2 0 0 0-2 2v12a2 2 0 0 0 .585 1.414Z"/><path d="M8 12a.667.667 0 1 1 0 1.333A.667.667 0 0 1 8 12Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M2.667 14.667A.667.667 0 0 1 2 14V2a.667.667 0 0 1 .667-.667h10.666A.667.667 0 0 1 14 2v12a.667.667 0 0 1-.667.667H2.667Zm-1.415.747A2 2 0 0 0 2.667 16h10.666a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2.667a2 2 0 0 0-2 2v12a2 2 0 0 0 .585 1.414Z"/><path d="M8 12a.667.667 0 1 1 0 1.333A.667.667 0 0 1 8 12Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M1.333 7.333c0-.368.299-.666.667-.666h12c.368 0 .666.298.666.666v8A.667.667 0 0 1 14 16H2a.667.667 0 0 1-.667-.667v-8ZM2.667 8v6.667h10.666V8H2.667Z"/><path fill-rule="evenodd" d="M8 10.667A.667.667 0 1 0 8 12a.667.667 0 0 0 0-1.333Zm-2 .666a2 2 0 1 1 4 0 2 2 0 0 1-4 0ZM8.003 0h.07A3.967 3.967 0 0 1 12 4.007a.667.667 0 1 1-1.333-.014 2.634 2.634 0 0 0-2.604-2.66h-.07a2.634 2.634 0 0 0-2.66 2.604v3.396a.667.667 0 1 1-1.333 0V3.927A3.967 3.967 0 0 1 8.003 0Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M8.073 0h-.07A3.967 3.967 0 0 0 4 3.927v2.74H2a.667.667 0 0 0-.667.666v8c0 .368.299.667.667.667h12a.667.667 0 0 0 .667-.667v-8A.667.667 0 0 0 14 6.667H5.333v-2.73a2.634 2.634 0 0 1 2.66-2.604h.07a2.634 2.634 0 0 1 2.604 2.66.667.667 0 0 0 1.333.014A3.967 3.967 0 0 0 8.073 0ZM4.668 8H2.666v6.667h10.667V8H4.668ZM8 10.667A.667.667 0 1 0 8 12a.667.667 0 0 0 0-1.333Zm-2 .666a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 17" class="pdsicon"><path fill-rule="evenodd" d="M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.666.666 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 17" class="pdsicon"><path fill-rule="evenodd" d="M11.667 3.697C11.667 5.687 10.067 8 8 8 5.933 8 4.333 5.687 4.333 3.697a3.667 3.667 0 1 1 7.334 0Zm-8.77 7.2c1-1 2.356-1.562 3.77-1.564h2.666a5.34 5.34 0 0 1 5.334 5.334.667.667 0 0 1-.464.635A22.19 22.19 0 0 1 8 16a22.19 22.19 0 0 1-6.203-.698.667.667 0 0 1-.464-.635 5.34 5.34 0 0 1 1.564-3.77Z"/></svg>
@@ -1 +1 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M15.333 14.667h-2.666c-.4 0-.667-.267-.667-.667s.267-.667.667-.667h2v-2.2l-2.467-1c-.267-.066-.467-.266-.6-.466-.133-.2-.2-.467-.2-.734v-.6a.7.7 0 0 1 .333-.6c.334-.2.534-.4.734-.733.133-.333.2-.667.2-1V4.667c0-.334-.067-.667-.267-1-.2-.334-.4-.534-.733-.734-.6-.333-1.4-.333-2 0-.334.2-.734.067-.934-.266-.2-.334-.066-.734.267-.934 1-.6 2.333-.6 3.333 0 .534.267.934.734 1.2 1.2.334.534.467 1.134.467 1.734V6c0 .6-.133 1.133-.467 1.667-.2.4-.533.733-.866 1v.2l2.466 1c.267.066.467.266.6.466.134.2.2.467.2.734V14c.067.333-.2.667-.6.667ZM10 14.667H.667C.267 14.667 0 14.4 0 14v-2.2c0-.267.067-.533.2-.733.133-.2.333-.4.6-.467l2.533-1.067v-.2c-.333-.266-.666-.6-.866-1A3.009 3.009 0 0 1 2 6.667V5.333C2 4.467 2.333 3.6 3 3c.6-.667 1.467-1 2.333-1 .867 0 1.734.333 2.334 1 .666.6 1 1.467 1 2.333v1.334c0 .6-.134 1.133-.467 1.666-.2.4-.533.734-.867 1v.2l2.467 1c.267.067.467.267.6.467.133.2.2.467.2.733V14c.067.333-.2.667-.6.667Zm-8.667-1.334h8V11.8l-2.466-1c-.267-.067-.467-.267-.6-.467a1.28 1.28 0 0 1-.267-.8v-.6a.7.7 0 0 1 .333-.6c.334-.2.534-.4.734-.733.2-.267.266-.6.266-.933V5.333c0-.533-.2-1.066-.6-1.4-.733-.8-2.066-.8-2.8 0-.4.334-.6.867-.6 1.4v1.334c0 .333.067.666.267 1 .2.333.4.533.733.733.2.067.334.333.334.533v.6c0 .267-.067.534-.2.734-.134.2-.334.4-.6.466L1.333 11.8v1.533Z"/></svg>
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path d="M15.388 14.715H12.71c-.4 0-.668-.267-.668-.669 0-.401.267-.669.668-.669h2.008V11.17l-2.476-1.003c-.267-.067-.468-.268-.602-.468-.134-.201-.2-.469-.2-.736V8.36c0-.268.133-.469.334-.603.334-.2.535-.4.736-.735.134-.335.2-.67.2-1.004V4.68c0-.335-.066-.67-.267-1.004a1.944 1.944 0 0 0-.736-.736 2.133 2.133 0 0 0-2.007 0c-.335.201-.736.067-.937-.267-.2-.335-.067-.736.268-.937a3.323 3.323 0 0 1 3.345 0c.535.268.937.736 1.204 1.204.335.536.469 1.138.469 1.74v1.338a3.02 3.02 0 0 1-.469 1.673c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.268.067.468.268.602.469.134.2.2.468.2.736v2.943c.068.335-.2.67-.601.67ZM10.035 14.715H.67c-.401 0-.669-.267-.669-.669V11.84c0-.268.067-.536.2-.736.135-.201.335-.402.603-.469l2.542-1.07v-.2c-.334-.268-.669-.603-.87-1.004a3.02 3.02 0 0 1-.468-1.673V5.349c0-.87.335-1.74 1.004-2.342.602-.669 1.471-1.003 2.341-1.003.87 0 1.74.334 2.342 1.003.669.603 1.003 1.472 1.003 2.342v1.338A3.02 3.02 0 0 1 8.23 8.36c-.2.401-.535.736-.87 1.003v.2l2.476 1.004c.267.067.468.268.602.469.134.2.2.468.2.736v2.274c.067.335-.2.67-.602.67Zm-8.697-1.338h8.028v-1.539l-2.475-1.003c-.268-.067-.468-.268-.602-.468a1.286 1.286 0 0 1-.268-.803v-.602c0-.268.134-.469.335-.602.334-.201.535-.402.736-.736.2-.268.267-.602.267-.937V5.349c0-.535-.2-1.07-.602-1.405-.736-.803-2.074-.803-2.81 0-.401.335-.602.87-.602 1.405v1.338c0 .335.067.67.268 1.004.2.334.401.535.736.736.2.066.334.334.334.535v.602c0 .267-.067.535-.2.736-.134.2-.335.401-.603.468l-2.542 1.07v1.54Z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" class="pdsicon"><path fill-rule="evenodd" d="M11.228 0a6.024 6.024 0 0 1 1.694.23l1.094.312-2.387 2.377 1.455 1.448L15.44 2.02l.334 1.034a4.6 4.6 0 0 1 .08 2.55l-.003.011-.003.01a4.467 4.467 0 0 1-3.384 3.129l-.019.004-.02.003a5.165 5.165 0 0 1-1.785-.05l-5.549 6.24a2.862 2.862 0 0 1-4.28.166l-.002-.003a2.951 2.951 0 0 1 .177-4.232l.004-.002 6.252-5.512a3.482 3.482 0 0 1-.104-.877 4.416 4.416 0 0 1 4.037-4.49L11.202 0h.026Zm.037 1.333a3.083 3.083 0 0 0-2.793 3.14v.024c-.003.285.05.569.158.833l.177.438-6.932 6.11-.001.001a1.617 1.617 0 0 0-.097 2.318 1.529 1.529 0 0 0 2.29-.097l.01-.012 6.116-6.878.405.119a3.832 3.832 0 0 0 1.615.116 3.134 3.134 0 0 0 2.353-2.18 3.26 3.26 0 0 0 .091-.583l-1.573 1.566-3.345-3.33 1.592-1.584h-.066Z"/></svg>
@@ -1 +1 @@
1
- {"version":3,"file":"pds-icon.e2e.js","sourceRoot":"","sources":["../../../../../src/components/pds-icon/test/pds-icon.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAEhC,MAAM,IAAI,CAAC,UAAU,CAAC,qEAAqE,CAAC,CAAC;IAC7F,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('pds-icon', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n\n await page.setContent('<pds-icon role=\"img\" style=\"height: 16px; width: 16px;\"></pds-icon>');\n const element = await page.find('pds-icon');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
1
+ {"version":3,"file":"pds-icon.e2e.js","sourceRoot":"","sources":["../../../../src/components/pds-icon/test/pds-icon.e2e.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAEnD,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,IAAI,GAAG,MAAM,UAAU,EAAE,CAAC;IAEhC,MAAM,IAAI,CAAC,UAAU,CAAC,qEAAqE,CAAC,CAAC;IAC7F,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5C,MAAM,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;EAC1C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC","sourcesContent":["import { newE2EPage } from '@stencil/core/testing';\n\ndescribe('pds-icon', () => {\n it('renders', async () => {\n const page = await newE2EPage();\n\n await page.setContent('<pds-icon role=\"img\" style=\"height: 16px; width: 16px;\"></pds-icon>');\n const element = await page.find('pds-icon');\n expect(element).toHaveClass('hydrated');\n });\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"pds-icon.spec.js","sourceRoot":"","sources":["../../../../../src/components/pds-icon/test/pds-icon.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,QAA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EAAE,GAAG,MAAM,WAAW,CAAC;MACjC,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,kDAAkD;KACzD,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAMxB,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { PdsIcon } from '../pds-icon';\n\ndescribe('pds-icon', () => {\n it('renders', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon role=\"img\" size=\"regular\" style=\"height: 16px; width: 16px;\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n it('renders the correct size when passed', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon size=\"small\"></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon role=\"img\" size=\"small\" style=\"height: 12px; width: 12px;\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n it('allows custom size', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon size=\"32px\"></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon role=\"img\" size=\"32px\" style=\"height: 32px; width: 32px;\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n it('renders icon when found', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon name=\"archive\"></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon aria-label=\"archive\" name=\"archive\" role=\"img\" size=\"regular\" style=\"height: 16px; width: 16px;\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n it('add correct styles when color specified', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon name=\"archive\" color=\"red\"></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon aria-label=\"archive\" class=\"pds-color pds-color-red\" color=\"red\" name=\"archive\" role=\"img\" size=\"regular\" style=\"height: 16px; width: 16px; color: red\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n});\n"]}
1
+ {"version":3,"file":"pds-icon.spec.js","sourceRoot":"","sources":["../../../../src/components/pds-icon/test/pds-icon.spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;EACxB,EAAE,CAAC,SAAS,EAAE,KAAK,IAAI,EAAE;IACvB,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,WAAW,CAAC;MACjC,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,uBAAuB;KAC9B,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAMxB,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,sCAAsC,EAAE,KAAK,IAAI,EAAE;IACpD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,WAAW,CAAC;MACjC,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,oCAAoC;KAC3C,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAMxB,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,oBAAoB,EAAE,KAAK,IAAI,EAAE;IAClC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,WAAW,CAAC;MACjC,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,mCAAmC;KAC1C,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAMxB,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,yBAAyB,EAAE,KAAK,IAAI,EAAE;IACvC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,WAAW,CAAC;MACjC,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,sCAAsC;KAC7C,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAMxB,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;EAEH,EAAE,CAAC,yCAAyC,EAAE,KAAK,IAAI,EAAE;IACvD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,WAAW,CAAC;MACjC,UAAU,EAAE,CAAC,OAAO,CAAC;MACrB,IAAI,EAAE,kDAAkD;KACzD,CAAC,CAAC;IACH,MAAM,CAAC,IAAI,CAAC,CAAC,WAAW,CAAC;;;;;;KAMxB,CAAC,CAAC;EACL,CAAC,CAAC,CAAC;AAEL,CAAC,CAAC,CAAC","sourcesContent":["import { newSpecPage } from '@stencil/core/testing';\nimport { PdsIcon } from '../pds-icon';\n\ndescribe('pds-icon', () => {\n it('renders', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon role=\"img\" size=\"regular\" style=\"height: 16px; width: 16px;\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n it('renders the correct size when passed', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon size=\"small\"></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon role=\"img\" size=\"small\" style=\"height: 12px; width: 12px;\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n it('allows custom size', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon size=\"32px\"></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon role=\"img\" size=\"32px\" style=\"height: 32px; width: 32px;\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n it('renders icon when found', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon name=\"archive\"></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon aria-label=\"archive\" name=\"archive\" role=\"img\" size=\"regular\" style=\"height: 16px; width: 16px;\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n it('add correct styles when color specified', async () => {\n const { root } = await newSpecPage({\n components: [PdsIcon],\n html: '<pds-icon name=\"archive\" color=\"red\"></pds-icon>',\n });\n expect(root).toEqualHtml(`\n <pds-icon aria-label=\"archive\" class=\"pds-color pds-color-red\" color=\"red\" name=\"archive\" role=\"img\" size=\"regular\" style=\"height: 16px; width: 16px; color: red\">\n <mock:shadow-root>\n <div class=\"icon-inner\"></div>\n </mock:shadow-root>\n </pds-icon>\n `);\n });\n\n});\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../src/components/pds-icon/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,IAAI,UAA+B,CAAC;AAEpC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAkC,EAAE,EAAE;EAC7D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;EACzB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CA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,CAAC,CAAC;OAC/C;MACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;KAC1B;EACH,CAAC,CAAC,CAAC;EAEH,OAAO,eAAe,CAAC;AACzB,CAAC,CAAA","sourcesContent":["import { getAssetPath } from '@stencil/core';\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 = (iconName: string | undefined) => {\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 = (icon: PdsIcon) => {\n const url = getName(icon.name);\n if (url) {\n return getNamedUrl(url);\n }\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"]}
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/components/pds-icon/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAG7C,IAAI,UAA+B,CAAC;AAEpC,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,KAAkC,EAAE,EAAE;EAC7D,MAAM,GAAG,GAAG,UAAU,EAAE,CAAC;EACzB,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjE,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,UAAU,GAAG,GAAwB,EAAE;EAClD,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;IACjC,OAAO,IAAI,GAAG,EAAE,CAAC;GAClB;OAAO;IACN,IAAI,CAAC,UAAU,EAAE;MACf,MAAM,GAAG,GAAG,MAAa,CAAC,CAAC,yDAAyD;MACpF,GAAG,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,EAAE,CAAC;MAClC,UAAU,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,GAAG,IAAI,IAAI,GAAG,EAAE,CAAC;KAC/D;IAED,OAAO,UAAU,CAAC;GACnB;AACH,CAAC,CA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,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC5E,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,GAAQ,EAAiB,EAAE,CAAC,OAAO,GAAG,KAAK,QAAQ,CAAC,CAAC,yDAAyD;AACpI,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,GAAG,CAAC,WAAW,EAAE,CAAC;AAE1D;;;;;;;;;GASG;AACF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,EAAe,EAAE,aAAuB,EAAE,EAAE,EAAE;EAC/E,MAAM,eAAe,GAAyB,EAAE,CAAC,CAAC,yDAAyD;EAE3G,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE;IACxB,IAAI,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,EAAE;MACzB,MAAM,KAAK,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;MACpC,IAAI,KAAK,KAAK,IAAI,EAAE;QAClB,eAAe,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC;OAC/C;MACD,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;KAC1B;EACH,CAAC,CAAC,CAAC;EAEH,OAAO,eAAe,CAAC;AACzB,CAAC,CAAA","sourcesContent":["import { getAssetPath } from '@stencil/core';\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 = (iconName: string | undefined) => {\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 = (icon: PdsIcon) => {\n const url = getName(icon.name);\n if (url) {\n return getNamedUrl(url);\n }\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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../../src/components/pds-icon/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAA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AC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;MAC9C,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;MACpC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QACzD,OAAO,KAAK,CAAC;OACd;KACF;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;MAC9C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAgB,CAAC,EAAE;QAC9C,OAAO,KAAK,CAAC;OACd;KACF;GACF;EACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","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-ion-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"]}
1
+ {"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/components/pds-icon/validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAEhC,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,UAAkB,EAAE,EAAE;EACpD,MAAM,GAAG,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;EAC1C,GAAG,CAAC,SAAS,GAAG,UAAU,CAAC;EAE3B,oDAAoD;EACpD,KAAK,IAAI,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,EAAE;IACnD,IAAI,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;MACtD,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;KACpC;GACF;EAED,gCAAgC;EAChC,MAAM,MAAM,GAAG,GAAG,CAAC,iBAAiB,CAAC;EACrC,IAAI,MAAM,IAAI,MAAM,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,KAAK,EAAE;IACrD,MAAM,QAAQ,GAAG,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IACpD,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,CAAC,QAAQ,GAAG,aAAa,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;IAEhE,8BAA8B;IAC9B,6CAA6C;IAC7C,uBAAuB;IACvB,IAAI,OAAO,CAAC,MAAqB,CAAC,EAAE;MAClC,OAAO,GAAG,CAAC,SAAS,CAAC;KACtB;GACF;EACD,OAAO,EAAE,CAAC;AACZ,CAAC,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,GAAgB,EAAE,EAAE;EAC1C,IAAI,GAAG,CAAC,QAAQ,KAAK,CAAC,EAAE;IACtB,IAAI,GAAG,CAAC,QAAQ,CAAC,WAAW,EAAE,KAAK,QAAQ,EAAE;MAC3C,OAAO,KAAK,CAAC;KACd;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;MAC9C,MAAM,IAAI,GAAG,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;MACpC,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,EAAE;QACzD,OAAO,KAAK,CAAC;OACd;KACF;IAED,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,UAAU,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;MAC9C,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,CAAC,CAAgB,CAAC,EAAE;QAC9C,OAAO,KAAK,CAAC;OACd;KACF;GACF;EACD,OAAO,IAAI,CAAC;AACd,CAAC,CAAC","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-ion-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"]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { addIcons } from './components/pds-icon/utils';\nexport type { Components, JSX } from './components';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { addIcons } from './components/pds-icon/utils';\nexport type { Components, JSX } from './components';\n"]}
package/dist/docs.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2023-10-11T10:19:09",
2
+ "timestamp": "2023-11-28T11:04:50",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.4.0",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pds-icons",
3
- "version": "2.0.2",
3
+ "version": "3.0.0",
4
4
  "icons": [
5
5
  {
6
6
  "name": "access-key",
@@ -462,6 +462,25 @@
462
462
  "wordpress"
463
463
  ]
464
464
  },
465
+ {
466
+ "name": "blog-filled",
467
+ "category": "site-settings",
468
+ "tags": [
469
+ "article",
470
+ "blog",
471
+ "blogger",
472
+ "cms",
473
+ "content",
474
+ "copywriting",
475
+ "documentation",
476
+ "feed",
477
+ "marketing",
478
+ "media",
479
+ "news",
480
+ "web",
481
+ "wordpress"
482
+ ]
483
+ },
465
484
  {
466
485
  "name": "bold",
467
486
  "category": "text-editor",
@@ -945,6 +964,21 @@
945
964
  "text"
946
965
  ]
947
966
  },
967
+ {
968
+ "name": "cloud-upload",
969
+ "category": "actions",
970
+ "tags": [
971
+ "arrow",
972
+ "cloud",
973
+ "data",
974
+ "file",
975
+ "publish",
976
+ "save",
977
+ "share",
978
+ "storage",
979
+ "top"
980
+ ]
981
+ },
948
982
  {
949
983
  "name": "code",
950
984
  "category": "text-editor",
@@ -1747,6 +1781,34 @@
1747
1781
  "tag"
1748
1782
  ]
1749
1783
  },
1784
+ {
1785
+ "name": "flash",
1786
+ "category": "actions",
1787
+ "tags": [
1788
+ "fast",
1789
+ "flash",
1790
+ "light",
1791
+ "lightning",
1792
+ "media",
1793
+ "multimedia",
1794
+ "photo",
1795
+ "weather"
1796
+ ]
1797
+ },
1798
+ {
1799
+ "name": "flash-filled",
1800
+ "category": "actions",
1801
+ "tags": [
1802
+ "fast",
1803
+ "flash",
1804
+ "light",
1805
+ "lightning",
1806
+ "media",
1807
+ "multimedia",
1808
+ "photo",
1809
+ "weather"
1810
+ ]
1811
+ },
1750
1812
  {
1751
1813
  "name": "folder",
1752
1814
  "category": "features",
@@ -1826,6 +1888,14 @@
1826
1888
  "sync"
1827
1889
  ]
1828
1890
  },
1891
+ {
1892
+ "name": "form-filled",
1893
+ "category": "features",
1894
+ "tags": [
1895
+ "filled",
1896
+ "form"
1897
+ ]
1898
+ },
1829
1899
  {
1830
1900
  "name": "fullscreen",
1831
1901
  "category": "text-editor",
@@ -1920,6 +1990,19 @@
1920
1990
  "trending"
1921
1991
  ]
1922
1992
  },
1993
+ {
1994
+ "name": "hd-video",
1995
+ "category": "features",
1996
+ "tags": [
1997
+ "definition",
1998
+ "hd",
1999
+ "live",
2000
+ "recording",
2001
+ "tech",
2002
+ "technology",
2003
+ "video"
2004
+ ]
2005
+ },
1923
2006
  {
1924
2007
  "name": "heading-large",
1925
2008
  "category": "text-editor",
@@ -2304,7 +2387,7 @@
2304
2387
  "category": "payment-methods",
2305
2388
  "tags": [
2306
2389
  "afterpay",
2307
- "logo"
2390
+ "buy now pay later"
2308
2391
  ]
2309
2392
  },
2310
2393
  {
@@ -2347,6 +2430,21 @@
2347
2430
  "write"
2348
2431
  ]
2349
2432
  },
2433
+ {
2434
+ "name": "mail-filled",
2435
+ "category": "features",
2436
+ "tags": [
2437
+ "filled",
2438
+ "mail"
2439
+ ]
2440
+ },
2441
+ {
2442
+ "name": "map",
2443
+ "category": "features",
2444
+ "tags": [
2445
+ "map"
2446
+ ]
2447
+ },
2350
2448
  {
2351
2449
  "name": "mapped",
2352
2450
  "category": "features",
@@ -2725,7 +2823,12 @@
2725
2823
  "name": "pause",
2726
2824
  "category": "actions",
2727
2825
  "tags": [
2728
- "pause"
2826
+ "button",
2827
+ "control",
2828
+ "media",
2829
+ "multimedia",
2830
+ "pause",
2831
+ "ui"
2729
2832
  ]
2730
2833
  },
2731
2834
  {
@@ -3232,7 +3335,12 @@
3232
3335
  "name": "scissor",
3233
3336
  "category": "actions",
3234
3337
  "tags": [
3235
- "scissor"
3338
+ "craft",
3339
+ "cut",
3340
+ "edit",
3341
+ "scissors",
3342
+ "shears",
3343
+ "tool"
3236
3344
  ]
3237
3345
  },
3238
3346
  {
@@ -4205,6 +4313,27 @@
4205
4313
  "world"
4206
4314
  ]
4207
4315
  },
4316
+ {
4317
+ "name": "wrench",
4318
+ "category": "actions",
4319
+ "tags": [
4320
+ "adjust",
4321
+ "adjustment",
4322
+ "building",
4323
+ "configure",
4324
+ "control",
4325
+ "edit",
4326
+ "filter",
4327
+ "option",
4328
+ "options",
4329
+ "preferences",
4330
+ "settings",
4331
+ "system",
4332
+ "tool",
4333
+ "ui",
4334
+ "wrench"
4335
+ ]
4336
+ },
4208
4337
  {
4209
4338
  "name": "youtube",
4210
4339
  "category": "social",