@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
@@ -1 +1 @@
1
- {"version":3,"file":"Download.js","sources":["../src/glyphCommon.ts","../src/generated/Download.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 072988d700c3cdd405ee06b70f7949e1\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 DownloadProps extends LGGlyph.ComponentProps {}\n\nconst Download = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: DownloadProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Download', {\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=\"M9.52439 2.5747V8.13199H11.2363C11.942 8.13199 12.2687 8.91538 11.7353 9.32836L8.49897 11.8337C8.21256 12.0554 7.78744 12.0554 7.50102 11.8337L4.26475 9.32836C3.73129 8.91538 4.05802 8.13199 4.76373 8.13199H6.375V2.5747C6.375 1.70502 7.08002 1 7.9497 1C8.81938 1 9.52439 1.70502 9.52439 2.5747ZM2.5 11H4.30042L6.70523 12.8617C7.46018 13.4461 8.53982 13.4461 9.29477 12.8617L11.6996 11H13.5C14.3284 11 15 11.6716 15 12.5C15 13.3284 14.3284 14 13.5 14H2.5C1.67157 14 1 13.3284 1 12.5C1 11.6716 1.67157 11 2.5 11Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nDownload.displayName = 'Download';\nDownload.isGlyph = true;\nDownload.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Download;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Download","_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":"y2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAW,SAAkBC,GAC/B,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,YAEjDW,EAF8DpB,EAAwB,CACvFI,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,igBACH5B,KAAM,0BAIVT,EAASsC,YAAc,WACvBtC,EAASuC,SAAU,EACnBvC,EAASwC,UAAY,CACnB/B,KAAMgC,UAAUC,OAChBrC,KAAMoC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDvC,UAAWsC,UAAUC"}
1
+ {"version":3,"file":"Download.js","sources":["../src/glyphCommon.ts","../src/generated/Download.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 072988d700c3cdd405ee06b70f7949e1\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 DownloadProps extends LGGlyph.ComponentProps {}\n\nconst Download = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: DownloadProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Download', {\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=\"M9.52439 2.5747V8.13199H11.2363C11.942 8.13199 12.2687 8.91538 11.7353 9.32836L8.49897 11.8337C8.21256 12.0554 7.78744 12.0554 7.50102 11.8337L4.26475 9.32836C3.73129 8.91538 4.05802 8.13199 4.76373 8.13199H6.375V2.5747C6.375 1.70502 7.08002 1 7.9497 1C8.81938 1 9.52439 1.70502 9.52439 2.5747ZM2.5 11H4.30042L6.70523 12.8617C7.46018 13.4461 8.53982 13.4461 9.29477 12.8617L11.6996 11H13.5C14.3284 11 15 11.6716 15 12.5C15 13.3284 14.3284 14 13.5 14H2.5C1.67157 14 1 13.3284 1 12.5C1 11.6716 1.67157 11 2.5 11Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nDownload.displayName = 'Download';\nDownload.isGlyph = true;\nDownload.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Download;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Download","_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":"02CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAW,SAAkBC,GAC/B,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,YAEjDW,EAF8DpB,EAAwB,CACvFI,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,igBACH3B,KAAM,0BAIVT,EAASqC,YAAc,WACvBrC,EAASsC,SAAU,EACnBtC,EAASuC,UAAY,CACnB9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
package/dist/Edit.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).Edit=e.Edit||{},e.Edit.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(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 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,i=function(e,r){if(null==e)return{};var t,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}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,i=e.className,a=e.size,b=void 0===a?16:a,y=e.title,g=e["aria-label"],m=e["aria-labelledby"],h=e.fill,j=e.role,v=void 0===j?"img":j,O=u(e,p),x=t.css(c||(c=f(["\n color: ",";\n "])),h),w=t.css(s||(s=f(["\n flex-shrink: 0;\n "]))),L=function(e,r,t){var l,i,a=t["aria-label"],o=t["aria-labelledby"],u=t.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=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(v,"Edit",(n(r={title:y},"aria-label",g),n(r,"aria-labelledby",m),r));return l.jsx("svg",o({className:t.cx(n({},x,null!=h),w,i),height:"number"==typeof b?b:d[b],width:"number"==typeof b?b:d[b],role:v},L,O,{viewBox:"0 0 16 16"}),l.jsx("g",{clipPath:"url(#clip0)"},l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.922 1.68126C12.2982 1.30501 12.9082 1.30501 13.2845 1.68126L14.647 3.04377C15.0233 3.42002 15.0233 4.03003 14.647 4.40628L13.2845 5.76879L10.5595 3.04377L9.53759 4.06566L12.2626 6.79068L5.10942 13.9439L1.36251 14.9657L2.3844 11.2188L11.922 1.68126Z",fill:"currentColor"})),l.jsx("defs",null,l.jsx("clipPath",{id:"clip0"},l.jsx("rect",{width:16,height:16,fill:"currentColor"}))))};return b.displayName="Edit",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,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).Edit=e.Edit||{},e.Edit.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,l){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(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 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,i=function(e,r){if(null==e)return{};var t,l,i={},a=Object.keys(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}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,i=e.className,a=e.size,b=void 0===a?16:a,y=e.title,g=e["aria-label"],m=e["aria-labelledby"],h=e.fill,j=e.role,v=void 0===j?"img":j,O=u(e,p),x=t.css(c||(c=f(["\n color: ",";\n "])),h),w=t.css(s||(s=f(["\n flex-shrink: 0;\n "]))),L=function(e,r,t){var l,i,a=t["aria-label"],o=t["aria-labelledby"],u=t.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=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(v,"Edit",(n(r={title:y},"aria-label",g),n(r,"aria-labelledby",m),r));return l.jsx("svg",o({className:t.cx(n({},x,null!=h),w,i),height:"number"==typeof b?b:d[b],width:"number"==typeof b?b:d[b],role:v},L,O,{viewBox:"0 0 16 16"}),l.jsx("g",{clipPath:"url(#clip0)"},l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11.922 1.68126C12.2982 1.30501 12.9082 1.30501 13.2845 1.68126L14.647 3.04377C15.0233 3.42002 15.0233 4.03003 14.647 4.40628L13.2845 5.76879L10.5595 3.04377L9.53759 4.06566L12.2626 6.79068L5.10942 13.9439L1.36251 14.9657L2.3844 11.2188L11.922 1.68126Z",fill:"currentColor"})),l.jsx("defs",null,l.jsx("clipPath",{id:"clip0"},l.jsx("rect",{width:16,height:16,fill:"currentColor"}))))};return b.displayName="Edit",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=Edit.js.map
package/dist/Edit.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"Edit.js","sources":["../src/glyphCommon.ts","../src/generated/Edit.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 4ed07b15de60dfcd76dd3fb8d6f1b8ca\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 EditProps extends LGGlyph.ComponentProps {}\n\nconst Edit = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: EditProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Edit', {\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 <g clipPath=\"url(#clip0)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.922 1.68126C12.2982 1.30501 12.9082 1.30501 13.2845 1.68126L14.647 3.04377C15.0233 3.42002 15.0233 4.03003 14.647 4.40628L13.2845 5.76879L10.5595 3.04377L9.53759 4.06566L12.2626 6.79068L5.10942 13.9439L1.36251 14.9657L2.3844 11.2188L11.922 1.68126Z\"\n fill={'currentColor'}\n />\n </g>\n <defs>\n <clipPath id=\"clip0\">\n <rect width={16} height={16} fill={'currentColor'} />\n </clipPath>\n </defs>\n </svg>\n );\n};\n\nEdit.displayName = 'Edit';\nEdit.isGlyph = true;\nEdit.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Edit;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Edit","_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","clipPath","fillRule","clipRule","d","id","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,IAAK,CACrBM,SAAU,eACTN,MAAc,OAAQ,CACvBO,SAAU,UACVC,SAAU,UACVC,EAAG,+PACH7B,KAAM,kBACHoB,MAAc,OAAQ,KAAMA,MAAc,WAAY,CACzDU,GAAI,SACHV,MAAc,OAAQ,CACvBI,MAAO,GACPD,OAAQ,GACRvB,KAAM,4BAIVT,EAAKwC,YAAc,OACnBxC,EAAKyC,SAAU,EACfzC,EAAK0C,UAAY,CACfjC,KAAMkC,UAAUC,OAChBvC,KAAMsC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDzC,UAAWwC,UAAUC"}
1
+ {"version":3,"file":"Edit.js","sources":["../src/glyphCommon.ts","../src/generated/Edit.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 4ed07b15de60dfcd76dd3fb8d6f1b8ca\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 EditProps extends LGGlyph.ComponentProps {}\n\nconst Edit = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: EditProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Edit', {\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 <g clipPath=\"url(#clip0)\">\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M11.922 1.68126C12.2982 1.30501 12.9082 1.30501 13.2845 1.68126L14.647 3.04377C15.0233 3.42002 15.0233 4.03003 14.647 4.40628L13.2845 5.76879L10.5595 3.04377L9.53759 4.06566L12.2626 6.79068L5.10942 13.9439L1.36251 14.9657L2.3844 11.2188L11.922 1.68126Z\"\n fill={'currentColor'}\n />\n </g>\n <defs>\n <clipPath id=\"clip0\">\n <rect width={16} height={16} fill={'currentColor'} />\n </clipPath>\n </defs>\n </svg>\n );\n};\n\nEdit.displayName = 'Edit';\nEdit.isGlyph = true;\nEdit.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Edit;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Edit","_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","clipPath","fillRule","clipRule","d","id","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,IAAK,CACrBM,SAAU,eACTP,EAAAA,IAAc,OAAQ,CACvBQ,SAAU,UACVC,SAAU,UACVC,EAAG,+PACH5B,KAAM,kBACHkB,EAAAA,IAAc,OAAQ,KAAMA,EAAAA,IAAc,WAAY,CACzDW,GAAI,SACHX,EAAAA,IAAc,OAAQ,CACvBK,MAAO,GACPD,OAAQ,GACRtB,KAAM,4BAIVT,EAAKuC,YAAc,OACnBvC,EAAKwC,SAAU,EACfxC,EAAKyC,UAAY,CACfhC,KAAMiC,EAAS,QAACC,OAChBtC,KAAMqC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDxC,UAAWuC,EAAS,QAACC"}
package/dist/Ellipsis.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).Ellipsis=e.Ellipsis||{},e.Ellipsis.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(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 s(e,r){if(null==e)return{};var l,t,i=function(e,r){if(null==e)return{};var l,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)l=a[t],r.indexOf(l)>=0||(i[l]=e[l]);return i}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)l=a[t],r.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(i[l]=e[l])}return i}function u(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var f,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,i=e.className,a=e.size,d=void 0===a?16:a,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=s(e,b),C=l.css(f||(f=u(["\n color: ",";\n "])),v),x=l.css(c||(c=u(["\n flex-shrink: 0;\n "]))),w=function(e,r,l){var t,i,a=l["aria-label"],o=l["aria-labelledby"],s=l.title;switch(e){case"img":return a||o||s?(n(t={},"aria-labelledby",o),n(t,"aria-label",a),n(t,"title",s),t):{"aria-label":(i=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"Ellipsis",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return t.jsx("svg",o({className:l.cx(n({},C,null!=v),x,i),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:"M2.75 6C3.7165 6 4.5 6.7835 4.5 7.75C4.5 8.7165 3.7165 9.5 2.75 9.5C1.7835 9.5 1 8.7165 1 7.75C1 6.7835 1.7835 6 2.75 6ZM7.75 6C8.7165 6 9.5 6.7835 9.5 7.75C9.5 8.7165 8.7165 9.5 7.75 9.5C6.7835 9.5 6 8.7165 6 7.75C6 6.7835 6.7835 6 7.75 6ZM14.5 7.75C14.5 6.7835 13.7165 6 12.75 6C11.7835 6 11 6.7835 11 7.75C11 8.7165 11.7835 9.5 12.75 9.5C13.7165 9.5 14.5 8.7165 14.5 7.75Z",fill:"currentColor"}))};return d.displayName="Ellipsis",d.isGlyph=!0,d.propTypes={fill:a.default.string,size:a.default.oneOfType([a.default.number,a.default.string]),className:a.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).Ellipsis=e.Ellipsis||{},e.Ellipsis.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,l,t){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=i(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 s(e,r){if(null==e)return{};var l,t,i=function(e,r){if(null==e)return{};var l,t,i={},a=Object.keys(e);for(t=0;t<a.length;t++)l=a[t],r.indexOf(l)>=0||(i[l]=e[l]);return i}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t<a.length;t++)l=a[t],r.indexOf(l)>=0||Object.prototype.propertyIsEnumerable.call(e,l)&&(i[l]=e[l])}return i}function u(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var f,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,i=e.className,a=e.size,d=void 0===a?16:a,y=e.title,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=s(e,b),C=l.css(f||(f=u(["\n color: ",";\n "])),v),x=l.css(c||(c=u(["\n flex-shrink: 0;\n "]))),w=function(e,r,l){var t,i,a=l["aria-label"],o=l["aria-labelledby"],s=l.title;switch(e){case"img":return a||o||s?(n(t={},"aria-labelledby",o),n(t,"aria-label",a),n(t,"title",s),t):{"aria-label":(i=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(O,"Ellipsis",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return t.jsx("svg",o({className:l.cx(n({},C,null!=v),x,i),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:"M2.75 6C3.7165 6 4.5 6.7835 4.5 7.75C4.5 8.7165 3.7165 9.5 2.75 9.5C1.7835 9.5 1 8.7165 1 7.75C1 6.7835 1.7835 6 2.75 6ZM7.75 6C8.7165 6 9.5 6.7835 9.5 7.75C9.5 8.7165 8.7165 9.5 7.75 9.5C6.7835 9.5 6 8.7165 6 7.75C6 6.7835 6.7835 6 7.75 6ZM14.5 7.75C14.5 6.7835 13.7165 6 12.75 6C11.7835 6 11 6.7835 11 7.75C11 8.7165 11.7835 9.5 12.75 9.5C13.7165 9.5 14.5 8.7165 14.5 7.75Z",fill:"currentColor"}))};return d.displayName="Ellipsis",d.isGlyph=!0,d.propTypes={fill:a.default.string,size:a.default.oneOfType([a.default.number,a.default.string]),className:a.default.string},d}));
2
2
  //# sourceMappingURL=Ellipsis.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Ellipsis.js","sources":["../src/glyphCommon.ts","../src/generated/Ellipsis.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 c4db873d543197e98989d8e473f9d5e2\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 EllipsisProps extends LGGlyph.ComponentProps {}\n\nconst Ellipsis = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: EllipsisProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Ellipsis', {\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=\"M2.75 6C3.7165 6 4.5 6.7835 4.5 7.75C4.5 8.7165 3.7165 9.5 2.75 9.5C1.7835 9.5 1 8.7165 1 7.75C1 6.7835 1.7835 6 2.75 6ZM7.75 6C8.7165 6 9.5 6.7835 9.5 7.75C9.5 8.7165 8.7165 9.5 7.75 9.5C6.7835 9.5 6 8.7165 6 7.75C6 6.7835 6.7835 6 7.75 6ZM14.5 7.75C14.5 6.7835 13.7165 6 12.75 6C11.7835 6 11 6.7835 11 7.75C11 8.7165 11.7835 9.5 12.75 9.5C13.7165 9.5 14.5 8.7165 14.5 7.75Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nEllipsis.displayName = 'Ellipsis';\nEllipsis.isGlyph = true;\nEllipsis.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Ellipsis;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Ellipsis","_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":"y2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAW,SAAkBC,GAC/B,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,YAEjDW,EAF8DpB,EAAwB,CACvFI,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,0XACH5B,KAAM,0BAIVT,EAASsC,YAAc,WACvBtC,EAASuC,SAAU,EACnBvC,EAASwC,UAAY,CACnB/B,KAAMgC,UAAUC,OAChBrC,KAAMoC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDvC,UAAWsC,UAAUC"}
1
+ {"version":3,"file":"Ellipsis.js","sources":["../src/glyphCommon.ts","../src/generated/Ellipsis.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 c4db873d543197e98989d8e473f9d5e2\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 EllipsisProps extends LGGlyph.ComponentProps {}\n\nconst Ellipsis = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: EllipsisProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Ellipsis', {\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=\"M2.75 6C3.7165 6 4.5 6.7835 4.5 7.75C4.5 8.7165 3.7165 9.5 2.75 9.5C1.7835 9.5 1 8.7165 1 7.75C1 6.7835 1.7835 6 2.75 6ZM7.75 6C8.7165 6 9.5 6.7835 9.5 7.75C9.5 8.7165 8.7165 9.5 7.75 9.5C6.7835 9.5 6 8.7165 6 7.75C6 6.7835 6.7835 6 7.75 6ZM14.5 7.75C14.5 6.7835 13.7165 6 12.75 6C11.7835 6 11 6.7835 11 7.75C11 8.7165 11.7835 9.5 12.75 9.5C13.7165 9.5 14.5 8.7165 14.5 7.75Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nEllipsis.displayName = 'Ellipsis';\nEllipsis.isGlyph = true;\nEllipsis.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Ellipsis;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Ellipsis","_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":"02CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAW,SAAkBC,GAC/B,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,YAEjDW,EAF8DpB,EAAwB,CACvFI,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,0XACH3B,KAAM,0BAIVT,EAASqC,YAAc,WACvBrC,EAASsC,SAAU,EACnBtC,EAASuC,UAAY,CACnB9B,KAAM+B,EAAS,QAACC,OAChBpC,KAAMmC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDtC,UAAWqC,EAAS,QAACC"}
package/dist/Export.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).Export=e.Export||{},e.Export.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"],C=e.fill,h=e.role,v=void 0===h?"img":h,j=u(e,b),x=t.css(s||(s=f(["\n color: ",";\n "])),C),O=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),w=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:""}}}(v,"Export",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(i({},x,null!=C),O,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:v},w,j,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M14.6225 5.18606C14.7258 5.07863 14.7258 4.90873 14.6225 4.80131L11.8181 1.88563C11.645 1.70566 11.3409 1.82825 11.3409 2.07801V3.50192C7.82458 3.58637 5 6.46333 5 10V10.1C5 10.9284 5.67157 11.6 6.5 11.6C7.32843 11.6 8 10.9284 8 10.1V10C8 8.12032 9.48177 6.58672 11.3409 6.50356V7.90935C11.3409 8.15911 11.645 8.2817 11.8181 8.10173L14.6225 5.18606Z",fill:"currentColor"}),l.jsx("path",{d:"M6.5 3.87895C6.5 3.46474 6.16421 3.12895 5.75 3.12895H4C2.89543 3.12895 2 4.02438 2 5.12895V11.9929C2 13.0975 2.89543 13.9929 4 13.9929H10.864C11.9686 13.9929 12.864 13.0975 12.864 11.9929V10.05C12.864 9.6358 12.5282 9.30002 12.114 9.30002C11.6998 9.30002 11.364 9.6358 11.364 10.05V11.9929C11.364 12.2691 11.1401 12.4929 10.864 12.4929H4C3.72386 12.4929 3.5 12.2691 3.5 11.9929V5.12895C3.5 4.85281 3.72386 4.62895 4 4.62895H5.75C6.16421 4.62895 6.5 4.29317 6.5 3.87895Z",fill:"currentColor"}))};return d.displayName="Export",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).Export=e.Export||{},e.Export.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"],C=e.fill,h=e.role,v=void 0===h?"img":h,j=u(e,b),x=t.css(s||(s=f(["\n color: ",";\n "])),C),O=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),w=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:""}}}(v,"Export",(i(r={title:y},"aria-label",m),i(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(i({},x,null!=C),O,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:v},w,j,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M14.6225 5.18606C14.7258 5.07863 14.7258 4.90873 14.6225 4.80131L11.8181 1.88563C11.645 1.70566 11.3409 1.82825 11.3409 2.07801V3.50192C7.82458 3.58637 5 6.46333 5 10V10.1C5 10.9284 5.67157 11.6 6.5 11.6C7.32843 11.6 8 10.9284 8 10.1V10C8 8.12032 9.48177 6.58672 11.3409 6.50356V7.90935C11.3409 8.15911 11.645 8.2817 11.8181 8.10173L14.6225 5.18606Z",fill:"currentColor"}),l.jsx("path",{d:"M6.5 3.87895C6.5 3.46474 6.16421 3.12895 5.75 3.12895H4C2.89543 3.12895 2 4.02438 2 5.12895V11.9929C2 13.0975 2.89543 13.9929 4 13.9929H10.864C11.9686 13.9929 12.864 13.0975 12.864 11.9929V10.05C12.864 9.6358 12.5282 9.30002 12.114 9.30002C11.6998 9.30002 11.364 9.6358 11.364 10.05V11.9929C11.364 12.2691 11.1401 12.4929 10.864 12.4929H4C3.72386 12.4929 3.5 12.2691 3.5 11.9929V5.12895C3.5 4.85281 3.72386 4.62895 4 4.62895H5.75C6.16421 4.62895 6.5 4.29317 6.5 3.87895Z",fill:"currentColor"}))};return d.displayName="Export",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=Export.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Export.js","sources":["../src/glyphCommon.ts","../src/generated/Export.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 1578653fae9bd0a66604b04ad981db8f\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 ExportProps extends LGGlyph.ComponentProps {}\n\nconst Export = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ExportProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Export', {\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=\"M14.6225 5.18606C14.7258 5.07863 14.7258 4.90873 14.6225 4.80131L11.8181 1.88563C11.645 1.70566 11.3409 1.82825 11.3409 2.07801V3.50192C7.82458 3.58637 5 6.46333 5 10V10.1C5 10.9284 5.67157 11.6 6.5 11.6C7.32843 11.6 8 10.9284 8 10.1V10C8 8.12032 9.48177 6.58672 11.3409 6.50356V7.90935C11.3409 8.15911 11.645 8.2817 11.8181 8.10173L14.6225 5.18606Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M6.5 3.87895C6.5 3.46474 6.16421 3.12895 5.75 3.12895H4C2.89543 3.12895 2 4.02438 2 5.12895V11.9929C2 13.0975 2.89543 13.9929 4 13.9929H10.864C11.9686 13.9929 12.864 13.0975 12.864 11.9929V10.05C12.864 9.6358 12.5282 9.30002 12.114 9.30002C11.6998 9.30002 11.364 9.6358 11.364 10.05V11.9929C11.364 12.2691 11.1401 12.4929 10.864 12.4929H4C3.72386 12.4929 3.5 12.2691 3.5 11.9929V5.12895C3.5 4.85281 3.72386 4.62895 4 4.62895H5.75C6.16421 4.62895 6.5 4.29317 6.5 3.87895Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nExport.displayName = 'Export';\nExport.isGlyph = true;\nExport.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Export;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Export","_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":"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,EAAG,gWACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,ydACH1B,KAAM,0BAIVT,EAAOoC,YAAc,SACrBpC,EAAOqC,SAAU,EACjBrC,EAAOsC,UAAY,CACjB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"Export.js","sources":["../src/glyphCommon.ts","../src/generated/Export.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 1578653fae9bd0a66604b04ad981db8f\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 ExportProps extends LGGlyph.ComponentProps {}\n\nconst Export = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: ExportProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Export', {\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=\"M14.6225 5.18606C14.7258 5.07863 14.7258 4.90873 14.6225 4.80131L11.8181 1.88563C11.645 1.70566 11.3409 1.82825 11.3409 2.07801V3.50192C7.82458 3.58637 5 6.46333 5 10V10.1C5 10.9284 5.67157 11.6 6.5 11.6C7.32843 11.6 8 10.9284 8 10.1V10C8 8.12032 9.48177 6.58672 11.3409 6.50356V7.90935C11.3409 8.15911 11.645 8.2817 11.8181 8.10173L14.6225 5.18606Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M6.5 3.87895C6.5 3.46474 6.16421 3.12895 5.75 3.12895H4C2.89543 3.12895 2 4.02438 2 5.12895V11.9929C2 13.0975 2.89543 13.9929 4 13.9929H10.864C11.9686 13.9929 12.864 13.0975 12.864 11.9929V10.05C12.864 9.6358 12.5282 9.30002 12.114 9.30002C11.6998 9.30002 11.364 9.6358 11.364 10.05V11.9929C11.364 12.2691 11.1401 12.4929 10.864 12.4929H4C3.72386 12.4929 3.5 12.2691 3.5 11.9929V5.12895C3.5 4.85281 3.72386 4.62895 4 4.62895H5.75C6.16421 4.62895 6.5 4.29317 6.5 3.87895Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nExport.displayName = 'Export';\nExport.isGlyph = true;\nExport.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Export;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Export","_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":"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,EAAG,gWACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,ydACHzB,KAAM,0BAIVT,EAAOmC,YAAc,SACrBnC,EAAOoC,SAAU,EACjBpC,EAAOqC,UAAY,CACjB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
package/dist/Favorite.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).Favorite=e.Favorite||{},e.Favorite.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,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,p),C=t.css(s||(s=f(["\n color: ",";\n "])),v),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,"Favorite",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(n({},C,null!=v),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:"M7.53834 1.10997C7.70914 0.699319 8.29086 0.699318 8.46166 1.10996L9.99874 4.80556C10.0707 4.97868 10.2336 5.09696 10.4204 5.11194L14.4102 5.4318C14.8535 5.46734 15.0332 6.02059 14.6955 6.30993L11.6557 8.91378C11.5133 9.03576 11.4512 9.22715 11.4947 9.40952L12.4234 13.3028C12.5265 13.7354 12.0559 14.0773 11.6764 13.8455L8.26063 11.7592C8.10062 11.6615 7.89938 11.6615 7.73937 11.7592L4.32363 13.8455C3.94408 14.0773 3.47345 13.7354 3.57665 13.3028L4.50534 9.40952C4.54884 9.22715 4.48665 9.03576 4.34426 8.91378L1.30453 6.30993C0.966758 6.02059 1.14652 5.46734 1.58985 5.4318L5.57955 5.11194C5.76645 5.09696 5.92925 4.97868 6.00126 4.80556L7.53834 1.10997Z",fill:"currentColor"}))};return d.displayName="Favorite",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).Favorite=e.Favorite||{},e.Favorite.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,m=e["aria-label"],g=e["aria-labelledby"],v=e.fill,h=e.role,O=void 0===h?"img":h,j=u(e,p),C=t.css(s||(s=f(["\n color: ",";\n "])),v),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,"Favorite",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return a.jsx("svg",o({className:t.cx(n({},C,null!=v),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:"M7.53834 1.10997C7.70914 0.699319 8.29086 0.699318 8.46166 1.10996L9.99874 4.80556C10.0707 4.97868 10.2336 5.09696 10.4204 5.11194L14.4102 5.4318C14.8535 5.46734 15.0332 6.02059 14.6955 6.30993L11.6557 8.91378C11.5133 9.03576 11.4512 9.22715 11.4947 9.40952L12.4234 13.3028C12.5265 13.7354 12.0559 14.0773 11.6764 13.8455L8.26063 11.7592C8.10062 11.6615 7.89938 11.6615 7.73937 11.7592L4.32363 13.8455C3.94408 14.0773 3.47345 13.7354 3.57665 13.3028L4.50534 9.40952C4.54884 9.22715 4.48665 9.03576 4.34426 8.91378L1.30453 6.30993C0.966758 6.02059 1.14652 5.46734 1.58985 5.4318L5.57955 5.11194C5.76645 5.09696 5.92925 4.97868 6.00126 4.80556L7.53834 1.10997Z",fill:"currentColor"}))};return d.displayName="Favorite",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=Favorite.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Favorite.js","sources":["../src/glyphCommon.ts","../src/generated/Favorite.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 8486f07d17607e81637b3ea7cdd67e63\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 FavoriteProps extends LGGlyph.ComponentProps {}\n\nconst Favorite = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FavoriteProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Favorite', {\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=\"M7.53834 1.10997C7.70914 0.699319 8.29086 0.699318 8.46166 1.10996L9.99874 4.80556C10.0707 4.97868 10.2336 5.09696 10.4204 5.11194L14.4102 5.4318C14.8535 5.46734 15.0332 6.02059 14.6955 6.30993L11.6557 8.91378C11.5133 9.03576 11.4512 9.22715 11.4947 9.40952L12.4234 13.3028C12.5265 13.7354 12.0559 14.0773 11.6764 13.8455L8.26063 11.7592C8.10062 11.6615 7.89938 11.6615 7.73937 11.7592L4.32363 13.8455C3.94408 14.0773 3.47345 13.7354 3.57665 13.3028L4.50534 9.40952C4.54884 9.22715 4.48665 9.03576 4.34426 8.91378L1.30453 6.30993C0.966758 6.02059 1.14652 5.46734 1.58985 5.4318L5.57955 5.11194C5.76645 5.09696 5.92925 4.97868 6.00126 4.80556L7.53834 1.10997Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFavorite.displayName = 'Favorite';\nFavorite.isGlyph = true;\nFavorite.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Favorite;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Favorite","_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":"y2CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAW,SAAkBC,GAC/B,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,YAEjDW,EAF8DpB,EAAwB,CACvFI,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,qpBACH1B,KAAM,0BAIVT,EAASoC,YAAc,WACvBpC,EAASqC,SAAU,EACnBrC,EAASsC,UAAY,CACnB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"Favorite.js","sources":["../src/glyphCommon.ts","../src/generated/Favorite.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 8486f07d17607e81637b3ea7cdd67e63\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 FavoriteProps extends LGGlyph.ComponentProps {}\n\nconst Favorite = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FavoriteProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Favorite', {\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=\"M7.53834 1.10997C7.70914 0.699319 8.29086 0.699318 8.46166 1.10996L9.99874 4.80556C10.0707 4.97868 10.2336 5.09696 10.4204 5.11194L14.4102 5.4318C14.8535 5.46734 15.0332 6.02059 14.6955 6.30993L11.6557 8.91378C11.5133 9.03576 11.4512 9.22715 11.4947 9.40952L12.4234 13.3028C12.5265 13.7354 12.0559 14.0773 11.6764 13.8455L8.26063 11.7592C8.10062 11.6615 7.89938 11.6615 7.73937 11.7592L4.32363 13.8455C3.94408 14.0773 3.47345 13.7354 3.57665 13.3028L4.50534 9.40952C4.54884 9.22715 4.48665 9.03576 4.34426 8.91378L1.30453 6.30993C0.966758 6.02059 1.14652 5.46734 1.58985 5.4318L5.57955 5.11194C5.76645 5.09696 5.92925 4.97868 6.00126 4.80556L7.53834 1.10997Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFavorite.displayName = 'Favorite';\nFavorite.isGlyph = true;\nFavorite.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Favorite;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Favorite","_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":"02CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAW,SAAkBC,GAC/B,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,YAEjDW,EAF8DpB,EAAwB,CACvFI,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,qpBACHzB,KAAM,0BAIVT,EAASmC,YAAc,WACvBnC,EAASoC,SAAU,EACnBpC,EAASqC,UAAY,CACnB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
package/dist/File.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).File=e.File||{},e.File.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 i=a(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 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={},i=Object.keys(e);for(l=0;l<i.length;l++)t=i[l],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)t=i[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,i=e.size,d=void 0===i?16:i,y=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),x=t.css(s||(s=f(["\n color: ",";\n "])),h),C=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var l,a,i=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return i||o||u?(n(l={},"aria-labelledby",o),n(l,"aria-label",i),n(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:""}}}(j,"File",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(n({},x,null!=h),C,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:j},w,O,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M3 13V7H7.5C8.32843 7 9 6.32843 9 5.5V1H11C12.1046 1 13 1.89543 13 3V8.98388C13 8.98924 13 9 13 9V13C13 14.1046 12.1046 15 11 15H5C3.89543 15 3 14.1046 3 13Z",fill:"currentColor"}),l.jsx("path",{d:"M7.83333 1H6.91421C6.649 1 6.39464 1.10536 6.20711 1.29289L3.29289 4.20711C3.10536 4.39464 3 4.649 3 4.91421V5.83333H6.83333C7.38562 5.83333 7.83333 5.38562 7.83333 4.83333V1Z",fill:"currentColor"}))};return d.displayName="File",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).File=e.File||{},e.File.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 i=a(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 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={},i=Object.keys(e);for(l=0;l<i.length;l++)t=i[l],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)t=i[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,i=e.size,d=void 0===i?16:i,y=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),x=t.css(s||(s=f(["\n color: ",";\n "])),h),C=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var l,a,i=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return i||o||u?(n(l={},"aria-labelledby",o),n(l,"aria-label",i),n(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:""}}}(j,"File",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(n({},x,null!=h),C,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:j},w,O,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M3 13V7H7.5C8.32843 7 9 6.32843 9 5.5V1H11C12.1046 1 13 1.89543 13 3V8.98388C13 8.98924 13 9 13 9V13C13 14.1046 12.1046 15 11 15H5C3.89543 15 3 14.1046 3 13Z",fill:"currentColor"}),l.jsx("path",{d:"M7.83333 1H6.91421C6.649 1 6.39464 1.10536 6.20711 1.29289L3.29289 4.20711C3.10536 4.39464 3 4.649 3 4.91421V5.83333H6.83333C7.38562 5.83333 7.83333 5.38562 7.83333 4.83333V1Z",fill:"currentColor"}))};return d.displayName="File",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=File.js.map
package/dist/File.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"File.js","sources":["../src/glyphCommon.ts","../src/generated/File.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 2b38a52b79fa809d08fefb502477eb03\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 FileProps extends LGGlyph.ComponentProps {}\n\nconst File = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FileProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'File', {\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 13V7H7.5C8.32843 7 9 6.32843 9 5.5V1H11C12.1046 1 13 1.89543 13 3V8.98388C13 8.98924 13 9 13 9V13C13 14.1046 12.1046 15 11 15H5C3.89543 15 3 14.1046 3 13Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M7.83333 1H6.91421C6.649 1 6.39464 1.10536 6.20711 1.29289L3.29289 4.20711C3.10536 4.39464 3 4.649 3 4.91421V5.83333H6.83333C7.38562 5.83333 7.83333 5.38562 7.83333 4.83333V1Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFile.displayName = 'File';\nFile.isGlyph = true;\nFile.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default File;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","File","_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":"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,EAAG,gKACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,kLACH1B,KAAM,0BAIVT,EAAKoC,YAAc,OACnBpC,EAAKqC,SAAU,EACfrC,EAAKsC,UAAY,CACf7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"File.js","sources":["../src/glyphCommon.ts","../src/generated/File.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 2b38a52b79fa809d08fefb502477eb03\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 FileProps extends LGGlyph.ComponentProps {}\n\nconst File = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FileProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'File', {\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 13V7H7.5C8.32843 7 9 6.32843 9 5.5V1H11C12.1046 1 13 1.89543 13 3V8.98388C13 8.98924 13 9 13 9V13C13 14.1046 12.1046 15 11 15H5C3.89543 15 3 14.1046 3 13Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M7.83333 1H6.91421C6.649 1 6.39464 1.10536 6.20711 1.29289L3.29289 4.20711C3.10536 4.39464 3 4.649 3 4.91421V5.83333H6.83333C7.38562 5.83333 7.83333 5.38562 7.83333 4.83333V1Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFile.displayName = 'File';\nFile.isGlyph = true;\nFile.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default File;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","File","_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":"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,EAAG,gKACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,kLACHzB,KAAM,0BAIVT,EAAKmC,YAAc,OACnBnC,EAAKoC,SAAU,EACfpC,EAAKqC,UAAY,CACf5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}
package/dist/Filter.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).Filter=e.Filter||{},e.Filter.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 i=a(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 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={},i=Object.keys(e);for(l=0;l<i.length;l++)t=i[l],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)t=i[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 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,i=e.size,d=void 0===i?16:i,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(c||(c=f(["\n color: ",";\n "])),v),w=t.css(s||(s=f(["\n flex-shrink: 0;\n "]))),z=function(e,r,t){var l,a,i=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return i||o||u?(n(l={},"aria-labelledby",o),n(l,"aria-label",i),n(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,"Filter",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(n({},x,null!=v),w,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},z,j,{viewBox:"0 0 16 16"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 6.14834L2.19955 2.20776C1.79746 1.79085 2.04373 1 2.57564 1H13.4244C13.9563 1 14.2025 1.79085 13.8005 2.20776L10 6.14834V11.7731C10 11.9173 9.93776 12.0545 9.82925 12.1494L6.82925 14.7744C6.50596 15.0573 6 14.8277 6 14.3981V6.14834Z",fill:"currentColor"}))};return d.displayName="Filter",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).Filter=e.Filter||{},e.Filter.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 i=a(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 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={},i=Object.keys(e);for(l=0;l<i.length;l++)t=i[l],r.indexOf(t)>=0||(a[t]=e[t]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(l=0;l<i.length;l++)t=i[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 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,i=e.size,d=void 0===i?16:i,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(c||(c=f(["\n color: ",";\n "])),v),w=t.css(s||(s=f(["\n flex-shrink: 0;\n "]))),z=function(e,r,t){var l,a,i=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return i||o||u?(n(l={},"aria-labelledby",o),n(l,"aria-label",i),n(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,"Filter",(n(r={title:y},"aria-label",m),n(r,"aria-labelledby",g),r));return l.jsx("svg",o({className:t.cx(n({},x,null!=v),w,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:O},z,j,{viewBox:"0 0 16 16"}),l.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M6 6.14834L2.19955 2.20776C1.79746 1.79085 2.04373 1 2.57564 1H13.4244C13.9563 1 14.2025 1.79085 13.8005 2.20776L10 6.14834V11.7731C10 11.9173 9.93776 12.0545 9.82925 12.1494L6.82925 14.7744C6.50596 15.0573 6 14.8277 6 14.3981V6.14834Z",fill:"currentColor"}))};return d.displayName="Filter",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=Filter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Filter.js","sources":["../src/glyphCommon.ts","../src/generated/Filter.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 6706d025fccdb6cd5532ff21c9fe69c5\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 FilterProps extends LGGlyph.ComponentProps {}\n\nconst Filter = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FilterProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Filter', {\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=\"M6 6.14834L2.19955 2.20776C1.79746 1.79085 2.04373 1 2.57564 1H13.4244C13.9563 1 14.2025 1.79085 13.8005 2.20776L10 6.14834V11.7731C10 11.9173 9.93776 12.0545 9.82925 12.1494L6.82925 14.7744C6.50596 15.0573 6 14.8277 6 14.3981V6.14834Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFilter.displayName = 'Filter';\nFilter.isGlyph = true;\nFilter.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Filter;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Filter","_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,8OACH5B,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":"Filter.js","sources":["../src/glyphCommon.ts","../src/generated/Filter.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 6706d025fccdb6cd5532ff21c9fe69c5\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 FilterProps extends LGGlyph.ComponentProps {}\n\nconst Filter = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FilterProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Filter', {\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=\"M6 6.14834L2.19955 2.20776C1.79746 1.79085 2.04373 1 2.57564 1H13.4244C13.9563 1 14.2025 1.79085 13.8005 2.20776L10 6.14834V11.7731C10 11.9173 9.93776 12.0545 9.82925 12.1494L6.82925 14.7744C6.50596 15.0573 6 14.8277 6 14.3981V6.14834Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFilter.displayName = 'Filter';\nFilter.isGlyph = true;\nFilter.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Filter;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Filter","_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,8OACH3B,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/Folder.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).Folder=e.Folder||{},e.Folder.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,b={small:14,default:16,large:20,xlarge:24};var d=["className","size","title","aria-label","aria-labelledby","fill","role"],p=function(e){var r,a=e.className,n=e.size,p=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,d),x=t.css(s||(s=f(["\n color: ",";\n "])),v),w=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),C=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,"Folder",(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 p?p:b[p],width:"number"==typeof p?p:b[p],role:O},C,j,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M2 1C1.44772 1 1 1.44772 1 2V12C1 12.5523 1.44772 13 2 13H14C14.5523 13 15 12.5523 15 12V4C15 3.44772 14.5523 3 14 3H8C7.44772 3 7 2.55228 7 2C7 1.44772 6.55228 1 6 1H2Z",fill:"currentColor"}))};return p.displayName="Folder",p.isGlyph=!0,p.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},p}));
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).Folder=e.Folder||{},e.Folder.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,b={small:14,default:16,large:20,xlarge:24};var d=["className","size","title","aria-label","aria-labelledby","fill","role"],p=function(e){var r,a=e.className,n=e.size,p=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,d),x=t.css(s||(s=f(["\n color: ",";\n "])),v),w=t.css(c||(c=f(["\n flex-shrink: 0;\n "]))),C=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,"Folder",(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 p?p:b[p],width:"number"==typeof p?p:b[p],role:O},C,j,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M2 2C1.44772 2 1 2.44772 1 3V13C1 13.5523 1.44772 14 2 14H14C14.5523 14 15 13.5523 15 13V5C15 4.44772 14.5523 4 14 4H8C7.44772 4 7 3.55228 7 3C7 2.44772 6.55228 2 6 2H2Z",fill:"currentColor"}))};return p.displayName="Folder",p.isGlyph=!0,p.propTypes={fill:n.default.string,size:n.default.oneOfType([n.default.number,n.default.string]),className:n.default.string},p}));
2
2
  //# sourceMappingURL=Folder.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Folder.js","sources":["../src/glyphCommon.ts","../src/generated/Folder.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 252783398afac591317ac483bbfcf384\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 FolderProps extends LGGlyph.ComponentProps {}\n\nconst Folder = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FolderProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Folder', {\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 1C1.44772 1 1 1.44772 1 2V12C1 12.5523 1.44772 13 2 13H14C14.5523 13 15 12.5523 15 12V4C15 3.44772 14.5523 3 14 3H8C7.44772 3 7 2.55228 7 2C7 1.44772 6.55228 1 6 1H2Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFolder.displayName = 'Folder';\nFolder.isGlyph = true;\nFolder.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Folder;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Folder","_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":"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,EAAG,4KACH1B,KAAM,0BAIVT,EAAOoC,YAAc,SACrBpC,EAAOqC,SAAU,EACjBrC,EAAOsC,UAAY,CACjB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"Folder.js","sources":["../src/glyphCommon.ts","../src/generated/Folder.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 2a9ff3a6b8b82526ffa33853f432f626\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 FolderProps extends LGGlyph.ComponentProps {}\n\nconst Folder = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FolderProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Folder', {\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 2C1.44772 2 1 2.44772 1 3V13C1 13.5523 1.44772 14 2 14H14C14.5523 14 15 13.5523 15 13V5C15 4.44772 14.5523 4 14 4H8C7.44772 4 7 3.55228 7 3C7 2.44772 6.55228 2 6 2H2Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFolder.displayName = 'Folder';\nFolder.isGlyph = true;\nFolder.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default Folder;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Folder","_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":"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,EAAG,4KACHzB,KAAM,0BAIVT,EAAOmC,YAAc,SACrBnC,EAAOoC,SAAU,EACjBpC,EAAOqC,UAAY,CACjB5B,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).FullScreenEnter=e.FullScreenEnter||{},e.FullScreenEnter.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,l){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(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,n=function(e,r){if(null==e)return{};var t,l,n={},a=Object.keys(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function c(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var f,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,n=e.className,a=e.size,d=void 0===a?16:a,y=e.title,C=e["aria-label"],m=e["aria-labelledby"],g=e.fill,h=e.role,j=void 0===h?"img":h,v=u(e,b),O=t.css(f||(f=c(["\n color: ",";\n "])),g),x=t.css(s||(s=c(["\n flex-shrink: 0;\n "]))),H=function(e,r,t){var l,n,a=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return a||o||u?(i(l={},"aria-labelledby",o),i(l,"aria-label",a),i(l,"title",u),l):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(j,"FullScreenEnter",(i(r={title:y},"aria-label",C),i(r,"aria-labelledby",m),r));return l.jsx("svg",o({className:t.cx(i({},O,null!=g),x,n),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:j},H,v,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M1.5 2C1.22386 2 1 2.22386 1 2.5V6.5C1 6.77614 1.22386 7 1.5 7H2.5C2.77614 7 3 6.77614 3 6.5V4.5C3 4.22386 3.22386 4 3.5 4H5.5C5.77614 4 6 3.77614 6 3.5V2.5C6 2.22386 5.77614 2 5.5 2H1.5Z",fill:"currentColor"}),l.jsx("path",{d:"M15 2.5C15 2.22386 14.7761 2 14.5 2H10.5C10.2239 2 10 2.22386 10 2.5V3.5C10 3.77614 10.2239 4 10.5 4L12.5 4C12.7761 4 13 4.22386 13 4.5V6.5C13 6.77614 13.2239 7 13.5 7H14.5C14.7761 7 15 6.77614 15 6.5V2.5Z",fill:"currentColor"}),l.jsx("path",{d:"M1.5 14C1.22386 14 1 13.7761 1 13.5V9.5C1 9.22386 1.22386 9 1.5 9H2.5C2.77614 9 3 9.22386 3 9.5L3 11.5C3 11.7761 3.22386 12 3.5 12H5.5C5.77614 12 6 12.2239 6 12.5V13.5C6 13.7761 5.77614 14 5.5 14H1.5Z",fill:"currentColor"}),l.jsx("path",{d:"M14.5 14C14.7761 14 15 13.7761 15 13.5V9.5C15 9.22386 14.7761 9 14.5 9H13.5C13.2239 9 13 9.22386 13 9.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 12.2239 10 12.5V13.5C10 13.7761 10.2239 14 10.5 14H14.5Z",fill:"currentColor"}))};return d.displayName="FullScreenEnter",d.isGlyph=!0,d.propTypes={fill:a.default.string,size:a.default.oneOfType([a.default.number,a.default.string]),className:a.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).FullScreenEnter=e.FullScreenEnter||{},e.FullScreenEnter.js=r(e.React,e.PropTypes,e["@leafygreen-ui/emotion"],e.react))}(this,(function(e,r,t,l){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var a=n(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,n=function(e,r){if(null==e)return{};var t,l,n={},a=Object.keys(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||(n[t]=e[t]);return n}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],r.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}function c(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var f,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,n=e.className,a=e.size,d=void 0===a?16:a,y=e.title,C=e["aria-label"],m=e["aria-labelledby"],g=e.fill,h=e.role,j=void 0===h?"img":h,v=u(e,b),O=t.css(f||(f=c(["\n color: ",";\n "])),g),x=t.css(s||(s=c(["\n flex-shrink: 0;\n "]))),H=function(e,r,t){var l,n,a=t["aria-label"],o=t["aria-labelledby"],u=t.title;switch(e){case"img":return a||o||u?(i(l={},"aria-labelledby",o),i(l,"aria-label",a),i(l,"title",u),l):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(j,"FullScreenEnter",(i(r={title:y},"aria-label",C),i(r,"aria-labelledby",m),r));return l.jsx("svg",o({className:t.cx(i({},O,null!=g),x,n),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:j},H,v,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M1.5 2C1.22386 2 1 2.22386 1 2.5V6.5C1 6.77614 1.22386 7 1.5 7H2.5C2.77614 7 3 6.77614 3 6.5V4.5C3 4.22386 3.22386 4 3.5 4H5.5C5.77614 4 6 3.77614 6 3.5V2.5C6 2.22386 5.77614 2 5.5 2H1.5Z",fill:"currentColor"}),l.jsx("path",{d:"M15 2.5C15 2.22386 14.7761 2 14.5 2H10.5C10.2239 2 10 2.22386 10 2.5V3.5C10 3.77614 10.2239 4 10.5 4L12.5 4C12.7761 4 13 4.22386 13 4.5V6.5C13 6.77614 13.2239 7 13.5 7H14.5C14.7761 7 15 6.77614 15 6.5V2.5Z",fill:"currentColor"}),l.jsx("path",{d:"M1.5 14C1.22386 14 1 13.7761 1 13.5V9.5C1 9.22386 1.22386 9 1.5 9H2.5C2.77614 9 3 9.22386 3 9.5L3 11.5C3 11.7761 3.22386 12 3.5 12H5.5C5.77614 12 6 12.2239 6 12.5V13.5C6 13.7761 5.77614 14 5.5 14H1.5Z",fill:"currentColor"}),l.jsx("path",{d:"M14.5 14C14.7761 14 15 13.7761 15 13.5V9.5C15 9.22386 14.7761 9 14.5 9H13.5C13.2239 9 13 9.22386 13 9.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 12.2239 10 12.5V13.5C10 13.7761 10.2239 14 10.5 14H14.5Z",fill:"currentColor"}))};return d.displayName="FullScreenEnter",d.isGlyph=!0,d.propTypes={fill:a.default.string,size:a.default.oneOfType([a.default.number,a.default.string]),className:a.default.string},d}));
2
2
  //# sourceMappingURL=FullScreenEnter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenEnter.js","sources":["../src/glyphCommon.ts","../src/generated/FullScreenEnter.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 605a9aa74ff6a15c2d5e5b887b8b2d92\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 FullScreenEnterProps extends LGGlyph.ComponentProps {}\n\nconst FullScreenEnter = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FullScreenEnterProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'FullScreenEnter', {\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=\"M1.5 2C1.22386 2 1 2.22386 1 2.5V6.5C1 6.77614 1.22386 7 1.5 7H2.5C2.77614 7 3 6.77614 3 6.5V4.5C3 4.22386 3.22386 4 3.5 4H5.5C5.77614 4 6 3.77614 6 3.5V2.5C6 2.22386 5.77614 2 5.5 2H1.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M15 2.5C15 2.22386 14.7761 2 14.5 2H10.5C10.2239 2 10 2.22386 10 2.5V3.5C10 3.77614 10.2239 4 10.5 4L12.5 4C12.7761 4 13 4.22386 13 4.5V6.5C13 6.77614 13.2239 7 13.5 7H14.5C14.7761 7 15 6.77614 15 6.5V2.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M1.5 14C1.22386 14 1 13.7761 1 13.5V9.5C1 9.22386 1.22386 9 1.5 9H2.5C2.77614 9 3 9.22386 3 9.5L3 11.5C3 11.7761 3.22386 12 3.5 12H5.5C5.77614 12 6 12.2239 6 12.5V13.5C6 13.7761 5.77614 14 5.5 14H1.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M14.5 14C14.7761 14 15 13.7761 15 13.5V9.5C15 9.22386 14.7761 9 14.5 9H13.5C13.2239 9 13 9.22386 13 9.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 12.2239 10 12.5V13.5C10 13.7761 10.2239 14 10.5 14H14.5Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFullScreenEnter.displayName = 'FullScreenEnter';\nFullScreenEnter.isGlyph = true;\nFullScreenEnter.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default FullScreenEnter;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","FullScreenEnter","_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":"83CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAkB,SAAyBC,GAC7C,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,mBAEjDW,EAFqEpB,EAAwB,CAC9FI,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,8LACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,gNACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,2MACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,yNACH1B,KAAM,0BAIVT,EAAgBoC,YAAc,kBAC9BpC,EAAgBqC,SAAU,EAC1BrC,EAAgBsC,UAAY,CAC1B7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"FullScreenEnter.js","sources":["../src/glyphCommon.ts","../src/generated/FullScreenEnter.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 605a9aa74ff6a15c2d5e5b887b8b2d92\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 FullScreenEnterProps extends LGGlyph.ComponentProps {}\n\nconst FullScreenEnter = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FullScreenEnterProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'FullScreenEnter', {\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=\"M1.5 2C1.22386 2 1 2.22386 1 2.5V6.5C1 6.77614 1.22386 7 1.5 7H2.5C2.77614 7 3 6.77614 3 6.5V4.5C3 4.22386 3.22386 4 3.5 4H5.5C5.77614 4 6 3.77614 6 3.5V2.5C6 2.22386 5.77614 2 5.5 2H1.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M15 2.5C15 2.22386 14.7761 2 14.5 2H10.5C10.2239 2 10 2.22386 10 2.5V3.5C10 3.77614 10.2239 4 10.5 4L12.5 4C12.7761 4 13 4.22386 13 4.5V6.5C13 6.77614 13.2239 7 13.5 7H14.5C14.7761 7 15 6.77614 15 6.5V2.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M1.5 14C1.22386 14 1 13.7761 1 13.5V9.5C1 9.22386 1.22386 9 1.5 9H2.5C2.77614 9 3 9.22386 3 9.5L3 11.5C3 11.7761 3.22386 12 3.5 12H5.5C5.77614 12 6 12.2239 6 12.5V13.5C6 13.7761 5.77614 14 5.5 14H1.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M14.5 14C14.7761 14 15 13.7761 15 13.5V9.5C15 9.22386 14.7761 9 14.5 9H13.5C13.2239 9 13 9.22386 13 9.5V11.5C13 11.7761 12.7761 12 12.5 12H10.5C10.2239 12 10 12.2239 10 12.5V13.5C10 13.7761 10.2239 14 10.5 14H14.5Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFullScreenEnter.displayName = 'FullScreenEnter';\nFullScreenEnter.isGlyph = true;\nFullScreenEnter.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default FullScreenEnter;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","FullScreenEnter","_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":"+3CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAkB,SAAyBC,GAC7C,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,mBAEjDW,EAFqEpB,EAAwB,CAC9FI,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,8LACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,gNACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,2MACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,yNACHzB,KAAM,0BAIVT,EAAgBmC,YAAc,kBAC9BnC,EAAgBoC,SAAU,EAC1BpC,EAAgBqC,UAAY,CAC1B5B,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).FullScreenExit=e.FullScreenExit||{},e.FullScreenExit.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 c(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var f,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,C=e["aria-label"],m=e["aria-labelledby"],g=e.fill,h=e.role,j=void 0===h?"img":h,x=u(e,b),v=t.css(f||(f=c(["\n color: ",";\n "])),g),O=t.css(s||(s=c(["\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:""}}}(j,"FullScreenExit",(i(r={title:y},"aria-label",C),i(r,"aria-labelledby",m),r));return l.jsx("svg",o({className:t.cx(i({},v,null!=g),O,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:j},H,x,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M10.5 7C10.2239 7 10 6.77614 10 6.5V2.5C10 2.22386 10.2239 2 10.5 2H11.5C11.7761 2 12 2.22386 12 2.5V4.5C12 4.77614 12.2239 5 12.5 5L14.5 5C14.7761 5 15 5.22386 15 5.5V6.5C15 6.77614 14.7761 7 14.5 7H10.5Z",fill:"currentColor"}),l.jsx("path",{d:"M6 9.5C6 9.22386 5.77614 9 5.5 9H1.5C1.22386 9 1 9.22386 1 9.5V10.5C1 10.7761 1.22386 11 1.5 11H3.5C3.77614 11 4 11.2239 4 11.5L4 13.5C4 13.7761 4.22386 14 4.5 14H5.5C5.77614 14 6 13.7761 6 13.5V9.5Z",fill:"currentColor"}),l.jsx("path",{d:"M10.5 9C10.2239 9 10 9.22386 10 9.5V13.5C10 13.7761 10.2239 14 10.5 14H11.5C11.7761 14 12 13.7761 12 13.5V11.5C12 11.2239 12.2239 11 12.5 11H14.5C14.7761 11 15 10.7761 15 10.5V9.5C15 9.22386 14.7761 9 14.5 9H10.5Z",fill:"currentColor"}),l.jsx("path",{d:"M5.5 7C5.77614 7 6 6.77614 6 6.5L6 2.5C6 2.22386 5.77614 2 5.5 2H4.5C4.22386 2 4 2.22386 4 2.5L4 4.5C4 4.77614 3.77614 5 3.5 5L1.5 5C1.22386 5 1 5.22386 1 5.5V6.5C1 6.77614 1.22386 7 1.5 7L5.5 7Z",fill:"currentColor"}))};return d.displayName="FullScreenExit",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).FullScreenExit=e.FullScreenExit||{},e.FullScreenExit.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 c(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var f,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,C=e["aria-label"],m=e["aria-labelledby"],g=e.fill,h=e.role,j=void 0===h?"img":h,x=u(e,b),v=t.css(f||(f=c(["\n color: ",";\n "])),g),O=t.css(s||(s=c(["\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:""}}}(j,"FullScreenExit",(i(r={title:y},"aria-label",C),i(r,"aria-labelledby",m),r));return l.jsx("svg",o({className:t.cx(i({},v,null!=g),O,a),height:"number"==typeof d?d:p[d],width:"number"==typeof d?d:p[d],role:j},H,x,{viewBox:"0 0 16 16"}),l.jsx("path",{d:"M10.5 7C10.2239 7 10 6.77614 10 6.5V2.5C10 2.22386 10.2239 2 10.5 2H11.5C11.7761 2 12 2.22386 12 2.5V4.5C12 4.77614 12.2239 5 12.5 5L14.5 5C14.7761 5 15 5.22386 15 5.5V6.5C15 6.77614 14.7761 7 14.5 7H10.5Z",fill:"currentColor"}),l.jsx("path",{d:"M6 9.5C6 9.22386 5.77614 9 5.5 9H1.5C1.22386 9 1 9.22386 1 9.5V10.5C1 10.7761 1.22386 11 1.5 11H3.5C3.77614 11 4 11.2239 4 11.5L4 13.5C4 13.7761 4.22386 14 4.5 14H5.5C5.77614 14 6 13.7761 6 13.5V9.5Z",fill:"currentColor"}),l.jsx("path",{d:"M10.5 9C10.2239 9 10 9.22386 10 9.5V13.5C10 13.7761 10.2239 14 10.5 14H11.5C11.7761 14 12 13.7761 12 13.5V11.5C12 11.2239 12.2239 11 12.5 11H14.5C14.7761 11 15 10.7761 15 10.5V9.5C15 9.22386 14.7761 9 14.5 9H10.5Z",fill:"currentColor"}),l.jsx("path",{d:"M5.5 7C5.77614 7 6 6.77614 6 6.5L6 2.5C6 2.22386 5.77614 2 5.5 2H4.5C4.22386 2 4 2.22386 4 2.5L4 4.5C4 4.77614 3.77614 5 3.5 5L1.5 5C1.22386 5 1 5.22386 1 5.5V6.5C1 6.77614 1.22386 7 1.5 7L5.5 7Z",fill:"currentColor"}))};return d.displayName="FullScreenExit",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=FullScreenExit.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"FullScreenExit.js","sources":["../src/glyphCommon.ts","../src/generated/FullScreenExit.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 5e88a5ac54a464677699457210ffd8fb\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 FullScreenExitProps extends LGGlyph.ComponentProps {}\n\nconst FullScreenExit = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FullScreenExitProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'FullScreenExit', {\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=\"M10.5 7C10.2239 7 10 6.77614 10 6.5V2.5C10 2.22386 10.2239 2 10.5 2H11.5C11.7761 2 12 2.22386 12 2.5V4.5C12 4.77614 12.2239 5 12.5 5L14.5 5C14.7761 5 15 5.22386 15 5.5V6.5C15 6.77614 14.7761 7 14.5 7H10.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M6 9.5C6 9.22386 5.77614 9 5.5 9H1.5C1.22386 9 1 9.22386 1 9.5V10.5C1 10.7761 1.22386 11 1.5 11H3.5C3.77614 11 4 11.2239 4 11.5L4 13.5C4 13.7761 4.22386 14 4.5 14H5.5C5.77614 14 6 13.7761 6 13.5V9.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M10.5 9C10.2239 9 10 9.22386 10 9.5V13.5C10 13.7761 10.2239 14 10.5 14H11.5C11.7761 14 12 13.7761 12 13.5V11.5C12 11.2239 12.2239 11 12.5 11H14.5C14.7761 11 15 10.7761 15 10.5V9.5C15 9.22386 14.7761 9 14.5 9H10.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M5.5 7C5.77614 7 6 6.77614 6 6.5L6 2.5C6 2.22386 5.77614 2 5.5 2H4.5C4.22386 2 4 2.22386 4 2.5L4 4.5C4 4.77614 3.77614 5 3.5 5L1.5 5C1.22386 5 1 5.22386 1 5.5V6.5C1 6.77614 1.22386 7 1.5 7L5.5 7Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFullScreenExit.displayName = 'FullScreenExit';\nFullScreenExit.isGlyph = true;\nFullScreenExit.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default FullScreenExit;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","FullScreenExit","_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":"23CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAiB,SAAwBC,GAC3C,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,kBAEjDW,EAFoEpB,EAAwB,CAC7FI,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,gNACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,0MACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,wNACH1B,KAAM,iBACJoB,MAAc,OAAQ,CACxBM,EAAG,sMACH1B,KAAM,0BAIVT,EAAeoC,YAAc,iBAC7BpC,EAAeqC,SAAU,EACzBrC,EAAesC,UAAY,CACzB7B,KAAM8B,UAAUC,OAChBnC,KAAMkC,UAAUE,UAAU,CAACF,UAAUG,OAAQH,UAAUC,SACvDrC,UAAWoC,UAAUC"}
1
+ {"version":3,"file":"FullScreenExit.js","sources":["../src/glyphCommon.ts","../src/generated/FullScreenExit.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 5e88a5ac54a464677699457210ffd8fb\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 FullScreenExitProps extends LGGlyph.ComponentProps {}\n\nconst FullScreenExit = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: FullScreenExitProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'FullScreenExit', {\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=\"M10.5 7C10.2239 7 10 6.77614 10 6.5V2.5C10 2.22386 10.2239 2 10.5 2H11.5C11.7761 2 12 2.22386 12 2.5V4.5C12 4.77614 12.2239 5 12.5 5L14.5 5C14.7761 5 15 5.22386 15 5.5V6.5C15 6.77614 14.7761 7 14.5 7H10.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M6 9.5C6 9.22386 5.77614 9 5.5 9H1.5C1.22386 9 1 9.22386 1 9.5V10.5C1 10.7761 1.22386 11 1.5 11H3.5C3.77614 11 4 11.2239 4 11.5L4 13.5C4 13.7761 4.22386 14 4.5 14H5.5C5.77614 14 6 13.7761 6 13.5V9.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M10.5 9C10.2239 9 10 9.22386 10 9.5V13.5C10 13.7761 10.2239 14 10.5 14H11.5C11.7761 14 12 13.7761 12 13.5V11.5C12 11.2239 12.2239 11 12.5 11H14.5C14.7761 11 15 10.7761 15 10.5V9.5C15 9.22386 14.7761 9 14.5 9H10.5Z\"\n fill={'currentColor'}\n />\n <path\n d=\"M5.5 7C5.77614 7 6 6.77614 6 6.5L6 2.5C6 2.22386 5.77614 2 5.5 2H4.5C4.22386 2 4 2.22386 4 2.5L4 4.5C4 4.77614 3.77614 5 3.5 5L1.5 5C1.22386 5 1 5.22386 1 5.5V6.5C1 6.77614 1.22386 7 1.5 7L5.5 7Z\"\n fill={'currentColor'}\n />\n </svg>\n );\n};\n\nFullScreenExit.displayName = 'FullScreenExit';\nFullScreenExit.isGlyph = true;\nFullScreenExit.propTypes = {\n fill: PropTypes.string,\n size: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n className: PropTypes.string,\n};\nexport default FullScreenExit;\n"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","FullScreenExit","_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":"43CAOO,ICFHA,EAAiBC,EDEVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICJV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAcpFC,EAAiB,SAAwBC,GAC3C,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,kBAEjDW,EAFoEpB,EAAwB,CAC7FI,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,gNACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,0MACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,wNACHzB,KAAM,iBACJkB,EAAaC,IAAC,OAAQ,CACxBM,EAAG,sMACHzB,KAAM,0BAIVT,EAAemC,YAAc,iBAC7BnC,EAAeoC,SAAU,EACzBpC,EAAeqC,UAAY,CACzB5B,KAAM6B,EAAS,QAACC,OAChBlC,KAAMiC,EAAS,QAACE,UAAU,CAACF,EAAS,QAACG,OAAQH,EAAAA,QAAUC,SACvDpC,UAAWmC,EAAS,QAACC"}