@leafygreen-ui/icon 14.1.0 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (748) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/AIModel.js +2 -0
  3. package/dist/AIModel.js.map +1 -0
  4. package/dist/ActivityFeed.js +1 -1
  5. package/dist/ActivityFeed.js.map +1 -1
  6. package/dist/AddFile.js +1 -1
  7. package/dist/AddFile.js.map +1 -1
  8. package/dist/AllProducts.js +1 -1
  9. package/dist/AllProducts.js.map +1 -1
  10. package/dist/AnalyticsNode.js +1 -1
  11. package/dist/AnalyticsNode.js.map +1 -1
  12. package/dist/Apps.js +1 -1
  13. package/dist/Apps.js.map +1 -1
  14. package/dist/Array.js +1 -1
  15. package/dist/Array.js.map +1 -1
  16. package/dist/ArrowDown.js +1 -1
  17. package/dist/ArrowDown.js.map +1 -1
  18. package/dist/ArrowLeft.js +1 -1
  19. package/dist/ArrowLeft.js.map +1 -1
  20. package/dist/ArrowRight.js +1 -1
  21. package/dist/ArrowRight.js.map +1 -1
  22. package/dist/ArrowUp.js +1 -1
  23. package/dist/ArrowUp.js.map +1 -1
  24. package/dist/Beaker.js +1 -1
  25. package/dist/Beaker.js.map +1 -1
  26. package/dist/Bell.js +1 -1
  27. package/dist/Bell.js.map +1 -1
  28. package/dist/Biometric.js +1 -1
  29. package/dist/Biometric.js.map +1 -1
  30. package/dist/Boolean.js +1 -1
  31. package/dist/Boolean.js.map +1 -1
  32. package/dist/Building.js +1 -1
  33. package/dist/Building.js.map +1 -1
  34. package/dist/Bulb.js +1 -1
  35. package/dist/Bulb.js.map +1 -1
  36. package/dist/Calendar.js +1 -1
  37. package/dist/Calendar.js.map +1 -1
  38. package/dist/Camera.js +1 -1
  39. package/dist/Camera.js.map +1 -1
  40. package/dist/Cap.js +1 -1
  41. package/dist/Cap.js.map +1 -1
  42. package/dist/CaretDown.js +1 -1
  43. package/dist/CaretDown.js.map +1 -1
  44. package/dist/CaretLeft.js +1 -1
  45. package/dist/CaretLeft.js.map +1 -1
  46. package/dist/CaretRight.js +1 -1
  47. package/dist/CaretRight.js.map +1 -1
  48. package/dist/CaretUp.js +1 -1
  49. package/dist/CaretUp.js.map +1 -1
  50. package/dist/ChartFilled.js +1 -1
  51. package/dist/ChartFilled.js.map +1 -1
  52. package/dist/Charts.js +1 -1
  53. package/dist/Charts.js.map +1 -1
  54. package/dist/Checkmark.js +1 -1
  55. package/dist/Checkmark.js.map +1 -1
  56. package/dist/CheckmarkWithCircle.js +1 -1
  57. package/dist/CheckmarkWithCircle.js.map +1 -1
  58. package/dist/ChevronDown.js +1 -1
  59. package/dist/ChevronDown.js.map +1 -1
  60. package/dist/ChevronLeft.js +1 -1
  61. package/dist/ChevronLeft.js.map +1 -1
  62. package/dist/ChevronRight.js +1 -1
  63. package/dist/ChevronRight.js.map +1 -1
  64. package/dist/ChevronUp.js +1 -1
  65. package/dist/ChevronUp.js.map +1 -1
  66. package/dist/Circle.js +1 -1
  67. package/dist/Circle.js.map +1 -1
  68. package/dist/Clock.js +1 -1
  69. package/dist/Clock.js.map +1 -1
  70. package/dist/ClockWithArrow.js +1 -1
  71. package/dist/ClockWithArrow.js.map +1 -1
  72. package/dist/Clone.js +1 -1
  73. package/dist/Clone.js.map +1 -1
  74. package/dist/Cloud.js +1 -1
  75. package/dist/Cloud.js.map +1 -1
  76. package/dist/Code.js +1 -1
  77. package/dist/Code.js.map +1 -1
  78. package/dist/CodeBlock.js +1 -1
  79. package/dist/CodeBlock.js.map +1 -1
  80. package/dist/Coin.js +1 -1
  81. package/dist/Coin.js.map +1 -1
  82. package/dist/Colon.js +1 -1
  83. package/dist/Colon.js.map +1 -1
  84. package/dist/Config.js +1 -1
  85. package/dist/Config.js.map +1 -1
  86. package/dist/Connect.js +1 -1
  87. package/dist/Connect.js.map +1 -1
  88. package/dist/Copy.js +1 -1
  89. package/dist/Copy.js.map +1 -1
  90. package/dist/CreditCard.js +1 -1
  91. package/dist/CreditCard.js.map +1 -1
  92. package/dist/CurlyBraces.js +1 -1
  93. package/dist/CurlyBraces.js.map +1 -1
  94. package/dist/Cursor.js +1 -1
  95. package/dist/Cursor.js.map +1 -1
  96. package/dist/Dashboard.js +1 -1
  97. package/dist/Dashboard.js.map +1 -1
  98. package/dist/Database.js +1 -1
  99. package/dist/Database.js.map +1 -1
  100. package/dist/Diagram.js +1 -1
  101. package/dist/Diagram.js.map +1 -1
  102. package/dist/Diagram2.js +1 -1
  103. package/dist/Diagram2.js.map +1 -1
  104. package/dist/Diagram3.js +1 -1
  105. package/dist/Diagram3.js.map +1 -1
  106. package/dist/Disconnect.js +1 -1
  107. package/dist/Disconnect.js.map +1 -1
  108. package/dist/Download.js +1 -1
  109. package/dist/Download.js.map +1 -1
  110. package/dist/Drag.js +1 -1
  111. package/dist/Drag.js.map +1 -1
  112. package/dist/Edit.js +1 -1
  113. package/dist/Edit.js.map +1 -1
  114. package/dist/Ellipsis.js +1 -1
  115. package/dist/Ellipsis.js.map +1 -1
  116. package/dist/Email.js +1 -1
  117. package/dist/Email.js.map +1 -1
  118. package/dist/EmptyDatabase.js +1 -1
  119. package/dist/EmptyDatabase.js.map +1 -1
  120. package/dist/EmptyFolder.js +1 -1
  121. package/dist/EmptyFolder.js.map +1 -1
  122. package/dist/Eraser.js +1 -1
  123. package/dist/Eraser.js.map +1 -1
  124. package/dist/Escalation.js +1 -1
  125. package/dist/Escalation.js.map +1 -1
  126. package/dist/Export.js +1 -1
  127. package/dist/Export.js.map +1 -1
  128. package/dist/Favorite.js +1 -1
  129. package/dist/Favorite.js.map +1 -1
  130. package/dist/Federation.js +1 -1
  131. package/dist/Federation.js.map +1 -1
  132. package/dist/File.js +1 -1
  133. package/dist/File.js.map +1 -1
  134. package/dist/Filter.js +1 -1
  135. package/dist/Filter.js.map +1 -1
  136. package/dist/Folder.js +1 -1
  137. package/dist/Folder.js.map +1 -1
  138. package/dist/Format.js +1 -1
  139. package/dist/Format.js.map +1 -1
  140. package/dist/FullScreenEnter.js +1 -1
  141. package/dist/FullScreenEnter.js.map +1 -1
  142. package/dist/FullScreenExit.js +1 -1
  143. package/dist/FullScreenExit.js.map +1 -1
  144. package/dist/Function.js +1 -1
  145. package/dist/Function.js.map +1 -1
  146. package/dist/Gauge.js +1 -1
  147. package/dist/Gauge.js.map +1 -1
  148. package/dist/GlobeAmericas.js +1 -1
  149. package/dist/GlobeAmericas.js.map +1 -1
  150. package/dist/GovernmentBuilding.js +1 -1
  151. package/dist/GovernmentBuilding.js.map +1 -1
  152. package/dist/Guide.js +1 -1
  153. package/dist/Guide.js.map +1 -1
  154. package/dist/Hash.js +1 -1
  155. package/dist/Hash.js.map +1 -1
  156. package/dist/HiddenSecondaryNode.js +1 -1
  157. package/dist/HiddenSecondaryNode.js.map +1 -1
  158. package/dist/Highlight.js +1 -1
  159. package/dist/Highlight.js.map +1 -1
  160. package/dist/Home.js +1 -1
  161. package/dist/Home.js.map +1 -1
  162. package/dist/HorizontalDrag.js +1 -1
  163. package/dist/HorizontalDrag.js.map +1 -1
  164. package/dist/Import.js +1 -1
  165. package/dist/Import.js.map +1 -1
  166. package/dist/ImportantWithCircle.js +1 -1
  167. package/dist/ImportantWithCircle.js.map +1 -1
  168. package/dist/InfoWithCircle.js +1 -1
  169. package/dist/InfoWithCircle.js.map +1 -1
  170. package/dist/InternalEmployee.js +1 -1
  171. package/dist/InternalEmployee.js.map +1 -1
  172. package/dist/InviteUser.js +1 -1
  173. package/dist/InviteUser.js.map +1 -1
  174. package/dist/Key.js +1 -1
  175. package/dist/Key.js.map +1 -1
  176. package/dist/Laptop.js +1 -1
  177. package/dist/Laptop.js.map +1 -1
  178. package/dist/LightningBolt.js +1 -1
  179. package/dist/LightningBolt.js.map +1 -1
  180. package/dist/Link.js +1 -1
  181. package/dist/Link.js.map +1 -1
  182. package/dist/List.js +1 -1
  183. package/dist/List.js.map +1 -1
  184. package/dist/Lock.js +1 -1
  185. package/dist/Lock.js.map +1 -1
  186. package/dist/LogIn.js +1 -1
  187. package/dist/LogIn.js.map +1 -1
  188. package/dist/LogOut.js +1 -1
  189. package/dist/LogOut.js.map +1 -1
  190. package/dist/MagnifyingGlass.js +1 -1
  191. package/dist/MagnifyingGlass.js.map +1 -1
  192. package/dist/Megaphone.js +1 -1
  193. package/dist/Megaphone.js.map +1 -1
  194. package/dist/Menu.js +1 -1
  195. package/dist/Menu.js.map +1 -1
  196. package/dist/Minus.js +1 -1
  197. package/dist/Minus.js.map +1 -1
  198. package/dist/Mobile.js +1 -1
  199. package/dist/Mobile.js.map +1 -1
  200. package/dist/Moon.js +1 -1
  201. package/dist/Moon.js.map +1 -1
  202. package/dist/MultiDirectionArrow.js +1 -1
  203. package/dist/MultiDirectionArrow.js.map +1 -1
  204. package/dist/MultiLayers.js +1 -1
  205. package/dist/MultiLayers.js.map +1 -1
  206. package/dist/NavCollapse.js +1 -1
  207. package/dist/NavCollapse.js.map +1 -1
  208. package/dist/NavExpand.js +1 -1
  209. package/dist/NavExpand.js.map +1 -1
  210. package/dist/NoFilter.js +1 -1
  211. package/dist/NoFilter.js.map +1 -1
  212. package/dist/NotAllowed.js +1 -1
  213. package/dist/NotAllowed.js.map +1 -1
  214. package/dist/Note.js +1 -1
  215. package/dist/Note.js.map +1 -1
  216. package/dist/NumberedList.js +1 -1
  217. package/dist/NumberedList.js.map +1 -1
  218. package/dist/OpenNewTab.js +1 -1
  219. package/dist/OpenNewTab.js.map +1 -1
  220. package/dist/OutlineFavorite.js +1 -1
  221. package/dist/OutlineFavorite.js.map +1 -1
  222. package/dist/Package.js +1 -1
  223. package/dist/Package.js.map +1 -1
  224. package/dist/Pause.js +1 -1
  225. package/dist/Pause.js.map +1 -1
  226. package/dist/Pending.js +1 -1
  227. package/dist/Pending.js.map +1 -1
  228. package/dist/Person.js +1 -1
  229. package/dist/Person.js.map +1 -1
  230. package/dist/PersonGroup.js +1 -1
  231. package/dist/PersonGroup.js.map +1 -1
  232. package/dist/PersonWithLock.js +1 -1
  233. package/dist/PersonWithLock.js.map +1 -1
  234. package/dist/Pin.js +1 -1
  235. package/dist/Pin.js.map +1 -1
  236. package/dist/Play.js +1 -1
  237. package/dist/Play.js.map +1 -1
  238. package/dist/Plus.js +1 -1
  239. package/dist/Plus.js.map +1 -1
  240. package/dist/PlusWithCircle.js +1 -1
  241. package/dist/PlusWithCircle.js.map +1 -1
  242. package/dist/Primary.js +1 -1
  243. package/dist/Primary.js.map +1 -1
  244. package/dist/Project.js +1 -1
  245. package/dist/Project.js.map +1 -1
  246. package/dist/QuestionMarkWithCircle.js +1 -1
  247. package/dist/QuestionMarkWithCircle.js.map +1 -1
  248. package/dist/Read.js +1 -1
  249. package/dist/Read.js.map +1 -1
  250. package/dist/Recommended.js +1 -1
  251. package/dist/Recommended.js.map +1 -1
  252. package/dist/Redo.js +1 -1
  253. package/dist/Redo.js.map +1 -1
  254. package/dist/Refresh.js +1 -1
  255. package/dist/Refresh.js.map +1 -1
  256. package/dist/Relationship.js +1 -1
  257. package/dist/Relationship.js.map +1 -1
  258. package/dist/ReplicaSet.js +1 -1
  259. package/dist/ReplicaSet.js.map +1 -1
  260. package/dist/Resize.js +1 -1
  261. package/dist/Resize.js.map +1 -1
  262. package/dist/Resource.js +1 -1
  263. package/dist/Resource.js.map +1 -1
  264. package/dist/Return.js +1 -1
  265. package/dist/Return.js.map +1 -1
  266. package/dist/Revert.js +1 -1
  267. package/dist/Revert.js.map +1 -1
  268. package/dist/Router.js +1 -1
  269. package/dist/Router.js.map +1 -1
  270. package/dist/SMS.js +1 -1
  271. package/dist/SMS.js.map +1 -1
  272. package/dist/Save.js +1 -1
  273. package/dist/Save.js.map +1 -1
  274. package/dist/SearchIndex.js +1 -1
  275. package/dist/SearchIndex.js.map +1 -1
  276. package/dist/Secondary.js +1 -1
  277. package/dist/Secondary.js.map +1 -1
  278. package/dist/Serverless.js +1 -1
  279. package/dist/Serverless.js.map +1 -1
  280. package/dist/Settings.js +1 -1
  281. package/dist/Settings.js.map +1 -1
  282. package/dist/ShardedCluster.js +1 -1
  283. package/dist/ShardedCluster.js.map +1 -1
  284. package/dist/Shell.js +1 -1
  285. package/dist/Shell.js.map +1 -1
  286. package/dist/Shield.js +1 -1
  287. package/dist/Shield.js.map +1 -1
  288. package/dist/Shirt.js +1 -1
  289. package/dist/Shirt.js.map +1 -1
  290. package/dist/SortAscending.js +1 -1
  291. package/dist/SortAscending.js.map +1 -1
  292. package/dist/SortDescending.js +1 -1
  293. package/dist/SortDescending.js.map +1 -1
  294. package/dist/Sparkle.js +1 -1
  295. package/dist/Sparkle.js.map +1 -1
  296. package/dist/SplitHorizontal.js +1 -1
  297. package/dist/SplitHorizontal.js.map +1 -1
  298. package/dist/SplitVertical.js +1 -1
  299. package/dist/SplitVertical.js.map +1 -1
  300. package/dist/Stitch.js +1 -1
  301. package/dist/Stitch.js.map +1 -1
  302. package/dist/Stop.js +1 -1
  303. package/dist/Stop.js.map +1 -1
  304. package/dist/Streaming.js +1 -1
  305. package/dist/Streaming.js.map +1 -1
  306. package/dist/String.js +1 -1
  307. package/dist/String.js.map +1 -1
  308. package/dist/Sun.js +1 -1
  309. package/dist/Sun.js.map +1 -1
  310. package/dist/Support.js +1 -1
  311. package/dist/Support.js.map +1 -1
  312. package/dist/Sweep.js +1 -1
  313. package/dist/Sweep.js.map +1 -1
  314. package/dist/Table.js +1 -1
  315. package/dist/Table.js.map +1 -1
  316. package/dist/Tag.js +1 -1
  317. package/dist/Tag.js.map +1 -1
  318. package/dist/TemporaryTable.js +1 -1
  319. package/dist/TemporaryTable.js.map +1 -1
  320. package/dist/ThumbsDown.js +1 -1
  321. package/dist/ThumbsDown.js.map +1 -1
  322. package/dist/ThumbsUp.js +1 -1
  323. package/dist/ThumbsUp.js.map +1 -1
  324. package/dist/TimeSeries.js +1 -1
  325. package/dist/TimeSeries.js.map +1 -1
  326. package/dist/TimeSeriesCollection.js +1 -1
  327. package/dist/TimeSeriesCollection.js.map +1 -1
  328. package/dist/Trash.js +1 -1
  329. package/dist/Trash.js.map +1 -1
  330. package/dist/Undo.js +1 -1
  331. package/dist/Undo.js.map +1 -1
  332. package/dist/University.js +1 -1
  333. package/dist/University.js.map +1 -1
  334. package/dist/Unlock.js +1 -1
  335. package/dist/Unlock.js.map +1 -1
  336. package/dist/Unsorted.js +1 -1
  337. package/dist/Unsorted.js.map +1 -1
  338. package/dist/UpDownCarets.js +1 -1
  339. package/dist/UpDownCarets.js.map +1 -1
  340. package/dist/Upload.js +1 -1
  341. package/dist/Upload.js.map +1 -1
  342. package/dist/VerticalEllipsis.js +1 -1
  343. package/dist/VerticalEllipsis.js.map +1 -1
  344. package/dist/View.js +1 -1
  345. package/dist/View.js.map +1 -1
  346. package/dist/Visibility.js +1 -1
  347. package/dist/Visibility.js.map +1 -1
  348. package/dist/VisibilityOff.js +1 -1
  349. package/dist/VisibilityOff.js.map +1 -1
  350. package/dist/Warning.js +1 -1
  351. package/dist/Warning.js.map +1 -1
  352. package/dist/Wizard.js +1 -1
  353. package/dist/Wizard.js.map +1 -1
  354. package/dist/Wrench.js +1 -1
  355. package/dist/Wrench.js.map +1 -1
  356. package/dist/Write.js +1 -1
  357. package/dist/Write.js.map +1 -1
  358. package/dist/X.js +1 -1
  359. package/dist/X.js.map +1 -1
  360. package/dist/XWithCircle.js +1 -1
  361. package/dist/XWithCircle.js.map +1 -1
  362. package/dist/esm/AIModel.js +2 -0
  363. package/dist/esm/AIModel.js.map +1 -0
  364. package/dist/esm/index.js +1 -1
  365. package/dist/esm/index.js.map +1 -1
  366. package/dist/index.js +2 -0
  367. package/dist/index.js.map +1 -0
  368. package/dist/types/Icon.d.ts +3 -0
  369. package/dist/types/Icon.d.ts.map +1 -1
  370. package/dist/types/generated/AIModel.d.ts +17 -0
  371. package/dist/types/generated/AIModel.d.ts.map +1 -0
  372. package/dist/types/glyphs/index.d.ts +5 -1
  373. package/dist/types/glyphs/index.d.ts.map +1 -1
  374. package/dist/umd/AIModel.js +2 -0
  375. package/dist/umd/AIModel.js.map +1 -0
  376. package/dist/umd/ActivityFeed.js +1 -1
  377. package/dist/umd/ActivityFeed.js.map +1 -1
  378. package/dist/umd/AddFile.js +1 -1
  379. package/dist/umd/AddFile.js.map +1 -1
  380. package/dist/umd/AllProducts.js +1 -1
  381. package/dist/umd/AllProducts.js.map +1 -1
  382. package/dist/umd/AnalyticsNode.js +1 -1
  383. package/dist/umd/AnalyticsNode.js.map +1 -1
  384. package/dist/umd/Apps.js +1 -1
  385. package/dist/umd/Apps.js.map +1 -1
  386. package/dist/umd/Array.js +1 -1
  387. package/dist/umd/Array.js.map +1 -1
  388. package/dist/umd/ArrowDown.js +1 -1
  389. package/dist/umd/ArrowDown.js.map +1 -1
  390. package/dist/umd/ArrowLeft.js +1 -1
  391. package/dist/umd/ArrowLeft.js.map +1 -1
  392. package/dist/umd/ArrowRight.js +1 -1
  393. package/dist/umd/ArrowRight.js.map +1 -1
  394. package/dist/umd/ArrowUp.js +1 -1
  395. package/dist/umd/ArrowUp.js.map +1 -1
  396. package/dist/umd/Beaker.js +1 -1
  397. package/dist/umd/Beaker.js.map +1 -1
  398. package/dist/umd/Bell.js +1 -1
  399. package/dist/umd/Bell.js.map +1 -1
  400. package/dist/umd/Biometric.js +1 -1
  401. package/dist/umd/Biometric.js.map +1 -1
  402. package/dist/umd/Boolean.js +1 -1
  403. package/dist/umd/Boolean.js.map +1 -1
  404. package/dist/umd/Building.js +1 -1
  405. package/dist/umd/Building.js.map +1 -1
  406. package/dist/umd/Bulb.js +1 -1
  407. package/dist/umd/Bulb.js.map +1 -1
  408. package/dist/umd/Calendar.js +1 -1
  409. package/dist/umd/Calendar.js.map +1 -1
  410. package/dist/umd/Camera.js +1 -1
  411. package/dist/umd/Camera.js.map +1 -1
  412. package/dist/umd/Cap.js +1 -1
  413. package/dist/umd/Cap.js.map +1 -1
  414. package/dist/umd/CaretDown.js +1 -1
  415. package/dist/umd/CaretDown.js.map +1 -1
  416. package/dist/umd/CaretLeft.js +1 -1
  417. package/dist/umd/CaretLeft.js.map +1 -1
  418. package/dist/umd/CaretRight.js +1 -1
  419. package/dist/umd/CaretRight.js.map +1 -1
  420. package/dist/umd/CaretUp.js +1 -1
  421. package/dist/umd/CaretUp.js.map +1 -1
  422. package/dist/umd/ChartFilled.js +1 -1
  423. package/dist/umd/ChartFilled.js.map +1 -1
  424. package/dist/umd/Charts.js +1 -1
  425. package/dist/umd/Charts.js.map +1 -1
  426. package/dist/umd/Checkmark.js +1 -1
  427. package/dist/umd/Checkmark.js.map +1 -1
  428. package/dist/umd/CheckmarkWithCircle.js +1 -1
  429. package/dist/umd/CheckmarkWithCircle.js.map +1 -1
  430. package/dist/umd/ChevronDown.js +1 -1
  431. package/dist/umd/ChevronDown.js.map +1 -1
  432. package/dist/umd/ChevronLeft.js +1 -1
  433. package/dist/umd/ChevronLeft.js.map +1 -1
  434. package/dist/umd/ChevronRight.js +1 -1
  435. package/dist/umd/ChevronRight.js.map +1 -1
  436. package/dist/umd/ChevronUp.js +1 -1
  437. package/dist/umd/ChevronUp.js.map +1 -1
  438. package/dist/umd/Circle.js +1 -1
  439. package/dist/umd/Circle.js.map +1 -1
  440. package/dist/umd/Clock.js +1 -1
  441. package/dist/umd/Clock.js.map +1 -1
  442. package/dist/umd/ClockWithArrow.js +1 -1
  443. package/dist/umd/ClockWithArrow.js.map +1 -1
  444. package/dist/umd/Clone.js +1 -1
  445. package/dist/umd/Clone.js.map +1 -1
  446. package/dist/umd/Cloud.js +1 -1
  447. package/dist/umd/Cloud.js.map +1 -1
  448. package/dist/umd/Code.js +1 -1
  449. package/dist/umd/Code.js.map +1 -1
  450. package/dist/umd/CodeBlock.js +1 -1
  451. package/dist/umd/CodeBlock.js.map +1 -1
  452. package/dist/umd/Coin.js +1 -1
  453. package/dist/umd/Coin.js.map +1 -1
  454. package/dist/umd/Colon.js +1 -1
  455. package/dist/umd/Colon.js.map +1 -1
  456. package/dist/umd/Config.js +1 -1
  457. package/dist/umd/Config.js.map +1 -1
  458. package/dist/umd/Connect.js +1 -1
  459. package/dist/umd/Connect.js.map +1 -1
  460. package/dist/umd/Copy.js +1 -1
  461. package/dist/umd/Copy.js.map +1 -1
  462. package/dist/umd/CreditCard.js +1 -1
  463. package/dist/umd/CreditCard.js.map +1 -1
  464. package/dist/umd/CurlyBraces.js +1 -1
  465. package/dist/umd/CurlyBraces.js.map +1 -1
  466. package/dist/umd/Cursor.js +1 -1
  467. package/dist/umd/Cursor.js.map +1 -1
  468. package/dist/umd/Dashboard.js +1 -1
  469. package/dist/umd/Dashboard.js.map +1 -1
  470. package/dist/umd/Database.js +1 -1
  471. package/dist/umd/Database.js.map +1 -1
  472. package/dist/umd/Diagram.js +1 -1
  473. package/dist/umd/Diagram.js.map +1 -1
  474. package/dist/umd/Diagram2.js +1 -1
  475. package/dist/umd/Diagram2.js.map +1 -1
  476. package/dist/umd/Diagram3.js +1 -1
  477. package/dist/umd/Diagram3.js.map +1 -1
  478. package/dist/umd/Disconnect.js +1 -1
  479. package/dist/umd/Disconnect.js.map +1 -1
  480. package/dist/umd/Download.js +1 -1
  481. package/dist/umd/Download.js.map +1 -1
  482. package/dist/umd/Drag.js +1 -1
  483. package/dist/umd/Drag.js.map +1 -1
  484. package/dist/umd/Edit.js +1 -1
  485. package/dist/umd/Edit.js.map +1 -1
  486. package/dist/umd/Ellipsis.js +1 -1
  487. package/dist/umd/Ellipsis.js.map +1 -1
  488. package/dist/umd/Email.js +1 -1
  489. package/dist/umd/Email.js.map +1 -1
  490. package/dist/umd/EmptyDatabase.js +1 -1
  491. package/dist/umd/EmptyDatabase.js.map +1 -1
  492. package/dist/umd/EmptyFolder.js +1 -1
  493. package/dist/umd/EmptyFolder.js.map +1 -1
  494. package/dist/umd/Eraser.js +1 -1
  495. package/dist/umd/Eraser.js.map +1 -1
  496. package/dist/umd/Escalation.js +1 -1
  497. package/dist/umd/Escalation.js.map +1 -1
  498. package/dist/umd/Export.js +1 -1
  499. package/dist/umd/Export.js.map +1 -1
  500. package/dist/umd/Favorite.js +1 -1
  501. package/dist/umd/Favorite.js.map +1 -1
  502. package/dist/umd/Federation.js +1 -1
  503. package/dist/umd/Federation.js.map +1 -1
  504. package/dist/umd/File.js +1 -1
  505. package/dist/umd/File.js.map +1 -1
  506. package/dist/umd/Filter.js +1 -1
  507. package/dist/umd/Filter.js.map +1 -1
  508. package/dist/umd/Folder.js +1 -1
  509. package/dist/umd/Folder.js.map +1 -1
  510. package/dist/umd/Format.js +1 -1
  511. package/dist/umd/Format.js.map +1 -1
  512. package/dist/umd/FullScreenEnter.js +1 -1
  513. package/dist/umd/FullScreenEnter.js.map +1 -1
  514. package/dist/umd/FullScreenExit.js +1 -1
  515. package/dist/umd/FullScreenExit.js.map +1 -1
  516. package/dist/umd/Function.js +1 -1
  517. package/dist/umd/Function.js.map +1 -1
  518. package/dist/umd/Gauge.js +1 -1
  519. package/dist/umd/Gauge.js.map +1 -1
  520. package/dist/umd/GlobeAmericas.js +1 -1
  521. package/dist/umd/GlobeAmericas.js.map +1 -1
  522. package/dist/umd/GovernmentBuilding.js +1 -1
  523. package/dist/umd/GovernmentBuilding.js.map +1 -1
  524. package/dist/umd/Guide.js +1 -1
  525. package/dist/umd/Guide.js.map +1 -1
  526. package/dist/umd/Hash.js +1 -1
  527. package/dist/umd/Hash.js.map +1 -1
  528. package/dist/umd/HiddenSecondaryNode.js +1 -1
  529. package/dist/umd/HiddenSecondaryNode.js.map +1 -1
  530. package/dist/umd/Highlight.js +1 -1
  531. package/dist/umd/Highlight.js.map +1 -1
  532. package/dist/umd/Home.js +1 -1
  533. package/dist/umd/Home.js.map +1 -1
  534. package/dist/umd/HorizontalDrag.js +1 -1
  535. package/dist/umd/HorizontalDrag.js.map +1 -1
  536. package/dist/umd/Import.js +1 -1
  537. package/dist/umd/Import.js.map +1 -1
  538. package/dist/umd/ImportantWithCircle.js +1 -1
  539. package/dist/umd/ImportantWithCircle.js.map +1 -1
  540. package/dist/umd/InfoWithCircle.js +1 -1
  541. package/dist/umd/InfoWithCircle.js.map +1 -1
  542. package/dist/umd/InternalEmployee.js +1 -1
  543. package/dist/umd/InternalEmployee.js.map +1 -1
  544. package/dist/umd/InviteUser.js +1 -1
  545. package/dist/umd/InviteUser.js.map +1 -1
  546. package/dist/umd/Key.js +1 -1
  547. package/dist/umd/Key.js.map +1 -1
  548. package/dist/umd/Laptop.js +1 -1
  549. package/dist/umd/Laptop.js.map +1 -1
  550. package/dist/umd/LightningBolt.js +1 -1
  551. package/dist/umd/LightningBolt.js.map +1 -1
  552. package/dist/umd/Link.js +1 -1
  553. package/dist/umd/Link.js.map +1 -1
  554. package/dist/umd/List.js +1 -1
  555. package/dist/umd/List.js.map +1 -1
  556. package/dist/umd/Lock.js +1 -1
  557. package/dist/umd/Lock.js.map +1 -1
  558. package/dist/umd/LogIn.js +1 -1
  559. package/dist/umd/LogIn.js.map +1 -1
  560. package/dist/umd/LogOut.js +1 -1
  561. package/dist/umd/LogOut.js.map +1 -1
  562. package/dist/umd/MagnifyingGlass.js +1 -1
  563. package/dist/umd/MagnifyingGlass.js.map +1 -1
  564. package/dist/umd/Megaphone.js +1 -1
  565. package/dist/umd/Megaphone.js.map +1 -1
  566. package/dist/umd/Menu.js +1 -1
  567. package/dist/umd/Menu.js.map +1 -1
  568. package/dist/umd/Minus.js +1 -1
  569. package/dist/umd/Minus.js.map +1 -1
  570. package/dist/umd/Mobile.js +1 -1
  571. package/dist/umd/Mobile.js.map +1 -1
  572. package/dist/umd/Moon.js +1 -1
  573. package/dist/umd/Moon.js.map +1 -1
  574. package/dist/umd/MultiDirectionArrow.js +1 -1
  575. package/dist/umd/MultiDirectionArrow.js.map +1 -1
  576. package/dist/umd/MultiLayers.js +1 -1
  577. package/dist/umd/MultiLayers.js.map +1 -1
  578. package/dist/umd/NavCollapse.js +1 -1
  579. package/dist/umd/NavCollapse.js.map +1 -1
  580. package/dist/umd/NavExpand.js +1 -1
  581. package/dist/umd/NavExpand.js.map +1 -1
  582. package/dist/umd/NoFilter.js +1 -1
  583. package/dist/umd/NoFilter.js.map +1 -1
  584. package/dist/umd/NotAllowed.js +1 -1
  585. package/dist/umd/NotAllowed.js.map +1 -1
  586. package/dist/umd/Note.js +1 -1
  587. package/dist/umd/Note.js.map +1 -1
  588. package/dist/umd/NumberedList.js +1 -1
  589. package/dist/umd/NumberedList.js.map +1 -1
  590. package/dist/umd/OpenNewTab.js +1 -1
  591. package/dist/umd/OpenNewTab.js.map +1 -1
  592. package/dist/umd/OutlineFavorite.js +1 -1
  593. package/dist/umd/OutlineFavorite.js.map +1 -1
  594. package/dist/umd/Package.js +1 -1
  595. package/dist/umd/Package.js.map +1 -1
  596. package/dist/umd/Pause.js +1 -1
  597. package/dist/umd/Pause.js.map +1 -1
  598. package/dist/umd/Pending.js +1 -1
  599. package/dist/umd/Pending.js.map +1 -1
  600. package/dist/umd/Person.js +1 -1
  601. package/dist/umd/Person.js.map +1 -1
  602. package/dist/umd/PersonGroup.js +1 -1
  603. package/dist/umd/PersonGroup.js.map +1 -1
  604. package/dist/umd/PersonWithLock.js +1 -1
  605. package/dist/umd/PersonWithLock.js.map +1 -1
  606. package/dist/umd/Pin.js +1 -1
  607. package/dist/umd/Pin.js.map +1 -1
  608. package/dist/umd/Play.js +1 -1
  609. package/dist/umd/Play.js.map +1 -1
  610. package/dist/umd/Plus.js +1 -1
  611. package/dist/umd/Plus.js.map +1 -1
  612. package/dist/umd/PlusWithCircle.js +1 -1
  613. package/dist/umd/PlusWithCircle.js.map +1 -1
  614. package/dist/umd/Primary.js +1 -1
  615. package/dist/umd/Primary.js.map +1 -1
  616. package/dist/umd/Project.js +1 -1
  617. package/dist/umd/Project.js.map +1 -1
  618. package/dist/umd/QuestionMarkWithCircle.js +1 -1
  619. package/dist/umd/QuestionMarkWithCircle.js.map +1 -1
  620. package/dist/umd/Read.js +1 -1
  621. package/dist/umd/Read.js.map +1 -1
  622. package/dist/umd/Recommended.js +1 -1
  623. package/dist/umd/Recommended.js.map +1 -1
  624. package/dist/umd/Redo.js +1 -1
  625. package/dist/umd/Redo.js.map +1 -1
  626. package/dist/umd/Refresh.js +1 -1
  627. package/dist/umd/Refresh.js.map +1 -1
  628. package/dist/umd/Relationship.js +1 -1
  629. package/dist/umd/Relationship.js.map +1 -1
  630. package/dist/umd/ReplicaSet.js +1 -1
  631. package/dist/umd/ReplicaSet.js.map +1 -1
  632. package/dist/umd/Resize.js +1 -1
  633. package/dist/umd/Resize.js.map +1 -1
  634. package/dist/umd/Resource.js +1 -1
  635. package/dist/umd/Resource.js.map +1 -1
  636. package/dist/umd/Return.js +1 -1
  637. package/dist/umd/Return.js.map +1 -1
  638. package/dist/umd/Revert.js +1 -1
  639. package/dist/umd/Revert.js.map +1 -1
  640. package/dist/umd/Router.js +1 -1
  641. package/dist/umd/Router.js.map +1 -1
  642. package/dist/umd/SMS.js +1 -1
  643. package/dist/umd/SMS.js.map +1 -1
  644. package/dist/umd/Save.js +1 -1
  645. package/dist/umd/Save.js.map +1 -1
  646. package/dist/umd/SearchIndex.js +1 -1
  647. package/dist/umd/SearchIndex.js.map +1 -1
  648. package/dist/umd/Secondary.js +1 -1
  649. package/dist/umd/Secondary.js.map +1 -1
  650. package/dist/umd/Serverless.js +1 -1
  651. package/dist/umd/Serverless.js.map +1 -1
  652. package/dist/umd/Settings.js +1 -1
  653. package/dist/umd/Settings.js.map +1 -1
  654. package/dist/umd/ShardedCluster.js +1 -1
  655. package/dist/umd/ShardedCluster.js.map +1 -1
  656. package/dist/umd/Shell.js +1 -1
  657. package/dist/umd/Shell.js.map +1 -1
  658. package/dist/umd/Shield.js +1 -1
  659. package/dist/umd/Shield.js.map +1 -1
  660. package/dist/umd/Shirt.js +1 -1
  661. package/dist/umd/Shirt.js.map +1 -1
  662. package/dist/umd/SortAscending.js +1 -1
  663. package/dist/umd/SortAscending.js.map +1 -1
  664. package/dist/umd/SortDescending.js +1 -1
  665. package/dist/umd/SortDescending.js.map +1 -1
  666. package/dist/umd/Sparkle.js +1 -1
  667. package/dist/umd/Sparkle.js.map +1 -1
  668. package/dist/umd/SplitHorizontal.js +1 -1
  669. package/dist/umd/SplitHorizontal.js.map +1 -1
  670. package/dist/umd/SplitVertical.js +1 -1
  671. package/dist/umd/SplitVertical.js.map +1 -1
  672. package/dist/umd/Stitch.js +1 -1
  673. package/dist/umd/Stitch.js.map +1 -1
  674. package/dist/umd/Stop.js +1 -1
  675. package/dist/umd/Stop.js.map +1 -1
  676. package/dist/umd/Streaming.js +1 -1
  677. package/dist/umd/Streaming.js.map +1 -1
  678. package/dist/umd/String.js +1 -1
  679. package/dist/umd/String.js.map +1 -1
  680. package/dist/umd/Sun.js +1 -1
  681. package/dist/umd/Sun.js.map +1 -1
  682. package/dist/umd/Support.js +1 -1
  683. package/dist/umd/Support.js.map +1 -1
  684. package/dist/umd/Sweep.js +1 -1
  685. package/dist/umd/Sweep.js.map +1 -1
  686. package/dist/umd/Table.js +1 -1
  687. package/dist/umd/Table.js.map +1 -1
  688. package/dist/umd/Tag.js +1 -1
  689. package/dist/umd/Tag.js.map +1 -1
  690. package/dist/umd/TemporaryTable.js +1 -1
  691. package/dist/umd/TemporaryTable.js.map +1 -1
  692. package/dist/umd/ThumbsDown.js +1 -1
  693. package/dist/umd/ThumbsDown.js.map +1 -1
  694. package/dist/umd/ThumbsUp.js +1 -1
  695. package/dist/umd/ThumbsUp.js.map +1 -1
  696. package/dist/umd/TimeSeries.js +1 -1
  697. package/dist/umd/TimeSeries.js.map +1 -1
  698. package/dist/umd/TimeSeriesCollection.js +1 -1
  699. package/dist/umd/TimeSeriesCollection.js.map +1 -1
  700. package/dist/umd/Trash.js +1 -1
  701. package/dist/umd/Trash.js.map +1 -1
  702. package/dist/umd/Undo.js +1 -1
  703. package/dist/umd/Undo.js.map +1 -1
  704. package/dist/umd/University.js +1 -1
  705. package/dist/umd/University.js.map +1 -1
  706. package/dist/umd/Unlock.js +1 -1
  707. package/dist/umd/Unlock.js.map +1 -1
  708. package/dist/umd/Unsorted.js +1 -1
  709. package/dist/umd/Unsorted.js.map +1 -1
  710. package/dist/umd/UpDownCarets.js +1 -1
  711. package/dist/umd/UpDownCarets.js.map +1 -1
  712. package/dist/umd/Upload.js +1 -1
  713. package/dist/umd/Upload.js.map +1 -1
  714. package/dist/umd/VerticalEllipsis.js +1 -1
  715. package/dist/umd/VerticalEllipsis.js.map +1 -1
  716. package/dist/umd/View.js +1 -1
  717. package/dist/umd/View.js.map +1 -1
  718. package/dist/umd/Visibility.js +1 -1
  719. package/dist/umd/Visibility.js.map +1 -1
  720. package/dist/umd/VisibilityOff.js +1 -1
  721. package/dist/umd/VisibilityOff.js.map +1 -1
  722. package/dist/umd/Warning.js +1 -1
  723. package/dist/umd/Warning.js.map +1 -1
  724. package/dist/umd/Wizard.js +1 -1
  725. package/dist/umd/Wizard.js.map +1 -1
  726. package/dist/umd/Wrench.js +1 -1
  727. package/dist/umd/Wrench.js.map +1 -1
  728. package/dist/umd/Write.js +1 -1
  729. package/dist/umd/Write.js.map +1 -1
  730. package/dist/umd/X.js +1 -1
  731. package/dist/umd/X.js.map +1 -1
  732. package/dist/umd/XWithCircle.js +1 -1
  733. package/dist/umd/XWithCircle.js.map +1 -1
  734. package/dist/umd/index.js +1 -1
  735. package/dist/umd/index.js.map +1 -1
  736. package/package.json +9 -5
  737. package/rollup.batch.config.mjs +19 -0
  738. package/rollup.config.mjs +1 -46
  739. package/scripts/build-parallel.ts +110 -0
  740. package/scripts/postbuild.ts +26 -0
  741. package/src/Icon.stories.tsx +1 -1
  742. package/src/Icon.tsx +3 -0
  743. package/src/generated/AIModel.tsx +39 -0
  744. package/src/glyphs/AIModel.svg +20 -0
  745. package/src/glyphs/index.ts +3 -1
  746. package/stories.js +1 -1
  747. package/tsdoc.json +1 -1
  748. package/turbo.json +13 -0
@@ -1 +1 @@
1
- {"version":3,"file":"Diagram.js","sources":["../../src/glyphCommon.ts","../../src/generated/Diagram.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 packages/icon/scripts/prebuild.ts\n* @checksum f1e5b22a74bf628a5e3efd69d339f01a\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface DiagramProps extends LGGlyph.ComponentProps {}\nconst Diagram = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: DiagramProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Diagram', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M6 2.75C6 2.33579 6.33579 2 6.75 2H9.25C9.66421 2 10 2.33579 10 2.75V4.25C10 4.66421 9.66421 5 9.25 5H8.5V7H13.25C13.6642 7 14 7.33579 14 7.75V10H14.25C14.6642 10 15 10.3358 15 10.75V12.25C15 12.6642 14.6642 13 14.25 13H12.25C11.8358 13 11.5 12.6642 11.5 12.25V10.75C11.5 10.3358 11.8358 10 12.25 10H13V8H8.5V10H9C9.41421 10 9.75 10.3358 9.75 10.75V12.25C9.75 12.6642 9.41421 13 9 13H7C6.58579 13 6.25 12.6642 6.25 12.25V10.75C6.25 10.3358 6.58579 10 7 10H7.5V8H3V10H3.75C4.16421 10 4.5 10.3358 4.5 10.75V12.25C4.5 12.6642 4.16421 13 3.75 13H1.75C1.33579 13 1 12.6642 1 12.25V10.75C1 10.3358 1.33579 10 1.75 10H2V7.75C2 7.33579 2.33579 7 2.75 7H7.5V5H6.75C6.33579 5 6 4.66421 6 4.25V2.75Z\" fill={'currentColor'} /></svg>;\n};\nDiagram.displayName = 'Diagram';\nDiagram.isGlyph = true;\nexport default Diagram;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Diagram","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"o5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAU,SAAiBC,GAC7B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,UAAWU,EAAgBA,EAAgB,CAC7Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,mrBACHxB,KAAM,iBAEV,SACAR,EAAQiC,YAAc,UACtBjC,EAAQkC,SAAU"}
1
+ {"version":3,"file":"Diagram.js","sources":["../../src/glyphCommon.ts","../../src/generated/Diagram.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 packages/icon/scripts/prebuild.ts\n* @checksum f1e5b22a74bf628a5e3efd69d339f01a\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface DiagramProps extends LGGlyph.ComponentProps {}\nconst Diagram = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: DiagramProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Diagram', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M6 2.75C6 2.33579 6.33579 2 6.75 2H9.25C9.66421 2 10 2.33579 10 2.75V4.25C10 4.66421 9.66421 5 9.25 5H8.5V7H13.25C13.6642 7 14 7.33579 14 7.75V10H14.25C14.6642 10 15 10.3358 15 10.75V12.25C15 12.6642 14.6642 13 14.25 13H12.25C11.8358 13 11.5 12.6642 11.5 12.25V10.75C11.5 10.3358 11.8358 10 12.25 10H13V8H8.5V10H9C9.41421 10 9.75 10.3358 9.75 10.75V12.25C9.75 12.6642 9.41421 13 9 13H7C6.58579 13 6.25 12.6642 6.25 12.25V10.75C6.25 10.3358 6.58579 10 7 10H7.5V8H3V10H3.75C4.16421 10 4.5 10.3358 4.5 10.75V12.25C4.5 12.6642 4.16421 13 3.75 13H1.75C1.33579 13 1 12.6642 1 12.25V10.75C1 10.3358 1.33579 10 1.75 10H2V7.75C2 7.33579 2.33579 7 2.75 7H7.5V5H6.75C6.33579 5 6 4.66421 6 4.25V2.75Z\" fill={'currentColor'} /></svg>;\n};\nDiagram.displayName = 'Diagram';\nDiagram.isGlyph = true;\nexport default Diagram;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Diagram","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"i5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAU,SAAiBC,GAC7B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,UAAWU,EAAgBA,EAAgB,CAC7Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,mrBACHxB,KAAM,iBAEV,SACAR,EAAQiC,YAAc,UACtBjC,EAAQkC,SAAU"}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Diagram2=e.Diagram2||{},e.Diagram2.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var a=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,r);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},n.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,f,u={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,y=e.title,d=e["aria-label"],m=e["aria-labelledby"],p=e.fill,g=e.role,v=void 0===g?"img":g,O=function(e,r){if(null==e)return{};var t,a,i=function(e,r){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==r.indexOf(a))continue;t[a]=e[a]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),C=r.css(o||(o=l(["\n color: ",";\n "])),p),j=r.css(f||(f=l(["\n flex-shrink: 0;\n "]))),h=function(e,r,t){var a,n=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return n||l||o?i(i(i({},"aria-labelledby",l),"aria-label",n),"title",o):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(v,"Diagram2",i(i({title:y},"aria-label",d),"aria-labelledby",m));return a.createElement("svg",n({className:r.cx(i({},C,null!=p),j,t),height:"number"==typeof s?s:u[s],width:"number"==typeof s?s:u[s],role:v},h,O,{viewBox:"0 0 16 16"}),a.createElement("path",{d:"M10.72 1C10.3224 1 10 1.33579 10 1.75V2H7.48C7.2149 2 7 2.22386 7 2.5V7H5V6.75C5 6.33579 4.67765 6 4.28 6H1.72C1.32235 6 1 6.33579 1 6.75V8.25C1 8.66421 1.32235 9 1.72 9H4.28C4.67765 9 5 8.66421 5 8.25V8H7V12.5C7 12.7761 7.2149 13 7.48 13H10V13.25C10 13.6642 10.3224 14 10.72 14H12.78C13.1776 14 13.5 13.6642 13.5 13.25V11.75C13.5 11.3358 13.1776 11 12.78 11H10.72C10.3224 11 10 11.3358 10 11.75V12H8V8H10V8.25C10 8.66421 10.3224 9 10.72 9H12.78C13.1776 9 13.5 8.66421 13.5 8.25V6.75C13.5 6.33579 13.1776 6 12.78 6H10.72C10.3224 6 10 6.33579 10 6.75V7H8V3H10V3.25C10 3.66421 10.3224 4 10.72 4H12.78C13.1776 4 13.5 3.66421 13.5 3.25V1.75C13.5 1.33579 13.1776 1 12.78 1L10.72 1Z",fill:"currentColor"}))};return b.displayName="Diagram2",b.isGlyph=!0,b}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Diagram2=e.Diagram2||{},e.Diagram2.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var a=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,r);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},n.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,f,u={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,y=e.title,d=e["aria-label"],m=e["aria-labelledby"],p=e.fill,g=e.role,v=void 0===g?"img":g,O=function(e,r){if(null==e)return{};var t,a,i=function(e,r){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==r.indexOf(a))continue;t[a]=e[a]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),C=r.css(o||(o=l(["\n color: ",";\n "])),p),j=r.css(f||(f=l(["\n flex-shrink: 0;\n "]))),h=function(e,r,t){var a,n=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return n||l||o?i(i(i({},"aria-labelledby",l),"aria-label",n),"title",o):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(v,"Diagram2",i(i({title:y},"aria-label",d),"aria-labelledby",m));return a.createElement("svg",n({className:r.cx(i({},C,null!=p),j,t),height:"number"==typeof s?s:u[s],width:"number"==typeof s?s:u[s],role:v},h,O,{viewBox:"0 0 16 16"}),a.createElement("path",{d:"M10.72 1C10.3224 1 10 1.33579 10 1.75V2H7.48C7.2149 2 7 2.22386 7 2.5V7H5V6.75C5 6.33579 4.67765 6 4.28 6H1.72C1.32235 6 1 6.33579 1 6.75V8.25C1 8.66421 1.32235 9 1.72 9H4.28C4.67765 9 5 8.66421 5 8.25V8H7V12.5C7 12.7761 7.2149 13 7.48 13H10V13.25C10 13.6642 10.3224 14 10.72 14H12.78C13.1776 14 13.5 13.6642 13.5 13.25V11.75C13.5 11.3358 13.1776 11 12.78 11H10.72C10.3224 11 10 11.3358 10 11.75V12H8V8H10V8.25C10 8.66421 10.3224 9 10.72 9H12.78C13.1776 9 13.5 8.66421 13.5 8.25V6.75C13.5 6.33579 13.1776 6 12.78 6H10.72C10.3224 6 10 6.33579 10 6.75V7H8V3H10V3.25C10 3.66421 10.3224 4 10.72 4H12.78C13.1776 4 13.5 3.66421 13.5 3.25V1.75C13.5 1.33579 13.1776 1 12.78 1L10.72 1Z",fill:"currentColor"}))};return b.displayName="Diagram2",b.isGlyph=!0,b});
2
2
  //# sourceMappingURL=Diagram2.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Diagram2.js","sources":["../../src/glyphCommon.ts","../../src/generated/Diagram2.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 packages/icon/scripts/prebuild.ts\n* @checksum 671dacfa6003f6501110ab82b2af3913\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface Diagram2Props extends LGGlyph.ComponentProps {}\nconst Diagram2 = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: Diagram2Props) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Diagram2', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M10.72 1C10.3224 1 10 1.33579 10 1.75V2H7.48C7.2149 2 7 2.22386 7 2.5V7H5V6.75C5 6.33579 4.67765 6 4.28 6H1.72C1.32235 6 1 6.33579 1 6.75V8.25C1 8.66421 1.32235 9 1.72 9H4.28C4.67765 9 5 8.66421 5 8.25V8H7V12.5C7 12.7761 7.2149 13 7.48 13H10V13.25C10 13.6642 10.3224 14 10.72 14H12.78C13.1776 14 13.5 13.6642 13.5 13.25V11.75C13.5 11.3358 13.1776 11 12.78 11H10.72C10.3224 11 10 11.3358 10 11.75V12H8V8H10V8.25C10 8.66421 10.3224 9 10.72 9H12.78C13.1776 9 13.5 8.66421 13.5 8.25V6.75C13.5 6.33579 13.1776 6 12.78 6H10.72C10.3224 6 10 6.33579 10 6.75V7H8V3H10V3.25C10 3.66421 10.3224 4 10.72 4H12.78C13.1776 4 13.5 3.66421 13.5 3.25V1.75C13.5 1.33579 13.1776 1 12.78 1L10.72 1Z\" fill={'currentColor'} /></svg>;\n};\nDiagram2.displayName = 'Diagram2';\nDiagram2.isGlyph = true;\nexport default Diagram2;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Diagram2","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"u5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,uqBACHxB,KAAM,iBAEV,SACAR,EAASiC,YAAc,WACvBjC,EAASkC,SAAU"}
1
+ {"version":3,"file":"Diagram2.js","sources":["../../src/glyphCommon.ts","../../src/generated/Diagram2.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 packages/icon/scripts/prebuild.ts\n* @checksum 671dacfa6003f6501110ab82b2af3913\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface Diagram2Props extends LGGlyph.ComponentProps {}\nconst Diagram2 = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: Diagram2Props) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Diagram2', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M10.72 1C10.3224 1 10 1.33579 10 1.75V2H7.48C7.2149 2 7 2.22386 7 2.5V7H5V6.75C5 6.33579 4.67765 6 4.28 6H1.72C1.32235 6 1 6.33579 1 6.75V8.25C1 8.66421 1.32235 9 1.72 9H4.28C4.67765 9 5 8.66421 5 8.25V8H7V12.5C7 12.7761 7.2149 13 7.48 13H10V13.25C10 13.6642 10.3224 14 10.72 14H12.78C13.1776 14 13.5 13.6642 13.5 13.25V11.75C13.5 11.3358 13.1776 11 12.78 11H10.72C10.3224 11 10 11.3358 10 11.75V12H8V8H10V8.25C10 8.66421 10.3224 9 10.72 9H12.78C13.1776 9 13.5 8.66421 13.5 8.25V6.75C13.5 6.33579 13.1776 6 12.78 6H10.72C10.3224 6 10 6.33579 10 6.75V7H8V3H10V3.25C10 3.66421 10.3224 4 10.72 4H12.78C13.1776 4 13.5 3.66421 13.5 3.25V1.75C13.5 1.33579 13.1776 1 12.78 1L10.72 1Z\" fill={'currentColor'} /></svg>;\n};\nDiagram2.displayName = 'Diagram2';\nDiagram2.isGlyph = true;\nexport default Diagram2;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Diagram2","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"o5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,uqBACHxB,KAAM,iBAEV,SACAR,EAASiC,YAAc,WACvBjC,EAASkC,SAAU"}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Diagram3=e.Diagram3||{},e.Diagram3.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var a=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,r);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},n.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,y=e["aria-label"],m=e["aria-labelledby"],p=e.fill,v=e.role,g=void 0===v?"img":v,C=function(e,r){if(null==e)return{};var t,a,i=function(e,r){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==r.indexOf(a))continue;t[a]=e[a]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),O=r.css(o||(o=l(["\n color: ",";\n "])),p),j=r.css(u||(u=l(["\n flex-shrink: 0;\n "]))),h=function(e,r,t){var a,n=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return n||l||o?i(i(i({},"aria-labelledby",l),"aria-label",n),"title",o):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Diagram3",i(i({title:d},"aria-label",y),"aria-labelledby",m));return a.createElement("svg",n({className:r.cx(i({},O,null!=p),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},h,C,{viewBox:"0 0 16 16"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 1C1.33579 1 1 1.33579 1 1.75V3.25C1 3.66421 1.33579 4 1.75 4H4.25C4.66421 4 5 3.66421 5 3.25V1.75C5 1.33579 4.66421 1 4.25 1H1.75ZM11 1.75C11 1.33579 11.3358 1 11.75 1H14.25C14.6642 1 15 1.33579 15 1.75V3.25C15 3.66421 14.6642 4 14.25 4H11.75C11.3358 4 11 3.66421 11 3.25V1.75ZM11 10.75C11 10.3358 11.3358 10 11.75 10H14.25C14.6642 10 15 10.3358 15 10.75V12.25C15 12.6642 14.6642 13 14.25 13H11.75C11.3358 13 11 12.6642 11 12.25V10.75ZM1 10.75C1 10.3358 1.33579 10 1.75 10H4.25C4.66421 10 5 10.3358 5 10.75V12.25C5 12.6642 4.66421 13 4.25 13H1.75C1.33579 13 1 12.6642 1 12.25V10.75ZM6 5C5.44772 5 5 5.44772 5 6V8C5 8.55228 5.44772 9 6 9H10C10.5523 9 11 8.55228 11 8V6C11 5.44772 10.5523 5 10 5H6Z",fill:"currentColor"}))};return b.displayName="Diagram3",b.isGlyph=!0,b}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Diagram3=e.Diagram3||{},e.Diagram3.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var a=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,a.get?a:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var a=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var a=t.call(e,r);if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)({}).hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},n.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,y=e["aria-label"],m=e["aria-labelledby"],p=e.fill,v=e.role,g=void 0===v?"img":v,C=function(e,r){if(null==e)return{};var t,a,i=function(e,r){if(null==e)return{};var t={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==r.indexOf(a))continue;t[a]=e[a]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)t=n[a],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,c),O=r.css(o||(o=l(["\n color: ",";\n "])),p),j=r.css(u||(u=l(["\n flex-shrink: 0;\n "]))),h=function(e,r,t){var a,n=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return n||l||o?i(i(i({},"aria-labelledby",l),"aria-label",n),"title",o):{"aria-label":(a=r,"".concat(a.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Diagram3",i(i({title:d},"aria-label",y),"aria-labelledby",m));return a.createElement("svg",n({className:r.cx(i({},O,null!=p),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},h,C,{viewBox:"0 0 16 16"}),a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.75 1C1.33579 1 1 1.33579 1 1.75V3.25C1 3.66421 1.33579 4 1.75 4H4.25C4.66421 4 5 3.66421 5 3.25V1.75C5 1.33579 4.66421 1 4.25 1H1.75ZM11 1.75C11 1.33579 11.3358 1 11.75 1H14.25C14.6642 1 15 1.33579 15 1.75V3.25C15 3.66421 14.6642 4 14.25 4H11.75C11.3358 4 11 3.66421 11 3.25V1.75ZM11 10.75C11 10.3358 11.3358 10 11.75 10H14.25C14.6642 10 15 10.3358 15 10.75V12.25C15 12.6642 14.6642 13 14.25 13H11.75C11.3358 13 11 12.6642 11 12.25V10.75ZM1 10.75C1 10.3358 1.33579 10 1.75 10H4.25C4.66421 10 5 10.3358 5 10.75V12.25C5 12.6642 4.66421 13 4.25 13H1.75C1.33579 13 1 12.6642 1 12.25V10.75ZM6 5C5.44772 5 5 5.44772 5 6V8C5 8.55228 5.44772 9 6 9H10C10.5523 9 11 8.55228 11 8V6C11 5.44772 10.5523 5 10 5H6Z",fill:"currentColor"}))};return b.displayName="Diagram3",b.isGlyph=!0,b});
2
2
  //# sourceMappingURL=Diagram3.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Diagram3.js","sources":["../../src/glyphCommon.ts","../../src/generated/Diagram3.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 packages/icon/scripts/prebuild.ts\n* @checksum c306977912c7f9ee2d96e2e8e5f2c7f4\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface Diagram3Props extends LGGlyph.ComponentProps {}\nconst Diagram3 = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: Diagram3Props) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Diagram3', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M1.75 1C1.33579 1 1 1.33579 1 1.75V3.25C1 3.66421 1.33579 4 1.75 4H4.25C4.66421 4 5 3.66421 5 3.25V1.75C5 1.33579 4.66421 1 4.25 1H1.75ZM11 1.75C11 1.33579 11.3358 1 11.75 1H14.25C14.6642 1 15 1.33579 15 1.75V3.25C15 3.66421 14.6642 4 14.25 4H11.75C11.3358 4 11 3.66421 11 3.25V1.75ZM11 10.75C11 10.3358 11.3358 10 11.75 10H14.25C14.6642 10 15 10.3358 15 10.75V12.25C15 12.6642 14.6642 13 14.25 13H11.75C11.3358 13 11 12.6642 11 12.25V10.75ZM1 10.75C1 10.3358 1.33579 10 1.75 10H4.25C4.66421 10 5 10.3358 5 10.75V12.25C5 12.6642 4.66421 13 4.25 13H1.75C1.33579 13 1 12.6642 1 12.25V10.75ZM6 5C5.44772 5 5 5.44772 5 6V8C5 8.55228 5.44772 9 6 9H10C10.5523 9 11 8.55228 11 8V6C11 5.44772 10.5523 5 10 5H6Z\" fill={'currentColor'} /></svg>;\n};\nDiagram3.displayName = 'Diagram3';\nDiagram3.isGlyph = true;\nexport default Diagram3;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Diagram3","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"u5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,isBACH1B,KAAM,iBAEV,SACAR,EAASmC,YAAc,WACvBnC,EAASoC,SAAU"}
1
+ {"version":3,"file":"Diagram3.js","sources":["../../src/glyphCommon.ts","../../src/generated/Diagram3.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 packages/icon/scripts/prebuild.ts\n* @checksum c306977912c7f9ee2d96e2e8e5f2c7f4\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface Diagram3Props extends LGGlyph.ComponentProps {}\nconst Diagram3 = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: Diagram3Props) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Diagram3', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M1.75 1C1.33579 1 1 1.33579 1 1.75V3.25C1 3.66421 1.33579 4 1.75 4H4.25C4.66421 4 5 3.66421 5 3.25V1.75C5 1.33579 4.66421 1 4.25 1H1.75ZM11 1.75C11 1.33579 11.3358 1 11.75 1H14.25C14.6642 1 15 1.33579 15 1.75V3.25C15 3.66421 14.6642 4 14.25 4H11.75C11.3358 4 11 3.66421 11 3.25V1.75ZM11 10.75C11 10.3358 11.3358 10 11.75 10H14.25C14.6642 10 15 10.3358 15 10.75V12.25C15 12.6642 14.6642 13 14.25 13H11.75C11.3358 13 11 12.6642 11 12.25V10.75ZM1 10.75C1 10.3358 1.33579 10 1.75 10H4.25C4.66421 10 5 10.3358 5 10.75V12.25C5 12.6642 4.66421 13 4.25 13H1.75C1.33579 13 1 12.6642 1 12.25V10.75ZM6 5C5.44772 5 5 5.44772 5 6V8C5 8.55228 5.44772 9 6 9H10C10.5523 9 11 8.55228 11 8V6C11 5.44772 10.5523 5 10 5H6Z\" fill={'currentColor'} /></svg>;\n};\nDiagram3.displayName = 'Diagram3';\nDiagram3.isGlyph = true;\nexport default Diagram3;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Diagram3","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"o5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,isBACH1B,KAAM,iBAEV,SACAR,EAASmC,YAAc,WACvBnC,EAASoC,SAAU"}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Disconnect=e.Disconnect||{},e.Disconnect.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,c,u={small:14,default:16,large:20,xlarge:24};var f=["className","size","title","aria-label","aria-labelledby","fill","role"],s=function(e){var t=e.className,s=e.size,b=void 0===s?16:s,d=e.title,p=e["aria-label"],y=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,f),h=r.css(o||(o=a(["\n color: ",";\n "])),v),j=r.css(c||(c=a(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var n,l=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return l||a||o?i(i(i({},"aria-labelledby",a),"aria-label",l),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Disconnect",i(i({title:d},"aria-label",p),"aria-labelledby",y));return n.createElement("svg",l({className:r.cx(i({},h,null!=v),j,t),height:"number"==typeof b?b:u[b],width:"number"==typeof b?b:u[b],role:g},C,O,{viewBox:"0 0 16 16"}),n.createElement("path",{d:"M7.09293 3.67136C6.96902 3.54745 6.96902 3.34652 7.09293 3.22258L8.14018 2.17538C9.70733 0.608258 12.2573 0.608152 13.8246 2.17538C15.3918 3.74259 15.3918 6.29263 13.8246 7.85981L12.7773 8.90702C12.6534 9.03093 12.4525 9.03093 12.3286 8.90702L11.2814 7.85989C11.1575 7.73597 11.1575 7.53505 11.2814 7.41111L12.3287 6.36392C13.071 5.62155 13.071 4.41366 12.3287 3.6713C11.5864 2.92896 10.3785 2.92893 9.63606 3.6713L8.58882 4.71849C8.4649 4.84241 8.26398 4.84241 8.14004 4.71849L7.09293 3.67136Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.29322 1.29322C1.68419 0.902259 2.31807 0.902259 2.70903 1.29322L14.7068 13.291C15.0977 13.6819 15.0977 14.3158 14.7068 14.7068C14.3158 15.0977 13.6819 15.0977 13.291 14.7068L10.132 11.5478L7.85982 13.8245C6.29267 15.3917 3.74267 15.3918 2.17538 13.8245C0.608205 12.2573 0.608205 9.70733 2.17538 8.14015L4.44761 5.86342L1.29322 2.70903C0.902259 2.31807 0.902259 1.68419 1.29322 1.29322ZM5.94352 7.35933L3.6713 9.63604C2.92896 10.3784 2.92896 11.5863 3.6713 12.3287C4.41363 13.071 5.62155 13.071 6.36394 12.3287L8.63614 10.0519L5.94352 7.35933Z",fill:"currentColor"}))};return s.displayName="Disconnect",s.isGlyph=!0,s}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Disconnect=e.Disconnect||{},e.Disconnect.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(e);function i(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function l(){return l=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},l.apply(null,arguments)}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,c,u={small:14,default:16,large:20,xlarge:24};var f=["className","size","title","aria-label","aria-labelledby","fill","role"],s=function(e){var t=e.className,s=e.size,b=void 0===s?16:s,d=e.title,p=e["aria-label"],y=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,n,i=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(n=0;n<l.length;n++)t=l[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}(e,f),h=r.css(o||(o=a(["\n color: ",";\n "])),v),j=r.css(c||(c=a(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var n,l=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return l||a||o?i(i(i({},"aria-labelledby",a),"aria-label",l),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Disconnect",i(i({title:d},"aria-label",p),"aria-labelledby",y));return n.createElement("svg",l({className:r.cx(i({},h,null!=v),j,t),height:"number"==typeof b?b:u[b],width:"number"==typeof b?b:u[b],role:g},C,O,{viewBox:"0 0 16 16"}),n.createElement("path",{d:"M7.09293 3.67136C6.96902 3.54745 6.96902 3.34652 7.09293 3.22258L8.14018 2.17538C9.70733 0.608258 12.2573 0.608152 13.8246 2.17538C15.3918 3.74259 15.3918 6.29263 13.8246 7.85981L12.7773 8.90702C12.6534 9.03093 12.4525 9.03093 12.3286 8.90702L11.2814 7.85989C11.1575 7.73597 11.1575 7.53505 11.2814 7.41111L12.3287 6.36392C13.071 5.62155 13.071 4.41366 12.3287 3.6713C11.5864 2.92896 10.3785 2.92893 9.63606 3.6713L8.58882 4.71849C8.4649 4.84241 8.26398 4.84241 8.14004 4.71849L7.09293 3.67136Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1.29322 1.29322C1.68419 0.902259 2.31807 0.902259 2.70903 1.29322L14.7068 13.291C15.0977 13.6819 15.0977 14.3158 14.7068 14.7068C14.3158 15.0977 13.6819 15.0977 13.291 14.7068L10.132 11.5478L7.85982 13.8245C6.29267 15.3917 3.74267 15.3918 2.17538 13.8245C0.608205 12.2573 0.608205 9.70733 2.17538 8.14015L4.44761 5.86342L1.29322 2.70903C0.902259 2.31807 0.902259 1.68419 1.29322 1.29322ZM5.94352 7.35933L3.6713 9.63604C2.92896 10.3784 2.92896 11.5863 3.6713 12.3287C4.41363 13.071 5.62155 13.071 6.36394 12.3287L8.63614 10.0519L5.94352 7.35933Z",fill:"currentColor"}))};return s.displayName="Disconnect",s.isGlyph=!0,s});
2
2
  //# sourceMappingURL=Disconnect.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Disconnect.js","sources":["../../src/glyphCommon.ts","../../src/generated/Disconnect.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 packages/icon/scripts/prebuild.ts\n* @checksum 84b84639ac8d58a42d22403f6d801314\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface DisconnectProps extends LGGlyph.ComponentProps {}\nconst Disconnect = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: DisconnectProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Disconnect', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M7.09293 3.67136C6.96902 3.54745 6.96902 3.34652 7.09293 3.22258L8.14018 2.17538C9.70733 0.608258 12.2573 0.608152 13.8246 2.17538C15.3918 3.74259 15.3918 6.29263 13.8246 7.85981L12.7773 8.90702C12.6534 9.03093 12.4525 9.03093 12.3286 8.90702L11.2814 7.85989C11.1575 7.73597 11.1575 7.53505 11.2814 7.41111L12.3287 6.36392C13.071 5.62155 13.071 4.41366 12.3287 3.6713C11.5864 2.92896 10.3785 2.92893 9.63606 3.6713L8.58882 4.71849C8.4649 4.84241 8.26398 4.84241 8.14004 4.71849L7.09293 3.67136Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M1.29322 1.29322C1.68419 0.902259 2.31807 0.902259 2.70903 1.29322L14.7068 13.291C15.0977 13.6819 15.0977 14.3158 14.7068 14.7068C14.3158 15.0977 13.6819 15.0977 13.291 14.7068L10.132 11.5478L7.85982 13.8245C6.29267 15.3917 3.74267 15.3918 2.17538 13.8245C0.608205 12.2573 0.608205 9.70733 2.17538 8.14015L4.44761 5.86342L1.29322 2.70903C0.902259 2.31807 0.902259 1.68419 1.29322 1.29322ZM5.94352 7.35933L3.6713 9.63604C2.92896 10.3784 2.92896 11.5863 3.6713 12.3287C4.41363 13.071 5.62155 13.071 6.36394 12.3287L8.63614 10.0519L5.94352 7.35933Z\" fill={'currentColor'} /></svg>;\n};\nDisconnect.displayName = 'Disconnect';\nDisconnect.isGlyph = true;\nexport default Disconnect;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Disconnect","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","fillRule","clipRule","displayName","isGlyph"],"mappings":"65CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAa,SAAoBC,GACnC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,aAAcU,EAAgBA,EAAgB,CAChGf,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,ifACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CO,SAAU,UACVC,SAAU,UACVF,EAAG,oiBACHxB,KAAM,iBAEV,SACAR,EAAWmC,YAAc,aACzBnC,EAAWoC,SAAU"}
1
+ {"version":3,"file":"Disconnect.js","sources":["../../src/glyphCommon.ts","../../src/generated/Disconnect.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 packages/icon/scripts/prebuild.ts\n* @checksum 84b84639ac8d58a42d22403f6d801314\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface DisconnectProps extends LGGlyph.ComponentProps {}\nconst Disconnect = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: DisconnectProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Disconnect', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M7.09293 3.67136C6.96902 3.54745 6.96902 3.34652 7.09293 3.22258L8.14018 2.17538C9.70733 0.608258 12.2573 0.608152 13.8246 2.17538C15.3918 3.74259 15.3918 6.29263 13.8246 7.85981L12.7773 8.90702C12.6534 9.03093 12.4525 9.03093 12.3286 8.90702L11.2814 7.85989C11.1575 7.73597 11.1575 7.53505 11.2814 7.41111L12.3287 6.36392C13.071 5.62155 13.071 4.41366 12.3287 3.6713C11.5864 2.92896 10.3785 2.92893 9.63606 3.6713L8.58882 4.71849C8.4649 4.84241 8.26398 4.84241 8.14004 4.71849L7.09293 3.67136Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M1.29322 1.29322C1.68419 0.902259 2.31807 0.902259 2.70903 1.29322L14.7068 13.291C15.0977 13.6819 15.0977 14.3158 14.7068 14.7068C14.3158 15.0977 13.6819 15.0977 13.291 14.7068L10.132 11.5478L7.85982 13.8245C6.29267 15.3917 3.74267 15.3918 2.17538 13.8245C0.608205 12.2573 0.608205 9.70733 2.17538 8.14015L4.44761 5.86342L1.29322 2.70903C0.902259 2.31807 0.902259 1.68419 1.29322 1.29322ZM5.94352 7.35933L3.6713 9.63604C2.92896 10.3784 2.92896 11.5863 3.6713 12.3287C4.41363 13.071 5.62155 13.071 6.36394 12.3287L8.63614 10.0519L5.94352 7.35933Z\" fill={'currentColor'} /></svg>;\n};\nDisconnect.displayName = 'Disconnect';\nDisconnect.isGlyph = true;\nexport default Disconnect;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Disconnect","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","fillRule","clipRule","displayName","isGlyph"],"mappings":"05CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAa,SAAoBC,GACnC,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,aAAcU,EAAgBA,EAAgB,CAChGf,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,ifACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CO,SAAU,UACVC,SAAU,UACVF,EAAG,oiBACHxB,KAAM,iBAEV,SACAR,EAAWmC,YAAc,aACzBnC,EAAWoC,SAAU"}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Download=e.Download||{},e.Download.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var n=t(e);function l(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(null,arguments)}function i(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,p=e["aria-label"],y=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,n,l=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}(e,c),h=r.css(o||(o=i(["\n color: ",";\n "])),v),j=r.css(u||(u=i(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var n,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?l(l(l({},"aria-labelledby",i),"aria-label",a),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Download",l(l({title:d},"aria-label",p),"aria-labelledby",y));return n.createElement("svg",a({className:r.cx(l({},h,null!=v),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},C,O,{viewBox:"0 0 16 16"}),n.createElement("path",{d:"M8.86193 2.74973L8.86193 7.95618L10.0128 6.80534C10.3056 6.51255 10.7803 6.51255 11.0731 6.80534L11.2522 6.98446C11.545 7.27725 11.545 7.75195 11.2522 8.04474L8.71611 10.5808C8.70969 10.5877 8.70311 10.5946 8.69638 10.6013L8.51726 10.7804C8.22447 11.0732 7.74976 11.0732 7.45698 10.7804L4.71959 8.04302C4.4268 7.75024 4.4268 7.27553 4.71959 6.98274L4.89871 6.80362C5.1915 6.51083 5.66621 6.51083 5.95899 6.80362L7.10914 7.95377V2.74973C7.10914 2.33567 7.44481 2 7.85888 2L8.1122 2C8.52626 2 8.86193 2.33567 8.86193 2.74973Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 10.25C3.41421 10.25 3.75 10.5858 3.75 11V12C3.75 12.1381 3.86193 12.25 4 12.25H12C12.1381 12.25 12.25 12.1381 12.25 12V11C12.25 10.5858 12.5858 10.25 13 10.25C13.4142 10.25 13.75 10.5858 13.75 11V12C13.75 12.9665 12.9665 13.75 12 13.75H4C3.0335 13.75 2.25 12.9665 2.25 12V11C2.25 10.5858 2.58579 10.25 3 10.25Z",fill:"currentColor"}))};return b.displayName="Download",b.isGlyph=!0,b}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Download=e.Download||{},e.Download.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var n=t(e);function l(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,r);if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var n in t)({}).hasOwnProperty.call(t,n)&&(e[n]=t[n])}return e},a.apply(null,arguments)}function i(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,p=e["aria-label"],y=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,n,l=function(e,r){if(null==e)return{};var t={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==r.indexOf(n))continue;t[n]=e[n]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(n=0;n<a.length;n++)t=a[n],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}(e,c),h=r.css(o||(o=i(["\n color: ",";\n "])),v),j=r.css(u||(u=i(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var n,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?l(l(l({},"aria-labelledby",i),"aria-label",a),"title",o):{"aria-label":(n=r,"".concat(n.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Download",l(l({title:d},"aria-label",p),"aria-labelledby",y));return n.createElement("svg",a({className:r.cx(l({},h,null!=v),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},C,O,{viewBox:"0 0 16 16"}),n.createElement("path",{d:"M8.86193 2.74973L8.86193 7.95618L10.0128 6.80534C10.3056 6.51255 10.7803 6.51255 11.0731 6.80534L11.2522 6.98446C11.545 7.27725 11.545 7.75195 11.2522 8.04474L8.71611 10.5808C8.70969 10.5877 8.70311 10.5946 8.69638 10.6013L8.51726 10.7804C8.22447 11.0732 7.74976 11.0732 7.45698 10.7804L4.71959 8.04302C4.4268 7.75024 4.4268 7.27553 4.71959 6.98274L4.89871 6.80362C5.1915 6.51083 5.66621 6.51083 5.95899 6.80362L7.10914 7.95377V2.74973C7.10914 2.33567 7.44481 2 7.85888 2L8.1122 2C8.52626 2 8.86193 2.33567 8.86193 2.74973Z",fill:"currentColor"}),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 10.25C3.41421 10.25 3.75 10.5858 3.75 11V12C3.75 12.1381 3.86193 12.25 4 12.25H12C12.1381 12.25 12.25 12.1381 12.25 12V11C12.25 10.5858 12.5858 10.25 13 10.25C13.4142 10.25 13.75 10.5858 13.75 11V12C13.75 12.9665 12.9665 13.75 12 13.75H4C3.0335 13.75 2.25 12.9665 2.25 12V11C2.25 10.5858 2.58579 10.25 3 10.25Z",fill:"currentColor"}))};return b.displayName="Download",b.isGlyph=!0,b});
2
2
  //# sourceMappingURL=Download.js.map
@@ -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 packages/icon/scripts/prebuild.ts\n* @checksum e629099a418ce9e4ac084094c9edb717\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface DownloadProps extends LGGlyph.ComponentProps {}\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 <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M8.86193 2.74973L8.86193 7.95618L10.0128 6.80534C10.3056 6.51255 10.7803 6.51255 11.0731 6.80534L11.2522 6.98446C11.545 7.27725 11.545 7.75195 11.2522 8.04474L8.71611 10.5808C8.70969 10.5877 8.70311 10.5946 8.69638 10.6013L8.51726 10.7804C8.22447 11.0732 7.74976 11.0732 7.45698 10.7804L4.71959 8.04302C4.4268 7.75024 4.4268 7.27553 4.71959 6.98274L4.89871 6.80362C5.1915 6.51083 5.66621 6.51083 5.95899 6.80362L7.10914 7.95377V2.74973C7.10914 2.33567 7.44481 2 7.85888 2L8.1122 2C8.52626 2 8.86193 2.33567 8.86193 2.74973Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M3 10.25C3.41421 10.25 3.75 10.5858 3.75 11V12C3.75 12.1381 3.86193 12.25 4 12.25H12C12.1381 12.25 12.25 12.1381 12.25 12V11C12.25 10.5858 12.5858 10.25 13 10.25C13.4142 10.25 13.75 10.5858 13.75 11V12C13.75 12.9665 12.9665 13.75 12 13.75H4C3.0335 13.75 2.25 12.9665 2.25 12V11C2.25 10.5858 2.58579 10.25 3 10.25Z\" fill={'currentColor'} /></svg>;\n};\nDownload.displayName = 'Download';\nDownload.isGlyph = true;\nexport default Download;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Download","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","fillRule","clipRule","displayName","isGlyph"],"mappings":"u5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,8gBACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CO,SAAU,UACVC,SAAU,UACVF,EAAG,4TACHxB,KAAM,iBAEV,SACAR,EAASmC,YAAc,WACvBnC,EAASoC,SAAU"}
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 packages/icon/scripts/prebuild.ts\n* @checksum e629099a418ce9e4ac084094c9edb717\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface DownloadProps extends LGGlyph.ComponentProps {}\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 <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M8.86193 2.74973L8.86193 7.95618L10.0128 6.80534C10.3056 6.51255 10.7803 6.51255 11.0731 6.80534L11.2522 6.98446C11.545 7.27725 11.545 7.75195 11.2522 8.04474L8.71611 10.5808C8.70969 10.5877 8.70311 10.5946 8.69638 10.6013L8.51726 10.7804C8.22447 11.0732 7.74976 11.0732 7.45698 10.7804L4.71959 8.04302C4.4268 7.75024 4.4268 7.27553 4.71959 6.98274L4.89871 6.80362C5.1915 6.51083 5.66621 6.51083 5.95899 6.80362L7.10914 7.95377V2.74973C7.10914 2.33567 7.44481 2 7.85888 2L8.1122 2C8.52626 2 8.86193 2.33567 8.86193 2.74973Z\" fill={'currentColor'} /><path fillRule=\"evenodd\" clipRule=\"evenodd\" d=\"M3 10.25C3.41421 10.25 3.75 10.5858 3.75 11V12C3.75 12.1381 3.86193 12.25 4 12.25H12C12.1381 12.25 12.25 12.1381 12.25 12V11C12.25 10.5858 12.5858 10.25 13 10.25C13.4142 10.25 13.75 10.5858 13.75 11V12C13.75 12.9665 12.9665 13.75 12 13.75H4C3.0335 13.75 2.25 12.9665 2.25 12V11C2.25 10.5858 2.58579 10.25 3 10.25Z\" fill={'currentColor'} /></svg>;\n};\nDownload.displayName = 'Download';\nDownload.isGlyph = true;\nexport default Download;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Download","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","fillRule","clipRule","displayName","isGlyph"],"mappings":"o5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,8gBACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CO,SAAU,UACVC,SAAU,UACVF,EAAG,4TACHxB,KAAM,iBAEV,SACAR,EAASmC,YAAc,WACvBnC,EAASoC,SAAU"}
package/dist/umd/Drag.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Drag=e.Drag||{},e.Drag.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var l=t(e);function n(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},a.apply(null,arguments)}function i(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,c,f={small:14,default:16,large:20,xlarge:24};var u=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,p=e["aria-label"],y=e["aria-labelledby"],m=e.fill,C=e.role,g=void 0===C?"img":C,v=function(e,r){if(null==e)return{};var t,l,n=function(e,r){if(null==e)return{};var t={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,u),h=r.css(o||(o=i(["\n color: ",";\n "])),m),O=r.css(c||(c=i(["\n flex-shrink: 0;\n "]))),j=function(e,r,t){var l,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?n(n(n({},"aria-labelledby",i),"aria-label",a),"title",o):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Drag",n(n({title:d},"aria-label",p),"aria-labelledby",y));return l.createElement("svg",a({className:r.cx(n({},h,null!=m),O,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},j,v,{viewBox:"0 0 16 16"}),l.createElement("path",{d:"M7 4C7 4.55228 6.55228 5 6 5C5.44772 5 5 4.55228 5 4C5 3.44772 5.44772 3 6 3C6.55228 3 7 3.44772 7 4Z",fill:"currentColor"}),l.createElement("path",{d:"M11 4C11 4.55228 10.5523 5 10 5C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3C10.5523 3 11 3.44772 11 4Z",fill:"currentColor"}),l.createElement("path",{d:"M7 8C7 8.55228 6.55228 9 6 9C5.44772 9 5 8.55228 5 8C5 7.44772 5.44772 7 6 7C6.55228 7 7 7.44772 7 8Z",fill:"currentColor"}),l.createElement("path",{d:"M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z",fill:"currentColor"}),l.createElement("path",{d:"M11 8C11 8.55228 10.5523 9 10 9C9.44772 9 9 8.55228 9 8C9 7.44772 9.44772 7 10 7C10.5523 7 11 7.44772 11 8Z",fill:"currentColor"}),l.createElement("path",{d:"M11 12C11 12.5523 10.5523 13 10 13C9.44772 13 9 12.5523 9 12C9 11.4477 9.44772 11 10 11C10.5523 11 11 11.4477 11 12Z",fill:"currentColor"}))};return b.displayName="Drag",b.isGlyph=!0,b}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Drag=e.Drag||{},e.Drag.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var l=t(e);function n(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},a.apply(null,arguments)}function i(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,c,f={small:14,default:16,large:20,xlarge:24};var u=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,p=e["aria-label"],y=e["aria-labelledby"],m=e.fill,C=e.role,g=void 0===C?"img":C,v=function(e,r){if(null==e)return{};var t,l,n=function(e,r){if(null==e)return{};var t={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,u),h=r.css(o||(o=i(["\n color: ",";\n "])),m),O=r.css(c||(c=i(["\n flex-shrink: 0;\n "]))),j=function(e,r,t){var l,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?n(n(n({},"aria-labelledby",i),"aria-label",a),"title",o):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Drag",n(n({title:d},"aria-label",p),"aria-labelledby",y));return l.createElement("svg",a({className:r.cx(n({},h,null!=m),O,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},j,v,{viewBox:"0 0 16 16"}),l.createElement("path",{d:"M7 4C7 4.55228 6.55228 5 6 5C5.44772 5 5 4.55228 5 4C5 3.44772 5.44772 3 6 3C6.55228 3 7 3.44772 7 4Z",fill:"currentColor"}),l.createElement("path",{d:"M11 4C11 4.55228 10.5523 5 10 5C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3C10.5523 3 11 3.44772 11 4Z",fill:"currentColor"}),l.createElement("path",{d:"M7 8C7 8.55228 6.55228 9 6 9C5.44772 9 5 8.55228 5 8C5 7.44772 5.44772 7 6 7C6.55228 7 7 7.44772 7 8Z",fill:"currentColor"}),l.createElement("path",{d:"M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z",fill:"currentColor"}),l.createElement("path",{d:"M11 8C11 8.55228 10.5523 9 10 9C9.44772 9 9 8.55228 9 8C9 7.44772 9.44772 7 10 7C10.5523 7 11 7.44772 11 8Z",fill:"currentColor"}),l.createElement("path",{d:"M11 12C11 12.5523 10.5523 13 10 13C9.44772 13 9 12.5523 9 12C9 11.4477 9.44772 11 10 11C10.5523 11 11 11.4477 11 12Z",fill:"currentColor"}))};return b.displayName="Drag",b.isGlyph=!0,b});
2
2
  //# sourceMappingURL=Drag.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Drag.js","sources":["../../src/glyphCommon.ts","../../src/generated/Drag.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 packages/icon/scripts/prebuild.ts\n* @checksum 7cf79403c44bc521ba654b3bd50d8f08\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface DragProps extends LGGlyph.ComponentProps {}\nconst Drag = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: DragProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Drag', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M7 4C7 4.55228 6.55228 5 6 5C5.44772 5 5 4.55228 5 4C5 3.44772 5.44772 3 6 3C6.55228 3 7 3.44772 7 4Z\" fill={'currentColor'} /><path d=\"M11 4C11 4.55228 10.5523 5 10 5C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3C10.5523 3 11 3.44772 11 4Z\" fill={'currentColor'} /><path d=\"M7 8C7 8.55228 6.55228 9 6 9C5.44772 9 5 8.55228 5 8C5 7.44772 5.44772 7 6 7C6.55228 7 7 7.44772 7 8Z\" fill={'currentColor'} /><path d=\"M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z\" fill={'currentColor'} /><path d=\"M11 8C11 8.55228 10.5523 9 10 9C9.44772 9 9 8.55228 9 8C9 7.44772 9.44772 7 10 7C10.5523 7 11 7.44772 11 8Z\" fill={'currentColor'} /><path d=\"M11 12C11 12.5523 10.5523 13 10 13C9.44772 13 9 12.5523 9 12C9 11.4477 9.44772 11 10 11C10.5523 11 11 11.4477 11 12Z\" fill={'currentColor'} /></svg>;\n};\nDrag.displayName = 'Drag';\nDrag.isGlyph = true;\nexport default Drag;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Drag","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"24CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAO,SAAcC,GACvB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,OAAQU,EAAgBA,EAAgB,CAC1Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,wGACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,8GACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,wGACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,iHACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,8GACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,uHACHxB,KAAM,iBAEV,SACAR,EAAKiC,YAAc,OACnBjC,EAAKkC,SAAU"}
1
+ {"version":3,"file":"Drag.js","sources":["../../src/glyphCommon.ts","../../src/generated/Drag.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 packages/icon/scripts/prebuild.ts\n* @checksum 7cf79403c44bc521ba654b3bd50d8f08\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface DragProps extends LGGlyph.ComponentProps {}\nconst Drag = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: DragProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Drag', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M7 4C7 4.55228 6.55228 5 6 5C5.44772 5 5 4.55228 5 4C5 3.44772 5.44772 3 6 3C6.55228 3 7 3.44772 7 4Z\" fill={'currentColor'} /><path d=\"M11 4C11 4.55228 10.5523 5 10 5C9.44772 5 9 4.55228 9 4C9 3.44772 9.44772 3 10 3C10.5523 3 11 3.44772 11 4Z\" fill={'currentColor'} /><path d=\"M7 8C7 8.55228 6.55228 9 6 9C5.44772 9 5 8.55228 5 8C5 7.44772 5.44772 7 6 7C6.55228 7 7 7.44772 7 8Z\" fill={'currentColor'} /><path d=\"M7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z\" fill={'currentColor'} /><path d=\"M11 8C11 8.55228 10.5523 9 10 9C9.44772 9 9 8.55228 9 8C9 7.44772 9.44772 7 10 7C10.5523 7 11 7.44772 11 8Z\" fill={'currentColor'} /><path d=\"M11 12C11 12.5523 10.5523 13 10 13C9.44772 13 9 12.5523 9 12C9 11.4477 9.44772 11 10 11C10.5523 11 11 11.4477 11 12Z\" fill={'currentColor'} /></svg>;\n};\nDrag.displayName = 'Drag';\nDrag.isGlyph = true;\nexport default Drag;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Drag","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"w4CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAO,SAAcC,GACvB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,OAAQU,EAAgBA,EAAgB,CAC1Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,wGACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,8GACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,wGACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,iHACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,8GACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,uHACHxB,KAAM,iBAEV,SACAR,EAAKiC,YAAc,OACnBjC,EAAKkC,SAAU"}
package/dist/umd/Edit.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Edit=e.Edit||{},e.Edit.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var i=t(e);function n(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},a.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,f,u={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,y=e["aria-label"],p=e["aria-labelledby"],m=e.fill,v=e.role,g=void 0===v?"img":v,O=function(e,r){if(null==e)return{};var t,i,n=function(e,r){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==r.indexOf(i))continue;t[i]=e[i]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)t=a[i],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,c),j=r.css(o||(o=l(["\n color: ",";\n "])),m),h=r.css(f||(f=l(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var i,a=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||l||o?n(n(n({},"aria-labelledby",l),"aria-label",a),"title",o):{"aria-label":(i=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Edit",n(n({title:d},"aria-label",y),"aria-labelledby",p));return i.createElement("svg",a({className:r.cx(n({},j,null!=m),h,t),height:"number"==typeof s?s:u[s],width:"number"==typeof s?s:u[s],role:g},w,O,{viewBox:"0 0 16 16"}),i.createElement("path",{d:"M10.9219 0.681233C11.2981 0.304986 11.9082 0.304986 12.2844 0.681233L13.6469 2.04375C14.0232 2.41999 14.0232 3.03001 13.6469 3.40626L12.2844 4.76877L9.55939 2.04375L8.5375 3.06563L11.2625 5.79066L4.10934 12.9438L0.362427 13.9657L1.38431 10.2188L10.9219 0.681233Z",fill:"currentColor"}))};return b.displayName="Edit",b.isGlyph=!0,b}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Edit=e.Edit||{},e.Edit.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var i=t(e);function n(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},a.apply(null,arguments)}function l(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,f,u={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,y=e["aria-label"],p=e["aria-labelledby"],m=e.fill,v=e.role,g=void 0===v?"img":v,O=function(e,r){if(null==e)return{};var t,i,n=function(e,r){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==r.indexOf(i))continue;t[i]=e[i]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)t=a[i],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,c),j=r.css(o||(o=l(["\n color: ",";\n "])),m),h=r.css(f||(f=l(["\n flex-shrink: 0;\n "]))),w=function(e,r,t){var i,a=t["aria-label"],l=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||l||o?n(n(n({},"aria-labelledby",l),"aria-label",a),"title",o):{"aria-label":(i=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Edit",n(n({title:d},"aria-label",y),"aria-labelledby",p));return i.createElement("svg",a({className:r.cx(n({},j,null!=m),h,t),height:"number"==typeof s?s:u[s],width:"number"==typeof s?s:u[s],role:g},w,O,{viewBox:"0 0 16 16"}),i.createElement("path",{d:"M10.9219 0.681233C11.2981 0.304986 11.9082 0.304986 12.2844 0.681233L13.6469 2.04375C14.0232 2.41999 14.0232 3.03001 13.6469 3.40626L12.2844 4.76877L9.55939 2.04375L8.5375 3.06563L11.2625 5.79066L4.10934 12.9438L0.362427 13.9657L1.38431 10.2188L10.9219 0.681233Z",fill:"currentColor"}))};return b.displayName="Edit",b.isGlyph=!0,b});
2
2
  //# sourceMappingURL=Edit.js.map
@@ -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 packages/icon/scripts/prebuild.ts\n* @checksum 6e6ab9c9bfeabe5caf5109ac10b0a551\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface EditProps extends LGGlyph.ComponentProps {}\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 <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M10.9219 0.681233C11.2981 0.304986 11.9082 0.304986 12.2844 0.681233L13.6469 2.04375C14.0232 2.41999 14.0232 3.03001 13.6469 3.40626L12.2844 4.76877L9.55939 2.04375L8.5375 3.06563L11.2625 5.79066L4.10934 12.9438L0.362427 13.9657L1.38431 10.2188L10.9219 0.681233Z\" fill={'currentColor'} /></svg>;\n};\nEdit.displayName = 'Edit';\nEdit.isGlyph = true;\nexport default Edit;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Edit","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"24CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAO,SAAcC,GACvB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,OAAQU,EAAgBA,EAAgB,CAC1Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,yQACHxB,KAAM,iBAEV,SACAR,EAAKiC,YAAc,OACnBjC,EAAKkC,SAAU"}
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 packages/icon/scripts/prebuild.ts\n* @checksum 6e6ab9c9bfeabe5caf5109ac10b0a551\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface EditProps extends LGGlyph.ComponentProps {}\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 <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M10.9219 0.681233C11.2981 0.304986 11.9082 0.304986 12.2844 0.681233L13.6469 2.04375C14.0232 2.41999 14.0232 3.03001 13.6469 3.40626L12.2844 4.76877L9.55939 2.04375L8.5375 3.06563L11.2625 5.79066L4.10934 12.9438L0.362427 13.9657L1.38431 10.2188L10.9219 0.681233Z\" fill={'currentColor'} /></svg>;\n};\nEdit.displayName = 'Edit';\nEdit.isGlyph = true;\nexport default Edit;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Edit","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"w4CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAO,SAAcC,GACvB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,OAAQU,EAAgBA,EAAgB,CAC1Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,yQACHxB,KAAM,iBAEV,SACAR,EAAKiC,YAAc,OACnBjC,EAAKkC,SAAU"}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Ellipsis=e.Ellipsis||{},e.Ellipsis.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var i=t(e);function l(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},n.apply(null,arguments)}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],s=function(e){var t=e.className,s=e.size,b=void 0===s?16:s,p=e.title,d=e["aria-label"],y=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,i,l=function(e,r){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==r.indexOf(i))continue;t[i]=e[i]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)t=n[i],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}(e,c),j=r.css(o||(o=a(["\n color: ",";\n "])),v),h=r.css(u||(u=a(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var i,n=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return n||a||o?l(l(l({},"aria-labelledby",a),"aria-label",n),"title",o):{"aria-label":(i=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Ellipsis",l(l({title:p},"aria-label",d),"aria-labelledby",y));return i.createElement("svg",n({className:r.cx(l({},j,null!=v),h,t),height:"number"==typeof b?b:f[b],width:"number"==typeof b?b:f[b],role:g},C,O,{viewBox:"0 0 16 16"}),i.createElement("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 s.displayName="Ellipsis",s.isGlyph=!0,s}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Ellipsis=e.Ellipsis||{},e.Ellipsis.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var i=t(e);function l(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var i=t.call(e,r);if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function n(){return n=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var i in t)({}).hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},n.apply(null,arguments)}function a(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,u,f={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],s=function(e){var t=e.className,s=e.size,b=void 0===s?16:s,p=e.title,d=e["aria-label"],y=e["aria-labelledby"],v=e.fill,m=e.role,g=void 0===m?"img":m,O=function(e,r){if(null==e)return{};var t,i,l=function(e,r){if(null==e)return{};var t={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==r.indexOf(i))continue;t[i]=e[i]}return t}(e,r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(i=0;i<n.length;i++)t=n[i],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(l[t]=e[t])}return l}(e,c),j=r.css(o||(o=a(["\n color: ",";\n "])),v),h=r.css(u||(u=a(["\n flex-shrink: 0;\n "]))),C=function(e,r,t){var i,n=t["aria-label"],a=t["aria-labelledby"],o=t.title;switch(e){case"img":return n||a||o?l(l(l({},"aria-labelledby",a),"aria-label",n),"title",o):{"aria-label":(i=r,"".concat(i.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Ellipsis",l(l({title:p},"aria-label",d),"aria-labelledby",y));return i.createElement("svg",n({className:r.cx(l({},j,null!=v),h,t),height:"number"==typeof b?b:f[b],width:"number"==typeof b?b:f[b],role:g},C,O,{viewBox:"0 0 16 16"}),i.createElement("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 s.displayName="Ellipsis",s.isGlyph=!0,s});
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 packages/icon/scripts/prebuild.ts\n* @checksum cc5de70d801e618af7e337d580d21307\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface EllipsisProps extends LGGlyph.ComponentProps {}\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 <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><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'} /></svg>;\n};\nEllipsis.displayName = 'Ellipsis';\nEllipsis.isGlyph = true;\nexport default Ellipsis;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Ellipsis","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"u5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,0XACH1B,KAAM,iBAEV,SACAR,EAASmC,YAAc,WACvBnC,EAASoC,SAAU"}
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 packages/icon/scripts/prebuild.ts\n* @checksum cc5de70d801e618af7e337d580d21307\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface EllipsisProps extends LGGlyph.ComponentProps {}\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 <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><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'} /></svg>;\n};\nEllipsis.displayName = 'Ellipsis';\nEllipsis.isGlyph = true;\nexport default Ellipsis;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Ellipsis","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","fillRule","clipRule","d","displayName","isGlyph"],"mappings":"o5CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAW,SAAkBC,GAC/B,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,WAAYU,EAAgBA,EAAgB,CAC9Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,SAAU,UACVC,SAAU,UACVC,EAAG,0XACH1B,KAAM,iBAEV,SACAR,EAASmC,YAAc,WACvBnC,EAASoC,SAAU"}
package/dist/umd/Email.js CHANGED
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Email=e.Email||{},e.Email.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var l=t(e);function n(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},a.apply(null,arguments)}function i(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,c,f={small:14,default:16,large:20,xlarge:24};var u=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,m=e["aria-label"],p=e["aria-labelledby"],y=e.fill,v=e.role,g=void 0===v?"img":v,h=function(e,r){if(null==e)return{};var t,l,n=function(e,r){if(null==e)return{};var t={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,u),O=r.css(o||(o=i(["\n color: ",";\n "])),y),j=r.css(c||(c=i(["\n flex-shrink: 0;\n "]))),E=function(e,r,t){var l,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?n(n(n({},"aria-labelledby",i),"aria-label",a),"title",o):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Email",n(n({title:d},"aria-label",m),"aria-labelledby",p));return l.createElement("svg",a({className:r.cx(n({},O,null!=y),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},E,h,{viewBox:"0 0 16 16"}),l.createElement("path",{d:"M2.49388 4L7.20766 9.05051C7.64505 9.51914 8.35419 9.51914 8.79158 9.05051L13.5054 4H2.49388Z",fill:"currentColor"}),l.createElement("path",{d:"M1.13324 4.25647C1.04729 4.48631 1 4.73721 1 4.99995V11C1 11.369 1.09326 11.7146 1.25591 12.0114L4.8135 8.19963L1.13324 4.25647Z",fill:"currentColor"}),l.createElement("path",{d:"M2.86667 13C2.5187 13 2.19297 12.898 1.91411 12.7204L5.47346 8.90674L6.69282 10.2132C7.42179 10.9943 8.6037 10.9943 9.33268 10.2132L10.6793 8.77044L14.2535 12.6C13.9415 12.8512 13.5536 13 13.1333 13H2.86667Z",fill:"currentColor"}),l.createElement("path",{d:"M14.8392 11.8133C14.9425 11.5648 15 11.2896 15 11V4.99995C15 4.74466 14.9554 4.50054 14.874 4.27606L11.3392 8.06332L14.8392 11.8133Z",fill:"currentColor"}))};return b.displayName="Email",b.isGlyph=!0,b}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).Email=e.Email||{},e.Email.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var l=t(e);function n(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},a.apply(null,arguments)}function i(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var o,c,f={small:14,default:16,large:20,xlarge:24};var u=["className","size","title","aria-label","aria-labelledby","fill","role"],b=function(e){var t=e.className,b=e.size,s=void 0===b?16:b,d=e.title,m=e["aria-label"],p=e["aria-labelledby"],y=e.fill,v=e.role,g=void 0===v?"img":v,h=function(e,r){if(null==e)return{};var t,l,n=function(e,r){if(null==e)return{};var t={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(n[t]=e[t])}return n}(e,u),O=r.css(o||(o=i(["\n color: ",";\n "])),y),j=r.css(c||(c=i(["\n flex-shrink: 0;\n "]))),E=function(e,r,t){var l,a=t["aria-label"],i=t["aria-labelledby"],o=t.title;switch(e){case"img":return a||i||o?n(n(n({},"aria-labelledby",i),"aria-label",a),"title",o):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(g,"Email",n(n({title:d},"aria-label",m),"aria-labelledby",p));return l.createElement("svg",a({className:r.cx(n({},O,null!=y),j,t),height:"number"==typeof s?s:f[s],width:"number"==typeof s?s:f[s],role:g},E,h,{viewBox:"0 0 16 16"}),l.createElement("path",{d:"M2.49388 4L7.20766 9.05051C7.64505 9.51914 8.35419 9.51914 8.79158 9.05051L13.5054 4H2.49388Z",fill:"currentColor"}),l.createElement("path",{d:"M1.13324 4.25647C1.04729 4.48631 1 4.73721 1 4.99995V11C1 11.369 1.09326 11.7146 1.25591 12.0114L4.8135 8.19963L1.13324 4.25647Z",fill:"currentColor"}),l.createElement("path",{d:"M2.86667 13C2.5187 13 2.19297 12.898 1.91411 12.7204L5.47346 8.90674L6.69282 10.2132C7.42179 10.9943 8.6037 10.9943 9.33268 10.2132L10.6793 8.77044L14.2535 12.6C13.9415 12.8512 13.5536 13 13.1333 13H2.86667Z",fill:"currentColor"}),l.createElement("path",{d:"M14.8392 11.8133C14.9425 11.5648 15 11.2896 15 11V4.99995C15 4.74466 14.9554 4.50054 14.874 4.27606L11.3392 8.06332L14.8392 11.8133Z",fill:"currentColor"}))};return b.displayName="Email",b.isGlyph=!0,b});
2
2
  //# sourceMappingURL=Email.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Email.js","sources":["../../src/glyphCommon.ts","../../src/generated/Email.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 packages/icon/scripts/prebuild.ts\n* @checksum 9568cbe685b220b70bbdd2d06d814a2b\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface EmailProps extends LGGlyph.ComponentProps {}\nconst Email = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: EmailProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Email', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M2.49388 4L7.20766 9.05051C7.64505 9.51914 8.35419 9.51914 8.79158 9.05051L13.5054 4H2.49388Z\" fill={'currentColor'} /><path d=\"M1.13324 4.25647C1.04729 4.48631 1 4.73721 1 4.99995V11C1 11.369 1.09326 11.7146 1.25591 12.0114L4.8135 8.19963L1.13324 4.25647Z\" fill={'currentColor'} /><path d=\"M2.86667 13C2.5187 13 2.19297 12.898 1.91411 12.7204L5.47346 8.90674L6.69282 10.2132C7.42179 10.9943 8.6037 10.9943 9.33268 10.2132L10.6793 8.77044L14.2535 12.6C13.9415 12.8512 13.5536 13 13.1333 13H2.86667Z\" fill={'currentColor'} /><path d=\"M14.8392 11.8133C14.9425 11.5648 15 11.2896 15 11V4.99995C15 4.74466 14.9554 4.50054 14.874 4.27606L11.3392 8.06332L14.8392 11.8133Z\" fill={'currentColor'} /></svg>;\n};\nEmail.displayName = 'Email';\nEmail.isGlyph = true;\nexport default Email;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Email","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"84CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAQ,SAAeC,GACzB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,QAASU,EAAgBA,EAAgB,CAC3Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,gGACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,mIACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,kNACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,uIACHxB,KAAM,iBAEV,SACAR,EAAMiC,YAAc,QACpBjC,EAAMkC,SAAU"}
1
+ {"version":3,"file":"Email.js","sources":["../../src/glyphCommon.ts","../../src/generated/Email.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 packages/icon/scripts/prebuild.ts\n* @checksum 9568cbe685b220b70bbdd2d06d814a2b\n*/\nimport * as React from \"react\";\nimport { css, cx } from '@leafygreen-ui/emotion';\nimport { generateAccessibleProps, sizeMap } from '../glyphCommon';\nimport { LGGlyph } from '../types';\nexport interface EmailProps extends LGGlyph.ComponentProps {}\nconst Email = ({\n className,\n size = 16,\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby,\n fill,\n role = 'img',\n ...props\n}: EmailProps) => {\n const fillStyle = css`\n color: ${fill};\n `;\n const noFlexShrink = css`\n flex-shrink: 0;\n `;\n const accessibleProps = generateAccessibleProps(role, 'Email', {\n title,\n ['aria-label']: ariaLabel,\n ['aria-labelledby']: ariaLabelledby\n });\n return <svg className={cx({\n [fillStyle]: fill != null\n }, noFlexShrink, className)} height={typeof size === 'number' ? size : sizeMap[size]} width={typeof size === 'number' ? size : sizeMap[size]} role={role} {...accessibleProps} {...props} viewBox=\"0 0 16 16\"><path d=\"M2.49388 4L7.20766 9.05051C7.64505 9.51914 8.35419 9.51914 8.79158 9.05051L13.5054 4H2.49388Z\" fill={'currentColor'} /><path d=\"M1.13324 4.25647C1.04729 4.48631 1 4.73721 1 4.99995V11C1 11.369 1.09326 11.7146 1.25591 12.0114L4.8135 8.19963L1.13324 4.25647Z\" fill={'currentColor'} /><path d=\"M2.86667 13C2.5187 13 2.19297 12.898 1.91411 12.7204L5.47346 8.90674L6.69282 10.2132C7.42179 10.9943 8.6037 10.9943 9.33268 10.2132L10.6793 8.77044L14.2535 12.6C13.9415 12.8512 13.5536 13 13.1333 13H2.86667Z\" fill={'currentColor'} /><path d=\"M14.8392 11.8133C14.9425 11.5648 15 11.2896 15 11V4.99995C15 4.74466 14.9554 4.50054 14.874 4.27606L11.3392 8.06332L14.8392 11.8133Z\" fill={'currentColor'} /></svg>;\n};\nEmail.displayName = 'Email';\nEmail.isGlyph = true;\nexport default Email;"],"names":["_templateObject","_templateObject2","sizeMap","small","default","large","xlarge","_excluded","Email","_ref","className","_ref$size","size","title","ariaLabel","ariaLabelledby","fill","_ref$role","role","props","_objectWithoutProperties","fillStyle","css","_taggedTemplateLiteral","noFlexShrink","accessibleProps","glyphName","name","_defineProperty","concat","replace","alt","generateAccessibleProps","React","createElement","_extends","cx","height","width","viewBox","d","displayName","isGlyph"],"mappings":"24CAOO,ICNHA,EAAiBC,EDMVC,EAAU,CACnBC,MAAO,GACPC,QAAS,GACTC,MAAO,GACPC,OAAQ,ICTV,IAAIC,EAAY,CAAC,YAAa,OAAQ,QAAS,aAAc,kBAAmB,OAAQ,QAUpFC,EAAQ,SAAeC,GACzB,IAAIC,EAAYD,EAAKC,UACnBC,EAAYF,EAAKG,KACjBA,OAAqB,IAAdD,EAAuB,GAAKA,EACnCE,EAAQJ,EAAKI,MACbC,EAAYL,EAAK,cACjBM,EAAiBN,EAAK,mBACtBO,EAAOP,EAAKO,KACZC,EAAYR,EAAKS,KACjBA,OAAqB,IAAdD,EAAuB,MAAQA,EACtCE,+WAAQC,CAAyBX,EAAMF,GACrCc,EAAYC,EAAAA,IAAItB,IAAoBA,EAAkBuB,EAAuB,CAAC,oBAAqB,eAAgBP,GACnHQ,EAAeF,EAAGA,IAACrB,IAAqBA,EAAmBsB,EAAuB,CAAC,wCACnFE,EDZC,SAAiCP,EAAMQ,EAAWjB,GACvD,IAkB4BkB,EAlBxBb,EAAYL,EAAK,cACnBM,EAAiBN,EAAK,mBACtBI,EAAQJ,EAAKI,MACf,OAAQK,GACN,IAAK,MACH,OAAKJ,GAAcC,GAAmBF,EAK/Be,EAAgBA,EAAgBA,EAAgB,CAAE,EAAE,kBAAmBb,GAAiB,aAAcD,GAAY,QAASD,GAJzH,CACL,cAWoBc,EAXQD,EAY7B,GAAGG,OAAOF,EAAKG,QAAQ,kBAAmB,SAAU,WARzD,IAAK,eACH,MAAO,CACL,eAAe,EACfC,IAAK,IAGb,CCNwBC,CAAwBd,EAAM,QAASU,EAAgBA,EAAgB,CAC3Ff,MAAOA,GACN,aAAcC,GAAY,kBAAmBC,IAChD,OAAoBkB,EAAMC,cAAc,MAAOC,EAAS,CACtDzB,UAAW0B,EAAAA,GAAGR,EAAgB,GAAIP,EAAmB,MAARL,GAAeQ,EAAcd,GAC1E2B,OAAwB,iBAATzB,EAAoBA,EAAOV,EAAQU,GAClD0B,MAAuB,iBAAT1B,EAAoBA,EAAOV,EAAQU,GACjDM,KAAMA,GACLO,EAAiBN,EAAO,CACzBoB,QAAS,cACMN,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,gGACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,mIACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,kNACHxB,KAAM,iBACSiB,EAAMC,cAAc,OAAQ,CAC3CM,EAAG,uIACHxB,KAAM,iBAEV,SACAR,EAAMiC,YAAc,QACpBjC,EAAMkC,SAAU"}
@@ -1,2 +1,2 @@
1
- !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).EmptyDatabase=e.EmptyDatabase||{},e.EmptyDatabase.js=r(e.React,e.emotion))}(this,(function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}})),r.default=e,Object.freeze(r)}var l=t(e);function C(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},a.apply(null,arguments)}function n(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var i,o,u={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],f=function(e){var t=e.className,f=e.size,b=void 0===f?16:f,s=e.title,d=e["aria-label"],p=e["aria-labelledby"],y=e.fill,m=e.role,v=void 0===m?"img":m,g=function(e,r){if(null==e)return{};var t,l,C=function(e,r){if(null==e)return{};var t={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(C[t]=e[t])}return C}(e,c),O=r.css(i||(i=n(["\n color: ",";\n "])),y),h=r.css(o||(o=n(["\n flex-shrink: 0;\n "]))),Z=function(e,r,t){var l,a=t["aria-label"],n=t["aria-labelledby"],i=t.title;switch(e){case"img":return a||n||i?C(C(C({},"aria-labelledby",n),"aria-label",a),"title",i):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(v,"EmptyDatabase",C(C({title:s},"aria-label",d),"aria-labelledby",p));return l.createElement("svg",a({className:r.cx(C({},O,null!=y),h,t),height:"number"==typeof b?b:u[b],width:"number"==typeof b?b:u[b],role:v},Z,g,{viewBox:"0 0 16 16"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5076 1.60749C7.65108 1.60258 7.79684 1.6001 7.94477 1.6001C8.09386 1.6001 8.24086 1.60262 8.38565 1.6076C8.79962 1.62183 9.12367 1.96896 9.10944 2.38293C9.09521 2.7969 8.74808 3.12094 8.33411 3.10671C8.20677 3.10233 8.07695 3.1001 7.94477 3.1001C7.81361 3.1001 7.68494 3.1023 7.55885 3.10661C7.14487 3.12076 6.79781 2.79664 6.78366 2.38267C6.76951 1.9687 7.09363 1.62164 7.5076 1.60749ZM6.22702 2.44453C6.33363 2.84479 6.09558 3.25569 5.69532 3.3623C5.44384 3.42928 5.21813 3.50667 5.01884 3.59163C4.6378 3.75406 4.19723 3.57685 4.0348 3.19582C3.87236 2.81478 4.04957 2.37421 4.4306 2.21178C4.70259 2.09583 4.99664 1.99609 5.30926 1.91283C5.70952 1.80622 6.12041 2.04427 6.22702 2.44453ZM9.68375 2.4478C9.7895 2.04731 10.1999 1.80839 10.6004 1.91415C10.9145 1.9971 11.2105 2.09628 11.4846 2.21139C11.8665 2.37176 12.0461 2.81136 11.8858 3.19327C11.7254 3.57518 11.2858 3.75478 10.9039 3.59442C10.7008 3.50916 10.4717 3.43158 10.2174 3.36443C9.81691 3.25868 9.57799 2.84829 9.68375 2.4478ZM12.462 3.52915C12.8556 3.40016 13.2793 3.61467 13.4083 4.00828C13.4757 4.21408 13.5109 4.42898 13.5109 4.64941C13.5109 4.86988 13.4764 5.08588 13.4029 5.293C13.2643 5.68335 12.8355 5.88747 12.4452 5.74892C12.0548 5.61036 11.8507 5.1816 11.9893 4.79125C12.0016 4.75666 12.0109 4.71148 12.0109 4.64941C12.0109 4.59034 12.0018 4.533 11.9829 4.47543C11.8539 4.08181 12.0684 3.65815 12.462 3.52915ZM3.47822 3.52968C3.87322 3.65438 4.09235 4.07567 3.96765 4.47067C3.94918 4.52918 3.94 4.58817 3.94 4.64941C3.94 4.70884 3.94906 4.7523 3.96103 4.78591C4.1 5.17611 3.89634 5.60509 3.50613 5.74406C3.11593 5.88304 2.68695 5.67937 2.54797 5.28917C2.47477 5.08363 2.44 4.86895 2.44 4.64941C2.44 4.4333 2.47316 4.22209 2.53723 4.01912C2.66193 3.62412 3.08322 3.40499 3.47822 3.52968ZM4.10042 5.91355C4.21305 5.51494 4.6275 5.28312 5.0261 5.39575C5.23484 5.45474 5.46953 5.50827 5.73012 5.55697C6.13729 5.63306 6.40567 6.02482 6.32958 6.43199C6.25348 6.83915 5.86172 7.10753 5.45456 7.03144C5.16019 6.97643 4.87998 6.9132 4.61821 6.83923C4.2196 6.72659 3.98778 6.31215 4.10042 5.91355ZM11.8289 5.92656C11.9389 6.32588 11.7045 6.73883 11.3051 6.8489C11.0414 6.92162 10.7584 6.9838 10.46 7.03795C10.0525 7.11192 9.66211 6.84149 9.58814 6.43394C9.51417 6.02638 9.7846 5.63603 10.1922 5.56206C10.4572 5.51395 10.6952 5.46109 10.9065 5.40284C11.3058 5.29276 11.7188 5.52724 11.8289 5.92656ZM6.80347 6.4788C6.84074 6.06627 7.20537 5.76205 7.6179 5.79932C7.72557 5.80904 7.83491 5.81847 7.94587 5.82766C8.05862 5.81866 8.16958 5.80942 8.27873 5.7999C8.69138 5.76392 9.05507 6.06926 9.09105 6.48191C9.12704 6.89456 8.82169 7.25825 8.40904 7.29423C8.27596 7.30584 8.14077 7.317 8.00358 7.32779C7.96371 7.33092 7.92366 7.33087 7.8838 7.32762C7.74838 7.31657 7.61472 7.30514 7.48295 7.29323C7.07042 7.25597 6.7662 6.89133 6.80347 6.4788Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.76945 9.31366C3.93133 8.93239 4.37164 8.75454 4.75291 8.91641C4.98254 9.01391 5.23645 9.09728 5.50262 9.16779C5.90302 9.27387 6.14162 9.68445 6.03554 10.0849C5.92946 10.4853 5.51888 10.7239 5.11848 10.6178C4.80042 10.5335 4.47639 10.4286 4.1667 10.2971C3.78543 10.1352 3.60757 9.69494 3.76945 9.31366ZM12.2243 9.32973C12.3825 9.71254 12.2005 10.1511 11.8177 10.3093C11.5048 10.4386 11.1774 10.5418 10.8559 10.6246C10.4548 10.728 10.0459 10.4867 9.94248 10.0855C9.83911 9.68444 10.0805 9.27548 10.4816 9.1721C10.7523 9.10232 11.0108 9.01974 11.2447 8.92307C11.6275 8.76486 12.0661 8.94693 12.2243 9.32973ZM6.77957 10.1849C6.80522 9.77144 7.16116 9.45709 7.57458 9.48275C7.70493 9.49083 7.80922 9.4952 7.87976 9.49752C7.915 9.49869 7.94174 9.49934 7.95902 9.49969L7.97456 9.49997L7.99052 9.49969C8.00809 9.49934 8.03523 9.4987 8.07097 9.49755C8.14249 9.49525 8.24816 9.49094 8.38021 9.48297C8.79367 9.45799 9.14909 9.77292 9.17406 10.1864C9.19904 10.5998 8.88411 10.9553 8.47065 10.9802C8.32308 10.9892 8.20324 10.9941 8.11916 10.9968C8.0771 10.9981 8.04391 10.9989 8.02061 10.9994L7.99316 10.9999L7.98522 11L7.98272 11L7.98151 11H7.96737L7.96593 11L7.96343 11L7.95548 10.9999L7.92816 10.9994C7.90499 10.9989 7.87203 10.9981 7.83029 10.9967C7.74684 10.994 7.62799 10.9889 7.48168 10.9799C7.06827 10.9542 6.75392 10.5983 6.77957 10.1849Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6.85005C3.41421 6.85005 3.75 7.18584 3.75 7.60005V8.22861C3.75 8.64282 3.41421 8.97861 3 8.97861C2.58579 8.97861 2.25 8.64282 2.25 8.22861V7.60005C2.25 7.18584 2.58579 6.85005 3 6.85005ZM13 6.85005C13.4142 6.85005 13.75 7.18584 13.75 7.60005V8.22861C13.75 8.64282 13.4142 8.97861 13 8.97861C12.5858 8.97861 12.25 8.64282 12.25 8.22861V7.60005C12.25 7.18584 12.5858 6.85005 13 6.85005ZM3 10.6214C3.41421 10.6214 3.75 10.9572 3.75 11.3714V11.7228C3.75972 11.7327 3.76966 11.7425 3.77984 11.7524C4.0771 12.0409 4.08424 12.5157 3.79578 12.8129C3.50732 13.1102 3.0325 13.1173 2.73524 12.8289C2.61288 12.7102 2.50042 12.5838 2.4 12.45C2.30263 12.3201 2.25 12.1622 2.25 12V11.3714C2.25 10.9572 2.58579 10.6214 3 10.6214ZM13 10.6214C13.4142 10.6214 13.75 10.9572 13.75 11.3714V12C13.75 12.1622 13.6974 12.3201 13.6 12.45C13.494 12.5912 13.3727 12.7208 13.2422 12.8393C12.9355 13.1177 12.4612 13.0949 12.1827 12.7883C11.9043 12.4816 11.9271 12.0073 12.2337 11.7288C12.2393 11.7238 12.2447 11.7188 12.25 11.7139V11.3714C12.25 10.9572 12.5858 10.6214 13 10.6214ZM11.7533 12.9525C11.8873 13.3444 11.6783 13.7708 11.2864 13.9049C11.0264 13.9938 10.7562 14.0727 10.4803 14.1409C10.0782 14.2403 9.67167 13.9949 9.57228 13.5928C9.4729 13.1907 9.7183 12.7841 10.1204 12.6847C10.3566 12.6264 10.5847 12.5596 10.8009 12.4857C11.1928 12.3516 11.6192 12.5606 11.7533 12.9525ZM4.22533 13.0017C4.35896 12.6096 4.78512 12.4001 5.17719 12.5338C5.38606 12.605 5.61107 12.6688 5.85122 12.7239C6.25496 12.8164 6.50721 13.2188 6.41464 13.6225C6.32206 14.0262 5.91972 14.2785 5.51599 14.1859C5.22886 14.1201 4.95403 14.0424 4.69326 13.9536C4.3012 13.8199 4.0917 13.3938 4.22533 13.0017ZM9.13633 13.6577C9.15486 14.0715 8.83443 14.422 8.42063 14.4405C8.2798 14.4468 8.13941 14.4501 8 14.4501C7.8606 14.4501 7.72277 14.4478 7.5866 14.4434C7.1726 14.4301 6.84782 14.0836 6.86118 13.6696C6.87455 13.2556 7.22099 12.9308 7.63499 12.9442C7.75487 12.9481 7.87657 12.9501 8 12.9501C8.11625 12.9501 8.23426 12.9474 8.35353 12.942C8.76733 12.9235 9.1178 13.2439 9.13633 13.6577Z",fill:"currentColor"}))};return f.displayName="EmptyDatabase",f.isGlyph=!0,f}));
1
+ !function(e,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r(require("react"),require("@leafygreen-ui/emotion")):"function"==typeof define&&define.amd?define(["react","@leafygreen-ui/emotion"],r):((e="undefined"!=typeof globalThis?globalThis:e||self).EmptyDatabase=e.EmptyDatabase||{},e.EmptyDatabase.js=r(e.React,e.emotion))}(this,function(e,r){"use strict";function t(e){if(e&&"object"==typeof e&&"default"in e)return e;var r=Object.create(null);return e&&Object.keys(e).forEach(function(t){if("default"!==t){var l=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,l.get?l:{enumerable:!0,get:function(){return e[t]}})}}),r.default=e,Object.freeze(r)}var l=t(e);function C(e,r,t){return(r=function(e){var r=function(e,r){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var l=t.call(e,r);if("object"!=typeof l)return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof r?r:r+""}(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function a(){return a=Object.assign?Object.assign.bind():function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var l in t)({}).hasOwnProperty.call(t,l)&&(e[l]=t[l])}return e},a.apply(null,arguments)}function n(e,r){return r||(r=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(r)}}))}var i,o,u={small:14,default:16,large:20,xlarge:24};var c=["className","size","title","aria-label","aria-labelledby","fill","role"],f=function(e){var t=e.className,f=e.size,b=void 0===f?16:f,s=e.title,d=e["aria-label"],p=e["aria-labelledby"],y=e.fill,m=e.role,v=void 0===m?"img":m,g=function(e,r){if(null==e)return{};var t,l,C=function(e,r){if(null==e)return{};var t={};for(var l in e)if({}.hasOwnProperty.call(e,l)){if(-1!==r.indexOf(l))continue;t[l]=e[l]}return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(l=0;l<a.length;l++)t=a[l],-1===r.indexOf(t)&&{}.propertyIsEnumerable.call(e,t)&&(C[t]=e[t])}return C}(e,c),O=r.css(i||(i=n(["\n color: ",";\n "])),y),h=r.css(o||(o=n(["\n flex-shrink: 0;\n "]))),Z=function(e,r,t){var l,a=t["aria-label"],n=t["aria-labelledby"],i=t.title;switch(e){case"img":return a||n||i?C(C(C({},"aria-labelledby",n),"aria-label",a),"title",i):{"aria-label":(l=r,"".concat(l.replace(/([a-z])([A-Z])/g,"$1 $2")," Icon"))};case"presentation":return{"aria-hidden":!0,alt:""}}}(v,"EmptyDatabase",C(C({title:s},"aria-label",d),"aria-labelledby",p));return l.createElement("svg",a({className:r.cx(C({},O,null!=y),h,t),height:"number"==typeof b?b:u[b],width:"number"==typeof b?b:u[b],role:v},Z,g,{viewBox:"0 0 16 16"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7.5076 1.60749C7.65108 1.60258 7.79684 1.6001 7.94477 1.6001C8.09386 1.6001 8.24086 1.60262 8.38565 1.6076C8.79962 1.62183 9.12367 1.96896 9.10944 2.38293C9.09521 2.7969 8.74808 3.12094 8.33411 3.10671C8.20677 3.10233 8.07695 3.1001 7.94477 3.1001C7.81361 3.1001 7.68494 3.1023 7.55885 3.10661C7.14487 3.12076 6.79781 2.79664 6.78366 2.38267C6.76951 1.9687 7.09363 1.62164 7.5076 1.60749ZM6.22702 2.44453C6.33363 2.84479 6.09558 3.25569 5.69532 3.3623C5.44384 3.42928 5.21813 3.50667 5.01884 3.59163C4.6378 3.75406 4.19723 3.57685 4.0348 3.19582C3.87236 2.81478 4.04957 2.37421 4.4306 2.21178C4.70259 2.09583 4.99664 1.99609 5.30926 1.91283C5.70952 1.80622 6.12041 2.04427 6.22702 2.44453ZM9.68375 2.4478C9.7895 2.04731 10.1999 1.80839 10.6004 1.91415C10.9145 1.9971 11.2105 2.09628 11.4846 2.21139C11.8665 2.37176 12.0461 2.81136 11.8858 3.19327C11.7254 3.57518 11.2858 3.75478 10.9039 3.59442C10.7008 3.50916 10.4717 3.43158 10.2174 3.36443C9.81691 3.25868 9.57799 2.84829 9.68375 2.4478ZM12.462 3.52915C12.8556 3.40016 13.2793 3.61467 13.4083 4.00828C13.4757 4.21408 13.5109 4.42898 13.5109 4.64941C13.5109 4.86988 13.4764 5.08588 13.4029 5.293C13.2643 5.68335 12.8355 5.88747 12.4452 5.74892C12.0548 5.61036 11.8507 5.1816 11.9893 4.79125C12.0016 4.75666 12.0109 4.71148 12.0109 4.64941C12.0109 4.59034 12.0018 4.533 11.9829 4.47543C11.8539 4.08181 12.0684 3.65815 12.462 3.52915ZM3.47822 3.52968C3.87322 3.65438 4.09235 4.07567 3.96765 4.47067C3.94918 4.52918 3.94 4.58817 3.94 4.64941C3.94 4.70884 3.94906 4.7523 3.96103 4.78591C4.1 5.17611 3.89634 5.60509 3.50613 5.74406C3.11593 5.88304 2.68695 5.67937 2.54797 5.28917C2.47477 5.08363 2.44 4.86895 2.44 4.64941C2.44 4.4333 2.47316 4.22209 2.53723 4.01912C2.66193 3.62412 3.08322 3.40499 3.47822 3.52968ZM4.10042 5.91355C4.21305 5.51494 4.6275 5.28312 5.0261 5.39575C5.23484 5.45474 5.46953 5.50827 5.73012 5.55697C6.13729 5.63306 6.40567 6.02482 6.32958 6.43199C6.25348 6.83915 5.86172 7.10753 5.45456 7.03144C5.16019 6.97643 4.87998 6.9132 4.61821 6.83923C4.2196 6.72659 3.98778 6.31215 4.10042 5.91355ZM11.8289 5.92656C11.9389 6.32588 11.7045 6.73883 11.3051 6.8489C11.0414 6.92162 10.7584 6.9838 10.46 7.03795C10.0525 7.11192 9.66211 6.84149 9.58814 6.43394C9.51417 6.02638 9.7846 5.63603 10.1922 5.56206C10.4572 5.51395 10.6952 5.46109 10.9065 5.40284C11.3058 5.29276 11.7188 5.52724 11.8289 5.92656ZM6.80347 6.4788C6.84074 6.06627 7.20537 5.76205 7.6179 5.79932C7.72557 5.80904 7.83491 5.81847 7.94587 5.82766C8.05862 5.81866 8.16958 5.80942 8.27873 5.7999C8.69138 5.76392 9.05507 6.06926 9.09105 6.48191C9.12704 6.89456 8.82169 7.25825 8.40904 7.29423C8.27596 7.30584 8.14077 7.317 8.00358 7.32779C7.96371 7.33092 7.92366 7.33087 7.8838 7.32762C7.74838 7.31657 7.61472 7.30514 7.48295 7.29323C7.07042 7.25597 6.7662 6.89133 6.80347 6.4788Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.76945 9.31366C3.93133 8.93239 4.37164 8.75454 4.75291 8.91641C4.98254 9.01391 5.23645 9.09728 5.50262 9.16779C5.90302 9.27387 6.14162 9.68445 6.03554 10.0849C5.92946 10.4853 5.51888 10.7239 5.11848 10.6178C4.80042 10.5335 4.47639 10.4286 4.1667 10.2971C3.78543 10.1352 3.60757 9.69494 3.76945 9.31366ZM12.2243 9.32973C12.3825 9.71254 12.2005 10.1511 11.8177 10.3093C11.5048 10.4386 11.1774 10.5418 10.8559 10.6246C10.4548 10.728 10.0459 10.4867 9.94248 10.0855C9.83911 9.68444 10.0805 9.27548 10.4816 9.1721C10.7523 9.10232 11.0108 9.01974 11.2447 8.92307C11.6275 8.76486 12.0661 8.94693 12.2243 9.32973ZM6.77957 10.1849C6.80522 9.77144 7.16116 9.45709 7.57458 9.48275C7.70493 9.49083 7.80922 9.4952 7.87976 9.49752C7.915 9.49869 7.94174 9.49934 7.95902 9.49969L7.97456 9.49997L7.99052 9.49969C8.00809 9.49934 8.03523 9.4987 8.07097 9.49755C8.14249 9.49525 8.24816 9.49094 8.38021 9.48297C8.79367 9.45799 9.14909 9.77292 9.17406 10.1864C9.19904 10.5998 8.88411 10.9553 8.47065 10.9802C8.32308 10.9892 8.20324 10.9941 8.11916 10.9968C8.0771 10.9981 8.04391 10.9989 8.02061 10.9994L7.99316 10.9999L7.98522 11L7.98272 11L7.98151 11H7.96737L7.96593 11L7.96343 11L7.95548 10.9999L7.92816 10.9994C7.90499 10.9989 7.87203 10.9981 7.83029 10.9967C7.74684 10.994 7.62799 10.9889 7.48168 10.9799C7.06827 10.9542 6.75392 10.5983 6.77957 10.1849Z",fill:"currentColor"}),l.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3 6.85005C3.41421 6.85005 3.75 7.18584 3.75 7.60005V8.22861C3.75 8.64282 3.41421 8.97861 3 8.97861C2.58579 8.97861 2.25 8.64282 2.25 8.22861V7.60005C2.25 7.18584 2.58579 6.85005 3 6.85005ZM13 6.85005C13.4142 6.85005 13.75 7.18584 13.75 7.60005V8.22861C13.75 8.64282 13.4142 8.97861 13 8.97861C12.5858 8.97861 12.25 8.64282 12.25 8.22861V7.60005C12.25 7.18584 12.5858 6.85005 13 6.85005ZM3 10.6214C3.41421 10.6214 3.75 10.9572 3.75 11.3714V11.7228C3.75972 11.7327 3.76966 11.7425 3.77984 11.7524C4.0771 12.0409 4.08424 12.5157 3.79578 12.8129C3.50732 13.1102 3.0325 13.1173 2.73524 12.8289C2.61288 12.7102 2.50042 12.5838 2.4 12.45C2.30263 12.3201 2.25 12.1622 2.25 12V11.3714C2.25 10.9572 2.58579 10.6214 3 10.6214ZM13 10.6214C13.4142 10.6214 13.75 10.9572 13.75 11.3714V12C13.75 12.1622 13.6974 12.3201 13.6 12.45C13.494 12.5912 13.3727 12.7208 13.2422 12.8393C12.9355 13.1177 12.4612 13.0949 12.1827 12.7883C11.9043 12.4816 11.9271 12.0073 12.2337 11.7288C12.2393 11.7238 12.2447 11.7188 12.25 11.7139V11.3714C12.25 10.9572 12.5858 10.6214 13 10.6214ZM11.7533 12.9525C11.8873 13.3444 11.6783 13.7708 11.2864 13.9049C11.0264 13.9938 10.7562 14.0727 10.4803 14.1409C10.0782 14.2403 9.67167 13.9949 9.57228 13.5928C9.4729 13.1907 9.7183 12.7841 10.1204 12.6847C10.3566 12.6264 10.5847 12.5596 10.8009 12.4857C11.1928 12.3516 11.6192 12.5606 11.7533 12.9525ZM4.22533 13.0017C4.35896 12.6096 4.78512 12.4001 5.17719 12.5338C5.38606 12.605 5.61107 12.6688 5.85122 12.7239C6.25496 12.8164 6.50721 13.2188 6.41464 13.6225C6.32206 14.0262 5.91972 14.2785 5.51599 14.1859C5.22886 14.1201 4.95403 14.0424 4.69326 13.9536C4.3012 13.8199 4.0917 13.3938 4.22533 13.0017ZM9.13633 13.6577C9.15486 14.0715 8.83443 14.422 8.42063 14.4405C8.2798 14.4468 8.13941 14.4501 8 14.4501C7.8606 14.4501 7.72277 14.4478 7.5866 14.4434C7.1726 14.4301 6.84782 14.0836 6.86118 13.6696C6.87455 13.2556 7.22099 12.9308 7.63499 12.9442C7.75487 12.9481 7.87657 12.9501 8 12.9501C8.11625 12.9501 8.23426 12.9474 8.35353 12.942C8.76733 12.9235 9.1178 13.2439 9.13633 13.6577Z",fill:"currentColor"}))};return f.displayName="EmptyDatabase",f.isGlyph=!0,f});
2
2
  //# sourceMappingURL=EmptyDatabase.js.map