@leafygreen-ui/icon 11.8.0 → 11.10.1

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 (668) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/ActivityFeed.js +1 -1
  3. package/dist/ActivityFeed.js.map +1 -1
  4. package/dist/AddFile.js +1 -1
  5. package/dist/AddFile.js.map +1 -1
  6. package/dist/Apps.js +1 -1
  7. package/dist/Apps.js.map +1 -1
  8. package/dist/Array.js +1 -1
  9. package/dist/Array.js.map +1 -1
  10. package/dist/ArrowDown.js +1 -1
  11. package/dist/ArrowDown.js.map +1 -1
  12. package/dist/ArrowLeft.js +1 -1
  13. package/dist/ArrowLeft.js.map +1 -1
  14. package/dist/ArrowRight.js +1 -1
  15. package/dist/ArrowRight.js.map +1 -1
  16. package/dist/ArrowUp.js +1 -1
  17. package/dist/ArrowUp.js.map +1 -1
  18. package/dist/Beaker.js +1 -1
  19. package/dist/Beaker.js.map +1 -1
  20. package/dist/Bell.js +1 -1
  21. package/dist/Bell.js.map +1 -1
  22. package/dist/Building.js +1 -1
  23. package/dist/Building.js.map +1 -1
  24. package/dist/Bulb.js +1 -1
  25. package/dist/Bulb.js.map +1 -1
  26. package/dist/Calendar.js +1 -1
  27. package/dist/Calendar.js.map +1 -1
  28. package/dist/CaretDown.js +1 -1
  29. package/dist/CaretDown.js.map +1 -1
  30. package/dist/CaretLeft.js +1 -1
  31. package/dist/CaretLeft.js.map +1 -1
  32. package/dist/CaretRight.js +1 -1
  33. package/dist/CaretRight.js.map +1 -1
  34. package/dist/CaretUp.js +1 -1
  35. package/dist/CaretUp.js.map +1 -1
  36. package/dist/Charts.js +1 -1
  37. package/dist/Charts.js.map +1 -1
  38. package/dist/Checkmark.js +1 -1
  39. package/dist/Checkmark.js.map +1 -1
  40. package/dist/CheckmarkWithCircle.js +1 -1
  41. package/dist/CheckmarkWithCircle.js.map +1 -1
  42. package/dist/ChevronDown.js +1 -1
  43. package/dist/ChevronDown.js.map +1 -1
  44. package/dist/ChevronLeft.js +1 -1
  45. package/dist/ChevronLeft.js.map +1 -1
  46. package/dist/ChevronRight.js +1 -1
  47. package/dist/ChevronRight.js.map +1 -1
  48. package/dist/ChevronUp.js +1 -1
  49. package/dist/ChevronUp.js.map +1 -1
  50. package/dist/Clock.js +1 -1
  51. package/dist/Clock.js.map +1 -1
  52. package/dist/ClockWithArrow.js +1 -1
  53. package/dist/ClockWithArrow.js.map +1 -1
  54. package/dist/Clone.js +1 -1
  55. package/dist/Clone.js.map +1 -1
  56. package/dist/Cloud.js +1 -1
  57. package/dist/Cloud.js.map +1 -1
  58. package/dist/Code.js +1 -1
  59. package/dist/Code.js.map +1 -1
  60. package/dist/Connect.js +1 -1
  61. package/dist/Connect.js.map +1 -1
  62. package/dist/Copy.js +1 -1
  63. package/dist/Copy.js.map +1 -1
  64. package/dist/CreditCard.js +1 -1
  65. package/dist/CreditCard.js.map +1 -1
  66. package/dist/CurlyBraces.js +1 -1
  67. package/dist/CurlyBraces.js.map +1 -1
  68. package/dist/Cursor.js +2 -0
  69. package/dist/Cursor.js.map +1 -0
  70. package/dist/Database.js +1 -1
  71. package/dist/Database.js.map +1 -1
  72. package/dist/Diagram.js +1 -1
  73. package/dist/Diagram.js.map +1 -1
  74. package/dist/Diagram2.js +2 -0
  75. package/dist/Diagram2.js.map +1 -0
  76. package/dist/Diagram3.js +2 -0
  77. package/dist/Diagram3.js.map +1 -0
  78. package/dist/Disconnect.js +1 -1
  79. package/dist/Disconnect.js.map +1 -1
  80. package/dist/Download.js +1 -1
  81. package/dist/Download.js.map +1 -1
  82. package/dist/Edit.js +1 -1
  83. package/dist/Edit.js.map +1 -1
  84. package/dist/Ellipsis.js +1 -1
  85. package/dist/Ellipsis.js.map +1 -1
  86. package/dist/Export.js +1 -1
  87. package/dist/Export.js.map +1 -1
  88. package/dist/Favorite.js +1 -1
  89. package/dist/Favorite.js.map +1 -1
  90. package/dist/File.js +1 -1
  91. package/dist/File.js.map +1 -1
  92. package/dist/Filter.js +1 -1
  93. package/dist/Filter.js.map +1 -1
  94. package/dist/Folder.js +1 -1
  95. package/dist/Folder.js.map +1 -1
  96. package/dist/FullScreenEnter.js +1 -1
  97. package/dist/FullScreenEnter.js.map +1 -1
  98. package/dist/FullScreenExit.js +1 -1
  99. package/dist/FullScreenExit.js.map +1 -1
  100. package/dist/GlobeAmericas.js +1 -1
  101. package/dist/GlobeAmericas.js.map +1 -1
  102. package/dist/GovernmentBuilding.js +1 -1
  103. package/dist/GovernmentBuilding.js.map +1 -1
  104. package/dist/Home.js +1 -1
  105. package/dist/Home.js.map +1 -1
  106. package/dist/ImportantWithCircle.js +1 -1
  107. package/dist/ImportantWithCircle.js.map +1 -1
  108. package/dist/InfoWithCircle.js +1 -1
  109. package/dist/InfoWithCircle.js.map +1 -1
  110. package/dist/InviteUser.js +1 -1
  111. package/dist/InviteUser.js.map +1 -1
  112. package/dist/Key.js +1 -1
  113. package/dist/Key.js.map +1 -1
  114. package/dist/Laptop.js +1 -1
  115. package/dist/Laptop.js.map +1 -1
  116. package/dist/Link.js +2 -0
  117. package/dist/Link.js.map +1 -0
  118. package/dist/Lock.js +1 -1
  119. package/dist/Lock.js.map +1 -1
  120. package/dist/MagnifyingGlass.js +1 -1
  121. package/dist/MagnifyingGlass.js.map +1 -1
  122. package/dist/Megaphone.js +1 -1
  123. package/dist/Megaphone.js.map +1 -1
  124. package/dist/Menu.js +1 -1
  125. package/dist/Menu.js.map +1 -1
  126. package/dist/Minus.js +1 -1
  127. package/dist/Minus.js.map +1 -1
  128. package/dist/NotAllowed.js +1 -1
  129. package/dist/NotAllowed.js.map +1 -1
  130. package/dist/Note.js +1 -1
  131. package/dist/Note.js.map +1 -1
  132. package/dist/OpenNewTab.js +1 -1
  133. package/dist/OpenNewTab.js.map +1 -1
  134. package/dist/Pause.js +1 -1
  135. package/dist/Pause.js.map +1 -1
  136. package/dist/Person.js +1 -1
  137. package/dist/Person.js.map +1 -1
  138. package/dist/PersonGroup.js +1 -1
  139. package/dist/PersonGroup.js.map +1 -1
  140. package/dist/PersonWithLock.js +1 -1
  141. package/dist/PersonWithLock.js.map +1 -1
  142. package/dist/Play.js +1 -1
  143. package/dist/Play.js.map +1 -1
  144. package/dist/Plus.js +1 -1
  145. package/dist/Plus.js.map +1 -1
  146. package/dist/PlusWithCircle.js +1 -1
  147. package/dist/PlusWithCircle.js.map +1 -1
  148. package/dist/QuestionMarkWithCircle.js +1 -1
  149. package/dist/QuestionMarkWithCircle.js.map +1 -1
  150. package/dist/Redo.js +1 -1
  151. package/dist/Redo.js.map +1 -1
  152. package/dist/Refresh.js +1 -1
  153. package/dist/Refresh.js.map +1 -1
  154. package/dist/ReplicaSet.js +1 -1
  155. package/dist/ReplicaSet.js.map +1 -1
  156. package/dist/Save.js +1 -1
  157. package/dist/Save.js.map +1 -1
  158. package/dist/Serverless.js +1 -1
  159. package/dist/Serverless.js.map +1 -1
  160. package/dist/Settings.js +1 -1
  161. package/dist/Settings.js.map +1 -1
  162. package/dist/ShardedCluster.js +1 -1
  163. package/dist/ShardedCluster.js.map +1 -1
  164. package/dist/Shell.js +1 -1
  165. package/dist/Shell.js.map +1 -1
  166. package/dist/SortAscending.js +1 -1
  167. package/dist/SortAscending.js.map +1 -1
  168. package/dist/SortDescending.js +1 -1
  169. package/dist/SortDescending.js.map +1 -1
  170. package/dist/SplitHorizontal.js +2 -0
  171. package/dist/SplitHorizontal.js.map +1 -0
  172. package/dist/SplitVertical.js +2 -0
  173. package/dist/SplitVertical.js.map +1 -0
  174. package/dist/Stitch.js +1 -1
  175. package/dist/Stitch.js.map +1 -1
  176. package/dist/Support.js +1 -1
  177. package/dist/Support.js.map +1 -1
  178. package/dist/Sweep.js +2 -0
  179. package/dist/Sweep.js.map +1 -0
  180. package/dist/Table.js +1 -1
  181. package/dist/Table.js.map +1 -1
  182. package/dist/TimeSeries.js +1 -1
  183. package/dist/TimeSeries.js.map +1 -1
  184. package/dist/Trash.js +1 -1
  185. package/dist/Trash.js.map +1 -1
  186. package/dist/Undo.js +1 -1
  187. package/dist/Undo.js.map +1 -1
  188. package/dist/University.js +1 -1
  189. package/dist/University.js.map +1 -1
  190. package/dist/Unlock.js +1 -1
  191. package/dist/Unlock.js.map +1 -1
  192. package/dist/Unsorted.js +1 -1
  193. package/dist/Unsorted.js.map +1 -1
  194. package/dist/UpDownCarets.js +1 -1
  195. package/dist/UpDownCarets.js.map +1 -1
  196. package/dist/Upload.js +1 -1
  197. package/dist/Upload.js.map +1 -1
  198. package/dist/VerticalEllipsis.js +1 -1
  199. package/dist/VerticalEllipsis.js.map +1 -1
  200. package/dist/Visibility.js +1 -1
  201. package/dist/Visibility.js.map +1 -1
  202. package/dist/VisibilityOff.js +1 -1
  203. package/dist/VisibilityOff.js.map +1 -1
  204. package/dist/Warning.js +1 -1
  205. package/dist/Warning.js.map +1 -1
  206. package/dist/X.js +1 -1
  207. package/dist/X.js.map +1 -1
  208. package/dist/XWithCircle.js +1 -1
  209. package/dist/XWithCircle.js.map +1 -1
  210. package/dist/createIconComponent.d.ts +1 -0
  211. package/dist/createIconComponent.d.ts.map +1 -1
  212. package/dist/esm/ActivityFeed.js +1 -1
  213. package/dist/esm/ActivityFeed.js.map +1 -1
  214. package/dist/esm/AddFile.js +1 -1
  215. package/dist/esm/AddFile.js.map +1 -1
  216. package/dist/esm/Apps.js +1 -1
  217. package/dist/esm/Apps.js.map +1 -1
  218. package/dist/esm/Array.js +1 -1
  219. package/dist/esm/Array.js.map +1 -1
  220. package/dist/esm/ArrowDown.js +1 -1
  221. package/dist/esm/ArrowDown.js.map +1 -1
  222. package/dist/esm/ArrowLeft.js +1 -1
  223. package/dist/esm/ArrowLeft.js.map +1 -1
  224. package/dist/esm/ArrowRight.js +1 -1
  225. package/dist/esm/ArrowRight.js.map +1 -1
  226. package/dist/esm/ArrowUp.js +1 -1
  227. package/dist/esm/ArrowUp.js.map +1 -1
  228. package/dist/esm/Beaker.js +1 -1
  229. package/dist/esm/Beaker.js.map +1 -1
  230. package/dist/esm/Bell.js +1 -1
  231. package/dist/esm/Bell.js.map +1 -1
  232. package/dist/esm/Building.js +1 -1
  233. package/dist/esm/Building.js.map +1 -1
  234. package/dist/esm/Bulb.js +1 -1
  235. package/dist/esm/Bulb.js.map +1 -1
  236. package/dist/esm/Calendar.js +1 -1
  237. package/dist/esm/Calendar.js.map +1 -1
  238. package/dist/esm/CaretDown.js +1 -1
  239. package/dist/esm/CaretDown.js.map +1 -1
  240. package/dist/esm/CaretLeft.js +1 -1
  241. package/dist/esm/CaretLeft.js.map +1 -1
  242. package/dist/esm/CaretRight.js +1 -1
  243. package/dist/esm/CaretRight.js.map +1 -1
  244. package/dist/esm/CaretUp.js +1 -1
  245. package/dist/esm/CaretUp.js.map +1 -1
  246. package/dist/esm/Charts.js +1 -1
  247. package/dist/esm/Charts.js.map +1 -1
  248. package/dist/esm/Checkmark.js +1 -1
  249. package/dist/esm/Checkmark.js.map +1 -1
  250. package/dist/esm/CheckmarkWithCircle.js +1 -1
  251. package/dist/esm/CheckmarkWithCircle.js.map +1 -1
  252. package/dist/esm/ChevronDown.js +1 -1
  253. package/dist/esm/ChevronDown.js.map +1 -1
  254. package/dist/esm/ChevronLeft.js +1 -1
  255. package/dist/esm/ChevronLeft.js.map +1 -1
  256. package/dist/esm/ChevronRight.js +1 -1
  257. package/dist/esm/ChevronRight.js.map +1 -1
  258. package/dist/esm/ChevronUp.js +1 -1
  259. package/dist/esm/ChevronUp.js.map +1 -1
  260. package/dist/esm/Clock.js +1 -1
  261. package/dist/esm/Clock.js.map +1 -1
  262. package/dist/esm/ClockWithArrow.js +1 -1
  263. package/dist/esm/ClockWithArrow.js.map +1 -1
  264. package/dist/esm/Clone.js +1 -1
  265. package/dist/esm/Clone.js.map +1 -1
  266. package/dist/esm/Cloud.js +1 -1
  267. package/dist/esm/Cloud.js.map +1 -1
  268. package/dist/esm/Code.js +1 -1
  269. package/dist/esm/Code.js.map +1 -1
  270. package/dist/esm/Connect.js +1 -1
  271. package/dist/esm/Connect.js.map +1 -1
  272. package/dist/esm/Copy.js +1 -1
  273. package/dist/esm/Copy.js.map +1 -1
  274. package/dist/esm/CreditCard.js +1 -1
  275. package/dist/esm/CreditCard.js.map +1 -1
  276. package/dist/esm/CurlyBraces.js +1 -1
  277. package/dist/esm/CurlyBraces.js.map +1 -1
  278. package/dist/esm/Cursor.js +2 -0
  279. package/dist/esm/Cursor.js.map +1 -0
  280. package/dist/esm/Database.js +1 -1
  281. package/dist/esm/Database.js.map +1 -1
  282. package/dist/esm/Diagram.js +1 -1
  283. package/dist/esm/Diagram.js.map +1 -1
  284. package/dist/esm/Diagram2.js +2 -0
  285. package/dist/esm/Diagram2.js.map +1 -0
  286. package/dist/esm/Diagram3.js +2 -0
  287. package/dist/esm/Diagram3.js.map +1 -0
  288. package/dist/esm/Disconnect.js +1 -1
  289. package/dist/esm/Disconnect.js.map +1 -1
  290. package/dist/esm/Download.js +1 -1
  291. package/dist/esm/Download.js.map +1 -1
  292. package/dist/esm/Edit.js +1 -1
  293. package/dist/esm/Edit.js.map +1 -1
  294. package/dist/esm/Ellipsis.js +1 -1
  295. package/dist/esm/Ellipsis.js.map +1 -1
  296. package/dist/esm/Export.js +1 -1
  297. package/dist/esm/Export.js.map +1 -1
  298. package/dist/esm/Favorite.js +1 -1
  299. package/dist/esm/Favorite.js.map +1 -1
  300. package/dist/esm/File.js +1 -1
  301. package/dist/esm/File.js.map +1 -1
  302. package/dist/esm/Filter.js +1 -1
  303. package/dist/esm/Filter.js.map +1 -1
  304. package/dist/esm/Folder.js +1 -1
  305. package/dist/esm/Folder.js.map +1 -1
  306. package/dist/esm/FullScreenEnter.js +1 -1
  307. package/dist/esm/FullScreenEnter.js.map +1 -1
  308. package/dist/esm/FullScreenExit.js +1 -1
  309. package/dist/esm/FullScreenExit.js.map +1 -1
  310. package/dist/esm/GlobeAmericas.js +1 -1
  311. package/dist/esm/GlobeAmericas.js.map +1 -1
  312. package/dist/esm/GovernmentBuilding.js +1 -1
  313. package/dist/esm/GovernmentBuilding.js.map +1 -1
  314. package/dist/esm/Home.js +1 -1
  315. package/dist/esm/Home.js.map +1 -1
  316. package/dist/esm/ImportantWithCircle.js +1 -1
  317. package/dist/esm/ImportantWithCircle.js.map +1 -1
  318. package/dist/esm/InfoWithCircle.js +1 -1
  319. package/dist/esm/InfoWithCircle.js.map +1 -1
  320. package/dist/esm/InviteUser.js +1 -1
  321. package/dist/esm/InviteUser.js.map +1 -1
  322. package/dist/esm/Key.js +1 -1
  323. package/dist/esm/Key.js.map +1 -1
  324. package/dist/esm/Laptop.js +1 -1
  325. package/dist/esm/Laptop.js.map +1 -1
  326. package/dist/esm/Link.js +2 -0
  327. package/dist/esm/Link.js.map +1 -0
  328. package/dist/esm/Lock.js +1 -1
  329. package/dist/esm/Lock.js.map +1 -1
  330. package/dist/esm/MagnifyingGlass.js +1 -1
  331. package/dist/esm/MagnifyingGlass.js.map +1 -1
  332. package/dist/esm/Megaphone.js +1 -1
  333. package/dist/esm/Megaphone.js.map +1 -1
  334. package/dist/esm/Menu.js +1 -1
  335. package/dist/esm/Menu.js.map +1 -1
  336. package/dist/esm/Minus.js +1 -1
  337. package/dist/esm/Minus.js.map +1 -1
  338. package/dist/esm/NotAllowed.js +1 -1
  339. package/dist/esm/NotAllowed.js.map +1 -1
  340. package/dist/esm/Note.js +1 -1
  341. package/dist/esm/Note.js.map +1 -1
  342. package/dist/esm/OpenNewTab.js +1 -1
  343. package/dist/esm/OpenNewTab.js.map +1 -1
  344. package/dist/esm/Pause.js +1 -1
  345. package/dist/esm/Pause.js.map +1 -1
  346. package/dist/esm/Person.js +1 -1
  347. package/dist/esm/Person.js.map +1 -1
  348. package/dist/esm/PersonGroup.js +1 -1
  349. package/dist/esm/PersonGroup.js.map +1 -1
  350. package/dist/esm/PersonWithLock.js +1 -1
  351. package/dist/esm/PersonWithLock.js.map +1 -1
  352. package/dist/esm/Play.js +1 -1
  353. package/dist/esm/Play.js.map +1 -1
  354. package/dist/esm/Plus.js +1 -1
  355. package/dist/esm/Plus.js.map +1 -1
  356. package/dist/esm/PlusWithCircle.js +1 -1
  357. package/dist/esm/PlusWithCircle.js.map +1 -1
  358. package/dist/esm/QuestionMarkWithCircle.js +1 -1
  359. package/dist/esm/QuestionMarkWithCircle.js.map +1 -1
  360. package/dist/esm/Redo.js +1 -1
  361. package/dist/esm/Redo.js.map +1 -1
  362. package/dist/esm/Refresh.js +1 -1
  363. package/dist/esm/Refresh.js.map +1 -1
  364. package/dist/esm/ReplicaSet.js +1 -1
  365. package/dist/esm/ReplicaSet.js.map +1 -1
  366. package/dist/esm/Save.js +1 -1
  367. package/dist/esm/Save.js.map +1 -1
  368. package/dist/esm/Serverless.js +1 -1
  369. package/dist/esm/Serverless.js.map +1 -1
  370. package/dist/esm/Settings.js +1 -1
  371. package/dist/esm/Settings.js.map +1 -1
  372. package/dist/esm/ShardedCluster.js +1 -1
  373. package/dist/esm/ShardedCluster.js.map +1 -1
  374. package/dist/esm/Shell.js +1 -1
  375. package/dist/esm/Shell.js.map +1 -1
  376. package/dist/esm/SortAscending.js +1 -1
  377. package/dist/esm/SortAscending.js.map +1 -1
  378. package/dist/esm/SortDescending.js +1 -1
  379. package/dist/esm/SortDescending.js.map +1 -1
  380. package/dist/esm/SplitHorizontal.js +2 -0
  381. package/dist/esm/SplitHorizontal.js.map +1 -0
  382. package/dist/esm/SplitVertical.js +2 -0
  383. package/dist/esm/SplitVertical.js.map +1 -0
  384. package/dist/esm/Stitch.js +1 -1
  385. package/dist/esm/Stitch.js.map +1 -1
  386. package/dist/esm/Support.js +1 -1
  387. package/dist/esm/Support.js.map +1 -1
  388. package/dist/esm/Sweep.js +2 -0
  389. package/dist/esm/Sweep.js.map +1 -0
  390. package/dist/esm/Table.js +1 -1
  391. package/dist/esm/Table.js.map +1 -1
  392. package/dist/esm/TimeSeries.js +1 -1
  393. package/dist/esm/TimeSeries.js.map +1 -1
  394. package/dist/esm/Trash.js +1 -1
  395. package/dist/esm/Trash.js.map +1 -1
  396. package/dist/esm/Undo.js +1 -1
  397. package/dist/esm/Undo.js.map +1 -1
  398. package/dist/esm/University.js +1 -1
  399. package/dist/esm/University.js.map +1 -1
  400. package/dist/esm/Unlock.js +1 -1
  401. package/dist/esm/Unlock.js.map +1 -1
  402. package/dist/esm/Unsorted.js +1 -1
  403. package/dist/esm/Unsorted.js.map +1 -1
  404. package/dist/esm/UpDownCarets.js +1 -1
  405. package/dist/esm/UpDownCarets.js.map +1 -1
  406. package/dist/esm/Upload.js +1 -1
  407. package/dist/esm/Upload.js.map +1 -1
  408. package/dist/esm/VerticalEllipsis.js +1 -1
  409. package/dist/esm/VerticalEllipsis.js.map +1 -1
  410. package/dist/esm/Visibility.js +1 -1
  411. package/dist/esm/Visibility.js.map +1 -1
  412. package/dist/esm/VisibilityOff.js +1 -1
  413. package/dist/esm/VisibilityOff.js.map +1 -1
  414. package/dist/esm/Warning.js +1 -1
  415. package/dist/esm/Warning.js.map +1 -1
  416. package/dist/esm/X.js +1 -1
  417. package/dist/esm/X.js.map +1 -1
  418. package/dist/esm/XWithCircle.js +1 -1
  419. package/dist/esm/XWithCircle.js.map +1 -1
  420. package/dist/esm/index.js +1 -1
  421. package/dist/esm/index.js.map +1 -1
  422. package/dist/generated/ActivityFeed.d.ts +2 -8
  423. package/dist/generated/ActivityFeed.d.ts.map +1 -1
  424. package/dist/generated/AddFile.d.ts +2 -8
  425. package/dist/generated/AddFile.d.ts.map +1 -1
  426. package/dist/generated/Apps.d.ts +2 -8
  427. package/dist/generated/Apps.d.ts.map +1 -1
  428. package/dist/generated/Array.d.ts +2 -8
  429. package/dist/generated/Array.d.ts.map +1 -1
  430. package/dist/generated/ArrowDown.d.ts +2 -8
  431. package/dist/generated/ArrowDown.d.ts.map +1 -1
  432. package/dist/generated/ArrowLeft.d.ts +2 -8
  433. package/dist/generated/ArrowLeft.d.ts.map +1 -1
  434. package/dist/generated/ArrowRight.d.ts +2 -8
  435. package/dist/generated/ArrowRight.d.ts.map +1 -1
  436. package/dist/generated/ArrowUp.d.ts +2 -8
  437. package/dist/generated/ArrowUp.d.ts.map +1 -1
  438. package/dist/generated/Beaker.d.ts +2 -8
  439. package/dist/generated/Beaker.d.ts.map +1 -1
  440. package/dist/generated/Bell.d.ts +2 -8
  441. package/dist/generated/Bell.d.ts.map +1 -1
  442. package/dist/generated/Building.d.ts +2 -8
  443. package/dist/generated/Building.d.ts.map +1 -1
  444. package/dist/generated/Bulb.d.ts +2 -8
  445. package/dist/generated/Bulb.d.ts.map +1 -1
  446. package/dist/generated/Calendar.d.ts +2 -8
  447. package/dist/generated/Calendar.d.ts.map +1 -1
  448. package/dist/generated/CaretDown.d.ts +2 -8
  449. package/dist/generated/CaretDown.d.ts.map +1 -1
  450. package/dist/generated/CaretLeft.d.ts +2 -8
  451. package/dist/generated/CaretLeft.d.ts.map +1 -1
  452. package/dist/generated/CaretRight.d.ts +2 -8
  453. package/dist/generated/CaretRight.d.ts.map +1 -1
  454. package/dist/generated/CaretUp.d.ts +2 -8
  455. package/dist/generated/CaretUp.d.ts.map +1 -1
  456. package/dist/generated/Charts.d.ts +2 -8
  457. package/dist/generated/Charts.d.ts.map +1 -1
  458. package/dist/generated/Checkmark.d.ts +2 -8
  459. package/dist/generated/Checkmark.d.ts.map +1 -1
  460. package/dist/generated/CheckmarkWithCircle.d.ts +2 -8
  461. package/dist/generated/CheckmarkWithCircle.d.ts.map +1 -1
  462. package/dist/generated/ChevronDown.d.ts +2 -8
  463. package/dist/generated/ChevronDown.d.ts.map +1 -1
  464. package/dist/generated/ChevronLeft.d.ts +2 -8
  465. package/dist/generated/ChevronLeft.d.ts.map +1 -1
  466. package/dist/generated/ChevronRight.d.ts +2 -8
  467. package/dist/generated/ChevronRight.d.ts.map +1 -1
  468. package/dist/generated/ChevronUp.d.ts +2 -8
  469. package/dist/generated/ChevronUp.d.ts.map +1 -1
  470. package/dist/generated/Clock.d.ts +2 -8
  471. package/dist/generated/Clock.d.ts.map +1 -1
  472. package/dist/generated/ClockWithArrow.d.ts +2 -8
  473. package/dist/generated/ClockWithArrow.d.ts.map +1 -1
  474. package/dist/generated/Clone.d.ts +2 -8
  475. package/dist/generated/Clone.d.ts.map +1 -1
  476. package/dist/generated/Cloud.d.ts +2 -8
  477. package/dist/generated/Cloud.d.ts.map +1 -1
  478. package/dist/generated/Code.d.ts +2 -8
  479. package/dist/generated/Code.d.ts.map +1 -1
  480. package/dist/generated/Connect.d.ts +2 -8
  481. package/dist/generated/Connect.d.ts.map +1 -1
  482. package/dist/generated/Copy.d.ts +2 -8
  483. package/dist/generated/Copy.d.ts.map +1 -1
  484. package/dist/generated/CreditCard.d.ts +2 -8
  485. package/dist/generated/CreditCard.d.ts.map +1 -1
  486. package/dist/generated/CurlyBraces.d.ts +2 -8
  487. package/dist/generated/CurlyBraces.d.ts.map +1 -1
  488. package/dist/generated/Cursor.d.ts +17 -0
  489. package/dist/generated/Cursor.d.ts.map +1 -0
  490. package/dist/generated/Database.d.ts +2 -8
  491. package/dist/generated/Database.d.ts.map +1 -1
  492. package/dist/generated/Diagram.d.ts +2 -8
  493. package/dist/generated/Diagram.d.ts.map +1 -1
  494. package/dist/generated/Diagram2.d.ts +17 -0
  495. package/dist/generated/Diagram2.d.ts.map +1 -0
  496. package/dist/generated/Diagram3.d.ts +17 -0
  497. package/dist/generated/Diagram3.d.ts.map +1 -0
  498. package/dist/generated/Disconnect.d.ts +2 -8
  499. package/dist/generated/Disconnect.d.ts.map +1 -1
  500. package/dist/generated/Download.d.ts +2 -8
  501. package/dist/generated/Download.d.ts.map +1 -1
  502. package/dist/generated/Edit.d.ts +2 -8
  503. package/dist/generated/Edit.d.ts.map +1 -1
  504. package/dist/generated/Ellipsis.d.ts +2 -8
  505. package/dist/generated/Ellipsis.d.ts.map +1 -1
  506. package/dist/generated/Export.d.ts +2 -8
  507. package/dist/generated/Export.d.ts.map +1 -1
  508. package/dist/generated/Favorite.d.ts +2 -8
  509. package/dist/generated/Favorite.d.ts.map +1 -1
  510. package/dist/generated/File.d.ts +2 -8
  511. package/dist/generated/File.d.ts.map +1 -1
  512. package/dist/generated/Filter.d.ts +2 -8
  513. package/dist/generated/Filter.d.ts.map +1 -1
  514. package/dist/generated/Folder.d.ts +2 -8
  515. package/dist/generated/Folder.d.ts.map +1 -1
  516. package/dist/generated/FullScreenEnter.d.ts +2 -8
  517. package/dist/generated/FullScreenEnter.d.ts.map +1 -1
  518. package/dist/generated/FullScreenExit.d.ts +2 -8
  519. package/dist/generated/FullScreenExit.d.ts.map +1 -1
  520. package/dist/generated/GlobeAmericas.d.ts +2 -8
  521. package/dist/generated/GlobeAmericas.d.ts.map +1 -1
  522. package/dist/generated/GovernmentBuilding.d.ts +2 -8
  523. package/dist/generated/GovernmentBuilding.d.ts.map +1 -1
  524. package/dist/generated/Home.d.ts +2 -8
  525. package/dist/generated/Home.d.ts.map +1 -1
  526. package/dist/generated/ImportantWithCircle.d.ts +2 -8
  527. package/dist/generated/ImportantWithCircle.d.ts.map +1 -1
  528. package/dist/generated/InfoWithCircle.d.ts +2 -8
  529. package/dist/generated/InfoWithCircle.d.ts.map +1 -1
  530. package/dist/generated/InviteUser.d.ts +2 -8
  531. package/dist/generated/InviteUser.d.ts.map +1 -1
  532. package/dist/generated/Key.d.ts +2 -8
  533. package/dist/generated/Key.d.ts.map +1 -1
  534. package/dist/generated/Laptop.d.ts +2 -8
  535. package/dist/generated/Laptop.d.ts.map +1 -1
  536. package/dist/generated/Link.d.ts +17 -0
  537. package/dist/generated/Link.d.ts.map +1 -0
  538. package/dist/generated/Lock.d.ts +2 -8
  539. package/dist/generated/Lock.d.ts.map +1 -1
  540. package/dist/generated/MagnifyingGlass.d.ts +2 -8
  541. package/dist/generated/MagnifyingGlass.d.ts.map +1 -1
  542. package/dist/generated/Megaphone.d.ts +2 -8
  543. package/dist/generated/Megaphone.d.ts.map +1 -1
  544. package/dist/generated/Menu.d.ts +2 -8
  545. package/dist/generated/Menu.d.ts.map +1 -1
  546. package/dist/generated/Minus.d.ts +2 -8
  547. package/dist/generated/Minus.d.ts.map +1 -1
  548. package/dist/generated/NotAllowed.d.ts +2 -8
  549. package/dist/generated/NotAllowed.d.ts.map +1 -1
  550. package/dist/generated/Note.d.ts +2 -8
  551. package/dist/generated/Note.d.ts.map +1 -1
  552. package/dist/generated/OpenNewTab.d.ts +2 -8
  553. package/dist/generated/OpenNewTab.d.ts.map +1 -1
  554. package/dist/generated/Pause.d.ts +2 -8
  555. package/dist/generated/Pause.d.ts.map +1 -1
  556. package/dist/generated/Person.d.ts +2 -8
  557. package/dist/generated/Person.d.ts.map +1 -1
  558. package/dist/generated/PersonGroup.d.ts +2 -8
  559. package/dist/generated/PersonGroup.d.ts.map +1 -1
  560. package/dist/generated/PersonWithLock.d.ts +2 -8
  561. package/dist/generated/PersonWithLock.d.ts.map +1 -1
  562. package/dist/generated/Play.d.ts +2 -8
  563. package/dist/generated/Play.d.ts.map +1 -1
  564. package/dist/generated/Plus.d.ts +2 -8
  565. package/dist/generated/Plus.d.ts.map +1 -1
  566. package/dist/generated/PlusWithCircle.d.ts +2 -8
  567. package/dist/generated/PlusWithCircle.d.ts.map +1 -1
  568. package/dist/generated/QuestionMarkWithCircle.d.ts +2 -8
  569. package/dist/generated/QuestionMarkWithCircle.d.ts.map +1 -1
  570. package/dist/generated/Redo.d.ts +2 -8
  571. package/dist/generated/Redo.d.ts.map +1 -1
  572. package/dist/generated/Refresh.d.ts +2 -8
  573. package/dist/generated/Refresh.d.ts.map +1 -1
  574. package/dist/generated/ReplicaSet.d.ts +2 -8
  575. package/dist/generated/ReplicaSet.d.ts.map +1 -1
  576. package/dist/generated/Save.d.ts +2 -8
  577. package/dist/generated/Save.d.ts.map +1 -1
  578. package/dist/generated/Serverless.d.ts +2 -8
  579. package/dist/generated/Serverless.d.ts.map +1 -1
  580. package/dist/generated/Settings.d.ts +2 -8
  581. package/dist/generated/Settings.d.ts.map +1 -1
  582. package/dist/generated/ShardedCluster.d.ts +2 -8
  583. package/dist/generated/ShardedCluster.d.ts.map +1 -1
  584. package/dist/generated/Shell.d.ts +2 -8
  585. package/dist/generated/Shell.d.ts.map +1 -1
  586. package/dist/generated/SortAscending.d.ts +2 -8
  587. package/dist/generated/SortAscending.d.ts.map +1 -1
  588. package/dist/generated/SortDescending.d.ts +2 -8
  589. package/dist/generated/SortDescending.d.ts.map +1 -1
  590. package/dist/generated/SplitHorizontal.d.ts +17 -0
  591. package/dist/generated/SplitHorizontal.d.ts.map +1 -0
  592. package/dist/generated/SplitVertical.d.ts +17 -0
  593. package/dist/generated/SplitVertical.d.ts.map +1 -0
  594. package/dist/generated/Stitch.d.ts +2 -8
  595. package/dist/generated/Stitch.d.ts.map +1 -1
  596. package/dist/generated/Support.d.ts +2 -8
  597. package/dist/generated/Support.d.ts.map +1 -1
  598. package/dist/generated/Sweep.d.ts +17 -0
  599. package/dist/generated/Sweep.d.ts.map +1 -0
  600. package/dist/generated/Table.d.ts +2 -8
  601. package/dist/generated/Table.d.ts.map +1 -1
  602. package/dist/generated/TimeSeries.d.ts +2 -8
  603. package/dist/generated/TimeSeries.d.ts.map +1 -1
  604. package/dist/generated/Trash.d.ts +2 -8
  605. package/dist/generated/Trash.d.ts.map +1 -1
  606. package/dist/generated/Undo.d.ts +2 -8
  607. package/dist/generated/Undo.d.ts.map +1 -1
  608. package/dist/generated/University.d.ts +2 -8
  609. package/dist/generated/University.d.ts.map +1 -1
  610. package/dist/generated/Unlock.d.ts +2 -8
  611. package/dist/generated/Unlock.d.ts.map +1 -1
  612. package/dist/generated/Unsorted.d.ts +2 -8
  613. package/dist/generated/Unsorted.d.ts.map +1 -1
  614. package/dist/generated/UpDownCarets.d.ts +2 -8
  615. package/dist/generated/UpDownCarets.d.ts.map +1 -1
  616. package/dist/generated/Upload.d.ts +2 -8
  617. package/dist/generated/Upload.d.ts.map +1 -1
  618. package/dist/generated/VerticalEllipsis.d.ts +2 -8
  619. package/dist/generated/VerticalEllipsis.d.ts.map +1 -1
  620. package/dist/generated/Visibility.d.ts +2 -8
  621. package/dist/generated/Visibility.d.ts.map +1 -1
  622. package/dist/generated/VisibilityOff.d.ts +2 -8
  623. package/dist/generated/VisibilityOff.d.ts.map +1 -1
  624. package/dist/generated/Warning.d.ts +2 -8
  625. package/dist/generated/Warning.d.ts.map +1 -1
  626. package/dist/generated/X.d.ts +2 -8
  627. package/dist/generated/X.d.ts.map +1 -1
  628. package/dist/generated/XWithCircle.d.ts +2 -8
  629. package/dist/generated/XWithCircle.d.ts.map +1 -1
  630. package/dist/glyphs/index.d.ts +1 -2
  631. package/dist/glyphs/index.d.ts.map +1 -1
  632. package/dist/index.d.ts +1 -0
  633. package/dist/index.d.ts.map +1 -1
  634. package/dist/index.js +1 -1
  635. package/dist/index.js.map +1 -1
  636. package/dist/isComponentGlyph.d.ts +7 -2
  637. package/dist/isComponentGlyph.d.ts.map +1 -1
  638. package/dist/types/LGGlyph.d.ts +5 -2
  639. package/dist/types/LGGlyph.d.ts.map +1 -1
  640. package/package.json +11 -3
  641. package/scripts/build.ts +1 -1
  642. package/{src → scripts}/template.ts +4 -3
  643. package/src/Icon.spec.tsx +80 -25
  644. package/src/Icon.story.tsx +21 -19
  645. package/src/createGlyphComponent.tsx +3 -3
  646. package/src/createIconComponent.tsx +4 -2
  647. package/src/generated/Cursor.tsx +68 -0
  648. package/src/generated/Diagram2.tsx +66 -0
  649. package/src/generated/Diagram3.tsx +68 -0
  650. package/src/generated/Folder.tsx +2 -2
  651. package/src/generated/Link.tsx +70 -0
  652. package/src/generated/SplitHorizontal.tsx +68 -0
  653. package/src/generated/SplitVertical.tsx +68 -0
  654. package/src/generated/Sweep.tsx +68 -0
  655. package/src/glyphs/Cursor.svg +3 -0
  656. package/src/glyphs/Diagram2.svg +3 -0
  657. package/src/glyphs/Diagram3.svg +3 -0
  658. package/src/glyphs/Folder.svg +1 -1
  659. package/src/glyphs/Link.svg +4 -0
  660. package/src/glyphs/SplitHorizontal.svg +3 -0
  661. package/src/glyphs/SplitVertical.svg +3 -0
  662. package/src/glyphs/Sweep.svg +3 -0
  663. package/src/glyphs/index.ts +14 -0
  664. package/src/isComponentGlyph.ts +27 -6
  665. package/src/types/LGGlyph.ts +4 -2
  666. package/tsconfig.tsbuildinfo +1 -4792
  667. package/dist/template.d.ts +0 -19
  668. package/dist/template.d.ts.map +0 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # @leafygreen-ui/icon
2
2
 
3
+ ## 11.10.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 31f1cf8f: Updated `Folder` SVG
8
+
9
+ ## 11.10.0
10
+
11
+ ### Minor Changes
12
+
13
+ - 2670e4db: Adds `isGlyph` property to icons returned by `createIconComponent`. This means the generic `<Icon/>` component will now be compatible with Select and Combobox Options.
14
+ Additionally, overloads `isComponentGlyph` function to accept either a `ReactNode`, or `ComponentType`.
15
+
16
+ ## 11.9.0
17
+
18
+ ### Minor Changes
19
+
20
+ - 500d6c60: Adds Cursor, Diagram2, Diagram3, Link, SplitHorizontal, SplitVertical, and Sweep icons to the Icon component.
21
+
3
22
  ## 11.8.0
4
23
 
5
24
  ### Minor Changes
@@ -1,2 +1,2 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],t):((e="undefined"!=typeof globalThis?globalThis:e||self).ActivityFeed=e.ActivityFeed||{},e.ActivityFeed.js=t(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,t,r,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(){return(o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e}).apply(this,arguments)}function u(e,t){if(null==e)return{};var r,l,i=function(e,t){if(null==e)return{};var r,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f,s,d={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t,i=e.className,a=e.size,b=void 0===a?16:a,y=e.title,v=e["aria-label"],m=e["aria-labelledby"],g=e.fill,C=e.role,h=void 0===C?"img":C,j=u(e,p),O=r.css(f||(f=c(["\n color: ",";\n "])),g),x=r.css(s||(s=c(["\n flex-shrink: 0;\n "]))),H=function(e,t,r){var l,i,a=r["aria-label"],o=r["aria-labelledby"],u=r.title;switch(e){case"img":return a||o||u?(n(l={},"aria-labelledby",o),n(l,"aria-label",a),n(l,"title",u),l):{"aria-label":(i=t,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"ActivityFeed",(n(t={title:y},"aria-label",v),n(t,"aria-labelledby",m),t));return l.jsx("svg",o({className:r.cx(n({},O,null!=g),x,i),height:"number"==typeof b?b:d[b],width:"number"==typeof b?b:d[b],role:h},H,j,{viewBox:"0 0 16 16"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z",fill:"currentColor"}))};return b.displayName="ActivityFeed",b.isGlyph=!0,b.propTypes={fill:a.default.string,size:a.default.oneOfType([a.default.number,a.default.string]),className:a.default.string},b}));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],t):((e="undefined"!=typeof globalThis?globalThis:e||self).ActivityFeed=e.ActivityFeed||{},e.ActivityFeed.js=t(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,t,r,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(t);function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(){return o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(e[l]=r[l])}return e},o.apply(this,arguments)}function u(e,t){if(null==e)return{};var r,l,i=function(e,t){if(null==e)return{};var r,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||(i[r]=e[r]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)r=a[l],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function c(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var f,s,d={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t,i=e.className,a=e.size,b=void 0===a?16:a,y=e.title,v=e["aria-label"],m=e["aria-labelledby"],g=e.fill,C=e.role,h=void 0===C?"img":C,j=u(e,p),O=r.css(f||(f=c(["\n color: ",";\n "])),g),x=r.css(s||(s=c(["\n flex-shrink: 0;\n "]))),H=function(e,t,r){var l,i,a=r["aria-label"],o=r["aria-labelledby"],u=r.title;switch(e){case"img":return a||o||u?(n(l={},"aria-labelledby",o),n(l,"aria-label",a),n(l,"title",u),l):{"aria-label":(i=t,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"ActivityFeed",(n(t={title:y},"aria-label",v),n(t,"aria-labelledby",m),t));return l.jsx("svg",o({className:r.cx(n({},O,null!=g),x,i),height:"number"==typeof b?b:d[b],width:"number"==typeof b?b:d[b],role:h},H,j,{viewBox:"0 0 16 16"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z",fill:"currentColor"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z",fill:"currentColor"}))};return b.displayName="ActivityFeed",b.isGlyph=!0,b.propTypes={fill:a.default.string,size:a.default.oneOfType([a.default.number,a.default.string]),className:a.default.string},b}));
2
2
  //# sourceMappingURL=ActivityFeed.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ActivityFeed.js","sources":["../src/glyphCommon.ts","../src/generated/ActivityFeed.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 7c62e8a01028d843884f0087c8906b87\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ActivityFeedProps extends LGGlyph.ComponentProps {}\n\nconst ActivityFeed = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ActivityFeedProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ActivityFeed', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z\"\n fill={'currentColor'}\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nActivityFeed.displayName = 'ActivityFeed';\nActivityFeed.isGlyph = true;\nActivityFeed.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ActivityFeed;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ActivityFeed","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"q3CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAe,SAAsBC,GACvC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,gBAEjDW,EAFkEpB,EAAwB,CAC3FI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,+dACH5B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,qjBACH5B,KAAM,0BAIVT,EAAasC,YAAc,eAC3BtC,EAAauC,SAAU,EACvBvC,EAAawC,UAAY,CACvB/B,KAAMgC,UAAUC,OAChBrC,KAAMoC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDvC,UAAWsC,UAAUC"}
1
+ {"version":3,"file":"ActivityFeed.js","sources":["../src/glyphCommon.ts","../src/generated/ActivityFeed.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 7c62e8a01028d843884f0087c8906b87\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ActivityFeedProps extends LGGlyph.ComponentProps {}\n\nconst ActivityFeed = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ActivityFeedProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ActivityFeed', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1 13V7H5.5C6.32843 7 7 6.32843 7 5.5V1H9C10.1046 1 11 1.89543 11 3V7.51491C10.9701 7.51164 10.9401 7.50889 10.9099 7.50668C9.80561 7.42578 8.77964 8.08094 8.38847 9.11682L7.32818 11.9246C6.27375 12.2181 5.5 13.1854 5.5 14.3333C5.5 14.5642 5.53129 14.7878 5.58987 15H3C1.89543 15 1 14.1046 1 13ZM4.91421 1H5.83333V4.83333C5.83333 5.38562 5.38562 5.83333 4.83333 5.83333H1V4.91421C1 4.649 1.10536 4.39464 1.29289 4.20711L2.5 3L4.20711 1.29289C4.39464 1.10536 4.649 1 4.91421 1Z\"\n fill={'currentColor'}\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M10.8003 9.00268C11.2421 9.03504 11.6099 9.35411 11.7043 9.78684L12.3135 12.5789L12.8215 11.8647C13.0091 11.601 13.3128 11.4444 13.6364 11.4444H15C15.5523 11.4444 16 11.8922 16 12.4444C16 12.9967 15.5523 13.4444 15 13.4444H14.1522L12.633 15.5797C12.4036 15.9022 12.0055 16.059 11.6178 15.9797C11.23 15.9004 10.9255 15.5999 10.8412 15.2132L10.47 13.512L10.0264 14.6866C9.87947 15.0758 9.50691 15.3333 9.09091 15.3333H8C7.44772 15.3333 7 14.8856 7 14.3333C7 13.7811 7.44772 13.3333 8 13.3333H8.39961L9.79175 9.64673C9.94822 9.23238 10.3586 8.97032 10.8003 9.00268Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nActivityFeed.displayName = 'ActivityFeed';\nActivityFeed.isGlyph = true;\nActivityFeed.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ActivityFeed;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ActivityFeed","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"s3CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAe,SAAsBC,GACvC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,gBAEjDW,EAFkEpB,EAAwB,CAC3FI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,+dACH3B,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,qjBACH3B,KAAM,0BAIVT,EAAaqC,YAAc,eAC3BrC,EAAasC,SAAU,EACvBtC,EAAauC,UAAY,CACvB9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
package/dist/AddFile.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).AddFile=e.AddFile||{},e.AddFile.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(r);function n(e,r,l){return r in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var l,t,a=function(e,r){if(null==e)return{};var l,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)l=i[t],r.indexOf(l)>=0||(a[l]=e[l]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)l=i[t],r.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,d={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var r,a=e.className,i=e.size,b=void 0===i?16:i,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,C=e.role,h=void 0===C?"img":C,O=u(e,p),j=l.css(c||(c=f(["\n color: ",";\n "])),v),x=l.css(s||(s=f(["\n flex-shrink: 0;\n "]))),H=function(e,r,l){var t,a,i=l["aria-label"],o=l["aria-labelledby"],u=l.title;switch(e){case"img":return i||o||u?(n(t={},"aria-labelledby",o),n(t,"aria-label",i),n(t,"title",u),t):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"AddFile",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return t.jsx("svg",o({className:l.cx(n({},j,null!=v),x,a),height:"number"==typeof b?b:d[b],width:"number"==typeof b?b:d[b],role:h},H,O,{viewBox:"0 0 16 16"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 7V13C1 14.1046 1.89543 15 3 15H8.9682C8.24461 14.6259 7.75 13.8707 7.75 13C7.75 11.8376 8.63145 10.8811 9.7624 10.7624C9.84441 9.98094 10.3264 9.31861 11 8.98388V3C11 1.89543 10.1046 1 9 1H7V5.5C7 6.32843 6.32843 7 5.5 7H1ZM9 13C9 13.5523 9.44772 14 10 14H10.7324H11V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V14H14C14.5523 14 15 13.5523 15 13C15 12.4477 14.5523 12 14 12H13V11C13 10.4477 12.5523 10 12 10C11.4477 10 11 10.4477 11 11V12H10C9.44772 12 9 12.4477 9 13ZM5.83333 1H4.91421C4.649 1 4.39464 1.10536 4.20711 1.29289L2.5 3L1.29289 4.20711C1.10536 4.39464 1 4.649 1 4.91421V5.83333H4.83333C5.38562 5.83333 5.83333 5.38562 5.83333 4.83333V1Z",fill:"currentColor"}))};return b.displayName="AddFile",b.isGlyph=!0,b.propTypes={fill:i.default.string,size:i.default.oneOfType([i.default.number,i.default.string]),className:i.default.string},b}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).AddFile=e.AddFile||{},e.AddFile.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=a(r);function n(e,r,l){return r in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var l,t,a=function(e,r){if(null==e)return{};var l,t,a={},i=Object.keys(e);for(t=0;t<i.length;t++)l=i[t],r.indexOf(l)>=0||(a[l]=e[l]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t<i.length;t++)l=i[t],r.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,d={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var r,a=e.className,i=e.size,b=void 0===i?16:i,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,C=e.role,h=void 0===C?"img":C,O=u(e,p),j=l.css(c||(c=f(["\n color: ",";\n "])),v),x=l.css(s||(s=f(["\n flex-shrink: 0;\n "]))),H=function(e,r,l){var t,a,i=l["aria-label"],o=l["aria-labelledby"],u=l.title;switch(e){case"img":return i||o||u?(n(t={},"aria-labelledby",o),n(t,"aria-label",i),n(t,"title",u),t):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"AddFile",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return t.jsx("svg",o({className:l.cx(n({},j,null!=v),x,a),height:"number"==typeof b?b:d[b],width:"number"==typeof b?b:d[b],role:h},H,O,{viewBox:"0 0 16 16"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 7V13C1 14.1046 1.89543 15 3 15H8.9682C8.24461 14.6259 7.75 13.8707 7.75 13C7.75 11.8376 8.63145 10.8811 9.7624 10.7624C9.84441 9.98094 10.3264 9.31861 11 8.98388V3C11 1.89543 10.1046 1 9 1H7V5.5C7 6.32843 6.32843 7 5.5 7H1ZM9 13C9 13.5523 9.44772 14 10 14H10.7324H11V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V14H14C14.5523 14 15 13.5523 15 13C15 12.4477 14.5523 12 14 12H13V11C13 10.4477 12.5523 10 12 10C11.4477 10 11 10.4477 11 11V12H10C9.44772 12 9 12.4477 9 13ZM5.83333 1H4.91421C4.649 1 4.39464 1.10536 4.20711 1.29289L2.5 3L1.29289 4.20711C1.10536 4.39464 1 4.649 1 4.91421V5.83333H4.83333C5.38562 5.83333 5.83333 5.38562 5.83333 4.83333V1Z",fill:"currentColor"}))};return b.displayName="AddFile",b.isGlyph=!0,b.propTypes={fill:i.default.string,size:i.default.oneOfType([i.default.number,i.default.string]),className:i.default.string},b}));
2
2
  //# sourceMappingURL=AddFile.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AddFile.js","sources":["../src/glyphCommon.ts","../src/generated/AddFile.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum c793f92aeec247f9bcc7382c877f15f7\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface AddFileProps extends LGGlyph.ComponentProps {}\n\nconst AddFile = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: AddFileProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'AddFile', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1 7V13C1 14.1046 1.89543 15 3 15H8.9682C8.24461 14.6259 7.75 13.8707 7.75 13C7.75 11.8376 8.63145 10.8811 9.7624 10.7624C9.84441 9.98094 10.3264 9.31861 11 8.98388V3C11 1.89543 10.1046 1 9 1H7V5.5C7 6.32843 6.32843 7 5.5 7H1ZM9 13C9 13.5523 9.44772 14 10 14H10.7324H11V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V14H14C14.5523 14 15 13.5523 15 13C15 12.4477 14.5523 12 14 12H13V11C13 10.4477 12.5523 10 12 10C11.4477 10 11 10.4477 11 11V12H10C9.44772 12 9 12.4477 9 13ZM5.83333 1H4.91421C4.649 1 4.39464 1.10536 4.20711 1.29289L2.5 3L1.29289 4.20711C1.10536 4.39464 1 4.649 1 4.91421V5.83333H4.83333C5.38562 5.83333 5.83333 5.38562 5.83333 4.83333V1Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nAddFile.displayName = 'AddFile';\nAddFile.isGlyph = true;\nAddFile.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default AddFile;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","AddFile","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"s2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAU,SAAiBC,GAC7B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,WAEjDW,EAF6DpB,EAAwB,CACtFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,6pBACH5B,KAAM,0BAIVT,EAAQsC,YAAc,UACtBtC,EAAQuC,SAAU,EAClBvC,EAAQwC,UAAY,CAClB/B,KAAMgC,UAAUC,OAChBrC,KAAMoC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDvC,UAAWsC,UAAUC"}
1
+ {"version":3,"file":"AddFile.js","sources":["../src/glyphCommon.ts","../src/generated/AddFile.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum c793f92aeec247f9bcc7382c877f15f7\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface AddFileProps extends LGGlyph.ComponentProps {}\n\nconst AddFile = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: AddFileProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'AddFile', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M1 7V13C1 14.1046 1.89543 15 3 15H8.9682C8.24461 14.6259 7.75 13.8707 7.75 13C7.75 11.8376 8.63145 10.8811 9.7624 10.7624C9.84441 9.98094 10.3264 9.31861 11 8.98388V3C11 1.89543 10.1046 1 9 1H7V5.5C7 6.32843 6.32843 7 5.5 7H1ZM9 13C9 13.5523 9.44772 14 10 14H10.7324H11V15C11 15.5523 11.4477 16 12 16C12.5523 16 13 15.5523 13 15V14H14C14.5523 14 15 13.5523 15 13C15 12.4477 14.5523 12 14 12H13V11C13 10.4477 12.5523 10 12 10C11.4477 10 11 10.4477 11 11V12H10C9.44772 12 9 12.4477 9 13ZM5.83333 1H4.91421C4.649 1 4.39464 1.10536 4.20711 1.29289L2.5 3L1.29289 4.20711C1.10536 4.39464 1 4.649 1 4.91421V5.83333H4.83333C5.38562 5.83333 5.83333 5.38562 5.83333 4.83333V1Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nAddFile.displayName = 'AddFile';\nAddFile.isGlyph = true;\nAddFile.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default AddFile;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","AddFile","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"u2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAU,SAAiBC,GAC7B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,WAEjDW,EAF6DpB,EAAwB,CACtFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,6pBACH3B,KAAM,0BAIVT,EAAQqC,YAAc,UACtBrC,EAAQsC,SAAU,EAClBtC,EAAQuC,UAAY,CAClB9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
package/dist/Apps.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Apps=e.Apps||{},e.Apps.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,l){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var t,l,a=function(e,r){if(null==e)return{};var t,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)t=n[l],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)t=n[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,a=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),x=t.css(s||(s=f(["\n color: ",";\n "])),v),w=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),H=function(e,r,t){var l,a,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(l={},"aria-labelledby",o),i(l,"aria-label",n),i(l,"title",u),l):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"Apps",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(i({},x,null!=v),w,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},H,j,{viewBox:"0 0 16 16"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 3H3V7H7V3ZM7 9H3V13H7V9ZM9 3H13V7H9V3ZM13 9H9V13H13V9Z",fill:"currentColor"}))};return d.displayName="Apps",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Apps=e.Apps||{},e.Apps.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,l){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,l,a=function(e,r){if(null==e)return{};var t,l,a={},n=Object.keys(e);for(l=0;l<n.length;l++)t=n[l],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(l=0;l<n.length;l++)t=n[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,a=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),x=t.css(s||(s=f(["\n color: ",";\n "])),v),w=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),H=function(e,r,t){var l,a,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(l={},"aria-labelledby",o),i(l,"aria-label",n),i(l,"title",u),l):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"Apps",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(i({},x,null!=v),w,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},H,j,{viewBox:"0 0 16 16"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 3H3V7H7V3ZM7 9H3V13H7V9ZM9 3H13V7H9V3ZM13 9H9V13H13V9Z",fill:"currentColor"}))};return d.displayName="Apps",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
2
2
  //# sourceMappingURL=Apps.js.map
package/dist/Apps.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Apps.js","sources":["../src/glyphCommon.ts","../src/generated/Apps.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 5b542823232f3e709f4939f5108da804\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface AppsProps extends LGGlyph.ComponentProps {}\n\nconst Apps = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: AppsProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Apps', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7 3H3V7H7V3ZM7 9H3V13H7V9ZM9 3H13V7H9V3ZM13 9H9V13H13V9Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nApps.displayName = 'Apps';\nApps.isGlyph = true;\nApps.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Apps;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Apps","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"61CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAO,SAAcC,GACvB,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,QAEjDW,EAF0DpB,EAAwB,CACnFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,4DACH5B,KAAM,0BAIVT,EAAKsC,YAAc,OACnBtC,EAAKuC,SAAU,EACfvC,EAAKwC,UAAY,CACf/B,KAAMgC,UAAUC,OAChBrC,KAAMoC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDvC,UAAWsC,UAAUC"}
1
+ {"version":3,"file":"Apps.js","sources":["../src/glyphCommon.ts","../src/generated/Apps.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 5b542823232f3e709f4939f5108da804\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface AppsProps extends LGGlyph.ComponentProps {}\n\nconst Apps = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: AppsProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Apps', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M7 3H3V7H7V3ZM7 9H3V13H7V9ZM9 3H13V7H9V3ZM13 9H9V13H13V9Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nApps.displayName = 'Apps';\nApps.isGlyph = true;\nApps.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Apps;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Apps","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"81CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAO,SAAcC,GACvB,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,QAEjDW,EAF0DpB,EAAwB,CACnFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,4DACH3B,KAAM,0BAIVT,EAAKqC,YAAc,OACnBrC,EAAKsC,SAAU,EACftC,EAAKuC,UAAY,CACf9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
package/dist/Array.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Array=e.Array||{},e.Array.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],y=function(e){var r,l=e.className,n=e.size,y=void 0===n?16:n,d=e.title,m=e["aria-label"],g=e["aria-labelledby"],h=e.fill,v=e.role,j=void 0===v?"img":v,O=u(e,b),C=t.css(s||(s=f(["\n color: ",";\n "])),h),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(j,"Array",(i(r={title:d},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},C,null!=h),x,l),height:"number"==typeof y?y:p[y],width:"number"==typeof y?y:p[y],role:j},w,O,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M2.5 1C2.22386 1 2 1.22386 2 1.5V14.5C2 14.7761 2.22386 15 2.5 15H6.5C6.77614 15 7 14.7761 7 14.5V13.5C7 13.2239 6.77614 13 6.5 13H4V3H6.5C6.77614 3 7 2.77614 7 2.5V1.5C7 1.22386 6.77614 1 6.5 1H2.5Z",fill:"currentColor"}),a.jsx("path",{d:"M13.5 1C13.7761 1 14 1.22386 14 1.5V14.5C14 14.7761 13.7761 15 13.5 15H9.5C9.22386 15 9 14.7761 9 14.5V13.5C9 13.2239 9.22386 13 9.5 13H12V3H9.5C9.22386 3 9 2.77614 9 2.5V1.5C9 1.22386 9.22386 1 9.5 1H13.5Z",fill:"currentColor"}))};return y.displayName="Array",y.isGlyph=!0,y.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},y}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Array=e.Array||{},e.Array.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],y=function(e){var r,l=e.className,n=e.size,y=void 0===n?16:n,d=e.title,m=e["aria-label"],g=e["aria-labelledby"],h=e.fill,v=e.role,j=void 0===v?"img":v,O=u(e,b),C=t.css(s||(s=f(["\n color: ",";\n "])),h),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(j,"Array",(i(r={title:d},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},C,null!=h),x,l),height:"number"==typeof y?y:p[y],width:"number"==typeof y?y:p[y],role:j},w,O,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M2.5 1C2.22386 1 2 1.22386 2 1.5V14.5C2 14.7761 2.22386 15 2.5 15H6.5C6.77614 15 7 14.7761 7 14.5V13.5C7 13.2239 6.77614 13 6.5 13H4V3H6.5C6.77614 3 7 2.77614 7 2.5V1.5C7 1.22386 6.77614 1 6.5 1H2.5Z",fill:"currentColor"}),a.jsx("path",{d:"M13.5 1C13.7761 1 14 1.22386 14 1.5V14.5C14 14.7761 13.7761 15 13.5 15H9.5C9.22386 15 9 14.7761 9 14.5V13.5C9 13.2239 9.22386 13 9.5 13H12V3H9.5C9.22386 3 9 2.77614 9 2.5V1.5C9 1.22386 9.22386 1 9.5 1H13.5Z",fill:"currentColor"}))};return y.displayName="Array",y.isGlyph=!0,y.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},y}));
2
2
  //# sourceMappingURL=Array.js.map
package/dist/Array.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Array.js","sources":["../src/glyphCommon.ts","../src/generated/Array.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum fbfbd18bbdf3632eea7ca6cc393b71ba\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrayProps extends LGGlyph.ComponentProps {}\n\nconst Array = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrayProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Array', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M2.5 1C2.22386 1 2 1.22386 2 1.5V14.5C2 14.7761 2.22386 15 2.5 15H6.5C6.77614 15 7 14.7761 7 14.5V13.5C7 13.2239 6.77614 13 6.5 13H4V3H6.5C6.77614 3 7 2.77614 7 2.5V1.5C7 1.22386 6.77614 1 6.5 1H2.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M13.5 1C13.7761 1 14 1.22386 14 1.5V14.5C14 14.7761 13.7761 15 13.5 15H9.5C9.22386 15 9 14.7761 9 14.5V13.5C9 13.2239 9.22386 13 9.5 13H12V3H9.5C9.22386 3 9 2.77614 9 2.5V1.5C9 1.22386 9.22386 1 9.5 1H13.5Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArray.displayName = 'Array';\nArray.isGlyph = true;\nArray.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Array;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Array","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"g2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAQ,SAAeC,GACzB,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,SAEjDW,EAF2DpB,EAAwB,CACpFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,EAAG,0MACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,iNACH1B,KAAM,0BAIVT,EAAMoC,YAAc,QACpBpC,EAAMqC,SAAU,EAChBrC,EAAMsC,UAAY,CAChB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"Array.js","sources":["../src/glyphCommon.ts","../src/generated/Array.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum fbfbd18bbdf3632eea7ca6cc393b71ba\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrayProps extends LGGlyph.ComponentProps {}\n\nconst Array = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrayProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Array', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M2.5 1C2.22386 1 2 1.22386 2 1.5V14.5C2 14.7761 2.22386 15 2.5 15H6.5C6.77614 15 7 14.7761 7 14.5V13.5C7 13.2239 6.77614 13 6.5 13H4V3H6.5C6.77614 3 7 2.77614 7 2.5V1.5C7 1.22386 6.77614 1 6.5 1H2.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M13.5 1C13.7761 1 14 1.22386 14 1.5V14.5C14 14.7761 13.7761 15 13.5 15H9.5C9.22386 15 9 14.7761 9 14.5V13.5C9 13.2239 9.22386 13 9.5 13H12V3H9.5C9.22386 3 9 2.77614 9 2.5V1.5C9 1.22386 9.22386 1 9.5 1H13.5Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArray.displayName = 'Array';\nArray.isGlyph = true;\nArray.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Array;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Array","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"i2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAQ,SAAeC,GACzB,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,SAEjDW,EAF2DpB,EAAwB,CACpFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,0MACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,iNACHzB,KAAM,0BAIVT,EAAMmC,YAAc,QACpBnC,EAAMoC,SAAU,EAChBpC,EAAMqC,UAAY,CAChB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
package/dist/ArrowDown.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowDown=e.ArrowDown||{},e.ArrowDown.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],w=e.fill,v=e.role,h=void 0===v?"img":v,O=u(e,p),j=t.css(s||(s=f(["\n color: ",";\n "])),w),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),L=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"ArrowDown",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},j,null!=w),x,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:h},L,O,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M9.16788 3L9.16788 9.94442L10.7029 8.40941C11.0934 8.01888 11.7266 8.01889 12.1171 8.40941L12.356 8.64833C12.7465 9.03885 12.7465 9.67201 12.356 10.0625L8.97339 13.4452C8.96483 13.4544 8.95605 13.4635 8.94708 13.4725L8.70816 13.7114C8.31763 14.1019 7.68447 14.1019 7.29395 13.7114L3.64279 10.0602C3.25227 9.66972 3.25227 9.03656 3.64279 8.64603L3.88171 8.40712C4.27223 8.01659 4.9054 8.01659 5.29592 8.40712L6.83 9.9412L6.83 3C6.83 2.44771 7.27772 2 7.83001 2L8.16788 2C8.72017 2 9.16788 2.44772 9.16788 3Z",fill:"currentColor"}))};return d.displayName="ArrowDown",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowDown=e.ArrowDown||{},e.ArrowDown.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],w=e.fill,v=e.role,h=void 0===v?"img":v,O=u(e,p),j=t.css(s||(s=f(["\n color: ",";\n "])),w),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),L=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"ArrowDown",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},j,null!=w),x,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:h},L,O,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M9.16788 3L9.16788 9.94442L10.7029 8.40941C11.0934 8.01888 11.7266 8.01889 12.1171 8.40941L12.356 8.64833C12.7465 9.03885 12.7465 9.67201 12.356 10.0625L8.97339 13.4452C8.96483 13.4544 8.95605 13.4635 8.94708 13.4725L8.70816 13.7114C8.31763 14.1019 7.68447 14.1019 7.29395 13.7114L3.64279 10.0602C3.25227 9.66972 3.25227 9.03656 3.64279 8.64603L3.88171 8.40712C4.27223 8.01659 4.9054 8.01659 5.29592 8.40712L6.83 9.9412L6.83 3C6.83 2.44771 7.27772 2 7.83001 2L8.16788 2C8.72017 2 9.16788 2.44772 9.16788 3Z",fill:"currentColor"}))};return d.displayName="ArrowDown",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
2
2
  //# sourceMappingURL=ArrowDown.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowDown.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowDown.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum abcad33a402863d717652a2fe4008fa8\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowDownProps extends LGGlyph.ComponentProps {}\n\nconst ArrowDown = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowDownProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowDown', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M9.16788 3L9.16788 9.94442L10.7029 8.40941C11.0934 8.01888 11.7266 8.01889 12.1171 8.40941L12.356 8.64833C12.7465 9.03885 12.7465 9.67201 12.356 10.0625L8.97339 13.4452C8.96483 13.4544 8.95605 13.4635 8.94708 13.4725L8.70816 13.7114C8.31763 14.1019 7.68447 14.1019 7.29395 13.7114L3.64279 10.0602C3.25227 9.66972 3.25227 9.03656 3.64279 8.64603L3.88171 8.40712C4.27223 8.01659 4.9054 8.01659 5.29592 8.40712L6.83 9.9412L6.83 3C6.83 2.44771 7.27772 2 7.83001 2L8.16788 2C8.72017 2 9.16788 2.44772 9.16788 3Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowDown.displayName = 'ArrowDown';\nArrowDown.isGlyph = true;\nArrowDown.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowDown;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowDown","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"42CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAY,SAAmBC,GACjC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,aAEjDW,EAF+DpB,EAAwB,CACxFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,EAAG,6fACH1B,KAAM,0BAIVT,EAAUoC,YAAc,YACxBpC,EAAUqC,SAAU,EACpBrC,EAAUsC,UAAY,CACpB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"ArrowDown.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowDown.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum abcad33a402863d717652a2fe4008fa8\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowDownProps extends LGGlyph.ComponentProps {}\n\nconst ArrowDown = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowDownProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowDown', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M9.16788 3L9.16788 9.94442L10.7029 8.40941C11.0934 8.01888 11.7266 8.01889 12.1171 8.40941L12.356 8.64833C12.7465 9.03885 12.7465 9.67201 12.356 10.0625L8.97339 13.4452C8.96483 13.4544 8.95605 13.4635 8.94708 13.4725L8.70816 13.7114C8.31763 14.1019 7.68447 14.1019 7.29395 13.7114L3.64279 10.0602C3.25227 9.66972 3.25227 9.03656 3.64279 8.64603L3.88171 8.40712C4.27223 8.01659 4.9054 8.01659 5.29592 8.40712L6.83 9.9412L6.83 3C6.83 2.44771 7.27772 2 7.83001 2L8.16788 2C8.72017 2 9.16788 2.44772 9.16788 3Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowDown.displayName = 'ArrowDown';\nArrowDown.isGlyph = true;\nArrowDown.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowDown;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowDown","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"62CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAY,SAAmBC,GACjC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,aAEjDW,EAF+DpB,EAAwB,CACxFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,6fACHzB,KAAM,0BAIVT,EAAUmC,YAAc,YACxBnC,EAAUoC,SAAU,EACpBpC,EAAUqC,UAAY,CACpB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
package/dist/ArrowLeft.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowLeft=e.ArrowLeft||{},e.ArrowLeft.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function f(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function u(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=f(e,p),L=t.css(s||(s=u(["\n color: ",";\n "])),v),w=t.css(c||(c=u(["\n flex-shrink: 0;\n "]))),x=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],f=t.title;switch(e){case"img":return n||o||f?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",f),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowLeft",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},L,null!=v),w,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:O},x,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M13 6.83212L6.05559 6.83212L7.59059 5.29711C7.98112 4.90659 7.98112 4.27342 7.59059 3.8829L7.35168 3.64398C6.96115 3.25346 6.32799 3.25345 5.93746 3.64398L2.55483 7.02661C2.5456 7.03518 2.5365 7.04395 2.52752 7.05292L2.2886 7.29184C1.89808 7.68237 1.89808 8.31553 2.2886 8.70605L5.93975 12.3572C6.33028 12.7477 6.96344 12.7477 7.35397 12.3572L7.59288 12.1183C7.98341 11.7278 7.98341 11.0946 7.59288 10.7041L6.0588 9.17L13 9.17C13.5523 9.17 14 8.72228 14 8.17V7.83212C14 7.27983 13.5523 6.83212 13 6.83212Z",fill:"currentColor"}))};return d.displayName="ArrowLeft",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowLeft=e.ArrowLeft||{},e.ArrowLeft.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function f(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function u(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=f(e,p),L=t.css(s||(s=u(["\n color: ",";\n "])),v),w=t.css(c||(c=u(["\n flex-shrink: 0;\n "]))),x=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],f=t.title;switch(e){case"img":return n||o||f?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",f),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowLeft",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},L,null!=v),w,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:O},x,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M13 6.83212L6.05559 6.83212L7.59059 5.29711C7.98112 4.90659 7.98112 4.27342 7.59059 3.8829L7.35168 3.64398C6.96115 3.25346 6.32799 3.25345 5.93746 3.64398L2.55483 7.02661C2.5456 7.03518 2.5365 7.04395 2.52752 7.05292L2.2886 7.29184C1.89808 7.68237 1.89808 8.31553 2.2886 8.70605L5.93975 12.3572C6.33028 12.7477 6.96344 12.7477 7.35397 12.3572L7.59288 12.1183C7.98341 11.7278 7.98341 11.0946 7.59288 10.7041L6.0588 9.17L13 9.17C13.5523 9.17 14 8.72228 14 8.17V7.83212C14 7.27983 13.5523 6.83212 13 6.83212Z",fill:"currentColor"}))};return d.displayName="ArrowLeft",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
2
2
  //# sourceMappingURL=ArrowLeft.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowLeft.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowLeft.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum e1557a049a4670f5e91421bcccc7fe88\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowLeftProps extends LGGlyph.ComponentProps {}\n\nconst ArrowLeft = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowLeftProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowLeft', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M13 6.83212L6.05559 6.83212L7.59059 5.29711C7.98112 4.90659 7.98112 4.27342 7.59059 3.8829L7.35168 3.64398C6.96115 3.25346 6.32799 3.25345 5.93746 3.64398L2.55483 7.02661C2.5456 7.03518 2.5365 7.04395 2.52752 7.05292L2.2886 7.29184C1.89808 7.68237 1.89808 8.31553 2.2886 8.70605L5.93975 12.3572C6.33028 12.7477 6.96344 12.7477 7.35397 12.3572L7.59288 12.1183C7.98341 11.7278 7.98341 11.0946 7.59288 10.7041L6.0588 9.17L13 9.17C13.5523 9.17 14 8.72228 14 8.17V7.83212C14 7.27983 13.5523 6.83212 13 6.83212Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowLeft.displayName = 'ArrowLeft';\nArrowLeft.isGlyph = true;\nArrowLeft.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowLeft;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowLeft","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"42CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAY,SAAmBC,GACjC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,aAEjDW,EAF+DpB,EAAwB,CACxFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,EAAG,4fACH1B,KAAM,0BAIVT,EAAUoC,YAAc,YACxBpC,EAAUqC,SAAU,EACpBrC,EAAUsC,UAAY,CACpB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"ArrowLeft.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowLeft.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum e1557a049a4670f5e91421bcccc7fe88\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowLeftProps extends LGGlyph.ComponentProps {}\n\nconst ArrowLeft = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowLeftProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowLeft', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M13 6.83212L6.05559 6.83212L7.59059 5.29711C7.98112 4.90659 7.98112 4.27342 7.59059 3.8829L7.35168 3.64398C6.96115 3.25346 6.32799 3.25345 5.93746 3.64398L2.55483 7.02661C2.5456 7.03518 2.5365 7.04395 2.52752 7.05292L2.2886 7.29184C1.89808 7.68237 1.89808 8.31553 2.2886 8.70605L5.93975 12.3572C6.33028 12.7477 6.96344 12.7477 7.35397 12.3572L7.59288 12.1183C7.98341 11.7278 7.98341 11.0946 7.59288 10.7041L6.0588 9.17L13 9.17C13.5523 9.17 14 8.72228 14 8.17V7.83212C14 7.27983 13.5523 6.83212 13 6.83212Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowLeft.displayName = 'ArrowLeft';\nArrowLeft.isGlyph = true;\nArrowLeft.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowLeft;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowLeft","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"62CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAY,SAAmBC,GACjC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,aAEjDW,EAF+DpB,EAAwB,CACxFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,4fACHzB,KAAM,0BAIVT,EAAUmC,YAAc,YACxBnC,EAAUoC,SAAU,EACpBpC,EAAUqC,UAAY,CACpB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowRight=e.ArrowRight||{},e.ArrowRight.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=l(r);function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,i=e.size,d=void 0===i?16:i,y=e.title,g=e["aria-label"],m=e["aria-labelledby"],h=e.fill,v=e.role,O=void 0===v?"img":v,j=u(e,p),w=t.css(s||(s=f(["\n color: ",";\n "])),h),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),L=function(e,r,t){var a,l,i=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return i||o||u?(n(a={},"aria-labelledby",o),n(a,"aria-label",i),n(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowRight",(n(r={title:y},"aria-label",g),n(r,"aria-labelledby",m),r));return a.jsx("svg",o({className:t.cx(n({},w,null!=h),x,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:O},L,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M3 6.83212L9.94442 6.83212L8.40941 5.29711C8.01888 4.90659 8.01889 4.27342 8.40941 3.8829L8.64833 3.64398C9.03885 3.25346 9.67201 3.25345 10.0625 3.64398L13.4452 7.02661C13.4544 7.03518 13.4635 7.04395 13.4725 7.05292L13.7114 7.29184C14.1019 7.68237 14.1019 8.31553 13.7114 8.70605L10.0602 12.3572C9.66972 12.7477 9.03656 12.7477 8.64603 12.3572L8.40712 12.1183C8.01659 11.7278 8.01659 11.0946 8.40712 10.7041L9.9412 9.17L3 9.17C2.44771 9.17 2 8.72228 2 8.17L2 7.83212C2 7.27983 2.44772 6.83212 3 6.83212Z",fill:"currentColor"}))};return d.displayName="ArrowRight",d.isGlyph=!0,d.propTypes={fill:i.default.string,size:i.default.oneOfType([i.default.number,i.default.string]),className:i.default.string},d}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowRight=e.ArrowRight||{},e.ArrowRight.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var i=l(r);function n(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,b={small:14,default:16,large:20,xlarge:24};var p=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,i=e.size,d=void 0===i?16:i,y=e.title,g=e["aria-label"],m=e["aria-labelledby"],h=e.fill,v=e.role,O=void 0===v?"img":v,j=u(e,p),w=t.css(s||(s=f(["\n color: ",";\n "])),h),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),L=function(e,r,t){var a,l,i=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return i||o||u?(n(a={},"aria-labelledby",o),n(a,"aria-label",i),n(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowRight",(n(r={title:y},"aria-label",g),n(r,"aria-labelledby",m),r));return a.jsx("svg",o({className:t.cx(n({},w,null!=h),x,l),height:"number"==typeof d?d:b[d],width:"number"==typeof d?d:b[d],role:O},L,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M3 6.83212L9.94442 6.83212L8.40941 5.29711C8.01888 4.90659 8.01889 4.27342 8.40941 3.8829L8.64833 3.64398C9.03885 3.25346 9.67201 3.25345 10.0625 3.64398L13.4452 7.02661C13.4544 7.03518 13.4635 7.04395 13.4725 7.05292L13.7114 7.29184C14.1019 7.68237 14.1019 8.31553 13.7114 8.70605L10.0602 12.3572C9.66972 12.7477 9.03656 12.7477 8.64603 12.3572L8.40712 12.1183C8.01659 11.7278 8.01659 11.0946 8.40712 10.7041L9.9412 9.17L3 9.17C2.44771 9.17 2 8.72228 2 8.17L2 7.83212C2 7.27983 2.44772 6.83212 3 6.83212Z",fill:"currentColor"}))};return d.displayName="ArrowRight",d.isGlyph=!0,d.propTypes={fill:i.default.string,size:i.default.oneOfType([i.default.number,i.default.string]),className:i.default.string},d}));
2
2
  //# sourceMappingURL=ArrowRight.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowRight.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowRight.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 089a15a9efb4b3a77dda3129c14dd2ae\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowRightProps extends LGGlyph.ComponentProps {}\n\nconst ArrowRight = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowRightProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowRight', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M3 6.83212L9.94442 6.83212L8.40941 5.29711C8.01888 4.90659 8.01889 4.27342 8.40941 3.8829L8.64833 3.64398C9.03885 3.25346 9.67201 3.25345 10.0625 3.64398L13.4452 7.02661C13.4544 7.03518 13.4635 7.04395 13.4725 7.05292L13.7114 7.29184C14.1019 7.68237 14.1019 8.31553 13.7114 8.70605L10.0602 12.3572C9.66972 12.7477 9.03656 12.7477 8.64603 12.3572L8.40712 12.1183C8.01659 11.7278 8.01659 11.0946 8.40712 10.7041L9.9412 9.17L3 9.17C2.44771 9.17 2 8.72228 2 8.17L2 7.83212C2 7.27983 2.44772 6.83212 3 6.83212Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowRight.displayName = 'ArrowRight';\nArrowRight.isGlyph = true;\nArrowRight.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowRight;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowRight","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"+2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAa,SAAoBC,GACnC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,cAEjDW,EAFgEpB,EAAwB,CACzFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,EAAG,4fACH1B,KAAM,0BAIVT,EAAWoC,YAAc,aACzBpC,EAAWqC,SAAU,EACrBrC,EAAWsC,UAAY,CACrB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"ArrowRight.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowRight.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 089a15a9efb4b3a77dda3129c14dd2ae\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowRightProps extends LGGlyph.ComponentProps {}\n\nconst ArrowRight = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowRightProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowRight', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M3 6.83212L9.94442 6.83212L8.40941 5.29711C8.01888 4.90659 8.01889 4.27342 8.40941 3.8829L8.64833 3.64398C9.03885 3.25346 9.67201 3.25345 10.0625 3.64398L13.4452 7.02661C13.4544 7.03518 13.4635 7.04395 13.4725 7.05292L13.7114 7.29184C14.1019 7.68237 14.1019 8.31553 13.7114 8.70605L10.0602 12.3572C9.66972 12.7477 9.03656 12.7477 8.64603 12.3572L8.40712 12.1183C8.01659 11.7278 8.01659 11.0946 8.40712 10.7041L9.9412 9.17L3 9.17C2.44771 9.17 2 8.72228 2 8.17L2 7.83212C2 7.27983 2.44772 6.83212 3 6.83212Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowRight.displayName = 'ArrowRight';\nArrowRight.isGlyph = true;\nArrowRight.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowRight;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowRight","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"g3CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAa,SAAoBC,GACnC,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,cAEjDW,EAFgEpB,EAAwB,CACzFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,4fACHzB,KAAM,0BAIVT,EAAWmC,YAAc,aACzBnC,EAAWoC,SAAU,EACrBpC,EAAWqC,UAAY,CACrB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
package/dist/ArrowUp.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowUp=e.ArrowUp||{},e.ArrowUp.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),w=t.css(s||(s=f(["\n color: ",";\n "])),v),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowUp",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},w,null!=v),x,l),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},C,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M9.16788 13L9.16788 6.05558L10.7029 7.59059C11.0934 7.98112 11.7266 7.98112 12.1171 7.59059L12.356 7.35168C12.7465 6.96115 12.7465 6.32799 12.356 5.93746L8.97339 2.55483C8.96482 2.5456 8.95605 2.5365 8.94707 2.52752L8.70816 2.2886C8.31763 1.89808 7.68447 1.89808 7.29394 2.2886L3.64279 5.93975C3.25227 6.33028 3.25227 6.96344 3.64279 7.35397L3.88171 7.59288C4.27223 7.98341 4.9054 7.98341 5.29592 7.59288L6.83 6.0588L6.83 13C6.83 13.5523 7.27772 14 7.83 14H8.16788C8.72017 14 9.16788 13.5523 9.16788 13Z",fill:"currentColor"}))};return d.displayName="ArrowUp",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).ArrowUp=e.ArrowUp||{},e.ArrowUp.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var s,c,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),w=t.css(s||(s=f(["\n color: ",";\n "])),v),x=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"ArrowUp",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(i({},w,null!=v),x,l),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},C,j,{viewBox:"0 0 16 16"}),a.jsx("path",{d:"M9.16788 13L9.16788 6.05558L10.7029 7.59059C11.0934 7.98112 11.7266 7.98112 12.1171 7.59059L12.356 7.35168C12.7465 6.96115 12.7465 6.32799 12.356 5.93746L8.97339 2.55483C8.96482 2.5456 8.95605 2.5365 8.94707 2.52752L8.70816 2.2886C8.31763 1.89808 7.68447 1.89808 7.29394 2.2886L3.64279 5.93975C3.25227 6.33028 3.25227 6.96344 3.64279 7.35397L3.88171 7.59288C4.27223 7.98341 4.9054 7.98341 5.29592 7.59288L6.83 6.0588L6.83 13C6.83 13.5523 7.27772 14 7.83 14H8.16788C8.72017 14 9.16788 13.5523 9.16788 13Z",fill:"currentColor"}))};return d.displayName="ArrowUp",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
2
2
  //# sourceMappingURL=ArrowUp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"ArrowUp.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowUp.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 75a9282b83a69ee376152c4ce67838b3\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowUpProps extends LGGlyph.ComponentProps {}\n\nconst ArrowUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowUpProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowUp', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M9.16788 13L9.16788 6.05558L10.7029 7.59059C11.0934 7.98112 11.7266 7.98112 12.1171 7.59059L12.356 7.35168C12.7465 6.96115 12.7465 6.32799 12.356 5.93746L8.97339 2.55483C8.96482 2.5456 8.95605 2.5365 8.94707 2.52752L8.70816 2.2886C8.31763 1.89808 7.68447 1.89808 7.29394 2.2886L3.64279 5.93975C3.25227 6.33028 3.25227 6.96344 3.64279 7.35397L3.88171 7.59288C4.27223 7.98341 4.9054 7.98341 5.29592 7.59288L6.83 6.0588L6.83 13C6.83 13.5523 7.27772 14 7.83 14H8.16788C8.72017 14 9.16788 13.5523 9.16788 13Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowUp.displayName = 'ArrowUp';\nArrowUp.isGlyph = true;\nArrowUp.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowUp;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowUp","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"s2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAU,SAAiBC,GAC7B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,WAEjDW,EAF6DpB,EAAwB,CACtFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,EAAG,0fACH1B,KAAM,0BAIVT,EAAQoC,YAAc,UACtBpC,EAAQqC,SAAU,EAClBrC,EAAQsC,UAAY,CAClB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"ArrowUp.js","sources":["../src/glyphCommon.ts","../src/generated/ArrowUp.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 75a9282b83a69ee376152c4ce67838b3\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface ArrowUpProps extends LGGlyph.ComponentProps {}\n\nconst ArrowUp = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ArrowUpProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'ArrowUp', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n d=\"M9.16788 13L9.16788 6.05558L10.7029 7.59059C11.0934 7.98112 11.7266 7.98112 12.1171 7.59059L12.356 7.35168C12.7465 6.96115 12.7465 6.32799 12.356 5.93746L8.97339 2.55483C8.96482 2.5456 8.95605 2.5365 8.94707 2.52752L8.70816 2.2886C8.31763 1.89808 7.68447 1.89808 7.29394 2.2886L3.64279 5.93975C3.25227 6.33028 3.25227 6.96344 3.64279 7.35397L3.88171 7.59288C4.27223 7.98341 4.9054 7.98341 5.29592 7.59288L6.83 6.0588L6.83 13C6.83 13.5523 7.27772 14 7.83 14H8.16788C8.72017 14 9.16788 13.5523 9.16788 13Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nArrowUp.displayName = 'ArrowUp';\nArrowUp.isGlyph = true;\nArrowUp.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default ArrowUp;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","ArrowUp","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"u2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAU,SAAiBC,GAC7B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,WAEjDW,EAF6DpB,EAAwB,CACtFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,EAAG,0fACHzB,KAAM,0BAIVT,EAAQmC,YAAc,UACtBnC,EAAQoC,SAAU,EAClBpC,EAAQqC,UAAY,CAClB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
package/dist/Beaker.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Beaker=e.Beaker||{},e.Beaker.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,C=e["aria-label"],m=e["aria-labelledby"],g=e.fill,v=e.role,h=void 0===v?"img":v,O=u(e,b),j=t.css(c||(c=f(["\n color: ",";\n "])),g),x=t.css(s||(s=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"Beaker",(i(r={title:y},"aria-label",C),i(r,"aria-labelledby",m),r));return a.jsx("svg",o({className:t.cx(i({},j,null!=g),x,l),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:h},w,O,{viewBox:"0 0 16 16"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.95288 1.8C5.95288 1.51997 5.95288 1.37996 6.00738 1.273C6.05532 1.17892 6.13181 1.10243 6.22589 1.0545C6.33284 1 6.47286 1 6.75288 1H9.15288C9.43291 1 9.57292 1 9.67988 1.0545C9.77396 1.10243 9.85045 1.17892 9.89839 1.273C9.95288 1.37996 9.95288 1.51997 9.95288 1.8V2.2C9.95288 2.48003 9.95288 2.62004 9.89839 2.727C9.85045 2.82108 9.77396 2.89757 9.67988 2.9455C9.57292 3 9.43291 3 9.15288 3H6.75288C6.47286 3 6.33284 3 6.22589 2.9455C6.13181 2.89757 6.05532 2.82108 6.00738 2.727C5.95288 2.62004 5.95288 2.48003 5.95288 2.2V1.8ZM6.00919 4.26951C5.95289 4.37788 5.95289 4.52025 5.95289 4.805V6H5.95288L2.94611 11.4122C2.28339 12.6051 1.95203 13.2015 2.01416 13.6895C2.06606 14.097 2.28284 14.4654 2.61388 14.7087C3.01025 15 3.69257 15 5.0572 15H10.8485C12.2132 15 12.8955 15 13.2919 14.7087C13.6229 14.4654 13.8397 14.097 13.8916 13.6895C13.9537 13.2015 13.6224 12.6051 12.9596 11.4122L12.9596 11.4122L9.95289 6.00003V4.805C9.95289 4.52025 9.95289 4.37788 9.8966 4.26951C9.84916 4.17819 9.7747 4.10373 9.68338 4.05629C9.57501 4 9.43264 4 9.14789 4H6.75789C6.47315 4 6.33077 4 6.2224 4.05629C6.13108 4.10373 6.05662 4.17819 6.00919 4.26951ZM9.33288 9L6.30288 9.5L5.01554 11.8106C4.79758 12.2019 4.6886 12.3975 4.70716 12.5576C4.72336 12.6973 4.79764 12.8237 4.9118 12.9059C5.04264 13 5.26656 13 5.71439 13H10.1939C10.641 13 10.8646 13 10.9954 12.906C11.1095 12.824 11.1838 12.6977 11.2001 12.5582C11.2189 12.3982 11.1104 12.2027 10.8934 11.8118L9.33288 9Z",fill:"currentColor"}))};return d.displayName="Beaker",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Beaker=e.Beaker||{},e.Beaker.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=l(r);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var t,a,l=function(e,r){if(null==e)return{};var t,a,l={},n=Object.keys(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||(l[t]=e[t]);return l}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,l=e.className,n=e.size,d=void 0===n?16:n,y=e.title,C=e["aria-label"],m=e["aria-labelledby"],g=e.fill,v=e.role,h=void 0===v?"img":v,O=u(e,b),j=t.css(c||(c=f(["\n color: ",";\n "])),g),x=t.css(s||(s=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var a,l,n=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return n||o||u?(i(a={},"aria-labelledby",o),i(a,"aria-label",n),i(a,"title",u),a):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(h,"Beaker",(i(r={title:y},"aria-label",C),i(r,"aria-labelledby",m),r));return a.jsx("svg",o({className:t.cx(i({},j,null!=g),x,l),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:h},w,O,{viewBox:"0 0 16 16"}),a.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5.95288 1.8C5.95288 1.51997 5.95288 1.37996 6.00738 1.273C6.05532 1.17892 6.13181 1.10243 6.22589 1.0545C6.33284 1 6.47286 1 6.75288 1H9.15288C9.43291 1 9.57292 1 9.67988 1.0545C9.77396 1.10243 9.85045 1.17892 9.89839 1.273C9.95288 1.37996 9.95288 1.51997 9.95288 1.8V2.2C9.95288 2.48003 9.95288 2.62004 9.89839 2.727C9.85045 2.82108 9.77396 2.89757 9.67988 2.9455C9.57292 3 9.43291 3 9.15288 3H6.75288C6.47286 3 6.33284 3 6.22589 2.9455C6.13181 2.89757 6.05532 2.82108 6.00738 2.727C5.95288 2.62004 5.95288 2.48003 5.95288 2.2V1.8ZM6.00919 4.26951C5.95289 4.37788 5.95289 4.52025 5.95289 4.805V6H5.95288L2.94611 11.4122C2.28339 12.6051 1.95203 13.2015 2.01416 13.6895C2.06606 14.097 2.28284 14.4654 2.61388 14.7087C3.01025 15 3.69257 15 5.0572 15H10.8485C12.2132 15 12.8955 15 13.2919 14.7087C13.6229 14.4654 13.8397 14.097 13.8916 13.6895C13.9537 13.2015 13.6224 12.6051 12.9596 11.4122L12.9596 11.4122L9.95289 6.00003V4.805C9.95289 4.52025 9.95289 4.37788 9.8966 4.26951C9.84916 4.17819 9.7747 4.10373 9.68338 4.05629C9.57501 4 9.43264 4 9.14789 4H6.75789C6.47315 4 6.33077 4 6.2224 4.05629C6.13108 4.10373 6.05662 4.17819 6.00919 4.26951ZM9.33288 9L6.30288 9.5L5.01554 11.8106C4.79758 12.2019 4.6886 12.3975 4.70716 12.5576C4.72336 12.6973 4.79764 12.8237 4.9118 12.9059C5.04264 13 5.26656 13 5.71439 13H10.1939C10.641 13 10.8646 13 10.9954 12.906C11.1095 12.824 11.1838 12.6977 11.2001 12.5582C11.2189 12.3982 11.1104 12.2027 10.8934 11.8118L9.33288 9Z",fill:"currentColor"}))};return d.displayName="Beaker",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
2
2
  //# sourceMappingURL=Beaker.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Beaker.js","sources":["../src/glyphCommon.ts","../src/generated/Beaker.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 7c98bc603765f6a6f49d66288b9bd5ef\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface BeakerProps extends LGGlyph.ComponentProps {}\n\nconst Beaker = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: BeakerProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Beaker', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.95288 1.8C5.95288 1.51997 5.95288 1.37996 6.00738 1.273C6.05532 1.17892 6.13181 1.10243 6.22589 1.0545C6.33284 1 6.47286 1 6.75288 1H9.15288C9.43291 1 9.57292 1 9.67988 1.0545C9.77396 1.10243 9.85045 1.17892 9.89839 1.273C9.95288 1.37996 9.95288 1.51997 9.95288 1.8V2.2C9.95288 2.48003 9.95288 2.62004 9.89839 2.727C9.85045 2.82108 9.77396 2.89757 9.67988 2.9455C9.57292 3 9.43291 3 9.15288 3H6.75288C6.47286 3 6.33284 3 6.22589 2.9455C6.13181 2.89757 6.05532 2.82108 6.00738 2.727C5.95288 2.62004 5.95288 2.48003 5.95288 2.2V1.8ZM6.00919 4.26951C5.95289 4.37788 5.95289 4.52025 5.95289 4.805V6H5.95288L2.94611 11.4122C2.28339 12.6051 1.95203 13.2015 2.01416 13.6895C2.06606 14.097 2.28284 14.4654 2.61388 14.7087C3.01025 15 3.69257 15 5.0572 15H10.8485C12.2132 15 12.8955 15 13.2919 14.7087C13.6229 14.4654 13.8397 14.097 13.8916 13.6895C13.9537 13.2015 13.6224 12.6051 12.9596 11.4122L12.9596 11.4122L9.95289 6.00003V4.805C9.95289 4.52025 9.95289 4.37788 9.8966 4.26951C9.84916 4.17819 9.7747 4.10373 9.68338 4.05629C9.57501 4 9.43264 4 9.14789 4H6.75789C6.47315 4 6.33077 4 6.2224 4.05629C6.13108 4.10373 6.05662 4.17819 6.00919 4.26951ZM9.33288 9L6.30288 9.5L5.01554 11.8106C4.79758 12.2019 4.6886 12.3975 4.70716 12.5576C4.72336 12.6973 4.79764 12.8237 4.9118 12.9059C5.04264 13 5.26656 13 5.71439 13H10.1939C10.641 13 10.8646 13 10.9954 12.906C11.1095 12.824 11.1838 12.6977 11.2001 12.5582C11.2189 12.3982 11.1104 12.2027 10.8934 11.8118L9.33288 9Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nBeaker.displayName = 'Beaker';\nBeaker.isGlyph = true;\nBeaker.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Beaker;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Beaker","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","aria-label","concat","replace","aria-hidden","alt","generateAccessibleProps","___EmotionJSX","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"m2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAS,SAAgBC,GAC3B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,MAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,MAAItB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACLG,cAaoBF,EAbQF,EAc7B,GAAGK,OAAOH,EAAKI,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACLC,eAAe,EACfC,IAAK,KCIWC,CAAwBjB,EAAM,UAEjDW,EAF4DpB,EAAwB,CACrFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAO2B,MAAc,MAAOC,EAAS,CACnC3B,UAAW4B,KAAGT,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E6B,OAAwB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GAClD4B,MAAuB,iBAAT5B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBsB,QAAS,cACPL,MAAc,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,q7CACH5B,KAAM,0BAIVT,EAAOsC,YAAc,SACrBtC,EAAOuC,SAAU,EACjBvC,EAAOwC,UAAY,CACjB/B,KAAMgC,UAAUC,OAChBrC,KAAMoC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDvC,UAAWsC,UAAUC"}
1
+ {"version":3,"file":"Beaker.js","sources":["../src/glyphCommon.ts","../src/generated/Beaker.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}\n\ntype AccessibleFunctionReturnType =\n | AccessibleFunctionParams\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 }: AccessibleFunctionParams,\n): AccessibleFunctionReturnType {\n switch (role) {\n case 'img':\n if (!ariaLabel && !ariaLabelledby && !title) {\n return { 'aria-label': getGlyphLabel(glyphName) };\n }\n\n return {\n ['aria-labelledby']: ariaLabelledby,\n ['aria-label']: ariaLabel,\n title,\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 ./node_modules/.bin/ts-node packages/icon/scripts/build.ts\n * @checksum 7c98bc603765f6a6f49d66288b9bd5ef\n */\nimport * as React from 'react';\nimport PropTypes from 'prop-types';\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface BeakerProps extends LGGlyph.ComponentProps {}\n\nconst Beaker = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: BeakerProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Beaker', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n });\n return (\n <svg\n className={cx(\n {\n [fillStyle]: fill != null,\n },\n noFlexShrink,\n className,\n )}\n height={typeof size === 'number' ? size : sizeMap[size]}\n width={typeof size === 'number' ? size : sizeMap[size]}\n role={role}\n {...accessibleProps}\n {...props}\n viewBox=\"0 0 16 16\"\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M5.95288 1.8C5.95288 1.51997 5.95288 1.37996 6.00738 1.273C6.05532 1.17892 6.13181 1.10243 6.22589 1.0545C6.33284 1 6.47286 1 6.75288 1H9.15288C9.43291 1 9.57292 1 9.67988 1.0545C9.77396 1.10243 9.85045 1.17892 9.89839 1.273C9.95288 1.37996 9.95288 1.51997 9.95288 1.8V2.2C9.95288 2.48003 9.95288 2.62004 9.89839 2.727C9.85045 2.82108 9.77396 2.89757 9.67988 2.9455C9.57292 3 9.43291 3 9.15288 3H6.75288C6.47286 3 6.33284 3 6.22589 2.9455C6.13181 2.89757 6.05532 2.82108 6.00738 2.727C5.95288 2.62004 5.95288 2.48003 5.95288 2.2V1.8ZM6.00919 4.26951C5.95289 4.37788 5.95289 4.52025 5.95289 4.805V6H5.95288L2.94611 11.4122C2.28339 12.6051 1.95203 13.2015 2.01416 13.6895C2.06606 14.097 2.28284 14.4654 2.61388 14.7087C3.01025 15 3.69257 15 5.0572 15H10.8485C12.2132 15 12.8955 15 13.2919 14.7087C13.6229 14.4654 13.8397 14.097 13.8916 13.6895C13.9537 13.2015 13.6224 12.6051 12.9596 11.4122L12.9596 11.4122L9.95289 6.00003V4.805C9.95289 4.52025 9.95289 4.37788 9.8966 4.26951C9.84916 4.17819 9.7747 4.10373 9.68338 4.05629C9.57501 4 9.43264 4 9.14789 4H6.75789C6.47315 4 6.33077 4 6.2224 4.05629C6.13108 4.10373 6.05662 4.17819 6.00919 4.26951ZM9.33288 9L6.30288 9.5L5.01554 11.8106C4.79758 12.2019 4.6886 12.3975 4.70716 12.5576C4.72336 12.6973 4.79764 12.8237 4.9118 12.9059C5.04264 13 5.26656 13 5.71439 13H10.1939C10.641 13 10.8646 13 10.9954 12.906C11.1095 12.824 11.1838 12.6977 11.2001 12.5582C11.2189 12.3982 11.1104 12.2027 10.8934 11.8118L9.33288 9Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nBeaker.displayName = 'Beaker';\nBeaker.isGlyph = true;\nBeaker.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Beaker;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Beaker","_ref","_generateAccessiblePr","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","_ref2","name","_defineProperty","concat","replace","alt","generateAccessibleProps","___EmotionJSX","jsx","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph","propTypes","PropTypes","string","oneOfType","number"],"mappings":"o2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAS,SAAgBC,GAC3B,IAAIC,EAEAC,EAAYF,EAAKE,UACjBC,EAAYH,EAAKI,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQL,EAAKK,MACbC,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBQ,EAAOR,EAAKQ,KACZC,EAAYT,EAAKU,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,EAAQC,EAAyBZ,EAAMF,GAEvCe,EAAYC,EAAAA,IAAIvB,IAAoBA,EAAkBwB,EAAuB,CAAC,gBAAiB,WAAYP,GAC3GQ,EAAeF,EAAGA,IAACtB,IAAqBA,EAAmBuB,EAAuB,CAAC,gCACnFE,EDxBC,SAAiCP,EAAMQ,EAAWlB,GACvD,IAAImB,EAuBwBC,EArBxBd,EAAYN,EAAK,cACjBO,EAAiBP,EAAK,mBACtBK,EAAQL,EAAKK,MAEjB,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,GAMnBgB,EAAZF,EAAQ,GAA2B,kBAAmBZ,GAAiBc,EAAgBF,EAAO,aAAcb,GAAYe,EAAgBF,EAAO,QAASd,GAAQc,GAL9J,CACL,cAaoBC,EAbQF,EAc7B,GAAGI,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,KCIWC,CAAwBf,EAAM,UAEjDW,EAF4DpB,EAAwB,CACrFI,MAAOA,GACiC,aAAcC,GAAYe,EAAgBpB,EAAuB,kBAAmBM,GAAiBN,IAC/I,OAAOyB,EAAaC,IAAC,MAAOC,EAAS,CACnC1B,UAAW2B,EAAAA,GAAGR,EAAgB,GAAIR,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E4B,OAAwB,iBAAT1B,EAAoBA,EAAOX,EAAQW,GAClD2B,MAAuB,iBAAT3B,EAAoBA,EAAOX,EAAQW,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBqB,QAAS,cACPN,EAAaC,IAAC,OAAQ,CACxBM,SAAU,UACVC,SAAU,UACVC,EAAG,q7CACH3B,KAAM,0BAIVT,EAAOqC,YAAc,SACrBrC,EAAOsC,SAAU,EACjBtC,EAAOuC,UAAY,CACjB9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
package/dist/Bell.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Bell=e.Bell||{},e.Bell.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r);function i(e,r,l){return r in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l,e}function o(){return(o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e}).apply(this,arguments)}function u(e,r){if(null==e)return{};var l,t,a=function(e,r){if(null==e)return{};var l,t,a={},n=Object.keys(e);for(t=0;t<n.length;t++)l=n[t],r.indexOf(l)>=0||(a[l]=e[l]);return a}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(t=0;t<n.length;t++)l=n[t],r.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,a=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),C=l.css(c||(c=f(["\n color: ",";\n "])),v),x=l.css(s||(s=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,l){var t,a,n=l["aria-label"],o=l["aria-labelledby"],u=l.title;switch(e){case"img":return n||o||u?(i(t={},"aria-labelledby",o),i(t,"aria-label",n),i(t,"title",u),t):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"Bell",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return t.jsx("svg",o({className:l.cx(i({},C,null!=v),x,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},w,j,{viewBox:"0 0 16 16"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6248 6.1383C12.4098 4.25462 11.09 2.74034 9.35673 2.21251C9.2281 1.52063 8.66955 1 8 1C7.33044 1 6.77189 1.52063 6.64326 2.21251C4.91 2.74034 3.59017 4.25462 3.37524 6.1383L2.92307 10.1011H2.94943C2.42507 10.1011 2 10.5262 2 11.0506C2 11.5749 2.42507 12 2.94943 12H13.0506C13.5749 12 14 11.5749 14 11.0506C14 10.5262 13.5749 10.1011 13.0506 10.1011H13.0769L12.6248 6.1383ZM8 15C6.89543 15 6 14.1046 6 13H10C10 14.1046 9.10457 15 8 15Z",fill:"currentColor"}))};return d.displayName="Bell",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("prop-types"),require("@leafygreen-ui/emotion"),require("@emotion/react")):"function"==typeof define&&define.amd?define(["react","prop-types","@leafygreen-ui/emotion","@emotion/react"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Bell=e.Bell||{},e.Bell.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=a(r);function i(e,r,l){return r in e?Object.defineProperty(e,r,{value:l,enumerable:!0,configurable:!0,writable:!0}):e[r]=l,e}function o(){return o=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var l=arguments[r];for(var t in l)Object.prototype.hasOwnProperty.call(l,t)&&(e[t]=l[t])}return e},o.apply(this,arguments)}function u(e,r){if(null==e)return{};var l,t,a=function(e,r){if(null==e)return{};var l,t,a={},n=Object.keys(e);for(t=0;t<n.length;t++)l=n[t],r.indexOf(l)>=0||(a[l]=e[l]);return a}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(t=0;t<n.length;t++)l=n[t],r.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(a[l]=e[l])}return a}function f(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var c,s,p={small:14,default:16,large:20,xlarge:24};var b=["className","size","title","aria-label","aria-labelledby","fill","role"],d=function(e){var r,a=e.className,n=e.size,d=void 0===n?16:n,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,b),C=l.css(c||(c=f(["\n color: ",";\n "])),v),x=l.css(s||(s=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,l){var t,a,n=l["aria-label"],o=l["aria-labelledby"],u=l.title;switch(e){case"img":return n||o||u?(i(t={},"aria-labelledby",o),i(t,"aria-label",n),i(t,"title",u),t):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"Bell",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return t.jsx("svg",o({className:l.cx(i({},C,null!=v),x,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},w,j,{viewBox:"0 0 16 16"}),t.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.6248 6.1383C12.4098 4.25462 11.09 2.74034 9.35673 2.21251C9.2281 1.52063 8.66955 1 8 1C7.33044 1 6.77189 1.52063 6.64326 2.21251C4.91 2.74034 3.59017 4.25462 3.37524 6.1383L2.92307 10.1011H2.94943C2.42507 10.1011 2 10.5262 2 11.0506C2 11.5749 2.42507 12 2.94943 12H13.0506C13.5749 12 14 11.5749 14 11.0506C14 10.5262 13.5749 10.1011 13.0506 10.1011H13.0769L12.6248 6.1383ZM8 15C6.89543 15 6 14.1046 6 13H10C10 14.1046 9.10457 15 8 15Z",fill:"currentColor"}))};return d.displayName="Bell",d.isGlyph=!0,d.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},d}));
2
2
  //# sourceMappingURL=Bell.js.map