@atlaskit/icon 22.20.2 → 22.22.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 (726) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/core/add.d.ts +5 -4
  3. package/core/ai-agent.d.ts +5 -4
  4. package/core/ai-chat.d.ts +5 -4
  5. package/core/alert.d.ts +5 -4
  6. package/core/align-center.d.ts +5 -4
  7. package/core/align-left.d.ts +5 -4
  8. package/core/align-right.d.ts +5 -4
  9. package/core/angle-brackets.d.ts +5 -4
  10. package/core/api.d.ts +5 -4
  11. package/core/app-switcher-legacy.d.ts +5 -4
  12. package/core/app-switcher.d.ts +5 -4
  13. package/core/app.d.ts +5 -4
  14. package/core/apps.d.ts +5 -4
  15. package/core/archive-box.d.ts +5 -4
  16. package/core/arrow-down-left.d.ts +5 -4
  17. package/core/arrow-down-right.d.ts +5 -4
  18. package/core/arrow-down.d.ts +5 -4
  19. package/core/arrow-left.d.ts +5 -4
  20. package/core/arrow-right.d.ts +5 -4
  21. package/core/arrow-up-left.d.ts +5 -4
  22. package/core/arrow-up-right.d.ts +5 -4
  23. package/core/arrow-up.d.ts +5 -4
  24. package/core/assets.d.ts +5 -4
  25. package/core/atlassian-intelligence.d.ts +5 -4
  26. package/core/attachment.d.ts +5 -4
  27. package/core/audio.d.ts +5 -4
  28. package/core/automation.d.ts +5 -4
  29. package/core/backlog.d.ts +5 -4
  30. package/core/basketball.d.ts +5 -4
  31. package/core/board.d.ts +5 -4
  32. package/core/boards.d.ts +5 -4
  33. package/core/book-with-bookmark.d.ts +5 -4
  34. package/core/border-weight-medium.d.ts +5 -4
  35. package/core/border-weight-thick.d.ts +5 -4
  36. package/core/border-weight-thin.d.ts +5 -4
  37. package/core/border.d.ts +5 -4
  38. package/core/branch.d.ts +5 -4
  39. package/core/briefcase.d.ts +5 -4
  40. package/core/bug.d.ts +5 -4
  41. package/core/bulleted-list.d.ts +5 -4
  42. package/core/calendar-plus.d.ts +5 -4
  43. package/core/calendar.d.ts +5 -4
  44. package/core/camera.d.ts +5 -4
  45. package/core/capture.d.ts +5 -4
  46. package/core/card.d.ts +5 -4
  47. package/core/cash.d.ts +5 -4
  48. package/core/changes.d.ts +5 -4
  49. package/core/chart-bar.d.ts +5 -4
  50. package/core/chart-matrix.d.ts +5 -4
  51. package/core/chart-pie.d.ts +5 -4
  52. package/core/chart-trend.d.ts +5 -4
  53. package/core/chat-widget.d.ts +5 -4
  54. package/core/check-circle.d.ts +5 -4
  55. package/core/check-mark.d.ts +5 -4
  56. package/core/checkbox-checked.d.ts +5 -4
  57. package/core/checkbox-indeterminate.d.ts +5 -4
  58. package/core/checkbox-unchecked.d.ts +5 -4
  59. package/core/child-issues.d.ts +5 -4
  60. package/core/clipboard.d.ts +5 -4
  61. package/core/clock.d.ts +5 -4
  62. package/core/close.d.ts +5 -4
  63. package/core/cloud-arrow-up.d.ts +5 -4
  64. package/core/collapse-horizontal.d.ts +5 -4
  65. package/core/collapse-vertical.d.ts +5 -4
  66. package/core/collapse.d.ts +5 -4
  67. package/core/comment-add.d.ts +5 -4
  68. package/core/comment.d.ts +5 -4
  69. package/core/commit.d.ts +5 -4
  70. package/core/compass.d.ts +5 -4
  71. package/core/component.d.ts +5 -4
  72. package/core/content-align-center.d.ts +5 -4
  73. package/core/content-align-left.d.ts +5 -4
  74. package/core/content-align-right.d.ts +5 -4
  75. package/core/content-width-narrow.d.ts +5 -4
  76. package/core/content-width-wide.d.ts +5 -4
  77. package/core/content-wrap-left.d.ts +5 -4
  78. package/core/content-wrap-right.d.ts +5 -4
  79. package/core/copy.d.ts +5 -4
  80. package/core/credit-card.d.ts +5 -4
  81. package/core/cross-circle.d.ts +5 -4
  82. package/core/curly-brackets.d.ts +5 -4
  83. package/core/customize.d.ts +5 -4
  84. package/core/dashboard.d.ts +5 -4
  85. package/core/data-flow.d.ts +5 -4
  86. package/core/data-number.d.ts +5 -4
  87. package/core/data-string.d.ts +5 -4
  88. package/core/database.d.ts +5 -4
  89. package/core/decision.d.ts +5 -4
  90. package/core/defect.d.ts +5 -4
  91. package/core/delete.d.ts +5 -4
  92. package/core/department.d.ts +5 -4
  93. package/core/device-mobile.d.ts +5 -4
  94. package/core/devices.d.ts +5 -4
  95. package/core/discovery.d.ts +5 -4
  96. package/core/download.d.ts +5 -4
  97. package/core/drag-handle.d.ts +5 -4
  98. package/core/edit-bulk.d.ts +5 -4
  99. package/core/edit.d.ts +5 -4
  100. package/core/email.d.ts +5 -4
  101. package/core/emoji-add.d.ts +5 -4
  102. package/core/emoji-casual.d.ts +5 -4
  103. package/core/emoji-neutral.d.ts +5 -4
  104. package/core/emoji-remove.d.ts +5 -4
  105. package/core/emoji.d.ts +5 -4
  106. package/core/epic.d.ts +5 -4
  107. package/core/error.d.ts +5 -4
  108. package/core/expand-horizontal.d.ts +5 -4
  109. package/core/expand-vertical.d.ts +5 -4
  110. package/core/expand.d.ts +5 -4
  111. package/core/eye-open-filled.d.ts +5 -4
  112. package/core/eye-open-strikethrough.d.ts +5 -4
  113. package/core/eye-open.d.ts +5 -4
  114. package/core/feed.d.ts +5 -4
  115. package/core/feedback.d.ts +5 -4
  116. package/core/field-alert.d.ts +5 -4
  117. package/core/field-checkbox-group.d.ts +5 -4
  118. package/core/field-dropdown.d.ts +5 -4
  119. package/core/field-radio-group.d.ts +5 -4
  120. package/core/field.d.ts +5 -4
  121. package/core/file.d.ts +5 -4
  122. package/core/files.d.ts +5 -4
  123. package/core/filter.d.ts +5 -4
  124. package/core/flag-filled.d.ts +5 -4
  125. package/core/flag.d.ts +5 -4
  126. package/core/flask.d.ts +5 -4
  127. package/core/folder-closed.d.ts +5 -4
  128. package/core/folder-open.d.ts +5 -4
  129. package/core/form.d.ts +5 -4
  130. package/core/fullscreen-enter.d.ts +5 -4
  131. package/core/fullscreen-exit.d.ts +5 -4
  132. package/core/glasses.d.ts +5 -4
  133. package/core/globe.d.ts +5 -4
  134. package/core/goal.d.ts +5 -4
  135. package/core/grid.d.ts +5 -4
  136. package/core/grow-diagonal.d.ts +5 -4
  137. package/core/grow-horizontal.d.ts +5 -4
  138. package/core/grow-vertical.d.ts +5 -4
  139. package/core/hashtag.d.ts +5 -4
  140. package/core/headphones.d.ts +5 -4
  141. package/core/heart.d.ts +5 -4
  142. package/core/highlight.d.ts +5 -4
  143. package/core/home.d.ts +5 -4
  144. package/core/image-fullscreen.d.ts +5 -4
  145. package/core/image-inline.d.ts +5 -4
  146. package/core/image-scaled.d.ts +5 -4
  147. package/core/image.d.ts +5 -4
  148. package/core/inbox.d.ts +5 -4
  149. package/core/incident.d.ts +5 -4
  150. package/core/information.d.ts +5 -4
  151. package/core/issue.d.ts +5 -4
  152. package/core/issues.d.ts +5 -4
  153. package/core/key-result.d.ts +5 -4
  154. package/core/layout-one-column.d.ts +5 -4
  155. package/core/layout-three-columns-sidebars.d.ts +5 -4
  156. package/core/layout-three-columns.d.ts +5 -4
  157. package/core/layout-two-columns-sidebar-left.d.ts +5 -4
  158. package/core/layout-two-columns-sidebar-right.d.ts +5 -4
  159. package/core/layout-two-columns.d.ts +5 -4
  160. package/core/library.d.ts +5 -4
  161. package/core/lightbulb.d.ts +5 -4
  162. package/core/link-broken.d.ts +5 -4
  163. package/core/link-external.d.ts +5 -4
  164. package/core/link.d.ts +5 -4
  165. package/core/list-bulleted.d.ts +5 -4
  166. package/core/list-checklist.d.ts +5 -4
  167. package/core/list-numbered.d.ts +5 -4
  168. package/core/lobby-bell.d.ts +5 -4
  169. package/core/location.d.ts +5 -4
  170. package/core/lock-locked.d.ts +5 -4
  171. package/core/lock-unlocked.d.ts +5 -4
  172. package/core/log-in.d.ts +5 -4
  173. package/core/log-out.d.ts +5 -4
  174. package/core/magic-wand.d.ts +5 -4
  175. package/core/markdown.d.ts +5 -4
  176. package/core/marketplace.d.ts +5 -4
  177. package/core/maximize.d.ts +5 -4
  178. package/core/megaphone.d.ts +5 -4
  179. package/core/mention.d.ts +5 -4
  180. package/core/menu.d.ts +5 -4
  181. package/core/merge-failure.d.ts +5 -4
  182. package/core/merge-success.d.ts +5 -4
  183. package/core/microphone.d.ts +5 -4
  184. package/core/migration/add--add-circle.d.ts +3 -2
  185. package/core/migration/add--editor-add.d.ts +3 -2
  186. package/core/migration/add--emoji-custom.d.ts +3 -2
  187. package/core/migration/add.d.ts +3 -2
  188. package/core/migration/align-center--editor-align-center.d.ts +3 -2
  189. package/core/migration/align-left--editor-align-left.d.ts +3 -2
  190. package/core/migration/align-left--overview.d.ts +3 -2
  191. package/core/migration/align-right--editor-align-right.d.ts +3 -2
  192. package/core/migration/angle-brackets--bitbucket-repos.d.ts +3 -2
  193. package/core/migration/angle-brackets--bitbucket-source.d.ts +3 -2
  194. package/core/migration/angle-brackets--code.d.ts +3 -2
  195. package/core/migration/angle-brackets--editor-code.d.ts +3 -2
  196. package/core/migration/angle-brackets--media-services-code.d.ts +3 -2
  197. package/core/migration/app--addon.d.ts +3 -2
  198. package/core/migration/app-switcher--switcher.d.ts +3 -2
  199. package/core/migration/app-switcher.d.ts +3 -2
  200. package/core/migration/archive-box--archive.d.ts +3 -2
  201. package/core/migration/arrow-down--arrow-down-circle.d.ts +3 -2
  202. package/core/migration/arrow-down.d.ts +3 -2
  203. package/core/migration/arrow-left--arrow-left-circle.d.ts +3 -2
  204. package/core/migration/arrow-left.d.ts +3 -2
  205. package/core/migration/arrow-right--arrow-right-circle.d.ts +3 -2
  206. package/core/migration/arrow-right.d.ts +3 -2
  207. package/core/migration/arrow-up--arrow-up-circle.d.ts +3 -2
  208. package/core/migration/arrow-up-right--editor-open.d.ts +3 -2
  209. package/core/migration/arrow-up-right--open.d.ts +3 -2
  210. package/core/migration/arrow-up.d.ts +3 -2
  211. package/core/migration/attachment--editor-attachment.d.ts +3 -2
  212. package/core/migration/attachment.d.ts +3 -2
  213. package/core/migration/audio--audio-circle.d.ts +3 -2
  214. package/core/migration/audio--media-services-audio.d.ts +3 -2
  215. package/core/migration/audio.d.ts +3 -2
  216. package/core/migration/backlog.d.ts +3 -2
  217. package/core/migration/basketball--emoji-activity.d.ts +3 -2
  218. package/core/migration/board.d.ts +3 -2
  219. package/core/migration/boards--switcher.d.ts +3 -2
  220. package/core/migration/book-with-bookmark--book.d.ts +3 -2
  221. package/core/migration/border-weight-thin--media-services-line.d.ts +3 -2
  222. package/core/migration/branch--bitbucket-branches.d.ts +3 -2
  223. package/core/migration/briefcase--suitcase.d.ts +3 -2
  224. package/core/migration/bug--jira-test-session.d.ts +3 -2
  225. package/core/migration/bulleted-list--bullet-list.d.ts +3 -2
  226. package/core/migration/bulleted-list--editor-bullet-list.d.ts +3 -2
  227. package/core/migration/calendar--calendar-filled.d.ts +3 -2
  228. package/core/migration/calendar--editor-date.d.ts +3 -2
  229. package/core/migration/calendar-plus--schedule-filled.d.ts +3 -2
  230. package/core/migration/calendar-plus--schedule.d.ts +3 -2
  231. package/core/migration/calendar.d.ts +3 -2
  232. package/core/migration/camera--camera-filled.d.ts +3 -2
  233. package/core/migration/camera--editor-photo.d.ts +3 -2
  234. package/core/migration/camera.d.ts +3 -2
  235. package/core/migration/capture--jira-capture.d.ts +3 -2
  236. package/core/migration/chart-bar--graph-bar.d.ts +3 -2
  237. package/core/migration/chart-bar--media-services-presentation.d.ts +3 -2
  238. package/core/migration/chart-trend--graph-line.d.ts +3 -2
  239. package/core/migration/check-circle--check-circle-outline.d.ts +3 -2
  240. package/core/migration/check-circle--emoji-productivity.d.ts +3 -2
  241. package/core/migration/check-circle.d.ts +3 -2
  242. package/core/migration/check-mark--check.d.ts +3 -2
  243. package/core/migration/check-mark--editor-done.d.ts +3 -2
  244. package/core/migration/checkbox-checked--checkbox.d.ts +3 -2
  245. package/core/migration/checkbox-checked--editor-task.d.ts +3 -2
  246. package/core/migration/checkbox-indeterminate.d.ts +3 -2
  247. package/core/migration/child-issues.d.ts +3 -2
  248. package/core/migration/clock--editor-recent.d.ts +3 -2
  249. package/core/migration/clock--emoji-frequent.d.ts +3 -2
  250. package/core/migration/clock--recent.d.ts +3 -2
  251. package/core/migration/close--cross.d.ts +3 -2
  252. package/core/migration/close--editor-close.d.ts +3 -2
  253. package/core/migration/cloud-arrow-up--upload.d.ts +3 -2
  254. package/core/migration/collapse--editor-collapse.d.ts +3 -2
  255. package/core/migration/comment--questions.d.ts +3 -2
  256. package/core/migration/comment-add--media-services-add-comment.d.ts +3 -2
  257. package/core/migration/comment.d.ts +3 -2
  258. package/core/migration/commit--bitbucket-commits.d.ts +3 -2
  259. package/core/migration/compass--discover-filled.d.ts +3 -2
  260. package/core/migration/compass--discover.d.ts +3 -2
  261. package/core/migration/component.d.ts +3 -2
  262. package/core/migration/content-align-center--editor-align-image-center.d.ts +3 -2
  263. package/core/migration/content-align-left--editor-align-image-left.d.ts +3 -2
  264. package/core/migration/content-align-right--editor-align-image-right.d.ts +3 -2
  265. package/core/migration/content-width-narrow--editor-media-center.d.ts +3 -2
  266. package/core/migration/content-width-wide--editor-media-wide.d.ts +3 -2
  267. package/core/migration/copy.d.ts +3 -2
  268. package/core/migration/credit-card--creditcard-filled.d.ts +3 -2
  269. package/core/migration/credit-card--creditcard.d.ts +3 -2
  270. package/core/migration/cross-circle--editor-error.d.ts +3 -2
  271. package/core/migration/cross-circle--select-clear.d.ts +3 -2
  272. package/core/migration/cross-circle.d.ts +3 -2
  273. package/core/migration/customize--preferences.d.ts +3 -2
  274. package/core/migration/dashboard--activity.d.ts +3 -2
  275. package/core/migration/dashboard.d.ts +3 -2
  276. package/core/migration/decision--editor-decision.d.ts +3 -2
  277. package/core/migration/decision.d.ts +3 -2
  278. package/core/migration/delete--editor-remove.d.ts +3 -2
  279. package/core/migration/delete--trash.d.ts +3 -2
  280. package/core/migration/department.d.ts +3 -2
  281. package/core/migration/device-mobile--mobile.d.ts +3 -2
  282. package/core/migration/download.d.ts +3 -2
  283. package/core/migration/drag-handle--drag-handler.d.ts +3 -2
  284. package/core/migration/edit--edit-filled.d.ts +3 -2
  285. package/core/migration/edit--editor-edit.d.ts +3 -2
  286. package/core/migration/edit.d.ts +3 -2
  287. package/core/migration/email.d.ts +3 -2
  288. package/core/migration/emoji--editor-emoji.d.ts +3 -2
  289. package/core/migration/emoji--emoji-emoji.d.ts +3 -2
  290. package/core/migration/emoji--emoji-people.d.ts +3 -2
  291. package/core/migration/emoji-add.d.ts +3 -2
  292. package/core/migration/emoji.d.ts +3 -2
  293. package/core/migration/error.d.ts +3 -2
  294. package/core/migration/expand--editor-expand.d.ts +3 -2
  295. package/core/migration/expand--editor-image-resize.d.ts +3 -2
  296. package/core/migration/expand--image-resize.d.ts +3 -2
  297. package/core/migration/expand-horizontal--editor-media-full-width.d.ts +3 -2
  298. package/core/migration/eye-open--watch.d.ts +3 -2
  299. package/core/migration/eye-open-filled--hipchat-audio-only.d.ts +3 -2
  300. package/core/migration/eye-open-filled--watch-filled.d.ts +3 -2
  301. package/core/migration/feedback--editor-feedback.d.ts +3 -2
  302. package/core/migration/feedback.d.ts +3 -2
  303. package/core/migration/file--editor-file.d.ts +3 -2
  304. package/core/migration/file.d.ts +3 -2
  305. package/core/migration/filter--media-services-filter.d.ts +3 -2
  306. package/core/migration/filter.d.ts +3 -2
  307. package/core/migration/flag--emoji-flags.d.ts +3 -2
  308. package/core/migration/flag-filled.d.ts +3 -2
  309. package/core/migration/flask--jira-labs.d.ts +3 -2
  310. package/core/migration/folder-closed--folder.d.ts +3 -2
  311. package/core/migration/fullscreen-enter--vid-full-screen-on.d.ts +3 -2
  312. package/core/migration/fullscreen-exit--media-services-full-screen.d.ts +3 -2
  313. package/core/migration/globe--world-small.d.ts +3 -2
  314. package/core/migration/globe--world.d.ts +3 -2
  315. package/core/migration/grid--editor-table.d.ts +3 -2
  316. package/core/migration/grid--media-services-grid.d.ts +3 -2
  317. package/core/migration/grid--table.d.ts +3 -2
  318. package/core/migration/grow-diagonal--media-services-actual-size.d.ts +3 -2
  319. package/core/migration/grow-horizontal--editor-expand.d.ts +3 -2
  320. package/core/migration/heart--emoji-symbols.d.ts +3 -2
  321. package/core/migration/home--home-circle.d.ts +3 -2
  322. package/core/migration/home.d.ts +3 -2
  323. package/core/migration/image--editor-image.d.ts +3 -2
  324. package/core/migration/image--media-services-image.d.ts +3 -2
  325. package/core/migration/image--media-services-scale-large.d.ts +3 -2
  326. package/core/migration/image--media-services-scale-small.d.ts +3 -2
  327. package/core/migration/image.d.ts +3 -2
  328. package/core/migration/inbox--tray.d.ts +3 -2
  329. package/core/migration/information--editor-info.d.ts +3 -2
  330. package/core/migration/information--editor-panel.d.ts +3 -2
  331. package/core/migration/information--info.d.ts +3 -2
  332. package/core/migration/issue.d.ts +3 -2
  333. package/core/migration/issues.d.ts +3 -2
  334. package/core/migration/layout-one-column--editor-layout-single.d.ts +3 -2
  335. package/core/migration/layout-three-columns--editor-layout-three-equal.d.ts +3 -2
  336. package/core/migration/layout-three-columns-sidebars--editor-layout-three-with-sidebars.d.ts +3 -2
  337. package/core/migration/layout-two-columns--editor-layout-two-equal.d.ts +3 -2
  338. package/core/migration/layout-two-columns-sidebar-left--editor-layout-two-left-sidebar.d.ts +3 -2
  339. package/core/migration/layout-two-columns-sidebar-right--editor-layout-two-right-sidebar.d.ts +3 -2
  340. package/core/migration/lightbulb--editor-hint.d.ts +3 -2
  341. package/core/migration/lightbulb--emoji-objects.d.ts +3 -2
  342. package/core/migration/lightbulb--lightbulb-filled.d.ts +3 -2
  343. package/core/migration/lightbulb.d.ts +3 -2
  344. package/core/migration/link--editor-link.d.ts +3 -2
  345. package/core/migration/link--link-filled.d.ts +3 -2
  346. package/core/migration/link-broken--editor-unlink.d.ts +3 -2
  347. package/core/migration/link-broken--unlink.d.ts +3 -2
  348. package/core/migration/link-external--shortcut.d.ts +3 -2
  349. package/core/migration/link.d.ts +3 -2
  350. package/core/migration/list-bulleted--bullet-list.d.ts +3 -2
  351. package/core/migration/list-bulleted--editor-bullet-list.d.ts +3 -2
  352. package/core/migration/list-numbered--editor-number-list.d.ts +3 -2
  353. package/core/migration/lobby-bell--hipchat-lobby.d.ts +3 -2
  354. package/core/migration/location.d.ts +3 -2
  355. package/core/migration/lock-locked--lock-circle.d.ts +3 -2
  356. package/core/migration/lock-locked--lock-filled.d.ts +3 -2
  357. package/core/migration/lock-locked--lock.d.ts +3 -2
  358. package/core/migration/lock-locked--unlock-circle.d.ts +3 -2
  359. package/core/migration/lock-unlocked--unlock-filled.d.ts +3 -2
  360. package/core/migration/lock-unlocked--unlock.d.ts +3 -2
  361. package/core/migration/log-in--sign-in.d.ts +3 -2
  362. package/core/migration/log-out--sign-out.d.ts +3 -2
  363. package/core/migration/marketplace.d.ts +3 -2
  364. package/core/migration/maximize--editor-image-resize.d.ts +3 -2
  365. package/core/migration/maximize--image-resize.d.ts +3 -2
  366. package/core/migration/maximize--media-services-actual-size.d.ts +3 -2
  367. package/core/migration/mention--editor-mention.d.ts +3 -2
  368. package/core/migration/menu--menu-expand.d.ts +3 -2
  369. package/core/migration/menu.d.ts +3 -2
  370. package/core/migration/microphone--vid-audio-on.d.ts +3 -2
  371. package/core/migration/minimize--media-services-fit-to-page.d.ts +3 -2
  372. package/core/migration/minimize--vid-full-screen-off.d.ts +3 -2
  373. package/core/migration/minus--editor-horizontal-rule.d.ts +3 -2
  374. package/core/migration/notification--notification-direct.d.ts +3 -2
  375. package/core/migration/notification.d.ts +3 -2
  376. package/core/migration/office-building--office-building-filled.d.ts +3 -2
  377. package/core/migration/office-building.d.ts +3 -2
  378. package/core/migration/on-call--hipchat-dial-out.d.ts +3 -2
  379. package/core/migration/page--document-filled.d.ts +3 -2
  380. package/core/migration/page--document.d.ts +3 -2
  381. package/core/migration/page--editor-note.d.ts +3 -2
  382. package/core/migration/page--media-services-document.d.ts +3 -2
  383. package/core/migration/page--page-filled.d.ts +3 -2
  384. package/core/migration/page.d.ts +3 -2
  385. package/core/migration/pages--documents.d.ts +3 -2
  386. package/core/migration/pages--queues.d.ts +3 -2
  387. package/core/migration/paint-bucket--editor-background-color.d.ts +3 -2
  388. package/core/migration/people-group--people.d.ts +3 -2
  389. package/core/migration/people-group.d.ts +3 -2
  390. package/core/migration/person-add--invite-team.d.ts +3 -2
  391. package/core/migration/person-added--app-access.d.ts +3 -2
  392. package/core/migration/person-added--person-with-tick.d.ts +3 -2
  393. package/core/migration/person-avatar--person-circle.d.ts +3 -2
  394. package/core/migration/person-avatar--user-avatar-circle.d.ts +3 -2
  395. package/core/migration/person-offboard--followers.d.ts +3 -2
  396. package/core/migration/person.d.ts +3 -2
  397. package/core/migration/phone--hipchat-dial-out.d.ts +3 -2
  398. package/core/migration/premium.d.ts +3 -2
  399. package/core/migration/pull-request--bitbucket-pullrequests.d.ts +3 -2
  400. package/core/migration/question-circle--editor-help.d.ts +3 -2
  401. package/core/migration/question-circle--question.d.ts +3 -2
  402. package/core/migration/question-circle.d.ts +3 -2
  403. package/core/migration/quotation-mark--editor-quote.d.ts +3 -2
  404. package/core/migration/quotation-mark--quote.d.ts +3 -2
  405. package/core/migration/radio-checked--radio.d.ts +3 -2
  406. package/core/migration/radio-unchecked--media-services-preselected.d.ts +3 -2
  407. package/core/migration/redo--editor-redo.d.ts +3 -2
  408. package/core/migration/redo.d.ts +3 -2
  409. package/core/migration/refresh.d.ts +3 -2
  410. package/core/migration/release--ship.d.ts +3 -2
  411. package/core/migration/retry.d.ts +3 -2
  412. package/core/migration/roadmap.d.ts +3 -2
  413. package/core/migration/screen.d.ts +3 -2
  414. package/core/migration/search--editor-search.d.ts +3 -2
  415. package/core/migration/search.d.ts +3 -2
  416. package/core/migration/send.d.ts +3 -2
  417. package/core/migration/settings--editor-settings.d.ts +3 -2
  418. package/core/migration/settings.d.ts +3 -2
  419. package/core/migration/share.d.ts +3 -2
  420. package/core/migration/shortcut--add-item.d.ts +3 -2
  421. package/core/migration/show-more-horizontal--editor-more.d.ts +3 -2
  422. package/core/migration/show-more-horizontal--more.d.ts +3 -2
  423. package/core/migration/show-more-vertical--more-vertical.d.ts +3 -2
  424. package/core/migration/shrink-diagonal--media-services-fit-to-page.d.ts +3 -2
  425. package/core/migration/shrink-diagonal--vid-full-screen-off.d.ts +3 -2
  426. package/core/migration/shrink-horizontal--editor-collapse.d.ts +3 -2
  427. package/core/migration/sidebar-right--detail-view.d.ts +3 -2
  428. package/core/migration/sidebar-right--room-menu.d.ts +3 -2
  429. package/core/migration/snippet--bitbucket-snippets.d.ts +3 -2
  430. package/core/migration/spreadsheet--media-services-spreadsheet.d.ts +3 -2
  431. package/core/migration/sprint.d.ts +3 -2
  432. package/core/migration/star-starred--star-filled.d.ts +3 -2
  433. package/core/migration/star-unstarred--star-large.d.ts +3 -2
  434. package/core/migration/star-unstarred--star.d.ts +3 -2
  435. package/core/migration/stopwatch.d.ts +3 -2
  436. package/core/migration/subtasks--subtask.d.ts +3 -2
  437. package/core/migration/success--check-circle.d.ts +3 -2
  438. package/core/migration/success--editor-success.d.ts +3 -2
  439. package/core/migration/tag--label.d.ts +3 -2
  440. package/core/migration/takeout-food--emoji-food.d.ts +3 -2
  441. package/core/migration/task.d.ts +3 -2
  442. package/core/migration/teams.d.ts +3 -2
  443. package/core/migration/text-bold--editor-bold.d.ts +3 -2
  444. package/core/migration/text-indent-left--editor-outdent.d.ts +3 -2
  445. package/core/migration/text-indent-right--editor-indent.d.ts +3 -2
  446. package/core/migration/text-italic--editor-italic.d.ts +3 -2
  447. package/core/migration/text-style--editor-text-style.d.ts +3 -2
  448. package/core/migration/text-style--emoji-keyboard.d.ts +3 -2
  449. package/core/migration/thumbs-up--like.d.ts +3 -2
  450. package/core/migration/tree--emoji-nature.d.ts +3 -2
  451. package/core/migration/undo--editor-undo.d.ts +3 -2
  452. package/core/migration/undo.d.ts +3 -2
  453. package/core/migration/upload--export.d.ts +3 -2
  454. package/core/migration/vehicle-car--emoji-travel.d.ts +3 -2
  455. package/core/migration/video--hipchat-sd-video.d.ts +3 -2
  456. package/core/migration/video--media-services-video.d.ts +3 -2
  457. package/core/migration/video--vid-camera-on.d.ts +3 -2
  458. package/core/migration/video--video-circle.d.ts +3 -2
  459. package/core/migration/video--video-filled.d.ts +3 -2
  460. package/core/migration/video-pause--vid-pause.d.ts +3 -2
  461. package/core/migration/video-play--vid-play.d.ts +3 -2
  462. package/core/migration/volume-high--hipchat-outgoing-sound.d.ts +3 -2
  463. package/core/migration/volume-high--vid-volume-full.d.ts +3 -2
  464. package/core/migration/volume-low--vid-volume-half.d.ts +3 -2
  465. package/core/migration/volume-muted--vid-volume-muted.d.ts +3 -2
  466. package/core/migration/warning--editor-warning.d.ts +3 -2
  467. package/core/migration/warning.d.ts +3 -2
  468. package/core/migration/zoom-in--media-services-zoom-in.d.ts +3 -2
  469. package/core/migration/zoom-out--media-services-zoom-out.d.ts +3 -2
  470. package/core/minimize.d.ts +5 -4
  471. package/core/minus-square.d.ts +5 -4
  472. package/core/minus.d.ts +5 -4
  473. package/core/node.d.ts +5 -4
  474. package/core/note.d.ts +5 -4
  475. package/core/notification-muted.d.ts +5 -4
  476. package/core/notification.d.ts +5 -4
  477. package/core/objective.d.ts +5 -4
  478. package/core/office-building.d.ts +5 -4
  479. package/core/on-call.d.ts +5 -4
  480. package/core/operations.d.ts +5 -4
  481. package/core/page.d.ts +5 -4
  482. package/core/pages.d.ts +5 -4
  483. package/core/paint-bucket.d.ts +5 -4
  484. package/core/paint-palette.d.ts +5 -4
  485. package/core/pen.d.ts +5 -4
  486. package/core/people-group.d.ts +5 -4
  487. package/core/person-add.d.ts +5 -4
  488. package/core/person-added.d.ts +5 -4
  489. package/core/person-avatar.d.ts +5 -4
  490. package/core/person-offboard.d.ts +5 -4
  491. package/core/person-remove.d.ts +5 -4
  492. package/core/person-warning.d.ts +5 -4
  493. package/core/person.d.ts +5 -4
  494. package/core/phone.d.ts +5 -4
  495. package/core/pin-filled.d.ts +5 -4
  496. package/core/pin.d.ts +5 -4
  497. package/core/plus-square.d.ts +5 -4
  498. package/core/power-plug.d.ts +5 -4
  499. package/core/premium.d.ts +5 -4
  500. package/core/presenter-mode.d.ts +5 -4
  501. package/core/printer.d.ts +5 -4
  502. package/core/priority-blocker.d.ts +5 -4
  503. package/core/priority-critical.d.ts +5 -4
  504. package/core/priority-high.d.ts +5 -4
  505. package/core/priority-highest.d.ts +5 -4
  506. package/core/priority-low.d.ts +5 -4
  507. package/core/priority-lowest.d.ts +5 -4
  508. package/core/priority-major.d.ts +5 -4
  509. package/core/priority-medium.d.ts +5 -4
  510. package/core/priority-minor.d.ts +5 -4
  511. package/core/priority-trivial.d.ts +5 -4
  512. package/core/problem.d.ts +5 -4
  513. package/core/project-status.d.ts +5 -4
  514. package/core/project.d.ts +5 -4
  515. package/core/projection-screen.d.ts +5 -4
  516. package/core/pull-request.d.ts +5 -4
  517. package/core/pulse.d.ts +5 -4
  518. package/core/question-circle.d.ts +5 -4
  519. package/core/quotation-mark.d.ts +5 -4
  520. package/core/radio-checked.d.ts +5 -4
  521. package/core/radio-unchecked.d.ts +5 -4
  522. package/core/redo.d.ts +5 -4
  523. package/core/refresh.d.ts +5 -4
  524. package/core/release.d.ts +5 -4
  525. package/core/retry.d.ts +5 -4
  526. package/core/roadmap.d.ts +5 -4
  527. package/core/scales.d.ts +5 -4
  528. package/core/scorecard.d.ts +5 -4
  529. package/core/screen-plus.d.ts +5 -4
  530. package/core/screen.d.ts +5 -4
  531. package/core/search.d.ts +5 -4
  532. package/core/send.d.ts +5 -4
  533. package/core/settings.d.ts +5 -4
  534. package/core/shapes.d.ts +5 -4
  535. package/core/share.d.ts +5 -4
  536. package/core/shield.d.ts +5 -4
  537. package/core/shortcut.d.ts +5 -4
  538. package/core/show-more-horizontal.d.ts +5 -4
  539. package/core/show-more-vertical.d.ts +5 -4
  540. package/core/shrink-diagonal.d.ts +5 -4
  541. package/core/shrink-horizontal.d.ts +5 -4
  542. package/core/shrink-vertical.d.ts +5 -4
  543. package/core/sidebar-collapse.d.ts +5 -4
  544. package/core/sidebar-expand.d.ts +5 -4
  545. package/core/sidebar-left.d.ts +5 -4
  546. package/core/sidebar-right.d.ts +5 -4
  547. package/core/smart-link-card.d.ts +5 -4
  548. package/core/smart-link-embed.d.ts +5 -4
  549. package/core/smart-link-inline.d.ts +5 -4
  550. package/core/smart-link-list.d.ts +5 -4
  551. package/core/smart-link.d.ts +5 -4
  552. package/core/snippet.d.ts +5 -4
  553. package/core/sort-ascending.d.ts +5 -4
  554. package/core/sort-descending.d.ts +5 -4
  555. package/core/spreadsheet.d.ts +5 -4
  556. package/core/sprint.d.ts +5 -4
  557. package/core/star-starred.d.ts +5 -4
  558. package/core/star-unstarred.d.ts +5 -4
  559. package/core/status-verified.d.ts +5 -4
  560. package/core/stopwatch.d.ts +5 -4
  561. package/core/story.d.ts +5 -4
  562. package/core/subtasks.d.ts +5 -4
  563. package/core/success.d.ts +5 -4
  564. package/core/summarize.d.ts +5 -4
  565. package/core/support.d.ts +5 -4
  566. package/core/table-cell-clear.d.ts +5 -4
  567. package/core/table-cell-merge.d.ts +5 -4
  568. package/core/table-cell-split.d.ts +5 -4
  569. package/core/table-column-add-left.d.ts +5 -4
  570. package/core/table-column-add-right.d.ts +5 -4
  571. package/core/table-column-delete.d.ts +5 -4
  572. package/core/table-column-move-left.d.ts +5 -4
  573. package/core/table-column-move-right.d.ts +5 -4
  574. package/core/table-columns-distribute.d.ts +5 -4
  575. package/core/table-row-add-above.d.ts +5 -4
  576. package/core/table-row-add-below.d.ts +5 -4
  577. package/core/table-row-delete.d.ts +5 -4
  578. package/core/table-row-move-down.d.ts +5 -4
  579. package/core/table-row-move-up.d.ts +5 -4
  580. package/core/tag.d.ts +5 -4
  581. package/core/takeout-food.d.ts +5 -4
  582. package/core/target.d.ts +5 -4
  583. package/core/task-in-progress.d.ts +5 -4
  584. package/core/task-to-do.d.ts +5 -4
  585. package/core/task.d.ts +5 -4
  586. package/core/tasks.d.ts +5 -4
  587. package/core/teams.d.ts +5 -4
  588. package/core/text-bold.d.ts +5 -4
  589. package/core/text-indent-left.d.ts +5 -4
  590. package/core/text-indent-right.d.ts +5 -4
  591. package/core/text-italic.d.ts +5 -4
  592. package/core/text-shorten.d.ts +5 -4
  593. package/core/text-spellcheck.d.ts +5 -4
  594. package/core/text-style.d.ts +5 -4
  595. package/core/text-wrap.d.ts +5 -4
  596. package/core/text.d.ts +5 -4
  597. package/core/theme.d.ts +5 -4
  598. package/core/thumbs-down.d.ts +5 -4
  599. package/core/thumbs-up.d.ts +5 -4
  600. package/core/timeline.d.ts +5 -4
  601. package/core/tools.d.ts +5 -4
  602. package/core/transition.d.ts +5 -4
  603. package/core/translate.d.ts +5 -4
  604. package/core/tree.d.ts +5 -4
  605. package/core/undo.d.ts +5 -4
  606. package/core/upload.d.ts +5 -4
  607. package/core/vehicle-car.d.ts +5 -4
  608. package/core/video-next-overlay.d.ts +5 -4
  609. package/core/video-next.d.ts +5 -4
  610. package/core/video-pause-overlay.d.ts +5 -4
  611. package/core/video-pause.d.ts +5 -4
  612. package/core/video-play-overlay.d.ts +5 -4
  613. package/core/video-play.d.ts +5 -4
  614. package/core/video-previous-overlay.d.ts +5 -4
  615. package/core/video-previous.d.ts +5 -4
  616. package/core/video-skip-backward-ten.d.ts +5 -4
  617. package/core/video-skip-forward-ten.d.ts +5 -4
  618. package/core/video-stop-overlay.d.ts +5 -4
  619. package/core/video-stop.d.ts +5 -4
  620. package/core/video.d.ts +5 -4
  621. package/core/volume-high.d.ts +5 -4
  622. package/core/volume-low.d.ts +5 -4
  623. package/core/volume-muted.d.ts +5 -4
  624. package/core/warning.d.ts +5 -4
  625. package/core/whiteboard.d.ts +5 -4
  626. package/core/zoom-in.d.ts +5 -4
  627. package/core/zoom-out.d.ts +5 -4
  628. package/dist/cjs/components/icon-facade.js +28 -10
  629. package/dist/cjs/components/icon-new.js +54 -35
  630. package/dist/es2019/components/icon-facade.js +28 -10
  631. package/dist/es2019/components/icon-new.js +53 -33
  632. package/dist/esm/components/icon-facade.js +28 -10
  633. package/dist/esm/components/icon-new.js +54 -35
  634. package/dist/types/components/icon-facade.d.ts +3 -3
  635. package/dist/types/components/icon-new.d.ts +2 -2
  636. package/dist/types/entry-points/base-new.d.ts +1 -1
  637. package/dist/types/entry-points/types.d.ts +1 -1
  638. package/dist/types/index.d.ts +1 -1
  639. package/dist/types/types.d.ts +28 -11
  640. package/dist/types-ts4.5/components/icon-facade.d.ts +3 -3
  641. package/dist/types-ts4.5/components/icon-new.d.ts +2 -2
  642. package/dist/types-ts4.5/entry-points/base-new.d.ts +1 -1
  643. package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
  644. package/dist/types-ts4.5/index.d.ts +1 -1
  645. package/dist/types-ts4.5/types.d.ts +28 -11
  646. package/package.json +4 -7
  647. package/utility/add.d.ts +5 -4
  648. package/utility/arrow-down.d.ts +5 -4
  649. package/utility/arrow-left.d.ts +5 -4
  650. package/utility/arrow-right.d.ts +5 -4
  651. package/utility/arrow-up.d.ts +5 -4
  652. package/utility/check-circle.d.ts +5 -4
  653. package/utility/check-mark.d.ts +5 -4
  654. package/utility/chevron-down.d.ts +5 -4
  655. package/utility/chevron-left.d.ts +5 -4
  656. package/utility/chevron-right.d.ts +5 -4
  657. package/utility/chevron-up.d.ts +5 -4
  658. package/utility/cross-circle.d.ts +5 -4
  659. package/utility/cross.d.ts +5 -4
  660. package/utility/drag-handle.d.ts +5 -4
  661. package/utility/error.d.ts +5 -4
  662. package/utility/information.d.ts +5 -4
  663. package/utility/link-external.d.ts +5 -4
  664. package/utility/lock-locked.d.ts +5 -4
  665. package/utility/lock-unlocked.d.ts +5 -4
  666. package/utility/migration/add--add-circle.d.ts +3 -2
  667. package/utility/migration/add--editor-add.d.ts +3 -2
  668. package/utility/migration/add--emoji-custom.d.ts +3 -2
  669. package/utility/migration/add.d.ts +3 -2
  670. package/utility/migration/arrow-down--arrow-down-circle.d.ts +3 -2
  671. package/utility/migration/arrow-down.d.ts +3 -2
  672. package/utility/migration/arrow-left--arrow-left-circle.d.ts +3 -2
  673. package/utility/migration/arrow-left.d.ts +3 -2
  674. package/utility/migration/arrow-right--arrow-right-circle.d.ts +3 -2
  675. package/utility/migration/arrow-right.d.ts +3 -2
  676. package/utility/migration/arrow-up--arrow-up-circle.d.ts +3 -2
  677. package/utility/migration/arrow-up.d.ts +3 -2
  678. package/utility/migration/check-circle--check-circle-outline.d.ts +3 -2
  679. package/utility/migration/check-circle--emoji-productivity.d.ts +3 -2
  680. package/utility/migration/check-circle.d.ts +3 -2
  681. package/utility/migration/check-mark--check.d.ts +3 -2
  682. package/utility/migration/check-mark--editor-done.d.ts +3 -2
  683. package/utility/migration/chevron-down--chevron-down-circle.d.ts +3 -2
  684. package/utility/migration/chevron-down--hipchat-chevron-down.d.ts +3 -2
  685. package/utility/migration/chevron-down.d.ts +3 -2
  686. package/utility/migration/chevron-left--chevron-left-circle.d.ts +3 -2
  687. package/utility/migration/chevron-left--chevron-left-large.d.ts +3 -2
  688. package/utility/migration/chevron-left.d.ts +3 -2
  689. package/utility/migration/chevron-right--chevron-right-circle.d.ts +3 -2
  690. package/utility/migration/chevron-right--chevron-right-large.d.ts +3 -2
  691. package/utility/migration/chevron-right.d.ts +3 -2
  692. package/utility/migration/chevron-up--chevron-up-circle.d.ts +3 -2
  693. package/utility/migration/chevron-up--hipchat-chevron-up.d.ts +3 -2
  694. package/utility/migration/chevron-up.d.ts +3 -2
  695. package/utility/migration/cross--editor-close.d.ts +3 -2
  696. package/utility/migration/cross-circle--editor-error.d.ts +3 -2
  697. package/utility/migration/cross-circle--select-clear.d.ts +3 -2
  698. package/utility/migration/cross-circle.d.ts +3 -2
  699. package/utility/migration/drag-handle--drag-handler.d.ts +3 -2
  700. package/utility/migration/error.d.ts +3 -2
  701. package/utility/migration/information--editor-info.d.ts +3 -2
  702. package/utility/migration/information--editor-panel.d.ts +3 -2
  703. package/utility/migration/information--info.d.ts +3 -2
  704. package/utility/migration/link-external--shortcut.d.ts +3 -2
  705. package/utility/migration/lock-locked--lock-circle.d.ts +3 -2
  706. package/utility/migration/lock-locked--lock-filled.d.ts +3 -2
  707. package/utility/migration/lock-locked--lock.d.ts +3 -2
  708. package/utility/migration/lock-locked--unlock-circle.d.ts +3 -2
  709. package/utility/migration/lock-unlocked--unlock-filled.d.ts +3 -2
  710. package/utility/migration/lock-unlocked--unlock.d.ts +3 -2
  711. package/utility/migration/show-more-horizontal--editor-more.d.ts +3 -2
  712. package/utility/migration/show-more-horizontal--more.d.ts +3 -2
  713. package/utility/migration/show-more-vertical--more-vertical.d.ts +3 -2
  714. package/utility/migration/star-starred--star-filled.d.ts +3 -2
  715. package/utility/migration/star-unstarred--star-large.d.ts +3 -2
  716. package/utility/migration/star-unstarred--star.d.ts +3 -2
  717. package/utility/migration/success--check-circle.d.ts +3 -2
  718. package/utility/migration/success--editor-success.d.ts +3 -2
  719. package/utility/migration/warning--editor-warning.d.ts +3 -2
  720. package/utility/migration/warning.d.ts +3 -2
  721. package/utility/show-more-horizontal.d.ts +5 -4
  722. package/utility/show-more-vertical.d.ts +5 -4
  723. package/utility/star-starred.d.ts +5 -4
  724. package/utility/star-unstarred.d.ts +5 -4
  725. package/utility/success.d.ts +5 -4
  726. package/utility/warning.d.ts +5 -4
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::11c87e054e856629d2fea520a4c16b7d>>
3
+ * @codegen <<SignedSource::58d38edc49316d8197d729fa333814e7>>
4
4
  * @codegenCommand yarn build:icon-glyphs
5
5
  */
6
6
 
7
- import React from 'react';
8
- import Icon from '@atlaskit/icon/UNSAFE_base-new';
7
+ import type React from 'react';
8
+ import type { NewCoreIconProps } from '@atlaskit/icon/UNSAFE_base-new';
9
+ import type Icon from '@atlaskit/icon/UNSAFE_base-new';
9
10
 
10
11
  declare const WhiteboardIcon: {
11
- (props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
12
+ (props: Omit<NewCoreIconProps, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
12
13
  displayName: string;
13
14
  };
14
15
  export default WhiteboardIcon;
package/core/zoom-in.d.ts CHANGED
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::9ed7674a9770302e55927913233491a4>>
3
+ * @codegen <<SignedSource::24ebd0807fef0b223c5c94ed1168eee1>>
4
4
  * @codegenCommand yarn build:icon-glyphs
5
5
  */
6
6
 
7
- import React from 'react';
8
- import Icon from '@atlaskit/icon/UNSAFE_base-new';
7
+ import type React from 'react';
8
+ import type { NewCoreIconProps } from '@atlaskit/icon/UNSAFE_base-new';
9
+ import type Icon from '@atlaskit/icon/UNSAFE_base-new';
9
10
 
10
11
  declare const ZoomInIcon: {
11
- (props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
12
+ (props: Omit<NewCoreIconProps, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
12
13
  displayName: string;
13
14
  };
14
15
  export default ZoomInIcon;
@@ -1,14 +1,15 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::0b32365d82ce6b6a6509cc717e5328fd>>
3
+ * @codegen <<SignedSource::4b1c95268599ebcd76008f066d0043a6>>
4
4
  * @codegenCommand yarn build:icon-glyphs
5
5
  */
6
6
 
7
- import React from 'react';
8
- import Icon from '@atlaskit/icon/UNSAFE_base-new';
7
+ import type React from 'react';
8
+ import type { NewCoreIconProps } from '@atlaskit/icon/UNSAFE_base-new';
9
+ import type Icon from '@atlaskit/icon/UNSAFE_base-new';
9
10
 
10
11
  declare const ZoomOutIcon: {
11
- (props: Omit<React.ComponentProps<typeof Icon>, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
12
+ (props: Omit<NewCoreIconProps, 'dangerouslySetGlyph' | 'type'>): JSX.Element;
12
13
  displayName: string;
13
14
  };
14
15
  export default ZoomOutIcon;
@@ -14,7 +14,16 @@ var _icon = _interopRequireDefault(require("./icon"));
14
14
  var _excluded = ["dangerouslySetGlyph"];
15
15
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
16
16
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
- var sizesEligibleForNewIcons = ['small', 'medium'];
17
+ var sizeSpacingMap = {
18
+ utility: {
19
+ small: 'compact',
20
+ medium: 'spacious'
21
+ },
22
+ core: {
23
+ small: 'none',
24
+ medium: 'spacious'
25
+ }
26
+ };
18
27
 
19
28
  /**
20
29
  * `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
@@ -30,18 +39,27 @@ var IconFacade = exports.IconFacade = /*#__PURE__*/(0, _react.memo)(function Ico
30
39
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
31
40
  var NewIcon = props.newIcon;
32
41
 
33
- // By default, the icon size will be medium and spacing will be none for small icons
42
+ // By default, the icon size will be medium for core icons and small for utility icons
34
43
  var size = (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : 'medium';
35
- var spacing = size === 'small' ? 'none' : 'spacious';
36
44
  var useNewIcon = !props.isFacadeDisabled &&
37
45
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
38
- (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-legacy-facade') && sizesEligibleForNewIcons.includes(size);
39
- if (useNewIcon && NewIcon) {
40
- return /*#__PURE__*/_react.default.createElement(NewIcon, (0, _extends2.default)({}, props, {
41
- spacing: spacing,
42
- color: props.primaryColor || 'currentColor',
43
- type: props.iconType
44
- }));
46
+ (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-legacy-facade');
47
+ if (useNewIcon && NewIcon && (size === 'small' || size === 'medium')) {
48
+ if (props.iconType === 'utility') {
49
+ var Icon = NewIcon;
50
+ return /*#__PURE__*/_react.default.createElement(Icon, (0, _extends2.default)({}, props, {
51
+ spacing: (0, _platformFeatureFlags.fg)('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][size] : 'none',
52
+ color: props.primaryColor || 'currentColor',
53
+ type: props.iconType
54
+ }));
55
+ } else {
56
+ var _Icon = NewIcon;
57
+ return /*#__PURE__*/_react.default.createElement(_Icon, (0, _extends2.default)({}, props, {
58
+ spacing: sizeSpacingMap['core'][size],
59
+ color: props.primaryColor || 'currentColor',
60
+ type: props.iconType
61
+ }));
62
+ }
45
63
  }
46
64
  return /*#__PURE__*/_react.default.createElement(_icon.default, (0, _extends2.default)({
47
65
  dangerouslySetGlyph: dangerouslySetGlyph
@@ -61,28 +61,51 @@ var baseHcmStyles = (0, _react2.css)({
61
61
  filter: 'grayscale(1)'
62
62
  }
63
63
  });
64
+ var scaleSize = (0, _react2.css)({
65
+ width: 'inherit',
66
+ height: 'inherit'
67
+ });
64
68
  var sizeMap = {
65
- scale: (0, _react2.css)({
66
- width: 'inherit',
67
- height: 'inherit'
68
- }),
69
- utility: (0, _react2.css)({
70
- width: "var(--ds-space-150, 12px)",
71
- height: "var(--ds-space-150, 12px)"
72
- }),
73
- none: (0, _react2.css)({
74
- width: "var(--ds-space-200, 16px)",
75
- height: "var(--ds-space-200, 16px)"
76
- }),
77
- spacious: (0, _react2.css)({
78
- width: "var(--ds-space-300, 24px)",
79
- height: "var(--ds-space-300, 24px)"
80
- })
69
+ core: {
70
+ none: (0, _react2.css)({
71
+ width: "var(--ds-space-200, 16px)",
72
+ height: "var(--ds-space-200, 16px)"
73
+ }),
74
+ spacious: (0, _react2.css)({
75
+ width: "var(--ds-space-300, 24px)",
76
+ height: "var(--ds-space-300, 24px)"
77
+ })
78
+ },
79
+ utility: {
80
+ none: (0, _react2.css)({
81
+ width: "var(--ds-space-150, 12px)",
82
+ height: "var(--ds-space-150, 12px)"
83
+ }),
84
+ compact: (0, _react2.css)({
85
+ width: "var(--ds-space-200, 16px)",
86
+ height: "var(--ds-space-200, 16px)"
87
+ }),
88
+ spacious: (0, _react2.css)({
89
+ width: "var(--ds-space-300, 24px)",
90
+ height: "var(--ds-space-300, 24px)"
91
+ })
92
+ }
81
93
  };
82
94
  var baseSizeMap = {
83
- global: 16,
95
+ core: 16,
84
96
  utility: 12
85
97
  };
98
+ var paddingMap = {
99
+ core: {
100
+ none: 0,
101
+ spacious: 4
102
+ },
103
+ utility: {
104
+ none: 0,
105
+ compact: 2,
106
+ spacious: 6
107
+ }
108
+ };
86
109
 
87
110
  /**
88
111
  * __Icon__
@@ -93,26 +116,19 @@ var baseSizeMap = {
93
116
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
94
117
  */
95
118
  var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
119
+ var _props$type, _props$spacing3, _props$spacing4;
96
120
  var _ref = props,
97
- providedColor = _ref.color,
98
- _ref$spacing = _ref.spacing,
99
- providedSpacing = _ref$spacing === void 0 ? 'none' : _ref$spacing,
121
+ _ref$color = _ref.color,
122
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
100
123
  testId = _ref.testId,
101
124
  label = _ref.label,
102
125
  LEGACY_primaryColor = _ref.LEGACY_primaryColor,
103
126
  LEGACY_secondaryColor = _ref.LEGACY_secondaryColor,
104
127
  LEGACY_size = _ref.LEGACY_size,
105
128
  FallbackIcon = _ref.LEGACY_fallbackIcon,
106
- _ref$type = _ref.type,
107
- type = _ref$type === void 0 ? 'global' : _ref$type,
108
129
  dangerouslySetGlyph = _ref.dangerouslySetGlyph,
109
130
  shouldScale = _ref.shouldScale,
110
131
  LEGACY_margin = _ref.LEGACY_margin;
111
- var fallbackColor = "var(--ds-icon, #44546F)";
112
- if ((0, _platformFeatureFlags.fg)('platform-design-system-new-icon-default-color') || (0, _platformFeatureFlags.fg)('platform-design-system-new-icon-default-color-2')) {
113
- fallbackColor = 'currentColor';
114
- }
115
- var color = providedColor !== null && providedColor !== void 0 ? providedColor : fallbackColor;
116
132
  var dangerouslySetInnerHTML = dangerouslySetGlyph ? {
117
133
  __html: dangerouslySetGlyph
118
134
  } : undefined;
@@ -131,12 +147,15 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
131
147
  UNSAFE_margin: LEGACY_margin
132
148
  });
133
149
  }
134
-
135
- // Utility icons don't have 'spacing' as a type, but in case it's provided, we default to 'none'
136
- var spacing = type === 'utility' ? 'none' : providedSpacing;
137
- var baseSize = baseSizeMap[type];
138
- var size = type === 'utility' ? 'utility' : shouldScale ? 'scale' : spacing;
139
- var viewBoxPadding = spacing === 'spacious' ? 4 : 0;
150
+ var baseSize = baseSizeMap[(_props$type = props.type) !== null && _props$type !== void 0 ? _props$type : 'core'];
151
+ var viewBoxPadding;
152
+ if (props.type === 'utility') {
153
+ var _props$spacing;
154
+ viewBoxPadding = paddingMap[props.type][(_props$spacing = props.spacing) !== null && _props$spacing !== void 0 ? _props$spacing : 'none'];
155
+ } else {
156
+ var _props$spacing2;
157
+ viewBoxPadding = paddingMap['core'][(_props$spacing2 = props.spacing) !== null && _props$spacing2 !== void 0 ? _props$spacing2 : 'none'];
158
+ }
140
159
  var viewBoxSize = baseSize + 2 * viewBoxPadding;
141
160
 
142
161
  // Workaround for the transparency in our disabled icon token.
@@ -156,7 +175,7 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
156
175
  style: {
157
176
  color: iconColor
158
177
  },
159
- css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, type === 'utility' && utilityIconStyles]
178
+ css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, props.type === 'utility' && utilityIconStyles]
160
179
  }, (0, _react2.jsx)("svg", {
161
180
  fill: "none"
162
181
  // Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
@@ -164,7 +183,7 @@ var Icon = exports.Icon = /*#__PURE__*/(0, _react.memo)(function Icon(props) {
164
183
  ,
165
184
  viewBox: "".concat(0 - viewBoxPadding, " ").concat(0 - viewBoxPadding, " ").concat(viewBoxSize, " ").concat(viewBoxSize),
166
185
  role: "presentation",
167
- css: [commonSVGStyles, svgStyles, sizeMap[size]],
186
+ css: [commonSVGStyles, svgStyles, shouldScale ? scaleSize : props.type === 'utility' ? sizeMap[props.type][(_props$spacing3 = props.spacing) !== null && _props$spacing3 !== void 0 ? _props$spacing3 : 'none'] : sizeMap['core'][(_props$spacing4 = props.spacing) !== null && _props$spacing4 !== void 0 ? _props$spacing4 : 'none']],
168
187
  dangerouslySetInnerHTML: dangerouslySetInnerHTML
169
188
  }));
170
189
  });
@@ -2,7 +2,16 @@ import _extends from "@babel/runtime/helpers/extends";
2
2
  import React, { memo } from 'react';
3
3
  import { fg } from '@atlaskit/platform-feature-flags';
4
4
  import LegacyIcon from './icon';
5
- const sizesEligibleForNewIcons = ['small', 'medium'];
5
+ const sizeSpacingMap = {
6
+ utility: {
7
+ small: 'compact',
8
+ medium: 'spacious'
9
+ },
10
+ core: {
11
+ small: 'none',
12
+ medium: 'spacious'
13
+ }
14
+ };
6
15
 
7
16
  /**
8
17
  * `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
@@ -19,18 +28,27 @@ export const IconFacade = /*#__PURE__*/memo(function IconFacade({
19
28
  var _props$size;
20
29
  const NewIcon = props.newIcon;
21
30
 
22
- // By default, the icon size will be medium and spacing will be none for small icons
31
+ // By default, the icon size will be medium for core icons and small for utility icons
23
32
  const size = (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : 'medium';
24
- const spacing = size === 'small' ? 'none' : 'spacious';
25
33
  const useNewIcon = !props.isFacadeDisabled &&
26
34
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
27
- fg('platform-visual-refresh-icons-legacy-facade') && sizesEligibleForNewIcons.includes(size);
28
- if (useNewIcon && NewIcon) {
29
- return /*#__PURE__*/React.createElement(NewIcon, _extends({}, props, {
30
- spacing: spacing,
31
- color: props.primaryColor || 'currentColor',
32
- type: props.iconType
33
- }));
35
+ fg('platform-visual-refresh-icons-legacy-facade');
36
+ if (useNewIcon && NewIcon && (size === 'small' || size === 'medium')) {
37
+ if (props.iconType === 'utility') {
38
+ const Icon = NewIcon;
39
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
40
+ spacing: fg('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][size] : 'none',
41
+ color: props.primaryColor || 'currentColor',
42
+ type: props.iconType
43
+ }));
44
+ } else {
45
+ const Icon = NewIcon;
46
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
47
+ spacing: sizeSpacingMap['core'][size],
48
+ color: props.primaryColor || 'currentColor',
49
+ type: props.iconType
50
+ }));
51
+ }
34
52
  }
35
53
  return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
36
54
  dangerouslySetGlyph: dangerouslySetGlyph
@@ -55,28 +55,51 @@ const baseHcmStyles = css({
55
55
  filter: 'grayscale(1)'
56
56
  }
57
57
  });
58
+ const scaleSize = css({
59
+ width: 'inherit',
60
+ height: 'inherit'
61
+ });
58
62
  const sizeMap = {
59
- scale: css({
60
- width: 'inherit',
61
- height: 'inherit'
62
- }),
63
- utility: css({
64
- width: "var(--ds-space-150, 12px)",
65
- height: "var(--ds-space-150, 12px)"
66
- }),
67
- none: css({
68
- width: "var(--ds-space-200, 16px)",
69
- height: "var(--ds-space-200, 16px)"
70
- }),
71
- spacious: css({
72
- width: "var(--ds-space-300, 24px)",
73
- height: "var(--ds-space-300, 24px)"
74
- })
63
+ core: {
64
+ none: css({
65
+ width: "var(--ds-space-200, 16px)",
66
+ height: "var(--ds-space-200, 16px)"
67
+ }),
68
+ spacious: css({
69
+ width: "var(--ds-space-300, 24px)",
70
+ height: "var(--ds-space-300, 24px)"
71
+ })
72
+ },
73
+ utility: {
74
+ none: css({
75
+ width: "var(--ds-space-150, 12px)",
76
+ height: "var(--ds-space-150, 12px)"
77
+ }),
78
+ compact: css({
79
+ width: "var(--ds-space-200, 16px)",
80
+ height: "var(--ds-space-200, 16px)"
81
+ }),
82
+ spacious: css({
83
+ width: "var(--ds-space-300, 24px)",
84
+ height: "var(--ds-space-300, 24px)"
85
+ })
86
+ }
75
87
  };
76
88
  const baseSizeMap = {
77
- global: 16,
89
+ core: 16,
78
90
  utility: 12
79
91
  };
92
+ const paddingMap = {
93
+ core: {
94
+ none: 0,
95
+ spacious: 4
96
+ },
97
+ utility: {
98
+ none: 0,
99
+ compact: 2,
100
+ spacious: 6
101
+ }
102
+ };
80
103
 
81
104
  /**
82
105
  * __Icon__
@@ -87,9 +110,9 @@ const baseSizeMap = {
87
110
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
88
111
  */
89
112
  export const Icon = /*#__PURE__*/memo(function Icon(props) {
113
+ var _props$type, _props$spacing3, _props$spacing4;
90
114
  const {
91
- color: providedColor,
92
- spacing: providedSpacing = 'none',
115
+ color = 'currentColor',
93
116
  testId,
94
117
  label,
95
118
  LEGACY_primaryColor,
@@ -97,18 +120,12 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
97
120
  LEGACY_size,
98
121
  LEGACY_fallbackIcon: FallbackIcon,
99
122
  // Used to set icon dimensions/behaviour in codegen
100
- type = 'global',
101
123
  // Used to set icon glyphs in codegen
102
124
  dangerouslySetGlyph,
103
125
  // Used with iconTile to scale icon up and down
104
126
  shouldScale,
105
127
  LEGACY_margin
106
128
  } = props;
107
- let fallbackColor = "var(--ds-icon, #44546F)";
108
- if (fg('platform-design-system-new-icon-default-color') || fg('platform-design-system-new-icon-default-color-2')) {
109
- fallbackColor = 'currentColor';
110
- }
111
- const color = providedColor !== null && providedColor !== void 0 ? providedColor : fallbackColor;
112
129
  const dangerouslySetInnerHTML = dangerouslySetGlyph ? {
113
130
  __html: dangerouslySetGlyph
114
131
  } : undefined;
@@ -127,12 +144,15 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
127
144
  UNSAFE_margin: LEGACY_margin
128
145
  });
129
146
  }
130
-
131
- // Utility icons don't have 'spacing' as a type, but in case it's provided, we default to 'none'
132
- const spacing = type === 'utility' ? 'none' : providedSpacing;
133
- const baseSize = baseSizeMap[type];
134
- const size = type === 'utility' ? 'utility' : shouldScale ? 'scale' : spacing;
135
- const viewBoxPadding = spacing === 'spacious' ? 4 : 0;
147
+ const baseSize = baseSizeMap[(_props$type = props.type) !== null && _props$type !== void 0 ? _props$type : 'core'];
148
+ let viewBoxPadding;
149
+ if (props.type === 'utility') {
150
+ var _props$spacing;
151
+ viewBoxPadding = paddingMap[props.type][(_props$spacing = props.spacing) !== null && _props$spacing !== void 0 ? _props$spacing : 'none'];
152
+ } else {
153
+ var _props$spacing2;
154
+ viewBoxPadding = paddingMap['core'][(_props$spacing2 = props.spacing) !== null && _props$spacing2 !== void 0 ? _props$spacing2 : 'none'];
155
+ }
136
156
  const viewBoxSize = baseSize + 2 * viewBoxPadding;
137
157
 
138
158
  // Workaround for the transparency in our disabled icon token.
@@ -159,7 +179,7 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
159
179
  style: {
160
180
  color: iconColor
161
181
  },
162
- css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, type === 'utility' && utilityIconStyles]
182
+ css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, props.type === 'utility' && utilityIconStyles]
163
183
  }, jsx("svg", {
164
184
  fill: "none"
165
185
  // Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
@@ -167,7 +187,7 @@ export const Icon = /*#__PURE__*/memo(function Icon(props) {
167
187
  ,
168
188
  viewBox: `${0 - viewBoxPadding} ${0 - viewBoxPadding} ${viewBoxSize} ${viewBoxSize}`,
169
189
  role: "presentation",
170
- css: [commonSVGStyles, svgStyles, sizeMap[size]],
190
+ css: [commonSVGStyles, svgStyles, shouldScale ? scaleSize : props.type === 'utility' ? sizeMap[props.type][(_props$spacing3 = props.spacing) !== null && _props$spacing3 !== void 0 ? _props$spacing3 : 'none'] : sizeMap['core'][(_props$spacing4 = props.spacing) !== null && _props$spacing4 !== void 0 ? _props$spacing4 : 'none']],
171
191
  dangerouslySetInnerHTML: dangerouslySetInnerHTML
172
192
  }));
173
193
  });
@@ -4,7 +4,16 @@ var _excluded = ["dangerouslySetGlyph"];
4
4
  import React, { memo } from 'react';
5
5
  import { fg } from '@atlaskit/platform-feature-flags';
6
6
  import LegacyIcon from './icon';
7
- var sizesEligibleForNewIcons = ['small', 'medium'];
7
+ var sizeSpacingMap = {
8
+ utility: {
9
+ small: 'compact',
10
+ medium: 'spacious'
11
+ },
12
+ core: {
13
+ small: 'none',
14
+ medium: 'spacious'
15
+ }
16
+ };
8
17
 
9
18
  /**
10
19
  * `IconFacade` is a component that conditionally renders either a new or legacy icon based on a feature flag.
@@ -20,18 +29,27 @@ export var IconFacade = /*#__PURE__*/memo(function IconFacade(_ref) {
20
29
  props = _objectWithoutProperties(_ref, _excluded);
21
30
  var NewIcon = props.newIcon;
22
31
 
23
- // By default, the icon size will be medium and spacing will be none for small icons
32
+ // By default, the icon size will be medium for core icons and small for utility icons
24
33
  var size = (_props$size = props.size) !== null && _props$size !== void 0 ? _props$size : 'medium';
25
- var spacing = size === 'small' ? 'none' : 'spacious';
26
34
  var useNewIcon = !props.isFacadeDisabled &&
27
35
  // eslint-disable-next-line @atlaskit/platform/ensure-feature-flag-prefix
28
- fg('platform-visual-refresh-icons-legacy-facade') && sizesEligibleForNewIcons.includes(size);
29
- if (useNewIcon && NewIcon) {
30
- return /*#__PURE__*/React.createElement(NewIcon, _extends({}, props, {
31
- spacing: spacing,
32
- color: props.primaryColor || 'currentColor',
33
- type: props.iconType
34
- }));
36
+ fg('platform-visual-refresh-icons-legacy-facade');
37
+ if (useNewIcon && NewIcon && (size === 'small' || size === 'medium')) {
38
+ if (props.iconType === 'utility') {
39
+ var Icon = NewIcon;
40
+ return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
41
+ spacing: fg('platform-visual-refresh-icons-facade-button-fix') ? sizeSpacingMap['utility'][size] : 'none',
42
+ color: props.primaryColor || 'currentColor',
43
+ type: props.iconType
44
+ }));
45
+ } else {
46
+ var _Icon = NewIcon;
47
+ return /*#__PURE__*/React.createElement(_Icon, _extends({}, props, {
48
+ spacing: sizeSpacingMap['core'][size],
49
+ color: props.primaryColor || 'currentColor',
50
+ type: props.iconType
51
+ }));
52
+ }
35
53
  }
36
54
  return /*#__PURE__*/React.createElement(LegacyIcon, _extends({
37
55
  dangerouslySetGlyph: dangerouslySetGlyph
@@ -55,28 +55,51 @@ var baseHcmStyles = css({
55
55
  filter: 'grayscale(1)'
56
56
  }
57
57
  });
58
+ var scaleSize = css({
59
+ width: 'inherit',
60
+ height: 'inherit'
61
+ });
58
62
  var sizeMap = {
59
- scale: css({
60
- width: 'inherit',
61
- height: 'inherit'
62
- }),
63
- utility: css({
64
- width: "var(--ds-space-150, 12px)",
65
- height: "var(--ds-space-150, 12px)"
66
- }),
67
- none: css({
68
- width: "var(--ds-space-200, 16px)",
69
- height: "var(--ds-space-200, 16px)"
70
- }),
71
- spacious: css({
72
- width: "var(--ds-space-300, 24px)",
73
- height: "var(--ds-space-300, 24px)"
74
- })
63
+ core: {
64
+ none: css({
65
+ width: "var(--ds-space-200, 16px)",
66
+ height: "var(--ds-space-200, 16px)"
67
+ }),
68
+ spacious: css({
69
+ width: "var(--ds-space-300, 24px)",
70
+ height: "var(--ds-space-300, 24px)"
71
+ })
72
+ },
73
+ utility: {
74
+ none: css({
75
+ width: "var(--ds-space-150, 12px)",
76
+ height: "var(--ds-space-150, 12px)"
77
+ }),
78
+ compact: css({
79
+ width: "var(--ds-space-200, 16px)",
80
+ height: "var(--ds-space-200, 16px)"
81
+ }),
82
+ spacious: css({
83
+ width: "var(--ds-space-300, 24px)",
84
+ height: "var(--ds-space-300, 24px)"
85
+ })
86
+ }
75
87
  };
76
88
  var baseSizeMap = {
77
- global: 16,
89
+ core: 16,
78
90
  utility: 12
79
91
  };
92
+ var paddingMap = {
93
+ core: {
94
+ none: 0,
95
+ spacious: 4
96
+ },
97
+ utility: {
98
+ none: 0,
99
+ compact: 2,
100
+ spacious: 6
101
+ }
102
+ };
80
103
 
81
104
  /**
82
105
  * __Icon__
@@ -87,26 +110,19 @@ var baseSizeMap = {
87
110
  * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
88
111
  */
89
112
  export var Icon = /*#__PURE__*/memo(function Icon(props) {
113
+ var _props$type, _props$spacing3, _props$spacing4;
90
114
  var _ref = props,
91
- providedColor = _ref.color,
92
- _ref$spacing = _ref.spacing,
93
- providedSpacing = _ref$spacing === void 0 ? 'none' : _ref$spacing,
115
+ _ref$color = _ref.color,
116
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
94
117
  testId = _ref.testId,
95
118
  label = _ref.label,
96
119
  LEGACY_primaryColor = _ref.LEGACY_primaryColor,
97
120
  LEGACY_secondaryColor = _ref.LEGACY_secondaryColor,
98
121
  LEGACY_size = _ref.LEGACY_size,
99
122
  FallbackIcon = _ref.LEGACY_fallbackIcon,
100
- _ref$type = _ref.type,
101
- type = _ref$type === void 0 ? 'global' : _ref$type,
102
123
  dangerouslySetGlyph = _ref.dangerouslySetGlyph,
103
124
  shouldScale = _ref.shouldScale,
104
125
  LEGACY_margin = _ref.LEGACY_margin;
105
- var fallbackColor = "var(--ds-icon, #44546F)";
106
- if (fg('platform-design-system-new-icon-default-color') || fg('platform-design-system-new-icon-default-color-2')) {
107
- fallbackColor = 'currentColor';
108
- }
109
- var color = providedColor !== null && providedColor !== void 0 ? providedColor : fallbackColor;
110
126
  var dangerouslySetInnerHTML = dangerouslySetGlyph ? {
111
127
  __html: dangerouslySetGlyph
112
128
  } : undefined;
@@ -125,12 +141,15 @@ export var Icon = /*#__PURE__*/memo(function Icon(props) {
125
141
  UNSAFE_margin: LEGACY_margin
126
142
  });
127
143
  }
128
-
129
- // Utility icons don't have 'spacing' as a type, but in case it's provided, we default to 'none'
130
- var spacing = type === 'utility' ? 'none' : providedSpacing;
131
- var baseSize = baseSizeMap[type];
132
- var size = type === 'utility' ? 'utility' : shouldScale ? 'scale' : spacing;
133
- var viewBoxPadding = spacing === 'spacious' ? 4 : 0;
144
+ var baseSize = baseSizeMap[(_props$type = props.type) !== null && _props$type !== void 0 ? _props$type : 'core'];
145
+ var viewBoxPadding;
146
+ if (props.type === 'utility') {
147
+ var _props$spacing;
148
+ viewBoxPadding = paddingMap[props.type][(_props$spacing = props.spacing) !== null && _props$spacing !== void 0 ? _props$spacing : 'none'];
149
+ } else {
150
+ var _props$spacing2;
151
+ viewBoxPadding = paddingMap['core'][(_props$spacing2 = props.spacing) !== null && _props$spacing2 !== void 0 ? _props$spacing2 : 'none'];
152
+ }
134
153
  var viewBoxSize = baseSize + 2 * viewBoxPadding;
135
154
 
136
155
  // Workaround for the transparency in our disabled icon token.
@@ -150,7 +169,7 @@ export var Icon = /*#__PURE__*/memo(function Icon(props) {
150
169
  style: {
151
170
  color: iconColor
152
171
  },
153
- css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, type === 'utility' && utilityIconStyles]
172
+ css: [iconStyles, baseHcmStyles, shouldScale && scaleStyles, props.type === 'utility' && utilityIconStyles]
154
173
  }, jsx("svg", {
155
174
  fill: "none"
156
175
  // Adjusting the viewBox allows the icon padding to scale with the contents of the SVG, which
@@ -158,7 +177,7 @@ export var Icon = /*#__PURE__*/memo(function Icon(props) {
158
177
  ,
159
178
  viewBox: "".concat(0 - viewBoxPadding, " ").concat(0 - viewBoxPadding, " ").concat(viewBoxSize, " ").concat(viewBoxSize),
160
179
  role: "presentation",
161
- css: [commonSVGStyles, svgStyles, sizeMap[size]],
180
+ css: [commonSVGStyles, svgStyles, shouldScale ? scaleSize : props.type === 'utility' ? sizeMap[props.type][(_props$spacing3 = props.spacing) !== null && _props$spacing3 !== void 0 ? _props$spacing3 : 'none'] : sizeMap['core'][(_props$spacing4 = props.spacing) !== null && _props$spacing4 !== void 0 ? _props$spacing4 : 'none']],
162
181
  dangerouslySetInnerHTML: dangerouslySetInnerHTML
163
182
  }));
164
183
  });