@leafygreen-ui/icon 14.7.1 → 14.7.2

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 (389) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/esm/AIModel.js.map +1 -1
  3. package/dist/esm/ActivityFeed.js.map +1 -1
  4. package/dist/esm/AddFile.js.map +1 -1
  5. package/dist/esm/AllProducts.js.map +1 -1
  6. package/dist/esm/AnalyticsNode.js.map +1 -1
  7. package/dist/esm/Apps.js.map +1 -1
  8. package/dist/esm/Array.js.map +1 -1
  9. package/dist/esm/ArrowDown.js.map +1 -1
  10. package/dist/esm/ArrowLeft.js.map +1 -1
  11. package/dist/esm/ArrowRight.js.map +1 -1
  12. package/dist/esm/ArrowUp.js.map +1 -1
  13. package/dist/esm/Award.js.map +1 -1
  14. package/dist/esm/Beaker.js.map +1 -1
  15. package/dist/esm/Bell.js.map +1 -1
  16. package/dist/esm/Biometric.js.map +1 -1
  17. package/dist/esm/Boolean.js.map +1 -1
  18. package/dist/esm/Building.js.map +1 -1
  19. package/dist/esm/Bulb.js.map +1 -1
  20. package/dist/esm/Calendar.js.map +1 -1
  21. package/dist/esm/Camera.js.map +1 -1
  22. package/dist/esm/Cap.js.map +1 -1
  23. package/dist/esm/CaretDown.js.map +1 -1
  24. package/dist/esm/CaretLeft.js.map +1 -1
  25. package/dist/esm/CaretRight.js.map +1 -1
  26. package/dist/esm/CaretUp.js.map +1 -1
  27. package/dist/esm/ChartFilled.js.map +1 -1
  28. package/dist/esm/Charts.js.map +1 -1
  29. package/dist/esm/Checkmark.js.map +1 -1
  30. package/dist/esm/CheckmarkWithCircle.js.map +1 -1
  31. package/dist/esm/ChevronDown.js.map +1 -1
  32. package/dist/esm/ChevronLeft.js.map +1 -1
  33. package/dist/esm/ChevronRight.js.map +1 -1
  34. package/dist/esm/ChevronUp.js.map +1 -1
  35. package/dist/esm/Circle.js.map +1 -1
  36. package/dist/esm/Clock.js.map +1 -1
  37. package/dist/esm/ClockWithArrow.js.map +1 -1
  38. package/dist/esm/Clone.js.map +1 -1
  39. package/dist/esm/Cloud.js.map +1 -1
  40. package/dist/esm/Code.js.map +1 -1
  41. package/dist/esm/CodeBlock.js.map +1 -1
  42. package/dist/esm/Coin.js.map +1 -1
  43. package/dist/esm/Colon.js.map +1 -1
  44. package/dist/esm/Config.js.map +1 -1
  45. package/dist/esm/Connect.js.map +1 -1
  46. package/dist/esm/Copy.js.map +1 -1
  47. package/dist/esm/CreditCard.js.map +1 -1
  48. package/dist/esm/CurlyBraces.js.map +1 -1
  49. package/dist/esm/Cursor.js.map +1 -1
  50. package/dist/esm/Dashboard.js.map +1 -1
  51. package/dist/esm/Database.js.map +1 -1
  52. package/dist/esm/Diagram.js.map +1 -1
  53. package/dist/esm/Diagram2.js.map +1 -1
  54. package/dist/esm/Diagram3.js.map +1 -1
  55. package/dist/esm/Disconnect.js.map +1 -1
  56. package/dist/esm/Download.js.map +1 -1
  57. package/dist/esm/Drag.js.map +1 -1
  58. package/dist/esm/Edit.js.map +1 -1
  59. package/dist/esm/Ellipsis.js.map +1 -1
  60. package/dist/esm/Email.js.map +1 -1
  61. package/dist/esm/EmptyDatabase.js.map +1 -1
  62. package/dist/esm/EmptyFolder.js.map +1 -1
  63. package/dist/esm/Eraser.js.map +1 -1
  64. package/dist/esm/Escalation.js.map +1 -1
  65. package/dist/esm/Export.js.map +1 -1
  66. package/dist/esm/Favorite.js.map +1 -1
  67. package/dist/esm/Federation.js.map +1 -1
  68. package/dist/esm/File.js.map +1 -1
  69. package/dist/esm/Filter.js.map +1 -1
  70. package/dist/esm/Folder.js.map +1 -1
  71. package/dist/esm/Format.js.map +1 -1
  72. package/dist/esm/FullScreenEnter.js.map +1 -1
  73. package/dist/esm/FullScreenExit.js.map +1 -1
  74. package/dist/esm/Function.js.map +1 -1
  75. package/dist/esm/Gauge.js.map +1 -1
  76. package/dist/esm/GlobeAmericas.js.map +1 -1
  77. package/dist/esm/GovernmentBuilding.js.map +1 -1
  78. package/dist/esm/Guide.js.map +1 -1
  79. package/dist/esm/Hash.js.map +1 -1
  80. package/dist/esm/HiddenSecondaryNode.js.map +1 -1
  81. package/dist/esm/Highlight.js.map +1 -1
  82. package/dist/esm/Home.js.map +1 -1
  83. package/dist/esm/HorizontalDrag.js.map +1 -1
  84. package/dist/esm/Import.js.map +1 -1
  85. package/dist/esm/ImportantWithCircle.js.map +1 -1
  86. package/dist/esm/InfoWithCircle.js.map +1 -1
  87. package/dist/esm/InternalEmployee.js.map +1 -1
  88. package/dist/esm/InviteUser.js.map +1 -1
  89. package/dist/esm/Key.js.map +1 -1
  90. package/dist/esm/Laptop.js.map +1 -1
  91. package/dist/esm/LightningBolt.js.map +1 -1
  92. package/dist/esm/Link.js.map +1 -1
  93. package/dist/esm/List.js.map +1 -1
  94. package/dist/esm/Lock.js.map +1 -1
  95. package/dist/esm/LogIn.js.map +1 -1
  96. package/dist/esm/LogOut.js.map +1 -1
  97. package/dist/esm/MagnifyingGlass.js.map +1 -1
  98. package/dist/esm/Megaphone.js.map +1 -1
  99. package/dist/esm/Menu.js.map +1 -1
  100. package/dist/esm/Minus.js.map +1 -1
  101. package/dist/esm/Mobile.js.map +1 -1
  102. package/dist/esm/Moon.js.map +1 -1
  103. package/dist/esm/MultiDirectionArrow.js.map +1 -1
  104. package/dist/esm/MultiLayers.js.map +1 -1
  105. package/dist/esm/NavCollapse.js.map +1 -1
  106. package/dist/esm/NavExpand.js.map +1 -1
  107. package/dist/esm/NoFilter.js.map +1 -1
  108. package/dist/esm/NotAllowed.js.map +1 -1
  109. package/dist/esm/Note.js.map +1 -1
  110. package/dist/esm/NumberedList.js.map +1 -1
  111. package/dist/esm/OpenNewTab.js.map +1 -1
  112. package/dist/esm/OutlineFavorite.js.map +1 -1
  113. package/dist/esm/Package.js.map +1 -1
  114. package/dist/esm/Pause.js.map +1 -1
  115. package/dist/esm/Pending.js.map +1 -1
  116. package/dist/esm/Person.js.map +1 -1
  117. package/dist/esm/PersonGroup.js.map +1 -1
  118. package/dist/esm/PersonWithLock.js.map +1 -1
  119. package/dist/esm/Pin.js.map +1 -1
  120. package/dist/esm/Play.js.map +1 -1
  121. package/dist/esm/Plus.js.map +1 -1
  122. package/dist/esm/PlusWithCircle.js.map +1 -1
  123. package/dist/esm/Primary.js.map +1 -1
  124. package/dist/esm/Project.js.map +1 -1
  125. package/dist/esm/QuestionMarkWithCircle.js.map +1 -1
  126. package/dist/esm/Read.js.map +1 -1
  127. package/dist/esm/Recommended.js.map +1 -1
  128. package/dist/esm/Redo.js.map +1 -1
  129. package/dist/esm/Refresh.js.map +1 -1
  130. package/dist/esm/Relationship.js.map +1 -1
  131. package/dist/esm/ReplicaSet.js.map +1 -1
  132. package/dist/esm/Resize.js.map +1 -1
  133. package/dist/esm/Resource.js.map +1 -1
  134. package/dist/esm/Return.js.map +1 -1
  135. package/dist/esm/Revert.js.map +1 -1
  136. package/dist/esm/Router.js.map +1 -1
  137. package/dist/esm/SMS.js.map +1 -1
  138. package/dist/esm/Save.js.map +1 -1
  139. package/dist/esm/SearchIndex.js.map +1 -1
  140. package/dist/esm/Secondary.js.map +1 -1
  141. package/dist/esm/Serverless.js.map +1 -1
  142. package/dist/esm/Settings.js.map +1 -1
  143. package/dist/esm/ShardedCluster.js.map +1 -1
  144. package/dist/esm/Shell.js.map +1 -1
  145. package/dist/esm/Shield.js.map +1 -1
  146. package/dist/esm/Shirt.js.map +1 -1
  147. package/dist/esm/Shortcut.js.map +1 -1
  148. package/dist/esm/SortAscending.js.map +1 -1
  149. package/dist/esm/SortDescending.js.map +1 -1
  150. package/dist/esm/Sparkle.js.map +1 -1
  151. package/dist/esm/SplitHorizontal.js.map +1 -1
  152. package/dist/esm/SplitVertical.js.map +1 -1
  153. package/dist/esm/Stitch.js.map +1 -1
  154. package/dist/esm/Stop.js.map +1 -1
  155. package/dist/esm/Streaming.js.map +1 -1
  156. package/dist/esm/String.js.map +1 -1
  157. package/dist/esm/Sun.js.map +1 -1
  158. package/dist/esm/Support.js.map +1 -1
  159. package/dist/esm/Sweep.js.map +1 -1
  160. package/dist/esm/Table.js.map +1 -1
  161. package/dist/esm/Tag.js.map +1 -1
  162. package/dist/esm/TemporaryTable.js.map +1 -1
  163. package/dist/esm/ThumbsDown.js.map +1 -1
  164. package/dist/esm/ThumbsUp.js.map +1 -1
  165. package/dist/esm/TimeSeries.js.map +1 -1
  166. package/dist/esm/TimeSeriesCollection.js.map +1 -1
  167. package/dist/esm/Trash.js.map +1 -1
  168. package/dist/esm/Undo.js.map +1 -1
  169. package/dist/esm/University.js.map +1 -1
  170. package/dist/esm/Unlock.js.map +1 -1
  171. package/dist/esm/Unsorted.js.map +1 -1
  172. package/dist/esm/UpDownCarets.js.map +1 -1
  173. package/dist/esm/Upload.js.map +1 -1
  174. package/dist/esm/VerticalEllipsis.js.map +1 -1
  175. package/dist/esm/View.js.map +1 -1
  176. package/dist/esm/Visibility.js.map +1 -1
  177. package/dist/esm/VisibilityOff.js.map +1 -1
  178. package/dist/esm/Warning.js.map +1 -1
  179. package/dist/esm/Wizard.js.map +1 -1
  180. package/dist/esm/Wrench.js.map +1 -1
  181. package/dist/esm/Write.js.map +1 -1
  182. package/dist/esm/X.js.map +1 -1
  183. package/dist/esm/XWithCircle.js.map +1 -1
  184. package/dist/esm/glyphCommon-cTThlth0.js.map +1 -1
  185. package/dist/esm/index.js +1 -1
  186. package/dist/esm/index.js.map +1 -1
  187. package/dist/types/createGlyphComponent.d.ts.map +1 -1
  188. package/dist/types/createGlyphComponent.spec.d.ts +2 -0
  189. package/dist/types/createGlyphComponent.spec.d.ts.map +1 -0
  190. package/dist/types/createIconComponent.d.ts.map +1 -1
  191. package/dist/types/createIconComponent.spec.d.ts +2 -0
  192. package/dist/types/createIconComponent.spec.d.ts.map +1 -0
  193. package/dist/types/testUtils.d.ts +10 -0
  194. package/dist/types/testUtils.d.ts.map +1 -0
  195. package/dist/umd/AIModel.js.map +1 -1
  196. package/dist/umd/ActivityFeed.js.map +1 -1
  197. package/dist/umd/AddFile.js.map +1 -1
  198. package/dist/umd/AllProducts.js.map +1 -1
  199. package/dist/umd/AnalyticsNode.js.map +1 -1
  200. package/dist/umd/Apps.js.map +1 -1
  201. package/dist/umd/Array.js.map +1 -1
  202. package/dist/umd/ArrowDown.js.map +1 -1
  203. package/dist/umd/ArrowLeft.js.map +1 -1
  204. package/dist/umd/ArrowRight.js.map +1 -1
  205. package/dist/umd/ArrowUp.js.map +1 -1
  206. package/dist/umd/Award.js.map +1 -1
  207. package/dist/umd/Beaker.js.map +1 -1
  208. package/dist/umd/Bell.js.map +1 -1
  209. package/dist/umd/Biometric.js.map +1 -1
  210. package/dist/umd/Boolean.js.map +1 -1
  211. package/dist/umd/Building.js.map +1 -1
  212. package/dist/umd/Bulb.js.map +1 -1
  213. package/dist/umd/Calendar.js.map +1 -1
  214. package/dist/umd/Camera.js.map +1 -1
  215. package/dist/umd/Cap.js.map +1 -1
  216. package/dist/umd/CaretDown.js.map +1 -1
  217. package/dist/umd/CaretLeft.js.map +1 -1
  218. package/dist/umd/CaretRight.js.map +1 -1
  219. package/dist/umd/CaretUp.js.map +1 -1
  220. package/dist/umd/ChartFilled.js.map +1 -1
  221. package/dist/umd/Charts.js.map +1 -1
  222. package/dist/umd/Checkmark.js.map +1 -1
  223. package/dist/umd/CheckmarkWithCircle.js.map +1 -1
  224. package/dist/umd/ChevronDown.js.map +1 -1
  225. package/dist/umd/ChevronLeft.js.map +1 -1
  226. package/dist/umd/ChevronRight.js.map +1 -1
  227. package/dist/umd/ChevronUp.js.map +1 -1
  228. package/dist/umd/Circle.js.map +1 -1
  229. package/dist/umd/Clock.js.map +1 -1
  230. package/dist/umd/ClockWithArrow.js.map +1 -1
  231. package/dist/umd/Clone.js.map +1 -1
  232. package/dist/umd/Cloud.js.map +1 -1
  233. package/dist/umd/Code.js.map +1 -1
  234. package/dist/umd/CodeBlock.js.map +1 -1
  235. package/dist/umd/Coin.js.map +1 -1
  236. package/dist/umd/Colon.js.map +1 -1
  237. package/dist/umd/Config.js.map +1 -1
  238. package/dist/umd/Connect.js.map +1 -1
  239. package/dist/umd/Copy.js.map +1 -1
  240. package/dist/umd/CreditCard.js.map +1 -1
  241. package/dist/umd/CurlyBraces.js.map +1 -1
  242. package/dist/umd/Cursor.js.map +1 -1
  243. package/dist/umd/Dashboard.js.map +1 -1
  244. package/dist/umd/Database.js.map +1 -1
  245. package/dist/umd/Diagram.js.map +1 -1
  246. package/dist/umd/Diagram2.js.map +1 -1
  247. package/dist/umd/Diagram3.js.map +1 -1
  248. package/dist/umd/Disconnect.js.map +1 -1
  249. package/dist/umd/Download.js.map +1 -1
  250. package/dist/umd/Drag.js.map +1 -1
  251. package/dist/umd/Edit.js.map +1 -1
  252. package/dist/umd/Ellipsis.js.map +1 -1
  253. package/dist/umd/Email.js.map +1 -1
  254. package/dist/umd/EmptyDatabase.js.map +1 -1
  255. package/dist/umd/EmptyFolder.js.map +1 -1
  256. package/dist/umd/Eraser.js.map +1 -1
  257. package/dist/umd/Escalation.js.map +1 -1
  258. package/dist/umd/Export.js.map +1 -1
  259. package/dist/umd/Favorite.js.map +1 -1
  260. package/dist/umd/Federation.js.map +1 -1
  261. package/dist/umd/File.js.map +1 -1
  262. package/dist/umd/Filter.js.map +1 -1
  263. package/dist/umd/Folder.js.map +1 -1
  264. package/dist/umd/Format.js.map +1 -1
  265. package/dist/umd/FullScreenEnter.js.map +1 -1
  266. package/dist/umd/FullScreenExit.js.map +1 -1
  267. package/dist/umd/Function.js.map +1 -1
  268. package/dist/umd/Gauge.js.map +1 -1
  269. package/dist/umd/GlobeAmericas.js.map +1 -1
  270. package/dist/umd/GovernmentBuilding.js.map +1 -1
  271. package/dist/umd/Guide.js.map +1 -1
  272. package/dist/umd/Hash.js.map +1 -1
  273. package/dist/umd/HiddenSecondaryNode.js.map +1 -1
  274. package/dist/umd/Highlight.js.map +1 -1
  275. package/dist/umd/Home.js.map +1 -1
  276. package/dist/umd/HorizontalDrag.js.map +1 -1
  277. package/dist/umd/Import.js.map +1 -1
  278. package/dist/umd/ImportantWithCircle.js.map +1 -1
  279. package/dist/umd/InfoWithCircle.js.map +1 -1
  280. package/dist/umd/InternalEmployee.js.map +1 -1
  281. package/dist/umd/InviteUser.js.map +1 -1
  282. package/dist/umd/Key.js.map +1 -1
  283. package/dist/umd/Laptop.js.map +1 -1
  284. package/dist/umd/LightningBolt.js.map +1 -1
  285. package/dist/umd/Link.js.map +1 -1
  286. package/dist/umd/List.js.map +1 -1
  287. package/dist/umd/Lock.js.map +1 -1
  288. package/dist/umd/LogIn.js.map +1 -1
  289. package/dist/umd/LogOut.js.map +1 -1
  290. package/dist/umd/MagnifyingGlass.js.map +1 -1
  291. package/dist/umd/Megaphone.js.map +1 -1
  292. package/dist/umd/Menu.js.map +1 -1
  293. package/dist/umd/Minus.js.map +1 -1
  294. package/dist/umd/Mobile.js.map +1 -1
  295. package/dist/umd/Moon.js.map +1 -1
  296. package/dist/umd/MultiDirectionArrow.js.map +1 -1
  297. package/dist/umd/MultiLayers.js.map +1 -1
  298. package/dist/umd/NavCollapse.js.map +1 -1
  299. package/dist/umd/NavExpand.js.map +1 -1
  300. package/dist/umd/NoFilter.js.map +1 -1
  301. package/dist/umd/NotAllowed.js.map +1 -1
  302. package/dist/umd/Note.js.map +1 -1
  303. package/dist/umd/NumberedList.js.map +1 -1
  304. package/dist/umd/OpenNewTab.js.map +1 -1
  305. package/dist/umd/OutlineFavorite.js.map +1 -1
  306. package/dist/umd/Package.js.map +1 -1
  307. package/dist/umd/Pause.js.map +1 -1
  308. package/dist/umd/Pending.js.map +1 -1
  309. package/dist/umd/Person.js.map +1 -1
  310. package/dist/umd/PersonGroup.js.map +1 -1
  311. package/dist/umd/PersonWithLock.js.map +1 -1
  312. package/dist/umd/Pin.js.map +1 -1
  313. package/dist/umd/Play.js.map +1 -1
  314. package/dist/umd/Plus.js.map +1 -1
  315. package/dist/umd/PlusWithCircle.js.map +1 -1
  316. package/dist/umd/Primary.js.map +1 -1
  317. package/dist/umd/Project.js.map +1 -1
  318. package/dist/umd/QuestionMarkWithCircle.js.map +1 -1
  319. package/dist/umd/Read.js.map +1 -1
  320. package/dist/umd/Recommended.js.map +1 -1
  321. package/dist/umd/Redo.js.map +1 -1
  322. package/dist/umd/Refresh.js.map +1 -1
  323. package/dist/umd/Relationship.js.map +1 -1
  324. package/dist/umd/ReplicaSet.js.map +1 -1
  325. package/dist/umd/Resize.js.map +1 -1
  326. package/dist/umd/Resource.js.map +1 -1
  327. package/dist/umd/Return.js.map +1 -1
  328. package/dist/umd/Revert.js.map +1 -1
  329. package/dist/umd/Router.js.map +1 -1
  330. package/dist/umd/SMS.js.map +1 -1
  331. package/dist/umd/Save.js.map +1 -1
  332. package/dist/umd/SearchIndex.js.map +1 -1
  333. package/dist/umd/Secondary.js.map +1 -1
  334. package/dist/umd/Serverless.js.map +1 -1
  335. package/dist/umd/Settings.js.map +1 -1
  336. package/dist/umd/ShardedCluster.js.map +1 -1
  337. package/dist/umd/Shell.js.map +1 -1
  338. package/dist/umd/Shield.js.map +1 -1
  339. package/dist/umd/Shirt.js.map +1 -1
  340. package/dist/umd/Shortcut.js.map +1 -1
  341. package/dist/umd/SortAscending.js.map +1 -1
  342. package/dist/umd/SortDescending.js.map +1 -1
  343. package/dist/umd/Sparkle.js.map +1 -1
  344. package/dist/umd/SplitHorizontal.js.map +1 -1
  345. package/dist/umd/SplitVertical.js.map +1 -1
  346. package/dist/umd/Stitch.js.map +1 -1
  347. package/dist/umd/Stop.js.map +1 -1
  348. package/dist/umd/Streaming.js.map +1 -1
  349. package/dist/umd/String.js.map +1 -1
  350. package/dist/umd/Sun.js.map +1 -1
  351. package/dist/umd/Support.js.map +1 -1
  352. package/dist/umd/Sweep.js.map +1 -1
  353. package/dist/umd/Table.js.map +1 -1
  354. package/dist/umd/Tag.js.map +1 -1
  355. package/dist/umd/TemporaryTable.js.map +1 -1
  356. package/dist/umd/ThumbsDown.js.map +1 -1
  357. package/dist/umd/ThumbsUp.js.map +1 -1
  358. package/dist/umd/TimeSeries.js.map +1 -1
  359. package/dist/umd/TimeSeriesCollection.js.map +1 -1
  360. package/dist/umd/Trash.js.map +1 -1
  361. package/dist/umd/Undo.js.map +1 -1
  362. package/dist/umd/University.js.map +1 -1
  363. package/dist/umd/Unlock.js.map +1 -1
  364. package/dist/umd/Unsorted.js.map +1 -1
  365. package/dist/umd/UpDownCarets.js.map +1 -1
  366. package/dist/umd/Upload.js.map +1 -1
  367. package/dist/umd/VerticalEllipsis.js.map +1 -1
  368. package/dist/umd/View.js.map +1 -1
  369. package/dist/umd/Visibility.js.map +1 -1
  370. package/dist/umd/VisibilityOff.js.map +1 -1
  371. package/dist/umd/Warning.js.map +1 -1
  372. package/dist/umd/Wizard.js.map +1 -1
  373. package/dist/umd/Wrench.js.map +1 -1
  374. package/dist/umd/Write.js.map +1 -1
  375. package/dist/umd/X.js.map +1 -1
  376. package/dist/umd/XWithCircle.js.map +1 -1
  377. package/dist/umd/index.js +1 -1
  378. package/dist/umd/index.js.map +1 -1
  379. package/package.json +6 -6
  380. package/scripts/build/build-batch.ts +13 -6
  381. package/scripts/build/build.ts +1 -0
  382. package/src/Icon.spec.tsx +13 -0
  383. package/src/Icon.stories.tsx +13 -1
  384. package/src/createGlyphComponent.spec.tsx +274 -0
  385. package/src/createGlyphComponent.tsx +3 -1
  386. package/src/createIconComponent.spec.tsx +395 -0
  387. package/src/createIconComponent.tsx +14 -1
  388. package/src/testUtils.tsx +26 -0
  389. package/stories.js +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"CaretRight.js","sources":["../../src/glyphCommon.ts","../../src/generated/CaretRight.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum b267d20161f902d535b7860d1fbfb7e6\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CaretRightProps extends LGGlyph.ComponentProps {}\nconst CaretRight = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CaretRightProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'CaretRight', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path d=\"M10.7962 7.32097C11.0679 7.54729 11.0679 7.95271 10.7962 8.17903L6.97649 11.3604C6.59428 11.6787 6 11.4176 6 10.9313L6 4.56866C6 4.0824 6.59428 3.82129 6.97649 4.13962L10.7962 7.32097Z\" fill={'currentColor'} /></svg>;\n};\nCaretRight.displayName = 'CaretRight';\nCaretRight.isGlyph = true;\nexport default CaretRight;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","CaretRight","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","d","displayName","isGlyph"],"mappings":"09CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAa,SAAoBC,GACnC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAUC,EAA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export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum b267d20161f902d535b7860d1fbfb7e6\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CaretRightProps extends LGGlyph.ComponentProps {}\nconst CaretRight = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CaretRightProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'CaretRight', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path d=\"M10.7962 7.32097C11.0679 7.54729 11.0679 7.95271 10.7962 8.17903L6.97649 11.3604C6.59428 11.6787 6 11.4176 6 10.9313L6 4.56866C6 4.0824 6.59428 3.82129 6.97649 4.13962L10.7962 7.32097Z\" fill={'currentColor'} /></svg>;\n};\nCaretRight.displayName = 'CaretRight';\nCaretRight.isGlyph = true;\nexport default CaretRight;"],"names":["sizeMap","small","default","large","xlarge","CaretRight","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","d","displayName","isGlyph"],"mappings":"09CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAa,SAAHC,GASO,IARrBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,K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1
- {"version":3,"file":"CaretUp.js","sources":["../../src/glyphCommon.ts","../../src/generated/CaretUp.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 20cd9893bb8962d333afa7d8b53b0272\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CaretUpProps extends LGGlyph.ComponentProps {}\nconst CaretUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CaretUpProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'CaretUp', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path d=\"M7.32097 5.20381C7.54729 4.93207 7.95271 4.93207 8.17903 5.20381L11.3604 9.02351C11.6787 9.40572 11.4176 10 10.9313 10L4.56866 10C4.0824 10 3.8213 9.40572 4.13962 9.02351L7.32097 5.20381Z\" fill={'currentColor'} /></svg>;\n};\nCaretUp.displayName = 'CaretUp';\nCaretUp.isGlyph = true;\nexport default CaretUp;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","CaretUp","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","d","displayName","isGlyph"],"mappings":"u9CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAU,SAAiBC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GACLU,EAAiBT,EAAO,CACzBuB,QAAS,cACP7B,GAAsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,EAAG,8LACH5B,KAAM,iBAEV,SACAR,EAAQqC,YAAc,UACtBrC,EAAQsC,SAAU"}
1
+ {"version":3,"file":"CaretUp.js","sources":["../../src/glyphCommon.ts","../../src/generated/CaretUp.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 20cd9893bb8962d333afa7d8b53b0272\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CaretUpProps extends LGGlyph.ComponentProps {}\nconst CaretUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CaretUpProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'CaretUp', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path d=\"M7.32097 5.20381C7.54729 4.93207 7.95271 4.93207 8.17903 5.20381L11.3604 9.02351C11.6787 9.40572 11.4176 10 10.9313 10L4.56866 10C4.0824 10 3.8213 9.40572 4.13962 9.02351L7.32097 5.20381Z\" fill={'currentColor'} /></svg>;\n};\nCaretUp.displayName = 'CaretUp';\nCaretUp.isGlyph = true;\nexport default CaretUp;"],"names":["sizeMap","small","default","large","xlarge","CaretUp","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewB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QS,GAAOgC,MAAuB,iBAAThC,EAAoBA,EAAOT,EAAQS,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,OAAA,CAAMO,EAAE,8LAA8L/B,KAAM,iBAC1c,SACAR,EAAQwC,YAAc,UACtBxC,EAAQyC,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChartFilled.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChartFilled.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum ec29acc313c57cb762030195b99f1284\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChartFilledProps extends LGGlyph.ComponentProps {}\nconst ChartFilled = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChartFilledProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChartFilled', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M3 2.5C1.89543 2.5 1 3.39543 1 4.5V11.5C1 12.6046 1.89543 13.5 3 13.5H13C14.1046 13.5 15 12.6046 15 11.5V4.5C15 3.39543 14.1046 2.5 13 2.5H3ZM11.25 4.5C10.8358 4.5 10.5 4.83579 10.5 5.25V11.5H12V5.25C12 4.83579 11.6642 4.5 11.25 4.5ZM7.5 7.25C7.5 6.83579 7.83579 6.5 8.25 6.5C8.66421 6.5 9 6.83579 9 7.25V11.5H7.5V7.25ZM5.25 9C4.83579 9 4.5 9.33579 4.5 9.75V11.5H6V9.75C6 9.33579 5.66421 9 5.25 9Z\" fill={'currentColor'} /></svg>;\n};\nChartFilled.displayName = 'ChartFilled';\nChartFilled.isGlyph = true;\nexport default ChartFilled;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ChartFilled","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"29CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAc,SAAqBC,GACrC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAUC,EAAAA,eAAe,CAC3BC,OAAQ,eAENC,EAAYC,EAAAA,IAAIzB,IAAoBA,EAAkB0B,EAAuB,CAAC,oBAAqB,eAAgBV,GACnHW,EAAeF,EAAGA,IAACxB,IAAqBA,EAAmByB,EAAuB,CAAC,wCACnFE,EDhBC,SAAiCV,EAAMW,EAAWpB,GACvD,IAkC4BqB,EAlCxBhB,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACbQ,EAAUZ,EAAKY,QACjB,OAAQH,GACN,IAAK,MAED,OAAKJ,GAAcC,GAAmBF,EAkB/BkB,EAAgBA,EAAgB,GAAI,kBATvClB,EACEE,EACW,GAAGiB,OAAOX,EAAS,KAAKW,OAAOjB,GAE/BM,EAGFN,GAE4D,aAAcD,GAjBhF,CACL,cAyBkBgB,EAzBUD,EA0B/B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CClBwBC,CAAwBjB,EAAM,cAAea,EAAgBA,EAAgB,CACjGlB,MAAOA,EACPQ,QAASA,GACR,aAAcP,GAAY,kBAAmBC,IAChD,OAAoBqB,EAAMC,cAAc,MAAOC,EAAS,CACtD5B,UAAW6B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARR,GAAeW,EAAcjB,GAC1E8B,OAAwB,iBAAT5B,EAAoBA,EAAOV,EAAQU,GAClD6B,MAAuB,iBAAT7B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLU,EAAiBT,EAAO,CACzBuB,QAAS,cACP7B,GAAsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,SAAU,UACVC,SAAU,UACVC,EAAG,gZACH9B,KAAM,iBAEV,SACAR,EAAYuC,YAAc,cAC1BvC,EAAYwC,SAAU"}
1
+ {"version":3,"file":"ChartFilled.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChartFilled.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum ec29acc313c57cb762030195b99f1284\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChartFilledProps extends LGGlyph.ComponentProps {}\nconst ChartFilled = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChartFilledProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChartFilled', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M3 2.5C1.89543 2.5 1 3.39543 1 4.5V11.5C1 12.6046 1.89543 13.5 3 13.5H13C14.1046 13.5 15 12.6046 15 11.5V4.5C15 3.39543 14.1046 2.5 13 2.5H3ZM11.25 4.5C10.8358 4.5 10.5 4.83579 10.5 5.25V11.5H12V5.25C12 4.83579 11.6642 4.5 11.25 4.5ZM7.5 7.25C7.5 6.83579 7.83579 6.5 8.25 6.5C8.66421 6.5 9 6.83579 9 7.25V11.5H7.5V7.25ZM5.25 9C4.83579 9 4.5 9.33579 4.5 9.75V11.5H6V9.75C6 9.33579 5.66421 9 5.25 9Z\" fill={'currentColor'} /></svg>;\n};\nChartFilled.displayName = 'ChartFilled';\nChartFilled.isGlyph = true;\nexport default ChartFilled;"],"names":["sizeMap","small","default","large","xlarge","ChartFilled","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"29CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAc,SAAHC,GASO,IARtBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,+WAAKC,CAAAX,EAAAY,GA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.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 9a970971e28f512d48606ec8433963b9\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChartsProps extends LGGlyph.ComponentProps {}\nconst Charts = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChartsProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Charts', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path d=\"M11.5 13C11.5 13.5523 11.9477 14 12.5 14H13.5C14.0523 14 14.5 13.5523 14.5 13V3C14.5 2.44772 14.0523 2 13.5 2H12.5C11.9477 2 11.5 2.44772 11.5 3L11.5 13Z\" fill={'currentColor'} /><path d=\"M7.5 14C6.94772 14 6.5 13.5523 6.5 13L6.5 6C6.5 5.44772 6.94771 5 7.5 5H8.5C9.05228 5 9.5 5.44772 9.5 6V13C9.5 13.5523 9.05229 14 8.5 14H7.5Z\" fill={'currentColor'} /><path d=\"M2.5 14C1.94772 14 1.5 13.5523 1.5 13V9C1.5 8.44772 1.94772 8 2.5 8H3.5C4.05229 8 4.5 8.44772 4.5 9L4.5 13C4.5 13.5523 4.05229 14 3.5 14H2.5Z\" fill={'currentColor'} /></svg>;\n};\nCharts.displayName = 'Charts';\nCharts.isGlyph = true;\nexport default Charts;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Charts","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement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AAoBqB,EAAMC,cAAc,MAAOC,EAAS,CACtD5B,UAAW6B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARR,GAAeW,EAAcjB,GAC1E8B,OAAwB,iBAAT5B,EAAoBA,EAAOV,EAAQU,GAClD6B,MAAuB,iBAAT7B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLU,EAAiBT,EAAO,CACzBuB,QAAS,cACP7B,GAAsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,EAAG,4JACH5B,KAAM,iBACSoB,EAAMC,cAAc,OAAQ,CAC3CO,EAAG,gJACH5B,KAAM,iBACSoB,EAAMC,cAAc,OAAQ,CAC3CO,EAAG,gJACH5B,KAAM,iBAEV,SACAR,EAAOqC,YAAc,SACrBrC,EAAOsC,SAAU"}
1
+ {"version":3,"file":"Charts.js","sources":["../../src/glyphCommon.ts","../../src/generated/Charts.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 9a970971e28f512d48606ec8433963b9\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChartsProps extends LGGlyph.ComponentProps {}\nconst Charts = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChartsProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Charts', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path d=\"M11.5 13C11.5 13.5523 11.9477 14 12.5 14H13.5C14.0523 14 14.5 13.5523 14.5 13V3C14.5 2.44772 14.0523 2 13.5 2H12.5C11.9477 2 11.5 2.44772 11.5 3L11.5 13Z\" fill={'currentColor'} /><path d=\"M7.5 14C6.94772 14 6.5 13.5523 6.5 13L6.5 6C6.5 5.44772 6.94771 5 7.5 5H8.5C9.05228 5 9.5 5.44772 9.5 6V13C9.5 13.5523 9.05229 14 8.5 14H7.5Z\" fill={'currentColor'} /><path d=\"M2.5 14C1.94772 14 1.5 13.5523 1.5 13V9C1.5 8.44772 1.94772 8 2.5 8H3.5C4.05229 8 4.5 8.44772 4.5 9L4.5 13C4.5 13.5523 4.05229 14 3.5 14H2.5Z\" fill={'currentColor'} /></svg>;\n};\nCharts.displayName = 'Charts';\nCharts.isGlyph = true;\nexport default Charts;"],"names":["sizeMap","small","default","large","xlarge","Charts","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","d","displayName","isGlyph"],"mappings":"s9CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAS,SAAHC,GASO,IARjBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,+WAAKC,CAAAX,EAAAY,GAEFC,EAAUC,EAAAA,eAAe,CAC7BC,OAAQ,eAEJC,EAAYC,EAAAA,IAAGC,IAAAA,EAAAC,EACNZ,CAAAA,oBAAAA,eAAAA,GAETa,EAAeH,EAAGA,IAAAI,IAAAA,EAAAF,EAEnB,CAAA,wCACCG,EDJD,SACLb,EACAc,EAAiBvB,GAOa,IAgCFwB,EArCVnB,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDI,EAAKJ,EAALI,MACAS,EAAOb,EAAPa,QAGF,OAAQJ,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAkBtCqB,EAAAA,EACG,GAAA,kBAXCrB,EACEE,EACQ,GAAAoB,OAAMb,OAAOa,OAAIpB,GAEdO,EAGFP,GAKZ,aAAeD,GAnBT,CAAE,cA4BamB,EA5BeD,EA6B3CG,GAAAA,OAAUF,EAAKG,QAAQ,kBAAmB,SAAQ,WANhD,IAAK,eACH,MAAO,CAAE,eAAe,EAAMC,IAAK,IAEzC,CCnC0BC,CAAwBpB,EAAM,SAAQgB,EAAAA,EAAA,CAC5DrB,MAAAA,EACAS,QAAAA,GACC,aAAeR,GACf,kBAAoBC,IAEvB,OAAOwB,EAAAC,cAAA,MAAAC,EAAA,CAAK/B,UAAWgC,EAAAA,GAAER,KACtBT,EAAoB,MAART,GACZa,EAAcnB,GAAYiC,OAAwB,iBAAT/B,EAAoBA,EAAOT,EAAQS,GAAOgC,MAAuB,iBAAThC,EAAoBA,EAAOT,EAAQS,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,OAAA,CAAMO,EAAE,4JAA4J/B,KAAM,iBAAkBuB,EAAAC,cAAA,OAAA,CAAMO,EAAE,gJAAgJ/B,KAAM,iBAAkBuB,EAAAC,cAAA,OAAA,CAAMO,EAAE,gJAAgJ/B,KAAM,iBACxwB,SACAR,EAAOwC,YAAc,SACrBxC,EAAOyC,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"Checkmark.js","sources":["../../src/glyphCommon.ts","../../src/generated/Checkmark.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum ec066b42edd61151fa77028c59e1cd38\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CheckmarkProps extends LGGlyph.ComponentProps {}\nconst Checkmark = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CheckmarkProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Checkmark', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M6.30583 9.05037L11.7611 3.59509C12.1516 3.20457 12.7848 3.20457 13.1753 3.59509L13.8824 4.3022C14.273 4.69273 14.273 5.32589 13.8824 5.71642L6.81525 12.7836C6.38819 13.2106 5.68292 13.1646 5.31505 12.6856L2.26638 8.71605C1.92998 8.27804 2.01235 7.65025 2.45036 7.31385L3.04518 6.85702C3.59269 6.43652 4.37742 6.53949 4.79792 7.087L6.30583 9.05037Z\" fill={'currentColor'} /></svg>;\n};\nCheckmark.displayName = 'Checkmark';\nCheckmark.isGlyph = true;\nexport default Checkmark;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Checkmark","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"y9CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAY,SAAmBC,GACjC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,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AsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,SAAU,UACVC,SAAU,UACVC,EAAG,+VACH9B,KAAM,iBAEV,SACAR,EAAUuC,YAAc,YACxBvC,EAAUwC,SAAU"}
1
+ {"version":3,"file":"Checkmark.js","sources":["../../src/glyphCommon.ts","../../src/generated/Checkmark.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum ec066b42edd61151fa77028c59e1cd38\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CheckmarkProps extends LGGlyph.ComponentProps {}\nconst Checkmark = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CheckmarkProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Checkmark', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M6.30583 9.05037L11.7611 3.59509C12.1516 3.20457 12.7848 3.20457 13.1753 3.59509L13.8824 4.3022C14.273 4.69273 14.273 5.32589 13.8824 5.71642L6.81525 12.7836C6.38819 13.2106 5.68292 13.1646 5.31505 12.6856L2.26638 8.71605C1.92998 8.27804 2.01235 7.65025 2.45036 7.31385L3.04518 6.85702C3.59269 6.43652 4.37742 6.53949 4.79792 7.087L6.30583 9.05037Z\" fill={'currentColor'} /></svg>;\n};\nCheckmark.displayName = 'Checkmark';\nCheckmark.isGlyph = true;\nexport default Checkmark;"],"names":["sizeMap","small","default","large","xlarge","Checkmark","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"y9CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAY,SAAHC,GASO,IARpBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,+WAAKC,CAAAX,EAAAY,GAEFC,EAAUC,EAAAA,eAAe,CAC7BC,OAAQ,eAEJC,EAAYC,EAAAA,IAAGC,IAAAA,EAAAC,EACNZ,CAAAA,oBAAAA,eAAAA,GAETa,EAAeH,EAAGA,IAAAI,IAAAA,EAAAF,EAEnB,CAAA,wCACCG,EDJD,SACLb,EACAc,EAAiBvB,GAOa,IAgCFwB,EArCVnB,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDI,EAAKJ,EAALI,MACAS,EAAOb,EAAPa,QAGF,OAAQJ,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAkBtCqB,EAAAA,EACG,GAAA,kBAXCrB,EACEE,EACQ,GAAAoB,OAAMb,OAAOa,OAAIpB,GAEdO,EAGFP,GAKZ,aAAeD,GAnBT,CAAE,cA4BamB,EA5BeD,EA6B3CG,GAAAA,OAAUF,EAAKG,QAAQ,kBAAmB,SAAQ,WANhD,IAAK,eACH,MAAO,CAAE,eAAe,EAAMC,IAAK,IAEzC,CCnC0BC,CAAwBpB,EAAM,YAAWgB,EAAAA,EAAA,CAC/DrB,MAAAA,EACAS,QAAAA,GACC,aAAeR,GACf,kBAAoBC,IAEvB,OAAOwB,EAAAC,cAAA,MAAAC,EAAA,CAAK/B,UAAWgC,EAAAA,GAAER,KACtBT,EAAoB,MAART,GACZa,EAAcnB,GAAYiC,OAAwB,iBAAT/B,EAAoBA,EAAOT,EAAQS,GAAOgC,MAAuB,iBAAThC,EAAoBA,EAAOT,EAAQS,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,OAAA,CAAMO,SAAS,UAAUC,SAAS,UAAUC,EAAE,+VAA+VjC,KAAM,iBACjpB,SACAR,EAAU0C,YAAc,YACxB1C,EAAU2C,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"CheckmarkWithCircle.js","sources":["../../src/glyphCommon.ts","../../src/generated/CheckmarkWithCircle.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 00077ebf794be9aacfcbad2265921574\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CheckmarkWithCircleProps extends LGGlyph.ComponentProps {}\nconst CheckmarkWithCircle = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CheckmarkWithCircleProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'CheckmarkWithCircle', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM10.4485 4.89583C10.8275 4.45816 11.4983 4.43411 11.9077 4.84352C12.2777 5.21345 12.2989 5.80633 11.9564 6.2018L7.38365 11.4818C7.31367 11.5739 7.22644 11.6552 7.12309 11.7208C6.65669 12.0166 6.03882 11.8783 5.74302 11.4119L3.9245 8.54448C3.6287 8.07809 3.767 7.46021 4.2334 7.16442C4.69979 6.86863 5.31767 7.00693 5.61346 7.47332L6.71374 9.20819L10.4485 4.89583Z\" fill={'currentColor'} /></svg>;\n};\nCheckmarkWithCircle.displayName = 'CheckmarkWithCircle';\nCheckmarkWithCircle.isGlyph = true;\nexport default CheckmarkWithCircle;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","CheckmarkWithCircle","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"m+CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAsB,SAA6BC,GACrD,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAUC,EAAAA,eAAe,CAC3BC,OAAQ,eAENC,EAAYC,EAAAA,IAAIzB,IAAoBA,EAAkB0B,EAAuB,CAAC,oBAAqB,eAAgBV,GACnHW,EAAeF,EAAGA,IAACxB,IAAqBA,EAAmByB,EAAuB,CAAC,wCACnFE,EDhBC,SAAiCV,EAAMW,EAAWpB,GACvD,IAkC4BqB,EAlCxBhB,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACbQ,EAAUZ,EAAKY,QACjB,OAAQH,GACN,IAAK,MAED,OAAKJ,GAAcC,GAAmBF,EAkB/BkB,EAAgBA,EAAgB,GAAI,kBATvClB,EACEE,EACW,GAAGiB,OAAOX,EAAS,KAAKW,OAAOjB,GAE/BM,EAGFN,GAE4D,aAAcD,GAjBhF,CACL,cAyBkBgB,EAzBUD,EA0B/B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CClBwBC,CAAwBjB,EAAM,sBAAuBa,EAAgBA,EAAgB,CACzGlB,MAAOA,EACPQ,QAASA,GACR,aAAcP,GAAY,kBAAmBC,IAChD,OAAoBqB,EAAMC,cAAc,MAAOC,EAAS,CACtD5B,UAAW6B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARR,GAAeW,EAAcjB,GAC1E8B,OAAwB,iBAAT5B,EAAoBA,EAAOV,EAAQU,GAClD6B,MAAuB,iBAAT7B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLU,EAAiBT,EAAO,CACzBuB,QAAS,cACP7B,GAAsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,SAAU,UACVC,SAAU,UACVC,EAAG,sdACH9B,KAAM,iBAEV,SACAR,EAAoBuC,YAAc,sBAClCvC,EAAoBwC,SAAU"}
1
+ {"version":3,"file":"CheckmarkWithCircle.js","sources":["../../src/glyphCommon.ts","../../src/generated/CheckmarkWithCircle.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 00077ebf794be9aacfcbad2265921574\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CheckmarkWithCircleProps extends LGGlyph.ComponentProps {}\nconst CheckmarkWithCircle = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CheckmarkWithCircleProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'CheckmarkWithCircle', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C4.13401 1 1 4.13401 1 8C1 11.866 4.13401 15 8 15ZM10.4485 4.89583C10.8275 4.45816 11.4983 4.43411 11.9077 4.84352C12.2777 5.21345 12.2989 5.80633 11.9564 6.2018L7.38365 11.4818C7.31367 11.5739 7.22644 11.6552 7.12309 11.7208C6.65669 12.0166 6.03882 11.8783 5.74302 11.4119L3.9245 8.54448C3.6287 8.07809 3.767 7.46021 4.2334 7.16442C4.69979 6.86863 5.31767 7.00693 5.61346 7.47332L6.71374 9.20819L10.4485 4.89583Z\" fill={'currentColor'} /></svg>;\n};\nCheckmarkWithCircle.displayName = 'CheckmarkWithCircle';\nCheckmarkWithCircle.isGlyph = true;\nexport default CheckmarkWithCircle;"],"names":["sizeMap","small","default","large","xlarge","CheckmarkWithCircle","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"m+CASO,QAAMA,EAAgC,CAC3CC,MAAO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AAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,OAAA,CAAMO,SAAS,UAAUC,SAAS,UAAUC,EAAE,sdAAsdjC,KAAM,iBACxwB,SACAR,EAAoB0C,YAAc,sBAClC1C,EAAoB2C,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChevronDown.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChevronDown.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum e275fb3bb5b89ba8e7921f8057d97b61\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChevronDownProps extends LGGlyph.ComponentProps {}\nconst ChevronDown = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChevronDownProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChevronDown', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M1.63604 5.36396C1.24551 5.75449 1.24551 6.38765 1.63604 6.77817L6.58579 11.7279L7.29289 12.435C7.68342 12.8256 8.31658 12.8256 8.70711 12.435L9.41421 11.7279L14.364 6.77817C14.7545 6.38765 14.7545 5.75449 14.364 5.36396L13.6569 4.65685C13.2663 4.26633 12.6332 4.26633 12.2426 4.65685L8 8.89949L3.75736 4.65685C3.36684 4.26633 2.73367 4.26633 2.34315 4.65685L1.63604 5.36396Z\" fill={'currentColor'} /></svg>;\n};\nChevronDown.displayName = 'ChevronDown';\nChevronDown.isGlyph = true;\nexport default ChevronDown;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ChevronDown","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"29CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAc,SAAqBC,GACrC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAUC,EAAAA,eAAe,CAC3BC,OAAQ,eAENC,EAAYC,EAAAA,IAAIzB,IAAoBA,EAAkB0B,EAAuB,CAAC,oBAAqB,eAAgBV,GACnHW,EAAeF,EAAGA,IAACxB,IAAqBA,EAAmByB,EAAuB,CAAC,wCACnFE,EDhBC,SAAiCV,EAAMW,EAAWpB,GACvD,IAkC4BqB,EAlCxBhB,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACbQ,EAAUZ,EAAKY,QACjB,OAAQH,GACN,IAAK,MAED,OAAKJ,GAAcC,GAAmBF,EAkB/BkB,EAAgBA,EAAgB,GAAI,kBATvClB,EACEE,EACW,GAAGiB,OAAOX,EAAS,KAAKW,OAAOjB,GAE/BM,EAGFN,GAE4D,aAAcD,GAjBhF,CACL,cAyBkBgB,EAzBUD,EA0B/B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CClBwBC,CAAwBjB,EAAM,cAAea,EAAgBA,EAAgB,CACjGlB,MAAOA,EACPQ,QAASA,GACR,aAAcP,GAAY,kBAAmBC,IAChD,OAAoBqB,EAAMC,cAAc,MAAOC,EAAS,CACtD5B,UAAW6B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARR,GAAeW,EAAcjB,GAC1E8B,OAAwB,iBAAT5B,EAAoBA,EAAOV,EAAQU,GAClD6B,MAAuB,iBAAT7B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLU,EAAiBT,EAAO,CACzBuB,QAAS,cACP7B,GAAsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,SAAU,UACVC,SAAU,UACVC,EAAG,0XACH9B,KAAM,iBAEV,SACAR,EAAYuC,YAAc,cAC1BvC,EAAYwC,SAAU"}
1
+ {"version":3,"file":"ChevronDown.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChevronDown.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum e275fb3bb5b89ba8e7921f8057d97b61\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChevronDownProps extends LGGlyph.ComponentProps {}\nconst ChevronDown = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChevronDownProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChevronDown', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M1.63604 5.36396C1.24551 5.75449 1.24551 6.38765 1.63604 6.77817L6.58579 11.7279L7.29289 12.435C7.68342 12.8256 8.31658 12.8256 8.70711 12.435L9.41421 11.7279L14.364 6.77817C14.7545 6.38765 14.7545 5.75449 14.364 5.36396L13.6569 4.65685C13.2663 4.26633 12.6332 4.26633 12.2426 4.65685L8 8.89949L3.75736 4.65685C3.36684 4.26633 2.73367 4.26633 2.34315 4.65685L1.63604 5.36396Z\" fill={'currentColor'} /></svg>;\n};\nChevronDown.displayName = 'ChevronDown';\nChevronDown.isGlyph = true;\nexport default ChevronDown;"],"names":["sizeMap","small","default","large","xlarge","ChevronDown","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"29CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAc,SAAHC,GASO,IARtBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,+WAAKC,CAAAX,EAAAY,GAEFC,EAAUC,EAAAA,eAAe,CAC7BC,OAAQ,eAEJC,EAAYC,EAAAA,IAAGC,IAAAA,EAAAC,EACNZ,CAAAA,oBAAAA,eAAAA,GAETa,EAAeH,EAAGA,IAAAI,IAAAA,EAAAF,EAEnB,CAAA,wCACCG,EDJD,SACLb,EACAc,EAAiBvB,GAOa,IAgCFwB,EArCVnB,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDI,EAAKJ,EAALI,MACAS,EAAOb,EAAPa,QAGF,OAAQJ,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAkBtCqB,EAAAA,EACG,GAAA,kBAXCrB,EACEE,EACQ,GAAAoB,OAAMb,OAAOa,OAAIpB,GAEdO,EAGFP,GAKZ,aAAeD,GAnBT,CAAE,cA4BamB,EA5BeD,EA6B3CG,GAAAA,OAAUF,EAAKG,QAAQ,kBAAmB,SAAQ,WANhD,IAAK,eACH,MAAO,CAAE,eAAe,EAAMC,IAAK,IAEzC,CCnC0BC,CAAwBpB,EAAM,cAAagB,EAAAA,EAAA,CACjErB,MAAAA,EACAS,QAAAA,GACC,aAAeR,GACf,kBAAoBC,IAEvB,OAAOwB,EAAAC,cAAA,MAAAC,EAAA,CAAK/B,UAAWgC,EAAAA,GAAER,KACtBT,EAAoB,MAART,GACZa,EAAcnB,GAAYiC,OAAwB,iBAAT/B,EAAoBA,EAAOT,EAAQS,GAAOgC,MAAuB,iBAAThC,EAAoBA,EAAOT,EAAQS,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,OAAA,CAAMO,SAAS,UAAUC,SAAS,UAAUC,EAAE,0XAA0XjC,KAAM,iBAC5qB,SACAR,EAAY0C,YAAc,cAC1B1C,EAAY2C,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChevronLeft.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChevronLeft.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 6fc3eec869d8fdac398779319ff111e5\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChevronLeftProps extends LGGlyph.ComponentProps {}\nconst ChevronLeft = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChevronLeftProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChevronLeft', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M10.7782 1.63604C10.3877 1.24551 9.75449 1.24551 9.36396 1.63604L4.41421 6.58579L3.70711 7.29289C3.31658 7.68342 3.31658 8.31658 3.70711 8.70711L4.41421 9.41421L9.36396 14.364C9.75448 14.7545 10.3876 14.7545 10.7782 14.364L11.4853 13.6569C11.8758 13.2663 11.8758 12.6332 11.4853 12.2426L7.24264 8L11.4853 3.75736C11.8758 3.36684 11.8758 2.73367 11.4853 2.34315L10.7782 1.63604Z\" fill={'currentColor'} /></svg>;\n};\nChevronLeft.displayName = 'ChevronLeft';\nChevronLeft.isGlyph = true;\nexport default ChevronLeft;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ChevronLeft","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"29CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAc,SAAqBC,GACrC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAA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,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,SAAU,UACVC,SAAU,UACVC,EAAG,4XACH9B,KAAM,iBAEV,SACAR,EAAYuC,YAAc,cAC1BvC,EAAYwC,SAAU"}
1
+ {"version":3,"file":"ChevronLeft.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChevronLeft.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 6fc3eec869d8fdac398779319ff111e5\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChevronLeftProps extends LGGlyph.ComponentProps {}\nconst ChevronLeft = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChevronLeftProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChevronLeft', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M10.7782 1.63604C10.3877 1.24551 9.75449 1.24551 9.36396 1.63604L4.41421 6.58579L3.70711 7.29289C3.31658 7.68342 3.31658 8.31658 3.70711 8.70711L4.41421 9.41421L9.36396 14.364C9.75448 14.7545 10.3876 14.7545 10.7782 14.364L11.4853 13.6569C11.8758 13.2663 11.8758 12.6332 11.4853 12.2426L7.24264 8L11.4853 3.75736C11.8758 3.36684 11.8758 2.73367 11.4853 2.34315L10.7782 1.63604Z\" fill={'currentColor'} /></svg>;\n};\nChevronLeft.displayName = 'ChevronLeft';\nChevronLeft.isGlyph = true;\nexport default ChevronLeft;"],"names":["sizeMap","small","default","large","xlarge","ChevronLeft","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"29CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAc,SAAHC,GASO,IARtBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,+WAAKC,CAAAX,EAAAY,GAEFC,EAAUC,EAAAA,eAAe,CAC7BC,OAAQ,eAEJC,EAAYC,EAAAA,IAAGC,IAAAA,EAAAC,EACNZ,CAAAA,oBAAAA,eAAAA,GAETa,EAAeH,EAAGA,IAAAI,IAAAA,EAAAF,EAEnB,CAAA,wCACCG,EDJD,SACLb,EACAc,EAAiBvB,GAOa,IAgCFwB,EArCVnB,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDI,EAAKJ,EAALI,MACAS,EAAOb,EAAPa,QAGF,OAAQJ,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAkBtCqB,EAAAA,EACG,GAAA,kBAXCrB,EACEE,EACQ,GAAAoB,OAAMb,OAAOa,OAAIpB,GAEdO,EAGFP,GAKZ,aAAeD,GAnBT,CAAE,cA4BamB,EA5BeD,EA6B3CG,GAAAA,OAAUF,EAAKG,QAAQ,kBAAmB,SAAQ,WANhD,IAAK,eACH,MAAO,CAAE,eAAe,EAAMC,IAAK,IAEzC,CCnC0BC,CAAwBpB,EAAM,cAAagB,EAAAA,EAAA,CACjErB,MAAAA,EACAS,QAAAA,GACC,aAAeR,GACf,kBAAoBC,IAEvB,OAAOwB,EAAAC,cAAA,MAAAC,EAAA,CAAK/B,UAAWgC,EAAAA,GAAER,KACtBT,EAAoB,MAART,GACZa,EAAcnB,GAAYiC,OAAwB,iBAAT/B,EAAoBA,EAAOT,EAAQS,GAAOgC,MAAuB,iBAAThC,EAAoBA,EAAOT,EAAQS,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,OAAA,CAAMO,SAAS,UAAUC,SAAS,UAAUC,EAAE,4XAA4XjC,KAAM,iBAC9qB,SACAR,EAAY0C,YAAc,cAC1B1C,EAAY2C,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"ChevronRight.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChevronRight.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 60bb62c5594c1e3ad5fa32afdd700306\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChevronRightProps extends LGGlyph.ComponentProps {}\nconst ChevronRight = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChevronRightProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChevronRight', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M5.36396 14.364C5.75449 14.7545 6.38765 14.7545 6.77818 14.364L11.7279 9.41421L12.435 8.70711C12.8256 8.31658 12.8256 7.68342 12.435 7.29289L11.7279 6.58579L6.77817 1.63604C6.38765 1.24552 5.75449 1.24551 5.36396 1.63604L4.65685 2.34315C4.26633 2.73367 4.26633 3.36684 4.65685 3.75736L8.89949 8L4.65685 12.2426C4.26633 12.6332 4.26633 13.2663 4.65686 13.6569L5.36396 14.364Z\" fill={'currentColor'} /></svg>;\n};\nChevronRight.displayName = 'ChevronRight';\nChevronRight.isGlyph = true;\nexport default ChevronRight;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ChevronRight","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"49CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAe,SAAsBC,GACvC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAUC,EAAAA,eAAe,CAC3BC,OAAQ,eAENC,EAAYC,EAAAA,IAAIzB,IAAoBA,EAAkB0B,EAAuB,CAAC,oBAAqB,eAAgBV,GACnHW,EAAeF,EAAGA,IAACxB,IAAqBA,EAAmByB,EAAuB,CAAC,wCACnFE,EDhBC,SAAiCV,EAAMW,EAAWpB,GACvD,IAkC4BqB,EAlCxBhB,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACbQ,EAAUZ,EAAKY,QACjB,OAAQH,GACN,IAAK,MAED,OAAKJ,GAAcC,GAAmBF,EAkB/BkB,EAAgBA,EAAgB,GAAI,kBATvClB,EACEE,EACW,GAAGiB,OAAOX,EAAS,KAAKW,OAAOjB,GAE/BM,EAGFN,GAE4D,aAAcD,GAjBhF,CACL,cAyBkBgB,EAzBUD,EA0B/B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CClBwBC,CAAwBjB,EAAM,eAAgBa,EAAgBA,EAAgB,CAClGlB,MAAOA,EACPQ,QAASA,GACR,aAAcP,GAAY,kBAAmBC,IAChD,OAAoBqB,EAAMC,cAAc,MAAOC,EAAS,CACtD5B,UAAW6B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARR,GAAeW,EAAcjB,GAC1E8B,OAAwB,iBAAT5B,EAAoBA,EAAOV,EAAQU,GAClD6B,MAAuB,iBAAT7B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLU,EAAiBT,EAAO,CACzBuB,QAAS,cACP7B,GAAsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,SAAU,UACVC,SAAU,UACVC,EAAG,yXACH9B,KAAM,iBAEV,SACAR,EAAauC,YAAc,eAC3BvC,EAAawC,SAAU"}
1
+ {"version":3,"file":"ChevronRight.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChevronRight.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 60bb62c5594c1e3ad5fa32afdd700306\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChevronRightProps extends LGGlyph.ComponentProps {}\nconst ChevronRight = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChevronRightProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChevronRight', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M5.36396 14.364C5.75449 14.7545 6.38765 14.7545 6.77818 14.364L11.7279 9.41421L12.435 8.70711C12.8256 8.31658 12.8256 7.68342 12.435 7.29289L11.7279 6.58579L6.77817 1.63604C6.38765 1.24552 5.75449 1.24551 5.36396 1.63604L4.65685 2.34315C4.26633 2.73367 4.26633 3.36684 4.65685 3.75736L8.89949 8L4.65685 12.2426C4.26633 12.6332 4.26633 13.2663 4.65686 13.6569L5.36396 14.364Z\" fill={'currentColor'} /></svg>;\n};\nChevronRight.displayName = 'ChevronRight';\nChevronRight.isGlyph = true;\nexport default ChevronRight;"],"names":["sizeMap","small","default","large","xlarge","ChevronRight","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"49CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAe,SAAHC,GASO,IARvBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MA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evronUp.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChevronUp.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 5b3ceb89db986b5027dc2afc7a9f6e4c\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChevronUpProps extends LGGlyph.ComponentProps {}\nconst ChevronUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChevronUpProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChevronUp', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M14.364 10.7782C14.7545 10.3877 14.7545 9.75449 14.364 9.36396L9.41421 4.41421L8.70711 3.70711C8.31658 3.31658 7.68342 3.31658 7.29289 3.70711L6.58579 4.41421L1.63604 9.36396C1.24552 9.75448 1.24551 10.3876 1.63604 10.7782L2.34315 11.4853C2.73367 11.8758 3.36684 11.8758 3.75736 11.4853L8 7.24264L12.2426 11.4853C12.6332 11.8758 13.2663 11.8758 13.6569 11.4853L14.364 10.7782Z\" fill={'currentColor'} /></svg>;\n};\nChevronUp.displayName = 'ChevronUp';\nChevronUp.isGlyph = true;\nexport default ChevronUp;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ChevronUp","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"m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,UAAW6B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARR,GAAeW,EAAcjB,GAC1E8B,OAAwB,iBAAT5B,EAAoBA,EAAOV,EAAQU,GAClD6B,MAAuB,iBAAT7B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLU,EAAiBT,EAAO,CACzBuB,QAAS,cACP7B,GAAsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,OAAQ,CAClDO,SAAU,UACVC,SAAU,UACVC,EAAG,2XACH9B,KAAM,iBAEV,SACAR,EAAUuC,YAAc,YACxBvC,EAAUwC,SAAU"}
1
+ {"version":3,"file":"ChevronUp.js","sources":["../../src/glyphCommon.ts","../../src/generated/ChevronUp.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 5b3ceb89db986b5027dc2afc7a9f6e4c\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ChevronUpProps extends LGGlyph.ComponentProps {}\nconst ChevronUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ChevronUpProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ChevronUp', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M14.364 10.7782C14.7545 10.3877 14.7545 9.75449 14.364 9.36396L9.41421 4.41421L8.70711 3.70711C8.31658 3.31658 7.68342 3.31658 7.29289 3.70711L6.58579 4.41421L1.63604 9.36396C1.24552 9.75448 1.24551 10.3876 1.63604 10.7782L2.34315 11.4853C2.73367 11.8758 3.36684 11.8758 3.75736 11.4853L8 7.24264L12.2426 11.4853C12.6332 11.8758 13.2663 11.8758 13.6569 11.4853L14.364 10.7782Z\" fill={'currentColor'} /></svg>;\n};\nChevronUp.displayName = 'ChevronUp';\nChevronUp.isGlyph = true;\nexport default ChevronUp;"],"names":["sizeMap","small","default","large","xlarge","ChevronUp","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"y9CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAY,SAAHC,GASO,IARpBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,+WAAKC,CAAAX,EAAAY,GAEFC,EAAUC,EAAAA,eAAe,CAC7BC,OAAQ,eAEJC,EAAYC,EAAAA,IAAGC,IAAAA,EAAAC,EACNZ,CAAAA,oBAAAA,eAAAA,GAETa,EAAeH,EAAGA,IAAAI,IAAAA,EAAAF,EAEnB,CAAA,wCACCG,EDJD,SACLb,EACAc,EAAiBvB,GAOa,IAgCFwB,EArCVnB,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDI,EAAKJ,EAALI,MACAS,EAAOb,EAAPa,QAGF,OAAQJ,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAkBtCqB,EAAAA,EACG,GAAA,kBAXCrB,EACEE,EACQ,GAAAoB,OAAMb,OAAOa,OAAIpB,GAEdO,EAGFP,GAKZ,aAAeD,GAnBT,CAAE,cA4BamB,EA5BeD,EA6B3CG,GAAAA,OAAUF,EAAKG,QAAQ,kBAAmB,SAAQ,WANhD,IAAK,eACH,MAAO,CAAE,eAAe,EAAMC,IAAK,IAEzC,CCnC0BC,CAAwBpB,EAAM,YAAWgB,EAAAA,EAAA,CAC/DrB,MAAAA,EACAS,QAAAA,GACC,aAAeR,GACf,kBAAoBC,IAEvB,OAAOwB,EAAAC,cAAA,MAAAC,EAAA,CAAK/B,UAAWgC,EAAAA,GAAER,KACtBT,EAAoB,MAART,GACZa,EAAcnB,GAAYiC,OAAwB,iBAAT/B,EAAoBA,EAAOT,EAAQS,GAAOgC,MAAuB,iBAAThC,EAAoBA,EAAOT,EAAQS,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,OAAA,CAAMO,SAAS,UAAUC,SAAS,UAAUC,EAAE,2XAA2XjC,KAAM,iBAC7qB,SACAR,EAAU0C,YAAc,YACxB1C,EAAU2C,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"Circle.js","sources":["../../src/glyphCommon.ts","../../src/generated/Circle.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum e829167c1953740dcb6125ad8cd3c702\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CircleProps extends LGGlyph.ComponentProps {}\nconst Circle = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CircleProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Circle', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<circle cx={8} cy={8} r={7} fill={'currentColor'} /></svg>;\n};\nCircle.displayName = 'Circle';\nCircle.isGlyph = true;\nexport default Circle;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Circle","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","cy","r","displayName","isGlyph"],"mappings":"s9CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAS,SAAgBC,GAC3B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAUC,EAAAA,eAAe,CAC3BC,OAAQ,eAENC,EAAYC,EAAAA,IAAIzB,IAAoBA,EAAkB0B,EAAuB,CAAC,oBAAqB,eAAgBV,GACnHW,EAAeF,EAAGA,IAACxB,IAAqBA,EAAmByB,EAAuB,CAAC,wCACnFE,EDhBC,SAAiCV,EAAMW,EAAWpB,GACvD,IAkC4BqB,EAlCxBhB,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACbQ,EAAUZ,EAAKY,QACjB,OAAQH,GACN,IAAK,MAED,OAAKJ,GAAcC,GAAmBF,EAkB/BkB,EAAgBA,EAAgB,GAAI,kBATvClB,EACEE,EACW,GAAGiB,OAAOX,EAAS,KAAKW,OAAOjB,GAE/BM,EAGFN,GAE4D,aAAcD,GAjBhF,CACL,cAyBkBgB,EAzBUD,EA0B/B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CClBwBC,CAAwBjB,EAAM,SAAUa,EAAgBA,EAAgB,CAC5FlB,MAAOA,EACPQ,QAASA,GACR,aAAcP,GAAY,kBAAmBC,IAChD,OAAoBqB,EAAMC,cAAc,MAAOC,EAAS,CACtD5B,UAAW6B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARR,GAAeW,EAAcjB,GAC1E8B,OAAwB,iBAAT5B,EAAoBA,EAAOV,EAAQU,GAClD6B,MAAuB,iBAAT7B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLU,EAAiBT,EAAO,CACzBuB,QAAS,cACP7B,GAAsBuB,EAAMC,cAAc,QAAS,CACrDM,GAAItB,GACHR,GAAqBuB,EAAMC,cAAc,SAAU,CACpDE,GAAI,EACJK,GAAI,EACJC,EAAG,EACH7B,KAAM,iBAEV,SACAR,EAAOsC,YAAc,SACrBtC,EAAOuC,SAAU"}
1
+ {"version":3,"file":"Circle.js","sources":["../../src/glyphCommon.ts","../../src/generated/Circle.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum e829167c1953740dcb6125ad8cd3c702\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface CircleProps extends LGGlyph.ComponentProps {}\nconst Circle = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: CircleProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Circle', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<circle cx={8} cy={8} r={7} fill={'currentColor'} /></svg>;\n};\nCircle.displayName = 'Circle';\nCircle.isGlyph = true;\nexport default Circle;"],"names":["sizeMap","small","default","large","xlarge","Circle","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","cy","r","displayName","isGlyph"],"mappings":"s9CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAS,SAAHC,GASO,IARjBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,+WAAKC,CAAAX,EAAAY,GAEFC,EAAUC,EAAAA,eAAe,CAC7BC,OAAQ,eAEJC,EAAYC,EAAAA,IAAGC,IAAAA,EAAAC,EACNZ,CAAAA,oBAAAA,eAAAA,GAETa,EAAeH,EAAGA,IAAAI,IAAAA,EAAAF,EAEnB,CAAA,wCACCG,EDJD,SACLb,EACAc,EAAiBvB,GAOa,IAgCFwB,EArCVnB,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDI,EAAKJ,EAALI,MACAS,EAAOb,EAAPa,QAGF,OAAQJ,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAkBtCqB,EAAAA,EACG,GAAA,kBAXCrB,EACEE,EACQ,GAAAoB,OAAMb,OAAOa,OAAIpB,GAEdO,EAGFP,GAKZ,aAAeD,GAnBT,CAAE,cA4BamB,EA5BeD,EA6B3CG,GAAAA,OAAUF,EAAKG,QAAQ,kBAAmB,SAAQ,WANhD,IAAK,eACH,MAAO,CAAE,eAAe,EAAMC,IAAK,IAEzC,CCnC0BC,CAAwBpB,EAAM,SAAQgB,EAAAA,EAAA,CAC5DrB,MAAAA,EACAS,QAAAA,GACC,aAAeR,GACf,kBAAoBC,IAEvB,OAAOwB,EAAAC,cAAA,MAAAC,EAAA,CAAK/B,UAAWgC,EAAAA,GAAER,KACtBT,EAAoB,MAART,GACZa,EAAcnB,GAAYiC,OAAwB,iBAAT/B,EAAoBA,EAAOT,EAAQS,GAAOgC,MAAuB,iBAAThC,EAAoBA,EAAOT,EAAQS,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,SAAA,CAAQE,GAAI,EAAGK,GAAI,EAAGC,EAAG,EAAGhC,KAAM,iBAChS,SACAR,EAAOyC,YAAc,SACrBzC,EAAO0C,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"Clock.js","sources":["../../src/glyphCommon.ts","../../src/generated/Clock.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 9a02c8d2237e34d328ae06498762c516\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ClockProps extends LGGlyph.ComponentProps {}\nconst Clock = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ClockProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Clock', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM7.25 4.75C7.25 4.33579 7.58579 4 8 4C8.41421 4 8.75 4.33579 8.75 4.75V7.90966L10.4939 9.43556C10.8056 9.70832 10.8372 10.1821 10.5644 10.4939C10.2917 10.8056 9.81786 10.8372 9.50613 10.5644L7.51059 8.81833C7.5014 8.8104 7.4924 8.80226 7.48361 8.79391C7.41388 8.7278 7.35953 8.65117 7.32087 8.56867C7.27541 8.47195 7.25 8.36394 7.25 8.25V4.75Z\" fill={'currentColor'} /></svg>;\n};\nClock.displayName = 'Clock';\nClock.isGlyph = true;\nexport default Clock;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Clock","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"q9CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAQ,SAAeC,GACzB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF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Common.ts","../../src/generated/Clock.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 9a02c8d2237e34d328ae06498762c516\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ClockProps extends LGGlyph.ComponentProps {}\nconst Clock = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ClockProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Clock', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14ZM7.25 4.75C7.25 4.33579 7.58579 4 8 4C8.41421 4 8.75 4.33579 8.75 4.75V7.90966L10.4939 9.43556C10.8056 9.70832 10.8372 10.1821 10.5644 10.4939C10.2917 10.8056 9.81786 10.8372 9.50613 10.5644L7.51059 8.81833C7.5014 8.8104 7.4924 8.80226 7.48361 8.79391C7.41388 8.7278 7.35953 8.65117 7.32087 8.56867C7.27541 8.47195 7.25 8.36394 7.25 8.25V4.75Z\" fill={'currentColor'} /></svg>;\n};\nClock.displayName = 'Clock';\nClock.isGlyph = true;\nexport default Clock;"],"names":["sizeMap","small","default","large","xlarge","Clock","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","fillRule","clip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AQS,GAAOgC,MAAuB,iBAAThC,EAAoBA,EAAOT,EAAQS,GAAOM,KAAMA,GAAUa,EAAqBZ,EAAK,CAAE0B,QAAQ,cAAahC,GAAS0B,EAAAC,cAAA,QAAA,CAAOM,GAAIxB,GAAUT,GAAe0B,EAAAC,cAAA,OAAA,CAAMO,SAAS,UAAUC,SAAS,UAAUC,EAAE,scAAscjC,KAAM,iBACxvB,SACAR,EAAM0C,YAAc,QACpB1C,EAAM2C,SAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"ClockWithArrow.js","sources":["../../src/glyphCommon.ts","../../src/generated/ClockWithArrow.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 801ec811d8cadd01a92629fba5496494\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ClockWithArrowProps extends LGGlyph.ComponentProps {}\nconst ClockWithArrow = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ClockWithArrowProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ClockWithArrow', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path d=\"M13 8C13 10.7614 10.7614 13 8 13C7.16895 13 6.38526 12.7973 5.69568 12.4385C5.34783 12.2576 4.90944 12.3087 4.65841 12.6099L4.32712 13.0075C4.05174 13.3379 4.1087 13.8355 4.48034 14.0521C5.51438 14.6548 6.71687 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C6.05606 1 4.2972 1.7924 3.02879 3.07181L1.96954 2.14618C1.56206 1.7901 0.931193 2.13127 1.00611 2.66721L1.4606 5.9185C1.50083 6.20624 1.7463 6.4287 2.03684 6.43H5.31972C5.86086 6.43241 6.1144 5.76821 5.70691 5.41212L4.53896 4.3915C5.4373 3.52965 6.65679 3 8 3C10.7614 3 13 5.23858 13 8Z\" fill={'currentColor'} /><path d=\"M7.25 5.25C7.25 4.83579 7.58579 4.5 8 4.5C8.41421 4.5 8.75 4.83579 8.75 5.25V7.91793L10.4294 9.44169C10.7412 9.71445 10.7728 10.1883 10.5 10.5C10.2272 10.8117 9.75342 10.8433 9.44169 10.5706L7.50697 8.81519C7.49904 8.80826 7.49125 8.80117 7.48361 8.79391C7.41388 8.72781 7.35954 8.65118 7.32088 8.56868C7.27541 8.47196 7.25 8.36395 7.25 8.25V5.25Z\" fill={'currentColor'} /></svg>;\n};\nClockWithArrow.displayName = 'ClockWithArrow';\nClockWithArrow.isGlyph = true;\nexport default ClockWithArrow;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ClockWithArrow","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","titleId","useIdAllocator","prefix","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","d","displayName","isGlyph"],"mappings":"89CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAWpFC,EAAiB,SAAwBC,GAC3C,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAUC,EAAAA,eA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Arrow.js","sources":["../../src/glyphCommon.ts","../../src/generated/ClockWithArrow.tsx"],"sourcesContent":["export const Size = {\n Small: 'small',\n Default: 'default',\n Large: 'large',\n XLarge: 'xlarge',\n} as const;\n\nexport type Size = (typeof Size)[keyof typeof Size];\n\nexport const sizeMap: Record<Size, number> = {\n small: 14,\n default: 16,\n large: 20,\n xlarge: 24,\n} as const;\n\ninterface AccessibleFunctionParams {\n 'aria-labelledby'?: string;\n 'aria-label'?: string;\n title?: string | null;\n titleId?: string;\n}\n\ntype AccessibleFunctionReturnType =\n | { 'aria-labelledby'?: string; 'aria-label'?: string }\n | { 'aria-hidden': true; alt: '' };\n\nexport function generateAccessibleProps(\n role: 'img' | 'presentation',\n glyphName: string,\n {\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n title,\n titleId,\n }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img': {\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n // If there's a title, use the titleId for aria-labelledby\n // If there's already an aria-labelledby, combine them\n let labelledBy: string | undefined;\n\n if (title) {\n if (ariaLabelledby) {\n labelledBy = `${titleId} ${ariaLabelledby}`;\n } else {\n labelledBy = titleId;\n }\n } else {\n labelledBy = ariaLabelledby;\n }\n\n return {\n ['aria-labelledby']: labelledBy,\n ['aria-label']: ariaLabel,\n };\n }\n\n case 'presentation':\n return { 'aria-hidden': true, alt: '' };\n }\n}\n\nexport function getGlyphLabel(name: string) {\n return `${name.replace(/([a-z])([A-Z])/g, '$1 $2')} Icon`;\n}\n","/**\n* This is a generated file. Do not modify it manually.\n*\n* @script packages/icon/scripts/prebuild/index.ts\n* @checksum 801ec811d8cadd01a92629fba5496494\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { useIdAllocator } from '@leafygreen-ui/hooks';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ClockWithArrowProps extends LGGlyph.ComponentProps {}\nconst ClockWithArrow = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ClockWithArrowProps) => {\n const titleId = useIdAllocator({\n prefix: 'icon-title'\n });\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ClockWithArrow', {\n title,\n titleId,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\">{title && <title id={titleId}>{title}</title>}<path d=\"M13 8C13 10.7614 10.7614 13 8 13C7.16895 13 6.38526 12.7973 5.69568 12.4385C5.34783 12.2576 4.90944 12.3087 4.65841 12.6099L4.32712 13.0075C4.05174 13.3379 4.1087 13.8355 4.48034 14.0521C5.51438 14.6548 6.71687 15 8 15C11.866 15 15 11.866 15 8C15 4.13401 11.866 1 8 1C6.05606 1 4.2972 1.7924 3.02879 3.07181L1.96954 2.14618C1.56206 1.7901 0.931193 2.13127 1.00611 2.66721L1.4606 5.9185C1.50083 6.20624 1.7463 6.4287 2.03684 6.43H5.31972C5.86086 6.43241 6.1144 5.76821 5.70691 5.41212L4.53896 4.3915C5.4373 3.52965 6.65679 3 8 3C10.7614 3 13 5.23858 13 8Z\" fill={'currentColor'} /><path d=\"M7.25 5.25C7.25 4.83579 7.58579 4.5 8 4.5C8.41421 4.5 8.75 4.83579 8.75 5.25V7.91793L10.4294 9.44169C10.7412 9.71445 10.7728 10.1883 10.5 10.5C10.2272 10.8117 9.75342 10.8433 9.44169 10.5706L7.50697 8.81519C7.49904 8.80826 7.49125 8.80117 7.48361 8.79391C7.41388 8.72781 7.35954 8.65118 7.32088 8.56868C7.27541 8.47196 7.25 8.36395 7.25 8.25V5.25Z\" fill={'currentColor'} /></svg>;\n};\nClockWithArrow.displayName = 'ClockWithArrow';\nClockWithArrow.isGlyph = true;\nexport default ClockWithArrow;"],"names":["sizeMap","small","default","large","xlarge","ClockWithArrow","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","_excluded","titleId","useIdAllocator","prefix","fillStyle","css","_templateObject","_taggedTemplateLiteral","noFlexShrink","_templateObject2","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","id","d","displayName","isGlyph"],"mappings":"89CASO,QAAMA,EAAgC,CAC3CC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,oFCDJC,EAAiB,SAAHC,GASO,IARzBC,EAASD,EAATC,UAASC,EAAAF,EACTG,KAAAA,OAAO,IAAHD,EAAG,GAAEA,EACTE,EAAKJ,EAALI,MACgBC,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDO,EAAIP,EAAJO,KAAIC,EAAAR,EACJS,KAAAA,OAAO,IAAHD,EAAG,MAAKA,EACTE,+WAAKC,CAAAX,EAAAY,GAEFC,EAAUC,EAAAA,eAAe,CAC7BC,OAAQ,eAEJC,EAAYC,EAAAA,IAAGC,IAAAA,EAAAC,EACNZ,CAAAA,oBAAAA,eAAAA,GAETa,EAAeH,EAAGA,IAAAI,IAAAA,EAAAF,EAEnB,CAAA,wCACCG,EDJD,SACLb,EACAc,EAAiBvB,GAOa,IAgCFwB,EArCVnB,EAASL,EAAxB,cACoBM,EAAcN,EAAlC,mBACDI,EAAKJ,EAALI,MACAS,EAAOb,EAAPa,QAGF,OAAQJ,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAkBtCqB,EAAAA,EACG,GAAA,kBAXCrB,EACEE,EACQ,GAAAoB,OAAMb,OAAOa,OAAIpB,GAEdO,EAGFP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