@atlaskit/icon 22.1.1 → 22.3.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 (465) hide show
  1. package/CHANGELOG.md +1082 -691
  2. package/UNSAFE_base-new/package.json +15 -0
  3. package/afm-cc/tsconfig.json +3 -0
  4. package/base/package.json +1 -1
  5. package/build/index.tsx +79 -11
  6. package/constants/package.json +1 -1
  7. package/core/add.d.ts +9 -0
  8. package/core/add.js +26 -0
  9. package/core/ai-agent.d.ts +9 -0
  10. package/core/ai-agent.js +26 -0
  11. package/core/ai-chat.d.ts +9 -0
  12. package/core/ai-chat.js +26 -0
  13. package/core/alert.d.ts +9 -0
  14. package/core/alert.js +26 -0
  15. package/core/align-center.d.ts +9 -0
  16. package/core/align-center.js +26 -0
  17. package/core/align-left.d.ts +9 -0
  18. package/core/align-left.js +26 -0
  19. package/core/align-right.d.ts +9 -0
  20. package/core/align-right.js +26 -0
  21. package/core/angle-brackets.d.ts +9 -0
  22. package/core/angle-brackets.js +26 -0
  23. package/core/app.d.ts +9 -0
  24. package/core/app.js +26 -0
  25. package/core/apps.d.ts +9 -0
  26. package/core/apps.js +26 -0
  27. package/core/archive-box.d.ts +9 -0
  28. package/core/archive-box.js +26 -0
  29. package/core/arrow-down.d.ts +9 -0
  30. package/core/arrow-down.js +26 -0
  31. package/core/arrow-left.d.ts +9 -0
  32. package/core/arrow-left.js +26 -0
  33. package/core/arrow-right.d.ts +9 -0
  34. package/core/arrow-right.js +26 -0
  35. package/core/arrow-up-right.d.ts +9 -0
  36. package/core/arrow-up-right.js +26 -0
  37. package/core/arrow-up.d.ts +9 -0
  38. package/core/arrow-up.js +26 -0
  39. package/core/atlassian-intelligence.d.ts +9 -0
  40. package/core/atlassian-intelligence.js +26 -0
  41. package/core/attachment.d.ts +9 -0
  42. package/core/attachment.js +26 -0
  43. package/core/audio.d.ts +9 -0
  44. package/core/audio.js +25 -0
  45. package/core/automation.d.ts +9 -0
  46. package/core/automation.js +26 -0
  47. package/core/backlog.d.ts +9 -0
  48. package/core/backlog.js +26 -0
  49. package/core/board.d.ts +9 -0
  50. package/core/board.js +26 -0
  51. package/core/boards.d.ts +9 -0
  52. package/core/boards.js +26 -0
  53. package/core/book-with-bookmark.d.ts +9 -0
  54. package/core/book-with-bookmark.js +26 -0
  55. package/core/branch.d.ts +9 -0
  56. package/core/branch.js +26 -0
  57. package/core/briefcase.d.ts +9 -0
  58. package/core/briefcase.js +26 -0
  59. package/core/bug.d.ts +9 -0
  60. package/core/bug.js +26 -0
  61. package/core/bulleted-list.d.ts +9 -0
  62. package/core/bulleted-list.js +26 -0
  63. package/core/calendar.d.ts +9 -0
  64. package/core/calendar.js +26 -0
  65. package/core/camera.d.ts +9 -0
  66. package/core/camera.js +26 -0
  67. package/core/capture.d.ts +9 -0
  68. package/core/capture.js +25 -0
  69. package/core/changes.d.ts +9 -0
  70. package/core/changes.js +26 -0
  71. package/core/chart-bar.d.ts +9 -0
  72. package/core/chart-bar.js +26 -0
  73. package/core/chart-matrix.d.ts +9 -0
  74. package/core/chart-matrix.js +26 -0
  75. package/core/chart-pie.d.ts +9 -0
  76. package/core/chart-pie.js +26 -0
  77. package/core/chart-trend.d.ts +9 -0
  78. package/core/chart-trend.js +26 -0
  79. package/core/check-circle.d.ts +9 -0
  80. package/core/check-circle.js +26 -0
  81. package/core/check-mark.d.ts +9 -0
  82. package/core/check-mark.js +26 -0
  83. package/core/checkbox-checked.d.ts +9 -0
  84. package/core/checkbox-checked.js +26 -0
  85. package/core/checkbox-indeterminate.d.ts +9 -0
  86. package/core/checkbox-indeterminate.js +26 -0
  87. package/core/checkbox-unchecked.d.ts +9 -0
  88. package/core/checkbox-unchecked.js +26 -0
  89. package/core/child-issues.d.ts +9 -0
  90. package/core/child-issues.js +26 -0
  91. package/core/clock.d.ts +9 -0
  92. package/core/clock.js +26 -0
  93. package/core/close.d.ts +9 -0
  94. package/core/close.js +26 -0
  95. package/core/cloud-arrow-up.d.ts +9 -0
  96. package/core/cloud-arrow-up.js +26 -0
  97. package/core/collapse.d.ts +9 -0
  98. package/core/collapse.js +26 -0
  99. package/core/comment-add.d.ts +9 -0
  100. package/core/comment-add.js +26 -0
  101. package/core/comment.d.ts +9 -0
  102. package/core/comment.js +26 -0
  103. package/core/commit.d.ts +9 -0
  104. package/core/commit.js +26 -0
  105. package/core/compass.d.ts +9 -0
  106. package/core/compass.js +26 -0
  107. package/core/component.d.ts +9 -0
  108. package/core/component.js +26 -0
  109. package/core/copy.d.ts +9 -0
  110. package/core/copy.js +26 -0
  111. package/core/credit-card.d.ts +9 -0
  112. package/core/credit-card.js +26 -0
  113. package/core/cross-circle.d.ts +9 -0
  114. package/core/cross-circle.js +26 -0
  115. package/core/customize.d.ts +9 -0
  116. package/core/customize.js +26 -0
  117. package/core/dashboard.d.ts +9 -0
  118. package/core/dashboard.js +26 -0
  119. package/core/database.d.ts +9 -0
  120. package/core/database.js +26 -0
  121. package/core/decision.d.ts +9 -0
  122. package/core/decision.js +26 -0
  123. package/core/delete.d.ts +9 -0
  124. package/core/delete.js +26 -0
  125. package/core/department.d.ts +9 -0
  126. package/core/department.js +26 -0
  127. package/core/device-mobile.d.ts +9 -0
  128. package/core/device-mobile.js +26 -0
  129. package/core/download.d.ts +9 -0
  130. package/core/download.js +26 -0
  131. package/core/drag-handle.d.ts +9 -0
  132. package/core/drag-handle.js +26 -0
  133. package/core/edit.d.ts +9 -0
  134. package/core/edit.js +26 -0
  135. package/core/email.d.ts +9 -0
  136. package/core/email.js +26 -0
  137. package/core/emoji-add.d.ts +9 -0
  138. package/core/emoji-add.js +26 -0
  139. package/core/emoji.d.ts +9 -0
  140. package/core/emoji.js +26 -0
  141. package/core/epic.d.ts +9 -0
  142. package/core/epic.js +26 -0
  143. package/core/error.d.ts +9 -0
  144. package/core/error.js +26 -0
  145. package/core/expand.d.ts +9 -0
  146. package/core/expand.js +26 -0
  147. package/core/eye-open-filled.d.ts +9 -0
  148. package/core/eye-open-filled.js +26 -0
  149. package/core/eye-open.d.ts +9 -0
  150. package/core/eye-open.js +26 -0
  151. package/core/feed.d.ts +9 -0
  152. package/core/feed.js +26 -0
  153. package/core/feedback.d.ts +9 -0
  154. package/core/feedback.js +26 -0
  155. package/core/filter.d.ts +9 -0
  156. package/core/filter.js +26 -0
  157. package/core/flag.d.ts +9 -0
  158. package/core/flag.js +26 -0
  159. package/core/flask.d.ts +9 -0
  160. package/core/flask.js +26 -0
  161. package/core/folder-closed.d.ts +9 -0
  162. package/core/folder-closed.js +26 -0
  163. package/core/folder-open.d.ts +9 -0
  164. package/core/folder-open.js +26 -0
  165. package/core/fullscreen-enter.d.ts +9 -0
  166. package/core/fullscreen-enter.js +26 -0
  167. package/core/fullscreen-exit.d.ts +9 -0
  168. package/core/fullscreen-exit.js +26 -0
  169. package/core/globe.d.ts +9 -0
  170. package/core/globe.js +26 -0
  171. package/core/goal.d.ts +9 -0
  172. package/core/goal.js +26 -0
  173. package/core/grid.d.ts +9 -0
  174. package/core/grid.js +26 -0
  175. package/core/hashtag.d.ts +9 -0
  176. package/core/hashtag.js +26 -0
  177. package/core/heart.d.ts +9 -0
  178. package/core/heart.js +26 -0
  179. package/core/home.d.ts +9 -0
  180. package/core/home.js +26 -0
  181. package/core/image.d.ts +9 -0
  182. package/core/image.js +26 -0
  183. package/core/inbox.d.ts +9 -0
  184. package/core/inbox.js +26 -0
  185. package/core/incident.d.ts +9 -0
  186. package/core/incident.js +26 -0
  187. package/core/information.d.ts +9 -0
  188. package/core/information.js +26 -0
  189. package/core/issue.d.ts +9 -0
  190. package/core/issue.js +26 -0
  191. package/core/issues.d.ts +9 -0
  192. package/core/issues.js +26 -0
  193. package/core/lightbulb.d.ts +9 -0
  194. package/core/lightbulb.js +26 -0
  195. package/core/link-broken.d.ts +9 -0
  196. package/core/link-broken.js +26 -0
  197. package/core/link-external.d.ts +9 -0
  198. package/core/link-external.js +26 -0
  199. package/core/link.d.ts +9 -0
  200. package/core/link.js +26 -0
  201. package/core/lobby-bell.d.ts +9 -0
  202. package/core/lobby-bell.js +26 -0
  203. package/core/location.d.ts +9 -0
  204. package/core/location.js +26 -0
  205. package/core/lock-locked.d.ts +9 -0
  206. package/core/lock-locked.js +26 -0
  207. package/core/lock-unlocked.d.ts +9 -0
  208. package/core/lock-unlocked.js +26 -0
  209. package/core/log-in.d.ts +9 -0
  210. package/core/log-in.js +26 -0
  211. package/core/log-out.d.ts +9 -0
  212. package/core/log-out.js +26 -0
  213. package/core/marketplace.d.ts +9 -0
  214. package/core/marketplace.js +26 -0
  215. package/core/maximize.d.ts +9 -0
  216. package/core/maximize.js +26 -0
  217. package/core/megaphone.d.ts +9 -0
  218. package/core/megaphone.js +26 -0
  219. package/core/mention.d.ts +9 -0
  220. package/core/mention.js +26 -0
  221. package/core/microphone.d.ts +9 -0
  222. package/core/microphone.js +26 -0
  223. package/core/minimize.d.ts +9 -0
  224. package/core/minimize.js +26 -0
  225. package/core/node.d.ts +9 -0
  226. package/core/node.js +26 -0
  227. package/core/office-building.d.ts +9 -0
  228. package/core/office-building.js +26 -0
  229. package/core/page.d.ts +9 -0
  230. package/core/page.js +26 -0
  231. package/core/pages.d.ts +9 -0
  232. package/core/pages.js +26 -0
  233. package/core/person-add.d.ts +9 -0
  234. package/core/person-add.js +26 -0
  235. package/core/person-added.d.ts +9 -0
  236. package/core/person-added.js +26 -0
  237. package/core/person-avatar.d.ts +9 -0
  238. package/core/person-avatar.js +26 -0
  239. package/core/person-offboard.d.ts +9 -0
  240. package/core/person-offboard.js +25 -0
  241. package/core/person.d.ts +9 -0
  242. package/core/person.js +26 -0
  243. package/core/phone.d.ts +9 -0
  244. package/core/phone.js +26 -0
  245. package/core/pin-filled.d.ts +9 -0
  246. package/core/pin-filled.js +26 -0
  247. package/core/pin.d.ts +9 -0
  248. package/core/pin.js +26 -0
  249. package/core/power-plug.d.ts +9 -0
  250. package/core/power-plug.js +26 -0
  251. package/core/premium.d.ts +9 -0
  252. package/core/premium.js +26 -0
  253. package/core/presenter-mode.d.ts +9 -0
  254. package/core/presenter-mode.js +26 -0
  255. package/core/printer.d.ts +9 -0
  256. package/core/printer.js +26 -0
  257. package/core/priority-blocker.d.ts +9 -0
  258. package/core/priority-blocker.js +26 -0
  259. package/core/priority-critical.d.ts +9 -0
  260. package/core/priority-critical.js +26 -0
  261. package/core/priority-high.d.ts +9 -0
  262. package/core/priority-high.js +26 -0
  263. package/core/priority-highest.d.ts +9 -0
  264. package/core/priority-highest.js +26 -0
  265. package/core/priority-low.d.ts +9 -0
  266. package/core/priority-low.js +26 -0
  267. package/core/priority-lowest.d.ts +9 -0
  268. package/core/priority-lowest.js +26 -0
  269. package/core/priority-major.d.ts +9 -0
  270. package/core/priority-major.js +26 -0
  271. package/core/priority-medium.d.ts +9 -0
  272. package/core/priority-medium.js +26 -0
  273. package/core/priority-minor.d.ts +9 -0
  274. package/core/priority-minor.js +26 -0
  275. package/core/priority-trivial.d.ts +9 -0
  276. package/core/priority-trivial.js +26 -0
  277. package/core/problem.d.ts +9 -0
  278. package/core/problem.js +26 -0
  279. package/core/project.d.ts +9 -0
  280. package/core/project.js +26 -0
  281. package/core/pull-request.d.ts +9 -0
  282. package/core/pull-request.js +26 -0
  283. package/core/question-circle.d.ts +9 -0
  284. package/core/question-circle.js +26 -0
  285. package/core/quotation-mark.d.ts +9 -0
  286. package/core/quotation-mark.js +26 -0
  287. package/core/redo.d.ts +9 -0
  288. package/core/redo.js +26 -0
  289. package/core/release.d.ts +9 -0
  290. package/core/release.js +26 -0
  291. package/core/retry.d.ts +9 -0
  292. package/core/retry.js +26 -0
  293. package/core/roadmap.d.ts +9 -0
  294. package/core/roadmap.js +26 -0
  295. package/core/scorecard.d.ts +9 -0
  296. package/core/scorecard.js +26 -0
  297. package/core/screen.d.ts +9 -0
  298. package/core/screen.js +26 -0
  299. package/core/search.d.ts +9 -0
  300. package/core/search.js +26 -0
  301. package/core/send.d.ts +9 -0
  302. package/core/send.js +26 -0
  303. package/core/settings.d.ts +9 -0
  304. package/core/settings.js +26 -0
  305. package/core/shapes.d.ts +9 -0
  306. package/core/shapes.js +26 -0
  307. package/core/share.d.ts +9 -0
  308. package/core/share.js +26 -0
  309. package/core/shield.d.ts +9 -0
  310. package/core/shield.js +26 -0
  311. package/core/shortcut.d.ts +9 -0
  312. package/core/shortcut.js +26 -0
  313. package/core/show-more-horizontal.d.ts +9 -0
  314. package/core/show-more-horizontal.js +26 -0
  315. package/core/show-more-vertical.d.ts +9 -0
  316. package/core/show-more-vertical.js +26 -0
  317. package/core/sidebar-collapse.d.ts +9 -0
  318. package/core/sidebar-collapse.js +26 -0
  319. package/core/sidebar-expand.d.ts +9 -0
  320. package/core/sidebar-expand.js +26 -0
  321. package/core/snippet.d.ts +9 -0
  322. package/core/snippet.js +26 -0
  323. package/core/spreadsheet.d.ts +9 -0
  324. package/core/spreadsheet.js +26 -0
  325. package/core/sprint.d.ts +9 -0
  326. package/core/sprint.js +26 -0
  327. package/core/star-starred.d.ts +9 -0
  328. package/core/star-starred.js +26 -0
  329. package/core/star-unstarred.d.ts +9 -0
  330. package/core/star-unstarred.js +26 -0
  331. package/core/stopwatch.d.ts +9 -0
  332. package/core/stopwatch.js +26 -0
  333. package/core/story.d.ts +9 -0
  334. package/core/story.js +26 -0
  335. package/core/subtasks.d.ts +9 -0
  336. package/core/subtasks.js +26 -0
  337. package/core/tag.d.ts +9 -0
  338. package/core/tag.js +26 -0
  339. package/core/task.d.ts +9 -0
  340. package/core/task.js +26 -0
  341. package/core/tasks.d.ts +9 -0
  342. package/core/tasks.js +26 -0
  343. package/core/teams.d.ts +9 -0
  344. package/core/teams.js +26 -0
  345. package/core/text-style.d.ts +9 -0
  346. package/core/text-style.js +26 -0
  347. package/core/thumbs-down.d.ts +9 -0
  348. package/core/thumbs-down.js +26 -0
  349. package/core/thumbs-up.d.ts +9 -0
  350. package/core/thumbs-up.js +26 -0
  351. package/core/timeline.d.ts +9 -0
  352. package/core/timeline.js +26 -0
  353. package/core/transition.d.ts +9 -0
  354. package/core/transition.js +26 -0
  355. package/core/undo.d.ts +9 -0
  356. package/core/undo.js +26 -0
  357. package/core/upload.d.ts +9 -0
  358. package/core/upload.js +26 -0
  359. package/core/video-next.d.ts +9 -0
  360. package/core/video-next.js +26 -0
  361. package/core/video-pause.d.ts +9 -0
  362. package/core/video-pause.js +26 -0
  363. package/core/video-play.d.ts +9 -0
  364. package/core/video-play.js +26 -0
  365. package/core/video-previous.d.ts +9 -0
  366. package/core/video-previous.js +26 -0
  367. package/core/video.d.ts +9 -0
  368. package/core/video.js +26 -0
  369. package/core/volume-high.d.ts +9 -0
  370. package/core/volume-high.js +25 -0
  371. package/core/volume-low.d.ts +9 -0
  372. package/core/volume-low.js +25 -0
  373. package/core/volume-muted.d.ts +9 -0
  374. package/core/volume-muted.js +25 -0
  375. package/core/warning.d.ts +9 -0
  376. package/core/warning.js +26 -0
  377. package/core/whiteboard.d.ts +9 -0
  378. package/core/whiteboard.js +26 -0
  379. package/core/zoom-in.d.ts +9 -0
  380. package/core/zoom-in.js +26 -0
  381. package/core/zoom-out.d.ts +9 -0
  382. package/core/zoom-out.js +26 -0
  383. package/dist/cjs/components/icon-new.js +155 -0
  384. package/dist/cjs/components/icon-tile.js +155 -0
  385. package/dist/cjs/components/icon.js +1 -3
  386. package/dist/cjs/entry-points/base-new.js +21 -0
  387. package/dist/cjs/entry-points/base.js +2 -2
  388. package/dist/cjs/entry-points/types.js +1 -5
  389. package/dist/cjs/index.js +15 -1
  390. package/dist/cjs/metadata-core.js +2019 -0
  391. package/dist/cjs/metadata-utility.js +214 -0
  392. package/dist/es2019/components/icon-new.js +156 -0
  393. package/dist/es2019/components/icon-tile.js +149 -0
  394. package/dist/es2019/components/icon.js +1 -3
  395. package/dist/es2019/entry-points/base-new.js +1 -0
  396. package/dist/es2019/entry-points/types.js +0 -1
  397. package/dist/es2019/index.js +3 -1
  398. package/dist/es2019/metadata-core.js +2013 -0
  399. package/dist/es2019/metadata-utility.js +208 -0
  400. package/dist/esm/components/icon-new.js +149 -0
  401. package/dist/esm/components/icon-tile.js +149 -0
  402. package/dist/esm/components/icon.js +1 -3
  403. package/dist/esm/entry-points/base-new.js +1 -0
  404. package/dist/esm/entry-points/types.js +0 -1
  405. package/dist/esm/index.js +3 -1
  406. package/dist/esm/metadata-core.js +2013 -0
  407. package/dist/esm/metadata-utility.js +208 -0
  408. package/dist/types/components/icon-new.d.ts +23 -0
  409. package/dist/types/components/icon-tile.d.ts +12 -0
  410. package/dist/types/entry-points/base-new.d.ts +2 -0
  411. package/dist/types/entry-points/types.d.ts +1 -1
  412. package/dist/types/index.d.ts +3 -1
  413. package/dist/types/metadata-core.d.ts +22 -0
  414. package/dist/types/metadata-utility.d.ts +22 -0
  415. package/dist/types/types.d.ts +75 -6
  416. package/dist/types-ts4.5/components/icon-new.d.ts +23 -0
  417. package/dist/types-ts4.5/components/icon-tile.d.ts +12 -0
  418. package/dist/types-ts4.5/entry-points/base-new.d.ts +2 -0
  419. package/dist/types-ts4.5/entry-points/types.d.ts +1 -1
  420. package/dist/types-ts4.5/index.d.ts +3 -1
  421. package/dist/types-ts4.5/metadata-core.d.ts +22 -0
  422. package/dist/types-ts4.5/metadata-utility.d.ts +22 -0
  423. package/dist/types-ts4.5/types.d.ts +75 -6
  424. package/metadata/package.json +1 -1
  425. package/package.json +26 -10
  426. package/svg/package.json +1 -1
  427. package/types/package.json +1 -1
  428. package/utility/add.d.ts +9 -0
  429. package/utility/add.js +27 -0
  430. package/utility/check-circle.d.ts +9 -0
  431. package/utility/check-circle.js +27 -0
  432. package/utility/check-mark.d.ts +9 -0
  433. package/utility/check-mark.js +27 -0
  434. package/utility/chevron-down.d.ts +9 -0
  435. package/utility/chevron-down.js +27 -0
  436. package/utility/chevron-left.d.ts +9 -0
  437. package/utility/chevron-left.js +27 -0
  438. package/utility/chevron-right.d.ts +9 -0
  439. package/utility/chevron-right.js +27 -0
  440. package/utility/chevron-up.d.ts +9 -0
  441. package/utility/chevron-up.js +27 -0
  442. package/utility/cross-circle.d.ts +9 -0
  443. package/utility/cross-circle.js +27 -0
  444. package/utility/cross.d.ts +9 -0
  445. package/utility/cross.js +27 -0
  446. package/utility/error.d.ts +9 -0
  447. package/utility/error.js +27 -0
  448. package/utility/information.d.ts +9 -0
  449. package/utility/information.js +27 -0
  450. package/utility/link-external.d.ts +9 -0
  451. package/utility/link-external.js +27 -0
  452. package/utility/lock-locked.d.ts +9 -0
  453. package/utility/lock-locked.js +27 -0
  454. package/utility/lock-unlocked.d.ts +9 -0
  455. package/utility/lock-unlocked.js +27 -0
  456. package/utility/show-more-horizontal.d.ts +9 -0
  457. package/utility/show-more-horizontal.js +27 -0
  458. package/utility/show-more-vertical.d.ts +9 -0
  459. package/utility/show-more-vertical.js +27 -0
  460. package/utility/star-starred.d.ts +9 -0
  461. package/utility/star-starred.js +27 -0
  462. package/utility/star-unstarred.d.ts +9 -0
  463. package/utility/star-unstarred.js +27 -0
  464. package/utility/warning.d.ts +9 -0
  465. package/utility/warning.js +27 -0
@@ -0,0 +1,208 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by the build process.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ *
7
+ * To change the format of this file, modify build/icon/createIconDocs.tsx.
8
+ * Add synonyms via the 'synonyms' parameter.
9
+ */
10
+
11
+ var metadata = {
12
+ add: {
13
+ keywords: ['add', 'plus', 'create', 'new', 'icon', 'utility', 'create', 'plus'],
14
+ componentName: 'AddIcon',
15
+ package: '@atlaskit/icon/utility/add',
16
+ oldName: 'AddIcon',
17
+ categorization: 'Multi-purpose',
18
+ location: 'ADS',
19
+ team: 'ADS',
20
+ type: 'Utility',
21
+ usage: 'Reserved for creating and adding an object as a secondary action within a Menu Item.'
22
+ },
23
+ 'check-circle': {
24
+ keywords: ['check-circle', 'checkcircle', 'tick', 'icon', 'utility', 'tick', 'yes', 'success', 'filled'],
25
+ componentName: 'CheckCircleIcon',
26
+ package: '@atlaskit/icon/utility/check-circle',
27
+ categorization: 'Multi-purpose',
28
+ location: 'ADS',
29
+ team: 'ADS',
30
+ type: 'Utility',
31
+ usage: 'Reserved for Helper Messages in Forms.'
32
+ },
33
+ 'check-mark': {
34
+ keywords: ['check-mark', 'checkmark', 'icon', 'utility', 'Known uses: table cells', 'checkboxes.'],
35
+ componentName: 'CheckMarkIcon',
36
+ package: '@atlaskit/icon/utility/check-mark',
37
+ categorization: 'Multi-purpose',
38
+ location: 'ADS',
39
+ team: 'ADS',
40
+ type: 'Utility',
41
+ usage: 'TBD'
42
+ },
43
+ 'chevron-down': {
44
+ keywords: ['chevron-down', 'chevrondown', 'expand', 'collapse', 'icon', 'utility', 'accordion', 'down'],
45
+ componentName: 'ChevronDownIcon',
46
+ package: '@atlaskit/icon/utility/chevron-down',
47
+ oldName: 'ChevronDownIcon',
48
+ categorization: 'Multi-purpose',
49
+ location: 'ADS',
50
+ team: 'ADS',
51
+ type: 'Utility',
52
+ usage: 'Reserved for dropdown menus, selects, accordions, and expands.'
53
+ },
54
+ 'chevron-left': {
55
+ keywords: ['chevron-left', 'chevronleft', 'back', 'previous', 'icon', 'utility', 'less than', '<', 'previous'],
56
+ componentName: 'ChevronLeftIcon',
57
+ package: '@atlaskit/icon/utility/chevron-left',
58
+ oldName: 'ChevronLeftIcon',
59
+ categorization: 'Multi-purpose',
60
+ location: 'ADS',
61
+ team: 'ADS',
62
+ type: 'Utility',
63
+ usage: 'Reserved for collapse side nav and to indicate previous in dates.'
64
+ },
65
+ 'chevron-right': {
66
+ keywords: ['chevron-right', 'chevronright', 'forward', 'next', 'icon', 'utility', 'greater than', '>', 'next'],
67
+ componentName: 'ChevronRightIcon',
68
+ package: '@atlaskit/icon/utility/chevron-right',
69
+ oldName: 'ChevronRightIcon',
70
+ categorization: 'Multi-purpose',
71
+ location: 'ADS',
72
+ team: 'ADS',
73
+ type: 'Utility',
74
+ usage: 'Reserved for menu fly-outs and to indicate next in dates.'
75
+ },
76
+ 'chevron-up': {
77
+ keywords: ['chevron-up', 'chevronup', 'expand', 'collapse', 'icon', 'utility', 'up', 'accordion'],
78
+ componentName: 'ChevronUpIcon',
79
+ package: '@atlaskit/icon/utility/chevron-up',
80
+ oldName: 'ChevronUpIcon',
81
+ categorization: 'Multi-purpose',
82
+ location: 'ADS',
83
+ team: 'ADS',
84
+ type: 'Utility',
85
+ usage: 'Reserved for accordions.'
86
+ },
87
+ cross: {
88
+ keywords: ['cross', 'close', 'x', 'cancel', 'icon', 'utility', 'remove', 'clear', 'x'],
89
+ componentName: 'CrossIcon',
90
+ package: '@atlaskit/icon/utility/cross',
91
+ categorization: 'Multi-purpose',
92
+ location: 'ADS',
93
+ team: 'ADS',
94
+ type: 'Utility',
95
+ usage: 'Known uses: remove tag.'
96
+ },
97
+ 'cross-circle': {
98
+ keywords: ['cross-circle', 'crosscircle', 'close', 'x', 'cancel', 'icon', 'utility', 'x', 'exit', 'clear', 'no', 'filled', 'form'],
99
+ componentName: 'CrossCircleIcon',
100
+ package: '@atlaskit/icon/utility/cross-circle',
101
+ categorization: 'Multi-purpose',
102
+ location: 'ADS',
103
+ team: 'ADS',
104
+ type: 'Utility',
105
+ usage: 'Reserved for Helper Messages in Forms.'
106
+ },
107
+ error: {
108
+ keywords: ['error', 'warning', 'alert', 'icon', 'utility', 'filled', 'status', 'form', 'helper'],
109
+ componentName: 'ErrorIcon',
110
+ package: '@atlaskit/icon/utility/error',
111
+ categorization: 'Multi-purpose',
112
+ location: 'ADS',
113
+ team: 'ADS',
114
+ type: 'Utility',
115
+ usage: 'Reserved for Helper Messages in Forms.'
116
+ },
117
+ information: {
118
+ keywords: ['information', 'icon', 'utility', 'info', 'filled', 'helper', 'tip', 'form'],
119
+ componentName: 'InformationIcon',
120
+ package: '@atlaskit/icon/utility/information',
121
+ categorization: 'Multi-purpose',
122
+ location: 'ADS',
123
+ team: 'ADS',
124
+ type: 'Utility',
125
+ usage: 'Reserved for Helper Messages in Forms.'
126
+ },
127
+ 'link-external': {
128
+ keywords: ['link-external', 'linkexternal', 'icon', 'utility', 'new tab', 'new window', 'open in', 'url', 'hyperlink', 'www', 'http', 'https', 'website', 'external', 'shortcut', 'diagonal arrow', 'secondary', 'tertiary'],
129
+ componentName: 'LinkExternalIcon',
130
+ package: '@atlaskit/icon/utility/link-external',
131
+ categorization: 'Multi-purpose',
132
+ location: 'ADS',
133
+ team: 'ADS',
134
+ type: 'Utility',
135
+ usage: 'Reserved for links that open up a new tab as a secondary/tertiary action.'
136
+ },
137
+ 'lock-locked': {
138
+ keywords: ['lock-locked', 'locklocked', 'icon', 'utility', 'secondary', 'tertiary', 'permissions', 'no access', 'restricted', 'security', 'secure', 'forbidden', 'authentication'],
139
+ componentName: 'LockLockedIcon',
140
+ package: '@atlaskit/icon/utility/lock-locked',
141
+ categorization: 'Multi-purpose',
142
+ location: 'ADS',
143
+ team: 'ADS',
144
+ type: 'Utility',
145
+ usage: 'Reserved for indicating something is locked in the side navigation Menu Item.'
146
+ },
147
+ 'lock-unlocked': {
148
+ keywords: ['lock-unlocked', 'lockunlocked', 'icon', 'utility', 'secondary', 'tertiary', 'open permissions', 'unrestricted access', 'security', 'insecure', 'authentication'],
149
+ componentName: 'LockUnlockedIcon',
150
+ package: '@atlaskit/icon/utility/lock-unlocked',
151
+ categorization: 'Multi-purpose',
152
+ location: 'ADS',
153
+ team: 'ADS',
154
+ type: 'Utility',
155
+ usage: 'Reserved for indicating something is locked in the side navigation Menu Item.'
156
+ },
157
+ 'show-more-horizontal': {
158
+ keywords: ['show-more-horizontal', 'showmorehorizontal', 'icon', 'utility', 'ellipses', 'three dots', 'meatball', 'more actions', 'secondary', 'tertiary'],
159
+ componentName: 'ShowMoreHorizontalIcon',
160
+ package: '@atlaskit/icon/utility/show-more-horizontal',
161
+ categorization: 'Multi-purpose',
162
+ location: 'ADS',
163
+ team: 'ADS',
164
+ type: 'Utility',
165
+ usage: 'Reserved for secondary/tertiary more action menus.'
166
+ },
167
+ 'show-more-vertical': {
168
+ keywords: ['show-more-vertical', 'showmorevertical', 'icon', 'utility', 'three dots', 'kebab', 'more actions', 'secondary', 'tertiary'],
169
+ componentName: 'ShowMoreVerticalIcon',
170
+ package: '@atlaskit/icon/utility/show-more-vertical',
171
+ categorization: 'Multi-purpose',
172
+ location: 'ADS',
173
+ team: 'ADS',
174
+ type: 'Utility',
175
+ usage: 'Reserved for secondary/tertiary action menus, traditionally on mobile.'
176
+ },
177
+ 'star-starred': {
178
+ keywords: ['star-starred', 'starstarred', 'icon', 'utility', 'favourite', 'star', 'starred', 'filled', 'menu', 'secondary', 'tertiary'],
179
+ componentName: 'StarStarredIcon',
180
+ package: '@atlaskit/icon/utility/star-starred',
181
+ categorization: 'Multi-purpose',
182
+ location: 'ADS',
183
+ team: 'ADS',
184
+ type: 'Utility',
185
+ usage: 'Reserved for starred or favourited objects as a secondary/tertiary action.'
186
+ },
187
+ 'star-unstarred': {
188
+ keywords: ['star-unstarred', 'starunstarred', 'icon', 'utility', 'favourite', 'star', 'form', 'secondary', 'tertiary'],
189
+ componentName: 'StarUnstarredIcon',
190
+ package: '@atlaskit/icon/utility/star-unstarred',
191
+ categorization: 'Multi-purpose',
192
+ location: 'ADS',
193
+ team: 'ADS',
194
+ type: 'Utility',
195
+ usage: 'Reserved for starring or favoriting objects as a secondary/tertiary action.'
196
+ },
197
+ warning: {
198
+ keywords: ['warning', 'error', 'alert', 'icon', 'utility', 'alert', 'danger', 'triangle', 'filled', 'secondary', 'tertiary'],
199
+ componentName: 'WarningIcon',
200
+ package: '@atlaskit/icon/utility/warning',
201
+ categorization: 'Multi-purpose',
202
+ location: 'ADS',
203
+ team: 'ADS',
204
+ type: 'Utility',
205
+ usage: 'Reserved for Helper Messages in Forms.'
206
+ }
207
+ };
208
+ export default metadata;
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import type { NewIconProps } from '../types';
3
+ /**
4
+ * We are hiding this props from consumers as it's reserved
5
+ * for use by Icon Tile.
6
+ */
7
+ export interface InternalIconPropsNew extends NewIconProps {
8
+ /**
9
+ * @internal NOT FOR PUBLIC USE.
10
+ * Sets whether the icon should inherit size from a parent. Used by Icon Tile.
11
+ */
12
+ shouldScale?: boolean;
13
+ }
14
+ /**
15
+ * __Icon__
16
+ *
17
+ * An icon is used as a visual representation of common actions and commands to provide context.
18
+ *
19
+ * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
20
+ * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
21
+ */
22
+ export declare const Icon: import("react").NamedExoticComponent<NewIconProps>;
23
+ export default Icon;
@@ -0,0 +1,12 @@
1
+ import { jsx } from '@emotion/react';
2
+ import { type IconTileProps } from '../types';
3
+ /**
4
+ * __IconTile__ -- ⚠️ Experimental ⚠️
5
+ *
6
+ * An icon tile is used to present an icon with a background color.
7
+ * Icon tiles, unlike standard icons, can scale up and down to provide greater emphasis.
8
+ *
9
+ * This component is currently in an experimental state and is subject to change in minor or patch releases.
10
+ *
11
+ */
12
+ export default function IconTile(props: IconTileProps): jsx.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default, Icon } from '../components/icon-new';
2
+ export type { NewIconProps } from '../types';
@@ -1 +1 @@
1
- export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, } from '../types';
1
+ export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, NewIconProps as UNSAFE_NewIconProps, } from '../types';
@@ -1,5 +1,7 @@
1
1
  export { default } from './components/icon';
2
+ export { default as UNSAFE_IconNew } from './components/icon-new';
2
3
  export { default as SVG } from './components/svg';
3
4
  export { sizeMap as size, sizes } from './constants';
4
5
  export { default as Skeleton } from './components/skeleton';
5
- export type { Size, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, } from './types';
6
+ export { default as IconTile } from './components/icon-tile';
7
+ export type { Size, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps as UNSAFE_NewIconProps, } from './types';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by the build process.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ *
7
+ * To change the format of this file, modify build/icon/createIconDocs.tsx.
8
+ * Add synonyms via the 'synonyms' parameter.
9
+ */
10
+ interface Data {
11
+ keywords: string[];
12
+ componentName: string;
13
+ package: string;
14
+ oldName?: string | string[];
15
+ categorization?: string;
16
+ location?: string;
17
+ team?: string;
18
+ type?: string;
19
+ usage?: string;
20
+ }
21
+ declare const metadata: Record<string, Data>;
22
+ export default metadata;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by the build process.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ *
7
+ * To change the format of this file, modify build/icon/createIconDocs.tsx.
8
+ * Add synonyms via the 'synonyms' parameter.
9
+ */
10
+ interface Data {
11
+ keywords: string[];
12
+ componentName: string;
13
+ package: string;
14
+ oldName?: string | string[];
15
+ categorization?: string;
16
+ location?: string;
17
+ team?: string;
18
+ type?: string;
19
+ usage?: string;
20
+ }
21
+ declare const metadata: Record<string, Data>;
22
+ export default metadata;
@@ -1,4 +1,5 @@
1
1
  import type { ComponentType, SVGProps as ReactSVGProps, ReactNode } from 'react';
2
+ import type { IconColor } from '@atlaskit/tokens/css-type-schema';
2
3
  export type Size = 'small' | 'medium' | 'large' | 'xlarge';
3
4
  export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
4
5
  /**
@@ -26,6 +27,17 @@ export interface GlyphColorProps {
26
27
  */
27
28
  secondaryColor?: string;
28
29
  }
30
+ /**
31
+ * NOTE: we want to move away from icons using text colors and make the icon tokens darker - so currentColor will eventually go away, and
32
+ * we will be shifting existing usages down (`color.text` -> `color.icon` -> `color.icon.`) via a codemod.
33
+ * For now, icon defaults to `color.text` under the hood to emulate the darker appearance.
34
+ */
35
+ export interface NewGlyphColorProps {
36
+ /**
37
+ * Color for the icon. Supports any icon design token, or 'currentColor' to inherit the current text color.
38
+ */
39
+ color?: IconColor | 'currentColor';
40
+ }
29
41
  export interface GlyphSizeProps {
30
42
  /**
31
43
  * There are three icon sizes – small (16px), medium (24px), and large (32px).
@@ -34,6 +46,14 @@ export interface GlyphSizeProps {
34
46
  */
35
47
  size?: Size;
36
48
  }
49
+ export interface NewGlyphSpacingProps {
50
+ /**
51
+ * Icons have only one available size, but can be displayed with additional spacing.
52
+ * "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
53
+ * "spacious" provides accessible spacing between the icon and other elements.
54
+ */
55
+ spacing?: 'none' | 'spacious';
56
+ }
37
57
  export interface OtherGlyphProps {
38
58
  /**
39
59
  * Text used to describe what the icon is in context.
@@ -48,21 +68,69 @@ export interface OtherGlyphProps {
48
68
  */
49
69
  testId?: string;
50
70
  }
71
+ interface IconInternalGlyphProps {
72
+ /**
73
+ * @deprecated
74
+ * Custom icon string that should contain an SVG element with set `viewBox`,
75
+ * `width`, and `height` attributes.
76
+ * It's recommended to use the `glyph` prop instead.
77
+ */
78
+ dangerouslySetGlyph?: string;
79
+ }
51
80
  export interface GlyphProps extends OtherGlyphProps, GlyphSizeProps, GlyphColorProps {
52
81
  }
53
- export interface IconProps extends GlyphProps {
82
+ export interface NewGlyphProps extends OtherGlyphProps, NewGlyphSpacingProps, NewGlyphColorProps {
83
+ }
84
+ export interface IconProps extends GlyphProps, IconInternalGlyphProps {
54
85
  /**
55
86
  * Custom icon component that returns an SVG element with set `viewBox`,
56
87
  * `width`, and `height` props.
57
88
  */
58
89
  glyph?: ComponentType<CustomGlyphProps>;
90
+ }
91
+ export interface NewIconProps extends NewGlyphProps, IconInternalGlyphProps {
59
92
  /**
60
- * @deprecated
61
- * Custom icon string that should contain an SVG element with set `viewBox`,
62
- * `width`, and `height` attributes.
63
- * It's recommended to use the `glyph` prop instead.
93
+ * Legacy icon component to render when feature flag turned off.
94
+ * The legacy icon defaults to "medium" size, with `primaryColor` set to the value of the `color` prop.
64
95
  */
65
- dangerouslySetGlyph?: string;
96
+ LEGACY_fallbackIcon?: ComponentType<IconProps>;
97
+ /**
98
+ * Secondary color to be rendered by the legacy fallback icon
99
+ */
100
+ LEGACY_secondaryColor?: string;
101
+ /**
102
+ * Size of the legacy fallback icon. Legacy icons default to "medium".
103
+ */
104
+ LEGACY_size?: 'small' | 'medium';
105
+ /**
106
+ * Icon type. Used in icon build process.
107
+ */
108
+ type?: 'utility' | 'global';
109
+ }
110
+ export type IconTileAppearance = 'gray' | 'blue' | 'teal' | 'green' | 'lime' | 'yellow' | 'orange' | 'red' | 'magenta' | 'purple' | 'grayBold' | 'blueBold' | 'tealBold' | 'greenBold' | 'limeBold' | 'yellowBold' | 'orangeBold' | 'redBold' | 'magentaBold' | 'purpleBold';
111
+ export type IconTileSize = '16' | '24' | '32' | '40' | '48';
112
+ export interface IconTileProps {
113
+ /**
114
+ * The icon to display
115
+ */
116
+ icon: ComponentType<NewIconProps>;
117
+ /**
118
+ * The label for the icon
119
+ */
120
+ label: string;
121
+ /**
122
+ * The appearance of the tile
123
+ */
124
+ appearance: IconTileAppearance;
125
+ /**
126
+ * Size of the tile, in pixels. Defaults to "24".
127
+ * In a future release, semantic names will be introduced, and number values will be deprecated.
128
+ */
129
+ size?: IconTileSize;
130
+ /**
131
+ * Shape of the tile background. Defaults to "square"
132
+ */
133
+ shape?: 'square' | 'circle';
66
134
  }
67
135
  export interface SkeletonProps {
68
136
  color?: string;
@@ -80,3 +148,4 @@ export interface SVGProps extends GlyphProps {
80
148
  */
81
149
  children?: ReactNode;
82
150
  }
151
+ export {};
@@ -0,0 +1,23 @@
1
+ /// <reference types="react" />
2
+ import type { NewIconProps } from '../types';
3
+ /**
4
+ * We are hiding this props from consumers as it's reserved
5
+ * for use by Icon Tile.
6
+ */
7
+ export interface InternalIconPropsNew extends NewIconProps {
8
+ /**
9
+ * @internal NOT FOR PUBLIC USE.
10
+ * Sets whether the icon should inherit size from a parent. Used by Icon Tile.
11
+ */
12
+ shouldScale?: boolean;
13
+ }
14
+ /**
15
+ * __Icon__
16
+ *
17
+ * An icon is used as a visual representation of common actions and commands to provide context.
18
+ *
19
+ * - [Examples](https://atlaskit.atlassian.com/packages/design-system/icon)
20
+ * - [Code](https://atlaskit.atlassian.com/packages/design-system/icon/docs/custom-icons)
21
+ */
22
+ export declare const Icon: import("react").NamedExoticComponent<NewIconProps>;
23
+ export default Icon;
@@ -0,0 +1,12 @@
1
+ import { jsx } from '@emotion/react';
2
+ import { type IconTileProps } from '../types';
3
+ /**
4
+ * __IconTile__ -- ⚠️ Experimental ⚠️
5
+ *
6
+ * An icon tile is used to present an icon with a background color.
7
+ * Icon tiles, unlike standard icons, can scale up and down to provide greater emphasis.
8
+ *
9
+ * This component is currently in an experimental state and is subject to change in minor or patch releases.
10
+ *
11
+ */
12
+ export default function IconTile(props: IconTileProps): jsx.JSX.Element;
@@ -0,0 +1,2 @@
1
+ export { default, Icon } from '../components/icon-new';
2
+ export type { NewIconProps } from '../types';
@@ -1 +1 @@
1
- export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, } from '../types';
1
+ export type { CustomGlyphProps, GlyphProps, IconProps, Size, SkeletonProps, SVGProps, NewIconProps as UNSAFE_NewIconProps, } from '../types';
@@ -1,5 +1,7 @@
1
1
  export { default } from './components/icon';
2
+ export { default as UNSAFE_IconNew } from './components/icon-new';
2
3
  export { default as SVG } from './components/svg';
3
4
  export { sizeMap as size, sizes } from './constants';
4
5
  export { default as Skeleton } from './components/skeleton';
5
- export type { Size, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, } from './types';
6
+ export { default as IconTile } from './components/icon-tile';
7
+ export type { Size, SkeletonProps, IconProps, GlyphProps, CustomGlyphProps, SVGProps, NewIconProps as UNSAFE_NewIconProps, } from './types';
@@ -0,0 +1,22 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by the build process.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ *
7
+ * To change the format of this file, modify build/icon/createIconDocs.tsx.
8
+ * Add synonyms via the 'synonyms' parameter.
9
+ */
10
+ interface Data {
11
+ keywords: string[];
12
+ componentName: string;
13
+ package: string;
14
+ oldName?: string | string[];
15
+ categorization?: string;
16
+ location?: string;
17
+ team?: string;
18
+ type?: string;
19
+ usage?: string;
20
+ }
21
+ declare const metadata: Record<string, Data>;
22
+ export default metadata;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * NOTE:
3
+ *
4
+ * This file is automatically generated by the build process.
5
+ * DO NOT CHANGE IT BY HAND or your changes will be lost.
6
+ *
7
+ * To change the format of this file, modify build/icon/createIconDocs.tsx.
8
+ * Add synonyms via the 'synonyms' parameter.
9
+ */
10
+ interface Data {
11
+ keywords: string[];
12
+ componentName: string;
13
+ package: string;
14
+ oldName?: string | string[];
15
+ categorization?: string;
16
+ location?: string;
17
+ team?: string;
18
+ type?: string;
19
+ usage?: string;
20
+ }
21
+ declare const metadata: Record<string, Data>;
22
+ export default metadata;
@@ -1,4 +1,5 @@
1
1
  import type { ComponentType, SVGProps as ReactSVGProps, ReactNode } from 'react';
2
+ import type { IconColor } from '@atlaskit/tokens/css-type-schema';
2
3
  export type Size = 'small' | 'medium' | 'large' | 'xlarge';
3
4
  export interface CustomGlyphProps extends ReactSVGProps<SVGSVGElement> {
4
5
  /**
@@ -26,6 +27,17 @@ export interface GlyphColorProps {
26
27
  */
27
28
  secondaryColor?: string;
28
29
  }
30
+ /**
31
+ * NOTE: we want to move away from icons using text colors and make the icon tokens darker - so currentColor will eventually go away, and
32
+ * we will be shifting existing usages down (`color.text` -> `color.icon` -> `color.icon.`) via a codemod.
33
+ * For now, icon defaults to `color.text` under the hood to emulate the darker appearance.
34
+ */
35
+ export interface NewGlyphColorProps {
36
+ /**
37
+ * Color for the icon. Supports any icon design token, or 'currentColor' to inherit the current text color.
38
+ */
39
+ color?: IconColor | 'currentColor';
40
+ }
29
41
  export interface GlyphSizeProps {
30
42
  /**
31
43
  * There are three icon sizes – small (16px), medium (24px), and large (32px).
@@ -34,6 +46,14 @@ export interface GlyphSizeProps {
34
46
  */
35
47
  size?: Size;
36
48
  }
49
+ export interface NewGlyphSpacingProps {
50
+ /**
51
+ * Icons have only one available size, but can be displayed with additional spacing.
52
+ * "none" is default, and allows the icon to be placed in buttons and allows the parent component to manage spacing.
53
+ * "spacious" provides accessible spacing between the icon and other elements.
54
+ */
55
+ spacing?: 'none' | 'spacious';
56
+ }
37
57
  export interface OtherGlyphProps {
38
58
  /**
39
59
  * Text used to describe what the icon is in context.
@@ -48,21 +68,69 @@ export interface OtherGlyphProps {
48
68
  */
49
69
  testId?: string;
50
70
  }
71
+ interface IconInternalGlyphProps {
72
+ /**
73
+ * @deprecated
74
+ * Custom icon string that should contain an SVG element with set `viewBox`,
75
+ * `width`, and `height` attributes.
76
+ * It's recommended to use the `glyph` prop instead.
77
+ */
78
+ dangerouslySetGlyph?: string;
79
+ }
51
80
  export interface GlyphProps extends OtherGlyphProps, GlyphSizeProps, GlyphColorProps {
52
81
  }
53
- export interface IconProps extends GlyphProps {
82
+ export interface NewGlyphProps extends OtherGlyphProps, NewGlyphSpacingProps, NewGlyphColorProps {
83
+ }
84
+ export interface IconProps extends GlyphProps, IconInternalGlyphProps {
54
85
  /**
55
86
  * Custom icon component that returns an SVG element with set `viewBox`,
56
87
  * `width`, and `height` props.
57
88
  */
58
89
  glyph?: ComponentType<CustomGlyphProps>;
90
+ }
91
+ export interface NewIconProps extends NewGlyphProps, IconInternalGlyphProps {
59
92
  /**
60
- * @deprecated
61
- * Custom icon string that should contain an SVG element with set `viewBox`,
62
- * `width`, and `height` attributes.
63
- * It's recommended to use the `glyph` prop instead.
93
+ * Legacy icon component to render when feature flag turned off.
94
+ * The legacy icon defaults to "medium" size, with `primaryColor` set to the value of the `color` prop.
64
95
  */
65
- dangerouslySetGlyph?: string;
96
+ LEGACY_fallbackIcon?: ComponentType<IconProps>;
97
+ /**
98
+ * Secondary color to be rendered by the legacy fallback icon
99
+ */
100
+ LEGACY_secondaryColor?: string;
101
+ /**
102
+ * Size of the legacy fallback icon. Legacy icons default to "medium".
103
+ */
104
+ LEGACY_size?: 'small' | 'medium';
105
+ /**
106
+ * Icon type. Used in icon build process.
107
+ */
108
+ type?: 'utility' | 'global';
109
+ }
110
+ export type IconTileAppearance = 'gray' | 'blue' | 'teal' | 'green' | 'lime' | 'yellow' | 'orange' | 'red' | 'magenta' | 'purple' | 'grayBold' | 'blueBold' | 'tealBold' | 'greenBold' | 'limeBold' | 'yellowBold' | 'orangeBold' | 'redBold' | 'magentaBold' | 'purpleBold';
111
+ export type IconTileSize = '16' | '24' | '32' | '40' | '48';
112
+ export interface IconTileProps {
113
+ /**
114
+ * The icon to display
115
+ */
116
+ icon: ComponentType<NewIconProps>;
117
+ /**
118
+ * The label for the icon
119
+ */
120
+ label: string;
121
+ /**
122
+ * The appearance of the tile
123
+ */
124
+ appearance: IconTileAppearance;
125
+ /**
126
+ * Size of the tile, in pixels. Defaults to "24".
127
+ * In a future release, semantic names will be introduced, and number values will be deprecated.
128
+ */
129
+ size?: IconTileSize;
130
+ /**
131
+ * Shape of the tile background. Defaults to "square"
132
+ */
133
+ shape?: 'square' | 'circle';
66
134
  }
67
135
  export interface SkeletonProps {
68
136
  color?: string;
@@ -80,3 +148,4 @@ export interface SVGProps extends GlyphProps {
80
148
  */
81
149
  children?: ReactNode;
82
150
  }
151
+ export {};
@@ -6,7 +6,7 @@
6
6
  "sideEffects": false,
7
7
  "types": "../dist/types/entry-points/metadata.d.ts",
8
8
  "typesVersions": {
9
- ">=4.5 <4.9": {
9
+ ">=4.5 <5.4": {
10
10
  "*": [
11
11
  "../dist/types-ts4.5/entry-points/metadata.d.ts"
12
12
  ]