@protonradio/proton-ui 0.11.34 → 0.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (678) hide show
  1. package/README.md +1 -1
  2. package/dist/_virtual/{react-jsx-runtime.production.min.cjs.js → react-jsx-runtime.production.cjs.js} +1 -1
  3. package/dist/_virtual/react-jsx-runtime.production.cjs.js.map +1 -0
  4. package/dist/_virtual/react-jsx-runtime.production.es.js +5 -0
  5. package/dist/_virtual/react-jsx-runtime.production.es.js.map +1 -0
  6. package/dist/components/ActionMenu/ActionMenu.cjs.js +1 -1
  7. package/dist/components/ActionMenu/ActionMenu.cjs.js.map +1 -1
  8. package/dist/components/ActionMenu/ActionMenu.es.js +87 -88
  9. package/dist/components/ActionMenu/ActionMenu.es.js.map +1 -1
  10. package/dist/components/Badge/Badge.cjs.js +1 -1
  11. package/dist/components/Badge/Badge.cjs.js.map +1 -1
  12. package/dist/components/Badge/Badge.es.js +6 -2
  13. package/dist/components/Badge/Badge.es.js.map +1 -1
  14. package/dist/components/Banner/Banner.cjs.js +1 -1
  15. package/dist/components/Banner/Banner.cjs.js.map +1 -1
  16. package/dist/components/Banner/Banner.es.js +4 -4
  17. package/dist/components/Banner/Banner.es.js.map +1 -1
  18. package/dist/components/Button/Button.cjs.js +1 -1
  19. package/dist/components/Button/Button.cjs.js.map +1 -1
  20. package/dist/components/Button/Button.es.js.map +1 -1
  21. package/dist/components/ButtonGroup/ButtonGroup.cjs.js +1 -1
  22. package/dist/components/ButtonGroup/ButtonGroup.cjs.js.map +1 -1
  23. package/dist/components/ButtonGroup/ButtonGroup.es.js +42 -38
  24. package/dist/components/ButtonGroup/ButtonGroup.es.js.map +1 -1
  25. package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js +1 -1
  26. package/dist/components/ButtonWithSelect/ButtonWithSelect.cjs.js.map +1 -1
  27. package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js +12 -12
  28. package/dist/components/ButtonWithSelect/ButtonWithSelect.es.js.map +1 -1
  29. package/dist/components/Checkbox/CheckboxIndicator.cjs.js +2 -0
  30. package/dist/components/Checkbox/CheckboxIndicator.cjs.js.map +1 -0
  31. package/dist/components/Checkbox/CheckboxIndicator.es.js +44 -0
  32. package/dist/components/Checkbox/CheckboxIndicator.es.js.map +1 -0
  33. package/dist/components/Checkbox/CheckboxInput/CheckboxInput.cjs.js +1 -1
  34. package/dist/components/Checkbox/CheckboxInput/CheckboxInput.cjs.js.map +1 -1
  35. package/dist/components/Checkbox/CheckboxInput/CheckboxInput.es.js +62 -58
  36. package/dist/components/Checkbox/CheckboxInput/CheckboxInput.es.js.map +1 -1
  37. package/dist/components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.cjs.js +1 -1
  38. package/dist/components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.cjs.js.map +1 -1
  39. package/dist/components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.es.js +53 -43
  40. package/dist/components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.es.js.map +1 -1
  41. package/dist/components/Elevation/Elevation.cjs.js +1 -1
  42. package/dist/components/Elevation/Elevation.cjs.js.map +1 -1
  43. package/dist/components/Elevation/Elevation.es.js +11 -10
  44. package/dist/components/Elevation/Elevation.es.js.map +1 -1
  45. package/dist/components/Icon/IconComponents/AlertCircle.cjs.js +1 -1
  46. package/dist/components/Icon/IconComponents/AlertCircle.cjs.js.map +1 -1
  47. package/dist/components/Icon/IconComponents/AlertCircle.es.js +9 -9
  48. package/dist/components/Icon/IconComponents/AlertCircle.es.js.map +1 -1
  49. package/dist/components/Icon/IconComponents/AmazonMusicLogo.cjs.js +1 -1
  50. package/dist/components/Icon/IconComponents/AmazonMusicLogo.cjs.js.map +1 -1
  51. package/dist/components/Icon/IconComponents/AmazonMusicLogo.es.js +10 -10
  52. package/dist/components/Icon/IconComponents/AmazonMusicLogo.es.js.map +1 -1
  53. package/dist/components/Icon/IconComponents/AppleMusicLogo.cjs.js +1 -1
  54. package/dist/components/Icon/IconComponents/AppleMusicLogo.cjs.js.map +1 -1
  55. package/dist/components/Icon/IconComponents/AppleMusicLogo.es.js +10 -10
  56. package/dist/components/Icon/IconComponents/AppleMusicLogo.es.js.map +1 -1
  57. package/dist/components/Icon/IconComponents/ArrowLeft.cjs.js +1 -1
  58. package/dist/components/Icon/IconComponents/ArrowLeft.cjs.js.map +1 -1
  59. package/dist/components/Icon/IconComponents/ArrowLeft.es.js +11 -11
  60. package/dist/components/Icon/IconComponents/ArrowLeft.es.js.map +1 -1
  61. package/dist/components/Icon/IconComponents/BandcampLogo.cjs.js +1 -1
  62. package/dist/components/Icon/IconComponents/BandcampLogo.cjs.js.map +1 -1
  63. package/dist/components/Icon/IconComponents/BandcampLogo.es.js +16 -16
  64. package/dist/components/Icon/IconComponents/BandcampLogo.es.js.map +1 -1
  65. package/dist/components/Icon/IconComponents/BeatportLogo.cjs.js +1 -1
  66. package/dist/components/Icon/IconComponents/BeatportLogo.cjs.js.map +1 -1
  67. package/dist/components/Icon/IconComponents/BeatportLogo.es.js +15 -15
  68. package/dist/components/Icon/IconComponents/BeatportLogo.es.js.map +1 -1
  69. package/dist/components/Icon/IconComponents/Bell.cjs.js +1 -1
  70. package/dist/components/Icon/IconComponents/Bell.cjs.js.map +1 -1
  71. package/dist/components/Icon/IconComponents/Bell.es.js +8 -8
  72. package/dist/components/Icon/IconComponents/Bell.es.js.map +1 -1
  73. package/dist/components/Icon/IconComponents/CaretDown.cjs.js +1 -1
  74. package/dist/components/Icon/IconComponents/CaretDown.cjs.js.map +1 -1
  75. package/dist/components/Icon/IconComponents/CaretDown.es.js +14 -14
  76. package/dist/components/Icon/IconComponents/CaretDown.es.js.map +1 -1
  77. package/dist/components/Icon/IconComponents/CaretRight.cjs.js +1 -1
  78. package/dist/components/Icon/IconComponents/CaretRight.cjs.js.map +1 -1
  79. package/dist/components/Icon/IconComponents/CaretRight.es.js +14 -14
  80. package/dist/components/Icon/IconComponents/CaretRight.es.js.map +1 -1
  81. package/dist/components/Icon/IconComponents/Chart.cjs.js +1 -1
  82. package/dist/components/Icon/IconComponents/Chart.cjs.js.map +1 -1
  83. package/dist/components/Icon/IconComponents/Chart.es.js +14 -14
  84. package/dist/components/Icon/IconComponents/Chart.es.js.map +1 -1
  85. package/dist/components/Icon/IconComponents/CheckCircle.cjs.js +1 -1
  86. package/dist/components/Icon/IconComponents/CheckCircle.cjs.js.map +1 -1
  87. package/dist/components/Icon/IconComponents/CheckCircle.es.js +9 -9
  88. package/dist/components/Icon/IconComponents/CheckCircle.es.js.map +1 -1
  89. package/dist/components/Icon/IconComponents/ChevronDown.cjs.js +1 -1
  90. package/dist/components/Icon/IconComponents/ChevronDown.cjs.js.map +1 -1
  91. package/dist/components/Icon/IconComponents/ChevronDown.es.js +13 -9
  92. package/dist/components/Icon/IconComponents/ChevronDown.es.js.map +1 -1
  93. package/dist/components/Icon/IconComponents/ChevronLeft.cjs.js +1 -1
  94. package/dist/components/Icon/IconComponents/ChevronLeft.cjs.js.map +1 -1
  95. package/dist/components/Icon/IconComponents/ChevronLeft.es.js +12 -8
  96. package/dist/components/Icon/IconComponents/ChevronLeft.es.js.map +1 -1
  97. package/dist/components/Icon/IconComponents/ChevronRight.cjs.js +1 -1
  98. package/dist/components/Icon/IconComponents/ChevronRight.cjs.js.map +1 -1
  99. package/dist/components/Icon/IconComponents/ChevronRight.es.js +14 -14
  100. package/dist/components/Icon/IconComponents/ChevronRight.es.js.map +1 -1
  101. package/dist/components/Icon/IconComponents/ChevronSquareDown.cjs.js +1 -1
  102. package/dist/components/Icon/IconComponents/ChevronSquareDown.cjs.js.map +1 -1
  103. package/dist/components/Icon/IconComponents/ChevronSquareDown.es.js +17 -17
  104. package/dist/components/Icon/IconComponents/ChevronSquareDown.es.js.map +1 -1
  105. package/dist/components/Icon/IconComponents/ChevronUp.cjs.js +1 -1
  106. package/dist/components/Icon/IconComponents/ChevronUp.cjs.js.map +1 -1
  107. package/dist/components/Icon/IconComponents/ChevronUp.es.js +14 -14
  108. package/dist/components/Icon/IconComponents/ChevronUp.es.js.map +1 -1
  109. package/dist/components/Icon/IconComponents/Close.cjs.js +1 -1
  110. package/dist/components/Icon/IconComponents/Close.cjs.js.map +1 -1
  111. package/dist/components/Icon/IconComponents/Close.es.js +14 -14
  112. package/dist/components/Icon/IconComponents/Close.es.js.map +1 -1
  113. package/dist/components/Icon/IconComponents/Cog.cjs.js +1 -1
  114. package/dist/components/Icon/IconComponents/Cog.cjs.js.map +1 -1
  115. package/dist/components/Icon/IconComponents/Cog.es.js +15 -11
  116. package/dist/components/Icon/IconComponents/Cog.es.js.map +1 -1
  117. package/dist/components/Icon/IconComponents/Copy.cjs.js +1 -1
  118. package/dist/components/Icon/IconComponents/Copy.cjs.js.map +1 -1
  119. package/dist/components/Icon/IconComponents/Copy.es.js +11 -11
  120. package/dist/components/Icon/IconComponents/Copy.es.js.map +1 -1
  121. package/dist/components/Icon/IconComponents/DangerCircle.cjs.js +1 -1
  122. package/dist/components/Icon/IconComponents/DangerCircle.cjs.js.map +1 -1
  123. package/dist/components/Icon/IconComponents/DangerCircle.es.js +11 -11
  124. package/dist/components/Icon/IconComponents/DangerCircle.es.js.map +1 -1
  125. package/dist/components/Icon/IconComponents/Dashboard.cjs.js +1 -1
  126. package/dist/components/Icon/IconComponents/Dashboard.cjs.js.map +1 -1
  127. package/dist/components/Icon/IconComponents/Dashboard.es.js +15 -11
  128. package/dist/components/Icon/IconComponents/Dashboard.es.js.map +1 -1
  129. package/dist/components/Icon/IconComponents/DeezerLogo.cjs.js +1 -1
  130. package/dist/components/Icon/IconComponents/DeezerLogo.cjs.js.map +1 -1
  131. package/dist/components/Icon/IconComponents/DeezerLogo.es.js +10 -10
  132. package/dist/components/Icon/IconComponents/DeezerLogo.es.js.map +1 -1
  133. package/dist/components/Icon/IconComponents/Download.cjs.js +1 -1
  134. package/dist/components/Icon/IconComponents/Download.cjs.js.map +1 -1
  135. package/dist/components/Icon/IconComponents/Download.es.js +13 -9
  136. package/dist/components/Icon/IconComponents/Download.es.js.map +1 -1
  137. package/dist/components/Icon/IconComponents/DragHandle.cjs.js +1 -1
  138. package/dist/components/Icon/IconComponents/DragHandle.cjs.js.map +1 -1
  139. package/dist/components/Icon/IconComponents/DragHandle.es.js +12 -8
  140. package/dist/components/Icon/IconComponents/DragHandle.es.js.map +1 -1
  141. package/dist/components/Icon/IconComponents/Edit.cjs.js +1 -1
  142. package/dist/components/Icon/IconComponents/Edit.cjs.js.map +1 -1
  143. package/dist/components/Icon/IconComponents/Edit.es.js +13 -9
  144. package/dist/components/Icon/IconComponents/Edit.es.js.map +1 -1
  145. package/dist/components/Icon/IconComponents/Ellipsis.cjs.js +1 -1
  146. package/dist/components/Icon/IconComponents/Ellipsis.cjs.js.map +1 -1
  147. package/dist/components/Icon/IconComponents/Ellipsis.es.js +14 -10
  148. package/dist/components/Icon/IconComponents/Ellipsis.es.js.map +1 -1
  149. package/dist/components/Icon/IconComponents/EmailThick.cjs.js +1 -1
  150. package/dist/components/Icon/IconComponents/EmailThick.cjs.js.map +1 -1
  151. package/dist/components/Icon/IconComponents/EmailThick.es.js +15 -11
  152. package/dist/components/Icon/IconComponents/EmailThick.es.js.map +1 -1
  153. package/dist/components/Icon/IconComponents/EmailThin.cjs.js +1 -1
  154. package/dist/components/Icon/IconComponents/EmailThin.cjs.js.map +1 -1
  155. package/dist/components/Icon/IconComponents/EmailThin.es.js +15 -11
  156. package/dist/components/Icon/IconComponents/EmailThin.es.js.map +1 -1
  157. package/dist/components/Icon/IconComponents/ExternalLink.cjs.js +1 -1
  158. package/dist/components/Icon/IconComponents/ExternalLink.cjs.js.map +1 -1
  159. package/dist/components/Icon/IconComponents/ExternalLink.es.js +18 -14
  160. package/dist/components/Icon/IconComponents/ExternalLink.es.js.map +1 -1
  161. package/dist/components/Icon/IconComponents/FacebookLogo.cjs.js +1 -1
  162. package/dist/components/Icon/IconComponents/FacebookLogo.cjs.js.map +1 -1
  163. package/dist/components/Icon/IconComponents/FacebookLogo.es.js +10 -10
  164. package/dist/components/Icon/IconComponents/FacebookLogo.es.js.map +1 -1
  165. package/dist/components/Icon/IconComponents/Globe.cjs.js +1 -1
  166. package/dist/components/Icon/IconComponents/Globe.cjs.js.map +1 -1
  167. package/dist/components/Icon/IconComponents/Globe.es.js +12 -8
  168. package/dist/components/Icon/IconComponents/Globe.es.js.map +1 -1
  169. package/dist/components/Icon/IconComponents/Hamburger.cjs.js +1 -1
  170. package/dist/components/Icon/IconComponents/Hamburger.cjs.js.map +1 -1
  171. package/dist/components/Icon/IconComponents/Hamburger.es.js +16 -12
  172. package/dist/components/Icon/IconComponents/Hamburger.es.js.map +1 -1
  173. package/dist/components/Icon/IconComponents/Heartbeat.cjs.js +1 -1
  174. package/dist/components/Icon/IconComponents/Heartbeat.cjs.js.map +1 -1
  175. package/dist/components/Icon/IconComponents/Heartbeat.es.js +16 -12
  176. package/dist/components/Icon/IconComponents/Heartbeat.es.js.map +1 -1
  177. package/dist/components/Icon/IconComponents/Info.cjs.js +1 -1
  178. package/dist/components/Icon/IconComponents/Info.cjs.js.map +1 -1
  179. package/dist/components/Icon/IconComponents/Info.es.js +9 -9
  180. package/dist/components/Icon/IconComponents/Info.es.js.map +1 -1
  181. package/dist/components/Icon/IconComponents/InfoOutline.cjs.js +1 -1
  182. package/dist/components/Icon/IconComponents/InfoOutline.cjs.js.map +1 -1
  183. package/dist/components/Icon/IconComponents/InfoOutline.es.js +15 -11
  184. package/dist/components/Icon/IconComponents/InfoOutline.es.js.map +1 -1
  185. package/dist/components/Icon/IconComponents/InstagramLogo.cjs.js +1 -1
  186. package/dist/components/Icon/IconComponents/InstagramLogo.cjs.js.map +1 -1
  187. package/dist/components/Icon/IconComponents/InstagramLogo.es.js +10 -10
  188. package/dist/components/Icon/IconComponents/InstagramLogo.es.js.map +1 -1
  189. package/dist/components/Icon/IconComponents/IntercomLogo.cjs.js +1 -1
  190. package/dist/components/Icon/IconComponents/IntercomLogo.cjs.js.map +1 -1
  191. package/dist/components/Icon/IconComponents/IntercomLogo.es.js +10 -10
  192. package/dist/components/Icon/IconComponents/IntercomLogo.es.js.map +1 -1
  193. package/dist/components/Icon/IconComponents/Lightning.cjs.js +1 -1
  194. package/dist/components/Icon/IconComponents/Lightning.cjs.js.map +1 -1
  195. package/dist/components/Icon/IconComponents/Lightning.es.js +16 -12
  196. package/dist/components/Icon/IconComponents/Lightning.es.js.map +1 -1
  197. package/dist/components/Icon/IconComponents/Link.cjs.js +1 -1
  198. package/dist/components/Icon/IconComponents/Link.cjs.js.map +1 -1
  199. package/dist/components/Icon/IconComponents/Link.es.js +12 -8
  200. package/dist/components/Icon/IconComponents/Link.es.js.map +1 -1
  201. package/dist/components/Icon/IconComponents/MessengerLogo.cjs.js +1 -1
  202. package/dist/components/Icon/IconComponents/MessengerLogo.cjs.js.map +1 -1
  203. package/dist/components/Icon/IconComponents/MessengerLogo.es.js +9 -9
  204. package/dist/components/Icon/IconComponents/MessengerLogo.es.js.map +1 -1
  205. package/dist/components/Icon/IconComponents/MusicNote.cjs.js +1 -1
  206. package/dist/components/Icon/IconComponents/MusicNote.cjs.js.map +1 -1
  207. package/dist/components/Icon/IconComponents/MusicNote.es.js +15 -11
  208. package/dist/components/Icon/IconComponents/MusicNote.es.js.map +1 -1
  209. package/dist/components/Icon/IconComponents/Pause.cjs.js +1 -1
  210. package/dist/components/Icon/IconComponents/Pause.cjs.js.map +1 -1
  211. package/dist/components/Icon/IconComponents/Pause.es.js +17 -13
  212. package/dist/components/Icon/IconComponents/Pause.es.js.map +1 -1
  213. package/dist/components/Icon/IconComponents/Pencil.cjs.js +1 -1
  214. package/dist/components/Icon/IconComponents/Pencil.cjs.js.map +1 -1
  215. package/dist/components/Icon/IconComponents/Pencil.es.js +15 -11
  216. package/dist/components/Icon/IconComponents/Pencil.es.js.map +1 -1
  217. package/dist/components/Icon/IconComponents/PhoneThick.cjs.js +1 -1
  218. package/dist/components/Icon/IconComponents/PhoneThick.cjs.js.map +1 -1
  219. package/dist/components/Icon/IconComponents/PhoneThick.es.js +17 -13
  220. package/dist/components/Icon/IconComponents/PhoneThick.es.js.map +1 -1
  221. package/dist/components/Icon/IconComponents/PhoneThin.cjs.js +1 -1
  222. package/dist/components/Icon/IconComponents/PhoneThin.cjs.js.map +1 -1
  223. package/dist/components/Icon/IconComponents/PhoneThin.es.js +17 -13
  224. package/dist/components/Icon/IconComponents/PhoneThin.es.js.map +1 -1
  225. package/dist/components/Icon/IconComponents/Play.cjs.js +1 -1
  226. package/dist/components/Icon/IconComponents/Play.cjs.js.map +1 -1
  227. package/dist/components/Icon/IconComponents/Play.es.js +13 -9
  228. package/dist/components/Icon/IconComponents/Play.es.js.map +1 -1
  229. package/dist/components/Icon/IconComponents/ProtonLogo.cjs.js +1 -1
  230. package/dist/components/Icon/IconComponents/ProtonLogo.cjs.js.map +1 -1
  231. package/dist/components/Icon/IconComponents/ProtonLogo.es.js +10 -10
  232. package/dist/components/Icon/IconComponents/ProtonLogo.es.js.map +1 -1
  233. package/dist/components/Icon/IconComponents/Quote.cjs.js +1 -1
  234. package/dist/components/Icon/IconComponents/Quote.cjs.js.map +1 -1
  235. package/dist/components/Icon/IconComponents/Quote.es.js +18 -14
  236. package/dist/components/Icon/IconComponents/Quote.es.js.map +1 -1
  237. package/dist/components/Icon/IconComponents/Search.cjs.js +1 -1
  238. package/dist/components/Icon/IconComponents/Search.cjs.js.map +1 -1
  239. package/dist/components/Icon/IconComponents/Search.es.js +14 -14
  240. package/dist/components/Icon/IconComponents/Search.es.js.map +1 -1
  241. package/dist/components/Icon/IconComponents/Share.cjs.js +1 -1
  242. package/dist/components/Icon/IconComponents/Share.cjs.js.map +1 -1
  243. package/dist/components/Icon/IconComponents/Share.es.js +13 -9
  244. package/dist/components/Icon/IconComponents/Share.es.js.map +1 -1
  245. package/dist/components/Icon/IconComponents/SignOut.cjs.js +1 -1
  246. package/dist/components/Icon/IconComponents/SignOut.cjs.js.map +1 -1
  247. package/dist/components/Icon/IconComponents/SignOut.es.js +15 -11
  248. package/dist/components/Icon/IconComponents/SignOut.es.js.map +1 -1
  249. package/dist/components/Icon/IconComponents/SoundcloudLogo.cjs.js +1 -1
  250. package/dist/components/Icon/IconComponents/SoundcloudLogo.cjs.js.map +1 -1
  251. package/dist/components/Icon/IconComponents/SoundcloudLogo.es.js +10 -10
  252. package/dist/components/Icon/IconComponents/SoundcloudLogo.es.js.map +1 -1
  253. package/dist/components/Icon/IconComponents/SpotifyLogo.cjs.js +1 -1
  254. package/dist/components/Icon/IconComponents/SpotifyLogo.cjs.js.map +1 -1
  255. package/dist/components/Icon/IconComponents/SpotifyLogo.es.js +10 -10
  256. package/dist/components/Icon/IconComponents/SpotifyLogo.es.js.map +1 -1
  257. package/dist/components/Icon/IconComponents/Spy.cjs.js +1 -1
  258. package/dist/components/Icon/IconComponents/Spy.cjs.js.map +1 -1
  259. package/dist/components/Icon/IconComponents/Spy.es.js +13 -9
  260. package/dist/components/Icon/IconComponents/Spy.es.js.map +1 -1
  261. package/dist/components/Icon/IconComponents/SuccessCircle.cjs.js +1 -1
  262. package/dist/components/Icon/IconComponents/SuccessCircle.cjs.js.map +1 -1
  263. package/dist/components/Icon/IconComponents/SuccessCircle.es.js +9 -9
  264. package/dist/components/Icon/IconComponents/SuccessCircle.es.js.map +1 -1
  265. package/dist/components/Icon/IconComponents/TelegramLogo.cjs.js +1 -1
  266. package/dist/components/Icon/IconComponents/TelegramLogo.cjs.js.map +1 -1
  267. package/dist/components/Icon/IconComponents/TelegramLogo.es.js +14 -14
  268. package/dist/components/Icon/IconComponents/TelegramLogo.es.js.map +1 -1
  269. package/dist/components/Icon/IconComponents/TiktokLogo.cjs.js +1 -1
  270. package/dist/components/Icon/IconComponents/TiktokLogo.cjs.js.map +1 -1
  271. package/dist/components/Icon/IconComponents/TiktokLogo.es.js +10 -10
  272. package/dist/components/Icon/IconComponents/TiktokLogo.es.js.map +1 -1
  273. package/dist/components/Icon/IconComponents/Tracklist.cjs.js +1 -1
  274. package/dist/components/Icon/IconComponents/Tracklist.cjs.js.map +1 -1
  275. package/dist/components/Icon/IconComponents/Tracklist.es.js +16 -12
  276. package/dist/components/Icon/IconComponents/Tracklist.es.js.map +1 -1
  277. package/dist/components/Icon/IconComponents/TrashCan.cjs.js +1 -1
  278. package/dist/components/Icon/IconComponents/TrashCan.cjs.js.map +1 -1
  279. package/dist/components/Icon/IconComponents/TrashCan.es.js +13 -9
  280. package/dist/components/Icon/IconComponents/TrashCan.es.js.map +1 -1
  281. package/dist/components/Icon/IconComponents/TraxsourceLogo.cjs.js +1 -1
  282. package/dist/components/Icon/IconComponents/TraxsourceLogo.cjs.js.map +1 -1
  283. package/dist/components/Icon/IconComponents/TraxsourceLogo.es.js +14 -14
  284. package/dist/components/Icon/IconComponents/TraxsourceLogo.es.js.map +1 -1
  285. package/dist/components/Icon/IconComponents/User.cjs.js +1 -1
  286. package/dist/components/Icon/IconComponents/User.cjs.js.map +1 -1
  287. package/dist/components/Icon/IconComponents/User.es.js +9 -9
  288. package/dist/components/Icon/IconComponents/User.es.js.map +1 -1
  289. package/dist/components/Icon/IconComponents/Users.cjs.js +1 -1
  290. package/dist/components/Icon/IconComponents/Users.cjs.js.map +1 -1
  291. package/dist/components/Icon/IconComponents/Users.es.js +12 -8
  292. package/dist/components/Icon/IconComponents/Users.es.js.map +1 -1
  293. package/dist/components/Icon/IconComponents/WarningTriangle.cjs.js +1 -1
  294. package/dist/components/Icon/IconComponents/WarningTriangle.cjs.js.map +1 -1
  295. package/dist/components/Icon/IconComponents/WarningTriangle.es.js +13 -13
  296. package/dist/components/Icon/IconComponents/WarningTriangle.es.js.map +1 -1
  297. package/dist/components/Icon/IconComponents/WhatsappLogoThick.cjs.js +1 -1
  298. package/dist/components/Icon/IconComponents/WhatsappLogoThick.cjs.js.map +1 -1
  299. package/dist/components/Icon/IconComponents/WhatsappLogoThick.es.js +14 -14
  300. package/dist/components/Icon/IconComponents/WhatsappLogoThick.es.js.map +1 -1
  301. package/dist/components/Icon/IconComponents/WhatsappLogoThin.cjs.js +1 -1
  302. package/dist/components/Icon/IconComponents/WhatsappLogoThin.cjs.js.map +1 -1
  303. package/dist/components/Icon/IconComponents/WhatsappLogoThin.es.js +10 -10
  304. package/dist/components/Icon/IconComponents/WhatsappLogoThin.es.js.map +1 -1
  305. package/dist/components/Icon/IconComponents/XTwitterLogo.cjs.js +1 -1
  306. package/dist/components/Icon/IconComponents/XTwitterLogo.cjs.js.map +1 -1
  307. package/dist/components/Icon/IconComponents/XTwitterLogo.es.js +9 -9
  308. package/dist/components/Icon/IconComponents/XTwitterLogo.es.js.map +1 -1
  309. package/dist/components/Icon/IconComponents/YandexLogo.cjs.js +1 -1
  310. package/dist/components/Icon/IconComponents/YandexLogo.cjs.js.map +1 -1
  311. package/dist/components/Icon/IconComponents/YandexLogo.es.js +14 -14
  312. package/dist/components/Icon/IconComponents/YandexLogo.es.js.map +1 -1
  313. package/dist/components/Icon/IconComponents/YoutubeLogo.cjs.js +1 -1
  314. package/dist/components/Icon/IconComponents/YoutubeLogo.cjs.js.map +1 -1
  315. package/dist/components/Icon/IconComponents/YoutubeLogo.es.js +10 -10
  316. package/dist/components/Icon/IconComponents/YoutubeLogo.es.js.map +1 -1
  317. package/dist/components/Icon/IconProps.cjs.js +1 -1
  318. package/dist/components/Icon/IconProps.cjs.js.map +1 -1
  319. package/dist/components/Icon/IconProps.es.js +11 -7
  320. package/dist/components/Icon/IconProps.es.js.map +1 -1
  321. package/dist/components/ImageBackground/ImageBackground.cjs.js +1 -1
  322. package/dist/components/ImageBackground/ImageBackground.cjs.js.map +1 -1
  323. package/dist/components/ImageBackground/ImageBackground.es.js +5 -5
  324. package/dist/components/ImageBackground/ImageBackground.es.js.map +1 -1
  325. package/dist/components/Input/BaseInput/Input.cjs.js +1 -1
  326. package/dist/components/Input/BaseInput/Input.cjs.js.map +1 -1
  327. package/dist/components/Input/BaseInput/Input.es.js +63 -62
  328. package/dist/components/Input/BaseInput/Input.es.js.map +1 -1
  329. package/dist/components/Input/CopyInput/CopyInput.cjs.js +1 -1
  330. package/dist/components/Input/CopyInput/CopyInput.cjs.js.map +1 -1
  331. package/dist/components/Input/CopyInput/CopyInput.es.js +5 -2
  332. package/dist/components/Input/CopyInput/CopyInput.es.js.map +1 -1
  333. package/dist/components/Input/OTPInput/OTPInput.cjs.js +1 -1
  334. package/dist/components/Input/OTPInput/OTPInput.cjs.js.map +1 -1
  335. package/dist/components/Input/OTPInput/OTPInput.es.js.map +1 -1
  336. package/dist/components/Input/SearchInput/SearchInput.cjs.js.map +1 -1
  337. package/dist/components/Input/SearchInput/SearchInput.es.js.map +1 -1
  338. package/dist/components/Menu/MenuTrigger.cjs.js +1 -1
  339. package/dist/components/Menu/MenuTrigger.cjs.js.map +1 -1
  340. package/dist/components/Menu/MenuTrigger.es.js.map +1 -1
  341. package/dist/components/Menu/PopoverMenu.cjs.js +1 -1
  342. package/dist/components/Menu/PopoverMenu.cjs.js.map +1 -1
  343. package/dist/components/Menu/PopoverMenu.es.js +31 -30
  344. package/dist/components/Menu/PopoverMenu.es.js.map +1 -1
  345. package/dist/components/Modal/Modal.cjs.js +1 -1
  346. package/dist/components/Modal/Modal.cjs.js.map +1 -1
  347. package/dist/components/Modal/Modal.es.js +46 -41
  348. package/dist/components/Modal/Modal.es.js.map +1 -1
  349. package/dist/components/Overlay/Overlay.cjs.js +2 -0
  350. package/dist/components/Overlay/Overlay.cjs.js.map +1 -0
  351. package/dist/components/Overlay/Overlay.es.js +25 -0
  352. package/dist/components/Overlay/Overlay.es.js.map +1 -0
  353. package/dist/components/Popover/Popover.cjs.js +1 -1
  354. package/dist/components/Popover/Popover.cjs.js.map +1 -1
  355. package/dist/components/Popover/Popover.es.js +35 -29
  356. package/dist/components/Popover/Popover.es.js.map +1 -1
  357. package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js +1 -1
  358. package/dist/components/ScreenOverlay/ScreenOverlay.cjs.js.map +1 -1
  359. package/dist/components/ScreenOverlay/ScreenOverlay.es.js.map +1 -1
  360. package/dist/components/Select/Select.cjs.js +1 -1
  361. package/dist/components/Select/Select.cjs.js.map +1 -1
  362. package/dist/components/Select/Select.es.js +104 -106
  363. package/dist/components/Select/Select.es.js.map +1 -1
  364. package/dist/components/Switch/Switch.cjs.js +1 -1
  365. package/dist/components/Switch/Switch.cjs.js.map +1 -1
  366. package/dist/components/Switch/Switch.es.js +42 -29
  367. package/dist/components/Switch/Switch.es.js.map +1 -1
  368. package/dist/components/Table/BaseTable/Collection/CompoundComponents.cjs.js.map +1 -1
  369. package/dist/components/Table/BaseTable/Collection/CompoundComponents.es.js.map +1 -1
  370. package/dist/components/Table/BaseTable/Collection/collectionParser.cjs.js +1 -1
  371. package/dist/components/Table/BaseTable/Collection/collectionParser.cjs.js.map +1 -1
  372. package/dist/components/Table/BaseTable/Collection/collectionParser.es.js.map +1 -1
  373. package/dist/components/Table/BaseTable/Collection/useTableCollection.cjs.js.map +1 -1
  374. package/dist/components/Table/BaseTable/Collection/useTableCollection.es.js.map +1 -1
  375. package/dist/components/Table/BaseTable/Table.cjs.js +1 -1
  376. package/dist/components/Table/BaseTable/Table.cjs.js.map +1 -1
  377. package/dist/components/Table/BaseTable/Table.es.js +5 -5
  378. package/dist/components/Table/BaseTable/Table.es.js.map +1 -1
  379. package/dist/components/Table/BaseTable/elements/TableBody.cjs.js.map +1 -1
  380. package/dist/components/Table/BaseTable/elements/TableBody.es.js.map +1 -1
  381. package/dist/components/Table/BaseTable/elements/TableCell.cjs.js.map +1 -1
  382. package/dist/components/Table/BaseTable/elements/TableCell.es.js.map +1 -1
  383. package/dist/components/Table/BaseTable/elements/TableHeader.cjs.js.map +1 -1
  384. package/dist/components/Table/BaseTable/elements/TableHeader.es.js.map +1 -1
  385. package/dist/components/Table/BaseTable/elements/TableHeaderCell.cjs.js.map +1 -1
  386. package/dist/components/Table/BaseTable/elements/TableHeaderCell.es.js.map +1 -1
  387. package/dist/components/Table/BaseTable/elements/TableHeaderRow.cjs.js.map +1 -1
  388. package/dist/components/Table/BaseTable/elements/TableHeaderRow.es.js.map +1 -1
  389. package/dist/components/Table/BaseTable/elements/TableRoot.cjs.js.map +1 -1
  390. package/dist/components/Table/BaseTable/elements/TableRoot.es.js.map +1 -1
  391. package/dist/components/Table/BaseTable/elements/TableRow.cjs.js.map +1 -1
  392. package/dist/components/Table/BaseTable/elements/TableRow.es.js.map +1 -1
  393. package/dist/components/Table/DataTable/DataTable.cjs.js +1 -1
  394. package/dist/components/Table/DataTable/DataTable.cjs.js.map +1 -1
  395. package/dist/components/Table/DataTable/DataTable.es.js +26 -26
  396. package/dist/components/Table/DataTable/DataTable.es.js.map +1 -1
  397. package/dist/components/Table/DataTable/DataTableRow.cjs.js +1 -1
  398. package/dist/components/Table/DataTable/DataTableRow.cjs.js.map +1 -1
  399. package/dist/components/Table/DataTable/DataTableRow.es.js +23 -17
  400. package/dist/components/Table/DataTable/DataTableRow.es.js.map +1 -1
  401. package/dist/components/Text/TextCountdown/TextCountdown.cjs.js +1 -1
  402. package/dist/components/Text/TextCountdown/TextCountdown.cjs.js.map +1 -1
  403. package/dist/components/Text/TextCountdown/TextCountdown.es.js.map +1 -1
  404. package/dist/components/Text/TextEllipsis/TextEllipsis.cjs.js.map +1 -1
  405. package/dist/components/Text/TextEllipsis/TextEllipsis.es.js.map +1 -1
  406. package/dist/components/Text/TextEmphasis/TextEmphasis.cjs.js.map +1 -1
  407. package/dist/components/Text/TextEmphasis/TextEmphasis.es.js.map +1 -1
  408. package/dist/components/ThemeProvider.cjs.js +1 -1
  409. package/dist/components/ThemeProvider.cjs.js.map +1 -1
  410. package/dist/components/ThemeProvider.es.js +4 -4
  411. package/dist/components/ThemeProvider.es.js.map +1 -1
  412. package/dist/components/Tombstone/Tombstone.cjs.js.map +1 -1
  413. package/dist/components/Tombstone/Tombstone.es.js.map +1 -1
  414. package/dist/components/Tooltip/ResponsiveTooltip.cjs.js +1 -1
  415. package/dist/components/Tooltip/ResponsiveTooltip.cjs.js.map +1 -1
  416. package/dist/components/Tooltip/ResponsiveTooltip.es.js +48 -46
  417. package/dist/components/Tooltip/ResponsiveTooltip.es.js.map +1 -1
  418. package/dist/components/Tooltip/Tooltip.cjs.js +1 -1
  419. package/dist/components/Tooltip/Tooltip.cjs.js.map +1 -1
  420. package/dist/components/Tooltip/Tooltip.es.js +57 -52
  421. package/dist/components/Tooltip/Tooltip.es.js.map +1 -1
  422. package/dist/components/Waveform/Waveform.cjs.js +1 -1
  423. package/dist/components/Waveform/Waveform.cjs.js.map +1 -1
  424. package/dist/components/Waveform/Waveform.es.js +1 -1
  425. package/dist/components/Waveform/Waveform.es.js.map +1 -1
  426. package/dist/components/Waveform/WaveformBar.cjs.js.map +1 -1
  427. package/dist/components/Waveform/WaveformBar.es.js.map +1 -1
  428. package/dist/constants.cjs.js +1 -1
  429. package/dist/constants.d.ts +5 -3
  430. package/dist/constants.es.js +2 -4
  431. package/dist/constants.es.js.map +1 -1
  432. package/dist/dark.d.ts +3 -3
  433. package/dist/design/colors.cjs.js.map +1 -1
  434. package/dist/design/colors.es.js.map +1 -1
  435. package/dist/design/darkTheme/colors.cjs.js +1 -1
  436. package/dist/design/darkTheme/colors.cjs.js.map +1 -1
  437. package/dist/design/darkTheme/colors.es.js +7 -7
  438. package/dist/design/darkTheme/colors.es.js.map +1 -1
  439. package/dist/design/darkTheme/stylesheet.cjs.js +1 -1
  440. package/dist/design/darkTheme/stylesheet.cjs.js.map +1 -1
  441. package/dist/design/darkTheme/stylesheet.es.js +17 -14
  442. package/dist/design/darkTheme/stylesheet.es.js.map +1 -1
  443. package/dist/design/generateStylesheet.cjs.js.map +1 -1
  444. package/dist/design/generateStylesheet.es.js.map +1 -1
  445. package/dist/design/lightTheme/colors.cjs.js.map +1 -1
  446. package/dist/design/lightTheme/colors.es.js +3 -3
  447. package/dist/design/lightTheme/stylesheet.cjs.js +1 -1
  448. package/dist/design/lightTheme/stylesheet.cjs.js.map +1 -1
  449. package/dist/design/lightTheme/stylesheet.es.js +17 -17
  450. package/dist/design/lightTheme/stylesheet.es.js.map +1 -1
  451. package/dist/hooks/useBreakpoint.cjs.js +1 -1
  452. package/dist/hooks/useBreakpoint.cjs.js.map +1 -1
  453. package/dist/hooks/useBreakpoint.es.js +13 -12
  454. package/dist/hooks/useBreakpoint.es.js.map +1 -1
  455. package/dist/hooks/useIsClosing.cjs.js +1 -1
  456. package/dist/hooks/useIsClosing.cjs.js.map +1 -1
  457. package/dist/hooks/useIsClosing.es.js.map +1 -1
  458. package/dist/hooks/useLockBodyScroll.cjs.js.map +1 -1
  459. package/dist/hooks/useLockBodyScroll.es.js.map +1 -1
  460. package/dist/hooks/useMergedRef.cjs.js +2 -0
  461. package/dist/hooks/useMergedRef.cjs.js.map +1 -0
  462. package/dist/hooks/useMergedRef.es.js +13 -0
  463. package/dist/hooks/useMergedRef.es.js.map +1 -0
  464. package/dist/hooks/usePalette.cjs.js +1 -1
  465. package/dist/hooks/usePalette.cjs.js.map +1 -1
  466. package/dist/hooks/usePalette.es.js.map +1 -1
  467. package/dist/hooks.cjs.js +1 -1
  468. package/dist/hooks.d.ts +12 -1
  469. package/dist/hooks.es.js +6 -4
  470. package/dist/hooks.es.js.map +1 -1
  471. package/dist/icons.d.ts +79 -74
  472. package/dist/index.cjs.js +1 -1
  473. package/dist/index.d.ts +131 -151
  474. package/dist/index.es.js +20 -20
  475. package/dist/light.d.ts +1 -1
  476. package/dist/node_modules/color2k/dist/index.exports.import.es.cjs.js.map +1 -1
  477. package/dist/node_modules/color2k/dist/index.exports.import.es.es.js.map +1 -1
  478. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js +4 -12
  479. package/dist/node_modules/react/cjs/react-jsx-runtime.development.cjs.js.map +1 -1
  480. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js +193 -557
  481. package/dist/node_modules/react/cjs/react-jsx-runtime.development.es.js.map +1 -1
  482. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js +10 -0
  483. package/dist/node_modules/react/cjs/react-jsx-runtime.production.cjs.js.map +1 -0
  484. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js +36 -0
  485. package/dist/node_modules/react/cjs/react-jsx-runtime.production.es.js.map +1 -0
  486. package/dist/node_modules/react/jsx-runtime.cjs.js +1 -1
  487. package/dist/node_modules/react/jsx-runtime.cjs.js.map +1 -1
  488. package/dist/node_modules/react/jsx-runtime.es.js +1 -1
  489. package/dist/node_modules/react/jsx-runtime.es.js.map +1 -1
  490. package/dist/style.css +1 -1
  491. package/dist/theme.d.ts +20 -4
  492. package/dist/utils/color2k.cjs.js.map +1 -1
  493. package/dist/utils/color2k.es.js +2 -2
  494. package/dist/utils/color2k.es.js.map +1 -1
  495. package/dist/utils/copy.cjs.js +1 -1
  496. package/dist/utils/copy.cjs.js.map +1 -1
  497. package/dist/utils/copy.es.js +12 -11
  498. package/dist/utils/copy.es.js.map +1 -1
  499. package/dist/utils/deepEqual.cjs.js.map +1 -1
  500. package/dist/utils/deepEqual.es.js.map +1 -1
  501. package/dist/utils/image.cjs.js +1 -1
  502. package/dist/utils/image.cjs.js.map +1 -1
  503. package/dist/utils/image.es.js +15 -14
  504. package/dist/utils/image.es.js.map +1 -1
  505. package/dist/utils/navigation.cjs.js.map +1 -1
  506. package/dist/utils/navigation.es.js.map +1 -1
  507. package/dist/utils/palette.cjs.js +1 -1
  508. package/dist/utils/palette.cjs.js.map +1 -1
  509. package/dist/utils/palette.es.js +40 -34
  510. package/dist/utils/palette.es.js.map +1 -1
  511. package/package.json +21 -28
  512. package/dist/_virtual/react-jsx-runtime.production.min.cjs.js.map +0 -1
  513. package/dist/_virtual/react-jsx-runtime.production.min.es.js +0 -5
  514. package/dist/_virtual/react-jsx-runtime.production.min.es.js.map +0 -1
  515. package/dist/components/Dialog/Dialog.cjs.js +0 -2
  516. package/dist/components/Dialog/Dialog.cjs.js.map +0 -1
  517. package/dist/components/Dialog/Dialog.es.js +0 -15
  518. package/dist/components/Dialog/Dialog.es.js.map +0 -1
  519. package/dist/constants/placement.cjs.js +0 -2
  520. package/dist/constants/placement.cjs.js.map +0 -1
  521. package/dist/constants/placement.es.js +0 -28
  522. package/dist/constants/placement.es.js.map +0 -1
  523. package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js +0 -2
  524. package/dist/node_modules/@react-aria/dialog/dist/useDialog.cjs.js.map +0 -1
  525. package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js +0 -44
  526. package/dist/node_modules/@react-aria/dialog/dist/useDialog.es.js.map +0 -1
  527. package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js +0 -2
  528. package/dist/node_modules/@react-aria/focus/dist/FocusScope.cjs.js.map +0 -1
  529. package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js +0 -88
  530. package/dist/node_modules/@react-aria/focus/dist/FocusScope.es.js.map +0 -1
  531. package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js +0 -2
  532. package/dist/node_modules/@react-aria/form/dist/useFormValidation.cjs.js.map +0 -1
  533. package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js +0 -78
  534. package/dist/node_modules/@react-aria/form/dist/useFormValidation.es.js.map +0 -1
  535. package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js +0 -2
  536. package/dist/node_modules/@react-aria/i18n/dist/context.cjs.js.map +0 -1
  537. package/dist/node_modules/@react-aria/i18n/dist/context.es.js +0 -11
  538. package/dist/node_modules/@react-aria/i18n/dist/context.es.js.map +0 -1
  539. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js +0 -2
  540. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.cjs.js.map +0 -1
  541. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js +0 -30
  542. package/dist/node_modules/@react-aria/i18n/dist/useDefaultLocale.es.js.map +0 -1
  543. package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js +0 -2
  544. package/dist/node_modules/@react-aria/i18n/dist/utils.cjs.js.map +0 -1
  545. package/dist/node_modules/@react-aria/i18n/dist/utils.es.js +0 -45
  546. package/dist/node_modules/@react-aria/i18n/dist/utils.es.js.map +0 -1
  547. package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js +0 -2
  548. package/dist/node_modules/@react-aria/interactions/dist/context.cjs.js.map +0 -1
  549. package/dist/node_modules/@react-aria/interactions/dist/context.es.js +0 -10
  550. package/dist/node_modules/@react-aria/interactions/dist/context.es.js.map +0 -1
  551. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js +0 -2
  552. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.cjs.js.map +0 -1
  553. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js +0 -29
  554. package/dist/node_modules/@react-aria/interactions/dist/createEventHandler.es.js.map +0 -1
  555. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js +0 -2
  556. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.cjs.js.map +0 -1
  557. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js +0 -15
  558. package/dist/node_modules/@react-aria/interactions/dist/focusSafely.es.js.map +0 -1
  559. package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js +0 -2
  560. package/dist/node_modules/@react-aria/interactions/dist/textSelection.cjs.js.map +0 -1
  561. package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js +0 -35
  562. package/dist/node_modules/@react-aria/interactions/dist/textSelection.es.js.map +0 -1
  563. package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js +0 -2
  564. package/dist/node_modules/@react-aria/interactions/dist/useFocus.cjs.js.map +0 -1
  565. package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js +0 -30
  566. package/dist/node_modules/@react-aria/interactions/dist/useFocus.es.js.map +0 -1
  567. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js +0 -2
  568. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.cjs.js.map +0 -1
  569. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js +0 -63
  570. package/dist/node_modules/@react-aria/interactions/dist/useFocusVisible.es.js.map +0 -1
  571. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js +0 -2
  572. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.cjs.js.map +0 -1
  573. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js +0 -56
  574. package/dist/node_modules/@react-aria/interactions/dist/useFocusWithin.es.js.map +0 -1
  575. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js +0 -2
  576. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.cjs.js.map +0 -1
  577. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js +0 -32
  578. package/dist/node_modules/@react-aria/interactions/dist/useFocusable.es.js.map +0 -1
  579. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js +0 -2
  580. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.cjs.js.map +0 -1
  581. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js +0 -13
  582. package/dist/node_modules/@react-aria/interactions/dist/useKeyboard.es.js.map +0 -1
  583. package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js +0 -8
  584. package/dist/node_modules/@react-aria/interactions/dist/usePress.cjs.js.map +0 -1
  585. package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js +0 -386
  586. package/dist/node_modules/@react-aria/interactions/dist/usePress.es.js.map +0 -1
  587. package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js +0 -2
  588. package/dist/node_modules/@react-aria/interactions/dist/utils.cjs.js.map +0 -1
  589. package/dist/node_modules/@react-aria/interactions/dist/utils.es.js +0 -92
  590. package/dist/node_modules/@react-aria/interactions/dist/utils.es.js.map +0 -1
  591. package/dist/node_modules/@react-aria/label/dist/useField.cjs.js +0 -2
  592. package/dist/node_modules/@react-aria/label/dist/useField.cjs.js.map +0 -1
  593. package/dist/node_modules/@react-aria/label/dist/useField.es.js +0 -36
  594. package/dist/node_modules/@react-aria/label/dist/useField.es.js.map +0 -1
  595. package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js +0 -2
  596. package/dist/node_modules/@react-aria/label/dist/useLabel.cjs.js.map +0 -1
  597. package/dist/node_modules/@react-aria/label/dist/useLabel.es.js +0 -23
  598. package/dist/node_modules/@react-aria/label/dist/useLabel.es.js.map +0 -1
  599. package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js +0 -2
  600. package/dist/node_modules/@react-aria/overlays/dist/Overlay.cjs.js.map +0 -1
  601. package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js +0 -16
  602. package/dist/node_modules/@react-aria/overlays/dist/Overlay.es.js.map +0 -1
  603. package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js +0 -2
  604. package/dist/node_modules/@react-aria/radio/dist/useRadio.cjs.js.map +0 -1
  605. package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js +0 -70
  606. package/dist/node_modules/@react-aria/radio/dist/useRadio.es.js.map +0 -1
  607. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js +0 -2
  608. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.cjs.js.map +0 -1
  609. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js +0 -80
  610. package/dist/node_modules/@react-aria/radio/dist/useRadioGroup.es.js.map +0 -1
  611. package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js +0 -2
  612. package/dist/node_modules/@react-aria/radio/dist/utils.cjs.js.map +0 -1
  613. package/dist/node_modules/@react-aria/radio/dist/utils.es.js +0 -5
  614. package/dist/node_modules/@react-aria/radio/dist/utils.es.js.map +0 -1
  615. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js +0 -2
  616. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.cjs.js.map +0 -1
  617. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js +0 -19
  618. package/dist/node_modules/@react-aria/ssr/dist/SSRProvider.es.js.map +0 -1
  619. package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js +0 -2
  620. package/dist/node_modules/@react-aria/switch/dist/useSwitch.cjs.js.map +0 -1
  621. package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js +0 -20
  622. package/dist/node_modules/@react-aria/switch/dist/useSwitch.es.js.map +0 -1
  623. package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js +0 -2
  624. package/dist/node_modules/@react-aria/toggle/dist/useToggle.cjs.js.map +0 -1
  625. package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js +0 -60
  626. package/dist/node_modules/@react-aria/toggle/dist/useToggle.es.js.map +0 -1
  627. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js +0 -2
  628. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.cjs.js.map +0 -1
  629. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js +0 -41
  630. package/dist/node_modules/@react-aria/visually-hidden/dist/VisuallyHidden.es.js.map +0 -1
  631. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js +0 -2
  632. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.cjs.js.map +0 -1
  633. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js +0 -110
  634. package/dist/node_modules/@react-stately/form/dist/useFormValidationState.es.js.map +0 -1
  635. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js +0 -2
  636. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.cjs.js.map +0 -1
  637. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js +0 -35
  638. package/dist/node_modules/@react-stately/radio/dist/useRadioGroupState.es.js.map +0 -1
  639. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js +0 -2
  640. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.cjs.js.map +0 -1
  641. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js +0 -22
  642. package/dist/node_modules/@react-stately/toggle/dist/useToggleState.es.js.map +0 -1
  643. package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js +0 -2
  644. package/dist/node_modules/@react-stately/utils/dist/useControlledState.cjs.js.map +0 -1
  645. package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js +0 -31
  646. package/dist/node_modules/@react-stately/utils/dist/useControlledState.es.js.map +0 -1
  647. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js +0 -2
  648. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.cjs.js.map +0 -1
  649. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js +0 -9
  650. package/dist/node_modules/@swc/helpers/esm/_check_private_redeclaration.es.js.map +0 -1
  651. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js +0 -2
  652. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.cjs.js.map +0 -1
  653. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js +0 -8
  654. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.es.js.map +0 -1
  655. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js +0 -2
  656. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.cjs.js.map +0 -1
  657. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js +0 -13
  658. package/dist/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.es.js.map +0 -1
  659. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js +0 -2
  660. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.cjs.js.map +0 -1
  661. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js +0 -9
  662. package/dist/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.es.js.map +0 -1
  663. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js +0 -2
  664. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.cjs.js.map +0 -1
  665. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js +0 -11
  666. package/dist/node_modules/@swc/helpers/esm/_class_private_field_get.es.js.map +0 -1
  667. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js +0 -2
  668. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.cjs.js.map +0 -1
  669. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js +0 -9
  670. package/dist/node_modules/@swc/helpers/esm/_class_private_field_init.es.js.map +0 -1
  671. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js +0 -2
  672. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.cjs.js.map +0 -1
  673. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js +0 -11
  674. package/dist/node_modules/@swc/helpers/esm/_class_private_field_set.es.js.map +0 -1
  675. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js +0 -10
  676. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.cjs.js.map +0 -1
  677. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js +0 -29
  678. package/dist/node_modules/react/cjs/react-jsx-runtime.production.min.es.js.map +0 -1
package/dist/index.es.js CHANGED
@@ -6,15 +6,15 @@ import { ButtonGroup as b } from "./components/ButtonGroup/ButtonGroup.es.js";
6
6
  import { ButtonWithSelect as d } from "./components/ButtonWithSelect/ButtonWithSelect.es.js";
7
7
  import { CheckboxInput as B } from "./components/Checkbox/CheckboxInput/CheckboxInput.es.js";
8
8
  import { CheckboxRadioGroup as R } from "./components/Checkbox/CheckboxRadioGroup/CheckboxRadioGroup.es.js";
9
- import { DataTable as g } from "./components/Table/DataTable/DataTable.es.js";
9
+ import { DataTable as v } from "./components/Table/DataTable/DataTable.es.js";
10
10
  import { DataTableRow as S } from "./components/Table/DataTable/DataTableRow.es.js";
11
11
  import { CopyInput as w } from "./components/Input/CopyInput/CopyInput.es.js";
12
- import { Dialog as E } from "./components/Dialog/Dialog.es.js";
13
- import { Elevation as y } from "./components/Elevation/Elevation.es.js";
14
- import { ImageBackground as H } from "./components/ImageBackground/ImageBackground.es.js";
15
- import { Input as N } from "./components/Input/BaseInput/Input.es.js";
12
+ import { Overlay as y } from "./components/Overlay/Overlay.es.js";
13
+ import { Elevation as k } from "./components/Elevation/Elevation.es.js";
14
+ import { ImageBackground as M } from "./components/ImageBackground/ImageBackground.es.js";
15
+ import { Input as O } from "./components/Input/BaseInput/Input.es.js";
16
16
  import { OTPInput as V } from "./components/Input/OTPInput/OTPInput.es.js";
17
- import { MenuTrigger as O } from "./components/Menu/MenuTrigger.es.js";
17
+ import { MenuTrigger as G } from "./components/Menu/MenuTrigger.es.js";
18
18
  import { Modal as z } from "./components/Modal/Modal.es.js";
19
19
  import { Popover as j } from "./components/Popover/Popover.es.js";
20
20
  import { SearchInput as F } from "./components/Input/SearchInput/SearchInput.es.js";
@@ -32,11 +32,11 @@ import { TableHeaderCell as uo } from "./components/Table/BaseTable/elements/Tab
32
32
  import { TableBody as bo } from "./components/Table/BaseTable/elements/TableBody.es.js";
33
33
  import { calculateAriaColumnIndex as so, calculateAriaRowIndex as Bo } from "./components/Table/BaseTable/Collection/useTableCollection.es.js";
34
34
  import { TextEllipsis as Ro } from "./components/Text/TextEllipsis/TextEllipsis.es.js";
35
- import { TextEmphasis as go } from "./components/Text/TextEmphasis/TextEmphasis.es.js";
36
- import { ThemeProvider as So, useTheme as vo } from "./components/ThemeProvider.es.js";
35
+ import { TextEmphasis as vo } from "./components/Text/TextEmphasis/TextEmphasis.es.js";
36
+ import { ThemeProvider as So, useTheme as go } from "./components/ThemeProvider.es.js";
37
37
  import { Tombstone as Ao } from "./components/Tombstone/Tombstone.es.js";
38
- import { ResponsiveTooltip as ko } from "./components/Tooltip/ResponsiveTooltip.es.js";
39
- import { Waveform as Do } from "./components/Waveform/Waveform.es.js";
38
+ import { ResponsiveTooltip as Eo } from "./components/Tooltip/ResponsiveTooltip.es.js";
39
+ import { Waveform as Ho } from "./components/Waveform/Waveform.es.js";
40
40
  export {
41
41
  e as ActionMenu,
42
42
  a as BANNER_VARIANTS,
@@ -51,15 +51,15 @@ export {
51
51
  B as CheckboxInput,
52
52
  R as CheckboxRadioGroup,
53
53
  w as CopyInput,
54
- g as DataTable,
54
+ v as DataTable,
55
55
  S as DataTableRow,
56
- E as Dialog,
57
- y as Elevation,
58
- H as ImageBackground,
59
- N as Input,
60
- O as MenuTrigger,
56
+ k as Elevation,
57
+ M as ImageBackground,
58
+ O as Input,
59
+ G as MenuTrigger,
61
60
  z as Modal,
62
61
  V as OTPInput,
62
+ y as Overlay,
63
63
  j as Popover,
64
64
  K as ScreenOverlay,
65
65
  F as SearchInput,
@@ -75,13 +75,13 @@ export {
75
75
  eo as TableRow,
76
76
  Z as TextCountdown,
77
77
  Ro as TextEllipsis,
78
- go as TextEmphasis,
78
+ vo as TextEmphasis,
79
79
  So as ThemeProvider,
80
80
  Ao as Tombstone,
81
- ko as Tooltip,
82
- Do as Waveform,
81
+ Eo as Tooltip,
82
+ Ho as Waveform,
83
83
  so as calculateAriaColumnIndex,
84
84
  Bo as calculateAriaRowIndex,
85
- vo as useTheme
85
+ go as useTheme
86
86
  };
87
87
  //# sourceMappingURL=index.es.js.map
package/dist/light.d.ts CHANGED
@@ -39,13 +39,13 @@ declare type ProtonPalette = {
39
39
  declare interface ProtonStyleSheet {
40
40
  "--proton-control__background-color": string;
41
41
  "--proton-control__background-color-light": string;
42
+ "--proton-control__elevation-color": string;
42
43
  "--proton-control__text-color": string;
43
44
  "--proton-control__title-color": string;
44
45
  "--proton-control__border-color": string;
45
46
  "--proton-control__shadow-color": string;
46
47
  "--proton-control__hover-color": string;
47
48
  "--proton-control__border-radius": string;
48
- "--proton-control__interactive-color": string;
49
49
  "--proton-color__primary": string;
50
50
  "--proton-color__primary-light": string;
51
51
  "--proton-color__primary-super-light": string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.exports.import.es.cjs.js","sources":["../../../../node_modules/color2k/dist/index.exports.import.es.mjs"],"sourcesContent":["/**\n * A simple guard function:\n *\n * ```js\n * Math.min(Math.max(low, value), high)\n * ```\n */\nfunction guard(low, high, value) {\n return Math.min(Math.max(low, value), high);\n}\n\nclass ColorError extends Error {\n constructor(color) {\n super(`Failed to parse color: \"${color}\"`);\n }\n}\nvar ColorError$1 = ColorError;\n\n/**\n * Parses a color into red, gree, blue, alpha parts\n *\n * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color\n */\nfunction parseToRgba(color) {\n if (typeof color !== 'string') throw new ColorError$1(color);\n if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];\n let normalizedColor = color.trim();\n normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;\n const reducedHexMatch = reducedHexRegex.exec(normalizedColor);\n if (reducedHexMatch) {\n const arr = Array.from(reducedHexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];\n }\n const hexMatch = hexRegex.exec(normalizedColor);\n if (hexMatch) {\n const arr = Array.from(hexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];\n }\n const rgbaMatch = rgbaRegex.exec(normalizedColor);\n if (rgbaMatch) {\n const arr = Array.from(rgbaMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];\n }\n const hslaMatch = hslaRegex.exec(normalizedColor);\n if (hslaMatch) {\n const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);\n if (guard(0, 100, s) !== s) throw new ColorError$1(color);\n if (guard(0, 100, l) !== l) throw new ColorError$1(color);\n return [...hslToRgb(h, s, l), Number.isNaN(a) ? 1 : a];\n }\n throw new ColorError$1(color);\n}\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n return (hash >>> 0) % 2341;\n}\nconst colorToInt = x => parseInt(x.replace(/_/g, ''), 36);\nconst compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {\n const key = colorToInt(next.substring(0, 3));\n const hex = colorToInt(next.substring(3)).toString(16);\n\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n let prefix = '';\n for (let i = 0; i < 6 - hex.length; i++) {\n prefix += '0';\n }\n acc[key] = `${prefix}${hex}`;\n return acc;\n}, {});\n\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n */\nfunction nameToHex(color) {\n const normalizedColorName = color.toLowerCase().trim();\n const result = compressedColorMap[hash(normalizedColorName)];\n if (!result) throw new ColorError$1(color);\n return `#${result}`;\n}\nconst r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');\nconst reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');\nconst hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');\nconst rgbaRegex = new RegExp(`^rgba?\\\\(\\\\s*(\\\\d+)\\\\s*${r(',\\\\s*(\\\\d+)\\\\s*', 2)}(?:,\\\\s*([\\\\d.]+))?\\\\s*\\\\)$`, 'i');\nconst hslaRegex = /^hsla?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i;\nconst namedColorRegex = /^[a-z]+$/i;\nconst roundColor = color => {\n return Math.round(color * 255);\n};\nconst hslToRgb = (hue, saturation, lightness) => {\n let l = lightness / 100;\n if (saturation === 0) {\n // achromatic\n return [l, l, l].map(roundColor);\n }\n\n // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n const huePrime = (hue % 360 + 360) % 360 / 60;\n const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);\n const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n let red = 0;\n let green = 0;\n let blue = 0;\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n const lightnessModification = l - chroma / 2;\n const finalRed = red + lightnessModification;\n const finalGreen = green + lightnessModification;\n const finalBlue = blue + lightnessModification;\n return [finalRed, finalGreen, finalBlue].map(roundColor);\n};\n\n// taken from:\n// https://github.com/styled-components/polished/blob/a23a6a2bb26802b3d922d9c3b67bac3f3a54a310/src/internalHelpers/_rgbToHsl.js\n\n/**\n * Parses a color in hue, saturation, lightness, and the alpha channel.\n *\n * Hue is a number between 0 and 360, saturation, lightness, and alpha are\n * decimal percentages between 0 and 1\n */\nfunction parseToHsla(color) {\n const [red, green, blue, alpha] = parseToRgba(color).map((value, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? value : value / 255);\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const lightness = (max + min) / 2;\n\n // achromatic\n if (max === min) return [0, 0, lightness, alpha];\n const delta = max - min;\n const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);\n return [hue, saturation, lightness, alpha];\n}\n\n/**\n * Takes in hsla parts and constructs an hsla string\n *\n * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue\n * @param saturation Percentage of saturation, given as a decimal between 0 and 1\n * @param lightness Percentage of lightness, given as a decimal between 0 and 1\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction hsla(hue, saturation, lightness, alpha) {\n return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Adjusts the current hue of the color by the given degrees. Wraps around when\n * over 360.\n *\n * @param color input color\n * @param degrees degrees to adjust the input color, accepts degree integers\n * (0 - 360) and wraps around on overflow\n */\nfunction adjustHue(color, degrees) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h + degrees, s, l, a);\n}\n\n/**\n * Darkens using lightness. This is equivalent to subtracting the lightness\n * from the L in HSL.\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction darken(color, amount) {\n const [hue, saturation, lightness, alpha] = parseToHsla(color);\n return hsla(hue, saturation, lightness - amount, alpha);\n}\n\n/**\n * Desaturates the input color by the given amount via subtracting from the `s`\n * in `hsla`.\n *\n * @param amount The amount to desaturate, given as a decimal between 0 and 1\n */\nfunction desaturate(color, amount) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h, s - amount, l, a);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js\n\n/**\n * Returns a number (float) representing the luminance of a color.\n */\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n function f(x) {\n const channel = x / 255;\n return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }\n const [r, g, b] = parseToRgba(color);\n return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getContrast.js\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n */\nfunction getContrast(color1, color2) {\n const luminance1 = getLuminance(color1);\n const luminance2 = getLuminance(color2);\n return luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05);\n}\n\n/**\n * Takes in rgba parts and returns an rgba string\n *\n * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive\n * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive\n * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction rgba(red, green, blue, alpha) {\n return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Mixes two colors together. Taken from sass's implementation.\n */\nfunction mix(color1, color2, weight) {\n const normalize = (n, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? n : n / 255;\n const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);\n const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize);\n\n // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n const alphaDelta = a2 - a1;\n const normalizedWeight = weight * 2 - 1;\n const combinedWeight = normalizedWeight * alphaDelta === -1 ? normalizedWeight : normalizedWeight + alphaDelta / (1 + normalizedWeight * alphaDelta);\n const weight2 = (combinedWeight + 1) / 2;\n const weight1 = 1 - weight2;\n const r = (r1 * weight1 + r2 * weight2) * 255;\n const g = (g1 * weight1 + g2 * weight2) * 255;\n const b = (b1 * weight1 + b2 * weight2) * 255;\n const a = a2 * weight + a1 * (1 - weight);\n return rgba(r, g, b, a);\n}\n\n/**\n * Given a series colors, this function will return a `scale(x)` function that\n * accepts a percentage as a decimal between 0 and 1 and returns the color at\n * that percentage in the scale.\n *\n * ```js\n * const scale = getScale('red', 'yellow', 'green');\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(0.5)); // rgba(255, 255, 0, 1)\n * console.log(scale(1)); // rgba(0, 128, 0, 1)\n * ```\n *\n * If you'd like to limit the domain and range like chroma-js, we recommend\n * wrapping scale again.\n *\n * ```js\n * const _scale = getScale('red', 'yellow', 'green');\n * const scale = x => _scale(x / 100);\n *\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(50)); // rgba(255, 255, 0, 1)\n * console.log(scale(100)); // rgba(0, 128, 0, 1)\n * ```\n */\nfunction getScale(...colors) {\n return n => {\n const lastIndex = colors.length - 1;\n const lowIndex = guard(0, lastIndex, Math.floor(n * lastIndex));\n const highIndex = guard(0, lastIndex, Math.ceil(n * lastIndex));\n const color1 = colors[lowIndex];\n const color2 = colors[highIndex];\n const unit = 1 / lastIndex;\n const weight = (n - unit * lowIndex) / unit;\n return mix(color1, color2, weight);\n };\n}\n\nconst guidelines = {\n decorative: 1.5,\n readable: 3,\n aa: 4.5,\n aaa: 7\n};\n\n/**\n * Returns whether or not a color has bad contrast against a background\n * according to a given standard.\n */\nfunction hasBadContrast(color, standard = 'aa', background = '#fff') {\n return getContrast(color, background) < guidelines[standard];\n}\n\n/**\n * Lightens a color by a given amount. This is equivalent to\n * `darken(color, -amount)`\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction lighten(color, amount) {\n return darken(color, -amount);\n}\n\n/**\n * Takes in a color and makes it more transparent by convert to `rgba` and\n * decreasing the amount in the alpha channel.\n *\n * @param amount The amount to increase the transparency by, given as a decimal between 0 and 1\n */\nfunction transparentize(color, amount) {\n const [r, g, b, a] = parseToRgba(color);\n return rgba(r, g, b, a - amount);\n}\n\n/**\n * Takes a color and un-transparentizes it. Equivalent to\n * `transparentize(color, -amount)`\n *\n * @param amount The amount to increase the opacity by, given as a decimal between 0 and 1\n */\nfunction opacify(color, amount) {\n return transparentize(color, -amount);\n}\n\n/**\n * An alternative function to `readableColor`. Returns whether or not the \n * readable color (i.e. the color to be place on top the input color) should be\n * black.\n */\nfunction readableColorIsBlack(color) {\n return getLuminance(color) > 0.179;\n}\n\n/**\n * Returns black or white for best contrast depending on the luminosity of the\n * given color.\n */\nfunction readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}\n\n/**\n * Saturates a color by converting it to `hsl` and increasing the saturation\n * amount. Equivalent to `desaturate(color, -amount)`\n * \n * @param color Input color\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction saturate(color, amount) {\n return desaturate(color, -amount);\n}\n\n/**\n * Takes in any color and returns it as a hex code.\n */\nfunction toHex(color) {\n const [r, g, b, a] = parseToRgba(color);\n let hex = x => {\n const h = guard(0, 255, x).toString(16);\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n return h.length === 1 ? `0${h}` : h;\n };\n return `#${hex(r)}${hex(g)}${hex(b)}${a < 1 ? hex(Math.round(a * 255)) : ''}`;\n}\n\n/**\n * Takes in any color and returns it as an rgba string.\n */\nfunction toRgba(color) {\n return rgba(...parseToRgba(color));\n}\n\n/**\n * Takes in any color and returns it as an hsla string.\n */\nfunction toHsla(color) {\n return hsla(...parseToHsla(color));\n}\n\nexport { ColorError$1 as ColorError, adjustHue, darken, desaturate, getContrast, getLuminance, getScale, guard, hasBadContrast, hsla, lighten, mix, opacify, parseToHsla, parseToRgba, readableColor, readableColorIsBlack, rgba, saturate, toHex, toHsla, toRgba, transparentize };\n//# sourceMappingURL=index.exports.import.es.mjs.map\n"],"names":["guard","low","high","value","ColorError","color","ColorError$1","parseToRgba","normalizedColor","namedColorRegex","nameToHex","reducedHexMatch","reducedHexRegex","arr","x","r","hexMatch","hexRegex","rgbaMatch","rgbaRegex","hslaMatch","hslaRegex","h","s","l","a","hslToRgb","hash","str","i","colorToInt","compressedColorMap","acc","next","key","hex","prefix","normalizedColorName","result","amount","roundColor","hue","saturation","lightness","huePrime","chroma","secondComponent","red","green","blue","lightnessModification","finalRed","finalGreen","finalBlue","parseToHsla","alpha","index","max","min","delta","hsla","adjustHue","degrees","darken","desaturate","getLuminance","f","channel","g","b","getContrast","color1","color2","luminance1","luminance2","rgba","mix","weight","normalize","n","r1","g1","b1","a1","r2","g2","b2","a2","alphaDelta","normalizedWeight","weight2","weight1","getScale","colors","lastIndex","lowIndex","highIndex","unit","guidelines","hasBadContrast","standard","background","lighten","transparentize","saturate","toHex","toRgba"],"mappings":"gFAOA,SAASA,EAAMC,EAAKC,EAAMC,EAAO,CAC/B,OAAO,KAAK,IAAI,KAAK,IAAIF,EAAKE,CAAK,EAAGD,CAAI,CAC5C,CAEA,MAAME,UAAmB,KAAM,CAC7B,YAAYC,EAAO,CACjB,MAAM,2BAA2BA,CAAK,GAAG,CAC1C,CACH,CACG,IAACC,EAAeF,EAOnB,SAASG,EAAYF,EAAO,CAC1B,GAAI,OAAOA,GAAU,SAAU,MAAM,IAAIC,EAAaD,CAAK,EAC3D,GAAIA,EAAM,OAAO,gBAAkB,cAAe,MAAO,CAAC,EAAG,EAAG,EAAG,CAAC,EACpE,IAAIG,EAAkBH,EAAM,OAC5BG,EAAkBC,EAAgB,KAAKJ,CAAK,EAAIK,EAAUL,CAAK,EAAIA,EACnE,MAAMM,EAAkBC,EAAgB,KAAKJ,CAAe,EAC5D,GAAIG,EAAiB,CACnB,MAAME,EAAM,MAAM,KAAKF,CAAe,EAAE,MAAM,CAAC,EAC/C,MAAO,CAAC,GAAGE,EAAI,MAAM,EAAG,CAAC,EAAE,IAAIC,GAAK,SAASC,EAAED,EAAG,CAAC,EAAG,EAAE,CAAC,EAAG,SAASC,EAAEF,EAAI,CAAC,GAAK,IAAK,CAAC,EAAG,EAAE,EAAI,GAAG,CACpG,CACD,MAAMG,EAAWC,EAAS,KAAKT,CAAe,E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0]}
1
+ {"version":3,"file":"index.exports.import.es.cjs.js","sources":["../../../../node_modules/color2k/dist/index.exports.import.es.mjs"],"sourcesContent":["/**\n * A simple guard function:\n *\n * ```js\n * Math.min(Math.max(low, value), high)\n * ```\n */\nfunction guard(low, high, value) {\n return Math.min(Math.max(low, value), high);\n}\n\nclass ColorError extends Error {\n constructor(color) {\n super(`Failed to parse color: \"${color}\"`);\n }\n}\nvar ColorError$1 = ColorError;\n\n/**\n * Parses a color into red, gree, blue, alpha parts\n *\n * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color\n */\nfunction parseToRgba(color) {\n if (typeof color !== 'string') throw new ColorError$1(color);\n if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];\n let normalizedColor = color.trim();\n normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;\n const reducedHexMatch = reducedHexRegex.exec(normalizedColor);\n if (reducedHexMatch) {\n const arr = Array.from(reducedHexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];\n }\n const hexMatch = hexRegex.exec(normalizedColor);\n if (hexMatch) {\n const arr = Array.from(hexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];\n }\n const rgbaMatch = rgbaRegex.exec(normalizedColor);\n if (rgbaMatch) {\n const arr = Array.from(rgbaMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];\n }\n const hslaMatch = hslaRegex.exec(normalizedColor);\n if (hslaMatch) {\n const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);\n if (guard(0, 100, s) !== s) throw new ColorError$1(color);\n if (guard(0, 100, l) !== l) throw new ColorError$1(color);\n return [...hslToRgb(h, s, l), Number.isNaN(a) ? 1 : a];\n }\n throw new ColorError$1(color);\n}\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n return (hash >>> 0) % 2341;\n}\nconst colorToInt = x => parseInt(x.replace(/_/g, ''), 36);\nconst compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {\n const key = colorToInt(next.substring(0, 3));\n const hex = colorToInt(next.substring(3)).toString(16);\n\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n let prefix = '';\n for (let i = 0; i < 6 - hex.length; i++) {\n prefix += '0';\n }\n acc[key] = `${prefix}${hex}`;\n return acc;\n}, {});\n\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n */\nfunction nameToHex(color) {\n const normalizedColorName = color.toLowerCase().trim();\n const result = compressedColorMap[hash(normalizedColorName)];\n if (!result) throw new ColorError$1(color);\n return `#${result}`;\n}\nconst r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');\nconst reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');\nconst hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');\nconst rgbaRegex = new RegExp(`^rgba?\\\\(\\\\s*(\\\\d+)\\\\s*${r(',\\\\s*(\\\\d+)\\\\s*', 2)}(?:,\\\\s*([\\\\d.]+))?\\\\s*\\\\)$`, 'i');\nconst hslaRegex = /^hsla?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i;\nconst namedColorRegex = /^[a-z]+$/i;\nconst roundColor = color => {\n return Math.round(color * 255);\n};\nconst hslToRgb = (hue, saturation, lightness) => {\n let l = lightness / 100;\n if (saturation === 0) {\n // achromatic\n return [l, l, l].map(roundColor);\n }\n\n // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n const huePrime = (hue % 360 + 360) % 360 / 60;\n const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);\n const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n let red = 0;\n let green = 0;\n let blue = 0;\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n const lightnessModification = l - chroma / 2;\n const finalRed = red + lightnessModification;\n const finalGreen = green + lightnessModification;\n const finalBlue = blue + lightnessModification;\n return [finalRed, finalGreen, finalBlue].map(roundColor);\n};\n\n// taken from:\n// https://github.com/styled-components/polished/blob/a23a6a2bb26802b3d922d9c3b67bac3f3a54a310/src/internalHelpers/_rgbToHsl.js\n\n/**\n * Parses a color in hue, saturation, lightness, and the alpha channel.\n *\n * Hue is a number between 0 and 360, saturation, lightness, and alpha are\n * decimal percentages between 0 and 1\n */\nfunction parseToHsla(color) {\n const [red, green, blue, alpha] = parseToRgba(color).map((value, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? value : value / 255);\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const lightness = (max + min) / 2;\n\n // achromatic\n if (max === min) return [0, 0, lightness, alpha];\n const delta = max - min;\n const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);\n return [hue, saturation, lightness, alpha];\n}\n\n/**\n * Takes in hsla parts and constructs an hsla string\n *\n * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue\n * @param saturation Percentage of saturation, given as a decimal between 0 and 1\n * @param lightness Percentage of lightness, given as a decimal between 0 and 1\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction hsla(hue, saturation, lightness, alpha) {\n return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Adjusts the current hue of the color by the given degrees. Wraps around when\n * over 360.\n *\n * @param color input color\n * @param degrees degrees to adjust the input color, accepts degree integers\n * (0 - 360) and wraps around on overflow\n */\nfunction adjustHue(color, degrees) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h + degrees, s, l, a);\n}\n\n/**\n * Darkens using lightness. This is equivalent to subtracting the lightness\n * from the L in HSL.\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction darken(color, amount) {\n const [hue, saturation, lightness, alpha] = parseToHsla(color);\n return hsla(hue, saturation, lightness - amount, alpha);\n}\n\n/**\n * Desaturates the input color by the given amount via subtracting from the `s`\n * in `hsla`.\n *\n * @param amount The amount to desaturate, given as a decimal between 0 and 1\n */\nfunction desaturate(color, amount) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h, s - amount, l, a);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js\n\n/**\n * Returns a number (float) representing the luminance of a color.\n */\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n function f(x) {\n const channel = x / 255;\n return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }\n const [r, g, b] = parseToRgba(color);\n return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getContrast.js\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n */\nfunction getContrast(color1, color2) {\n const luminance1 = getLuminance(color1);\n const luminance2 = getLuminance(color2);\n return luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05);\n}\n\n/**\n * Takes in rgba parts and returns an rgba string\n *\n * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive\n * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive\n * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction rgba(red, green, blue, alpha) {\n return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Mixes two colors together. Taken from sass's implementation.\n */\nfunction mix(color1, color2, weight) {\n const normalize = (n, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? n : n / 255;\n const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);\n const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize);\n\n // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n const alphaDelta = a2 - a1;\n const normalizedWeight = weight * 2 - 1;\n const combinedWeight = normalizedWeight * alphaDelta === -1 ? normalizedWeight : normalizedWeight + alphaDelta / (1 + normalizedWeight * alphaDelta);\n const weight2 = (combinedWeight + 1) / 2;\n const weight1 = 1 - weight2;\n const r = (r1 * weight1 + r2 * weight2) * 255;\n const g = (g1 * weight1 + g2 * weight2) * 255;\n const b = (b1 * weight1 + b2 * weight2) * 255;\n const a = a2 * weight + a1 * (1 - weight);\n return rgba(r, g, b, a);\n}\n\n/**\n * Given a series colors, this function will return a `scale(x)` function that\n * accepts a percentage as a decimal between 0 and 1 and returns the color at\n * that percentage in the scale.\n *\n * ```js\n * const scale = getScale('red', 'yellow', 'green');\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(0.5)); // rgba(255, 255, 0, 1)\n * console.log(scale(1)); // rgba(0, 128, 0, 1)\n * ```\n *\n * If you'd like to limit the domain and range like chroma-js, we recommend\n * wrapping scale again.\n *\n * ```js\n * const _scale = getScale('red', 'yellow', 'green');\n * const scale = x => _scale(x / 100);\n *\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(50)); // rgba(255, 255, 0, 1)\n * console.log(scale(100)); // rgba(0, 128, 0, 1)\n * ```\n */\nfunction getScale(...colors) {\n return n => {\n const lastIndex = colors.length - 1;\n const lowIndex = guard(0, lastIndex, Math.floor(n * lastIndex));\n const highIndex = guard(0, lastIndex, Math.ceil(n * lastIndex));\n const color1 = colors[lowIndex];\n const color2 = colors[highIndex];\n const unit = 1 / lastIndex;\n const weight = (n - unit * lowIndex) / unit;\n return mix(color1, color2, weight);\n };\n}\n\nconst guidelines = {\n decorative: 1.5,\n readable: 3,\n aa: 4.5,\n aaa: 7\n};\n\n/**\n * Returns whether or not a color has bad contrast against a background\n * according to a given standard.\n */\nfunction hasBadContrast(color, standard = 'aa', background = '#fff') {\n return getContrast(color, background) < guidelines[standard];\n}\n\n/**\n * Lightens a color by a given amount. This is equivalent to\n * `darken(color, -amount)`\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction lighten(color, amount) {\n return darken(color, -amount);\n}\n\n/**\n * Takes in a color and makes it more transparent by convert to `rgba` and\n * decreasing the amount in the alpha channel.\n *\n * @param amount The amount to increase the transparency by, given as a decimal between 0 and 1\n */\nfunction transparentize(color, amount) {\n const [r, g, b, a] = parseToRgba(color);\n return rgba(r, g, b, a - amount);\n}\n\n/**\n * Takes a color and un-transparentizes it. Equivalent to\n * `transparentize(color, -amount)`\n *\n * @param amount The amount to increase the opacity by, given as a decimal between 0 and 1\n */\nfunction opacify(color, amount) {\n return transparentize(color, -amount);\n}\n\n/**\n * An alternative function to `readableColor`. Returns whether or not the \n * readable color (i.e. the color to be place on top the input color) should be\n * black.\n */\nfunction readableColorIsBlack(color) {\n return getLuminance(color) > 0.179;\n}\n\n/**\n * Returns black or white for best contrast depending on the luminosity of the\n * given color.\n */\nfunction readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}\n\n/**\n * Saturates a color by converting it to `hsl` and increasing the saturation\n * amount. Equivalent to `desaturate(color, -amount)`\n * \n * @param color Input color\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction saturate(color, amount) {\n return desaturate(color, -amount);\n}\n\n/**\n * Takes in any color and returns it as a hex code.\n */\nfunction toHex(color) {\n const [r, g, b, a] = parseToRgba(color);\n let hex = x => {\n const h = guard(0, 255, x).toString(16);\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n return h.length === 1 ? `0${h}` : h;\n };\n return `#${hex(r)}${hex(g)}${hex(b)}${a < 1 ? hex(Math.round(a * 255)) : ''}`;\n}\n\n/**\n * Takes in any color and returns it as an rgba string.\n */\nfunction toRgba(color) {\n return rgba(...parseToRgba(color));\n}\n\n/**\n * Takes in any color and returns it as an hsla string.\n */\nfunction toHsla(color) {\n return hsla(...parseToHsla(color));\n}\n\nexport { ColorError$1 as ColorError, adjustHue, darken, desaturate, getContrast, getLuminance, getScale, guard, hasBadContrast, hsla, lighten, mix, opacify, parseToHsla, parseToRgba, readableColor, readableColorIsBlack, rgba, saturate, toHex, toHsla, toRgba, transparentize };\n//# sourceMappingURL=index.exports.import.es.mjs.map\n"],"names":["guard","low","high","value","ColorError","color","ColorError$1","parseToRgba","normalizedColor","namedColorRegex","nameToHex","reducedHexMatch","reducedHexRegex","arr","x","r","hexMatch","hexRegex","rgbaMatch","rgbaRegex","hslaMatch","hslaRegex","h","s","l","a","hslToRgb","hash","str","i","colorToInt","compressedColorMap","acc","next","key","hex","prefix","normalizedColorName","result","amount","roundColor","hue","saturation","lightness","huePrime","chroma","secondComponent","red","green","blue","lightnessModification","finalRed","finalGreen","finalBlue","parseToHsla","alpha","index","max","min","delta","hsla","adjustHue","degrees","darken","desaturate","getLuminance","f","channel","g","b","getContrast","color1","color2","luminance1","luminance2","rgba","mix","weight","normalize","n","r1","g1","b1","a1","r2","g2","b2","a2","alphaDelta","normalizedWeight","weight2","weight1","getScale","colors","lastIndex","lowIndex","highIndex","unit","guidelines","hasBadContrast","standard","background","lighten","transparentize","saturate","toHex","toRgba"],"mappings":"gFAOA,SAASA,EAAMC,EAAKC,EAAMC,EAAO,CAC/B,OAAO,KAAK,IAAI,KAAK,IAAIF,EAAKE,CAAK,EAAGD,CAAI,CAC5C,CAEA,MAAME,UAAmB,KAAM,CAC7B,YAAYC,EAAO,CACjB,MAAM,2BAA2BA,CAAK,GAAG,CAC3C,CACF,CACG,IAACC,EAAeF,EAOnB,SAASG,EAAYF,EAAO,CAC1B,GAAI,OAAOA,GAAU,SAAU,MAAM,IAAIC,EAAaD,CAAK,EAC3D,GAAIA,EAAM,OAAO,gBAAkB,cAAe,MAAO,CAAC,EAAG,EAAG,EAAG,CAAC,EACpE,IAAIG,EAAkBH,EAAM,KAAI,EAChCG,EAAkBC,EAAgB,KAAKJ,CAAK,EAAIK,EAAUL,CAAK,EAAIA,EACnE,MAAMM,EAAkBC,EAAgB,KAAKJ,CAAe,EAC5D,GAAIG,EAAiB,CACnB,MAAME,EAAM,MAAM,KAAKF,CAAe,EAAE,MAAM,CAAC,EAC/C,MAAO,CAAC,GAAGE,EAAI,MAAM,EAAG,CAAC,EAAE,IAAIC,GAAK,SAASC,EAAED,EAAG,CAAC,EAAG,EAAE,CAAC,EAAG,SAASC,EAAEF,EAAI,CAAC,GAAK,IAAK,CAAC,EAAG,EAAE,EAAI,GAAG,CACrG,CACA,MAAMG,EAAWC,EAAS,KAA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oreList":[0]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.exports.import.es.es.js","sources":["../../../../node_modules/color2k/dist/index.exports.import.es.mjs"],"sourcesContent":["/**\n * A simple guard function:\n *\n * ```js\n * Math.min(Math.max(low, value), high)\n * ```\n */\nfunction guard(low, high, value) {\n return Math.min(Math.max(low, value), high);\n}\n\nclass ColorError extends Error {\n constructor(color) {\n super(`Failed to parse color: \"${color}\"`);\n }\n}\nvar ColorError$1 = ColorError;\n\n/**\n * Parses a color into red, gree, blue, alpha parts\n *\n * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color\n */\nfunction parseToRgba(color) {\n if (typeof color !== 'string') throw new ColorError$1(color);\n if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];\n let normalizedColor = color.trim();\n normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;\n const reducedHexMatch = reducedHexRegex.exec(normalizedColor);\n if (reducedHexMatch) {\n const arr = Array.from(reducedHexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];\n }\n const hexMatch = hexRegex.exec(normalizedColor);\n if (hexMatch) {\n const arr = Array.from(hexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];\n }\n const rgbaMatch = rgbaRegex.exec(normalizedColor);\n if (rgbaMatch) {\n const arr = Array.from(rgbaMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];\n }\n const hslaMatch = hslaRegex.exec(normalizedColor);\n if (hslaMatch) {\n const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);\n if (guard(0, 100, s) !== s) throw new ColorError$1(color);\n if (guard(0, 100, l) !== l) throw new ColorError$1(color);\n return [...hslToRgb(h, s, l), Number.isNaN(a) ? 1 : a];\n }\n throw new ColorError$1(color);\n}\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n return (hash >>> 0) % 2341;\n}\nconst colorToInt = x => parseInt(x.replace(/_/g, ''), 36);\nconst compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {\n const key = colorToInt(next.substring(0, 3));\n const hex = colorToInt(next.substring(3)).toString(16);\n\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n let prefix = '';\n for (let i = 0; i < 6 - hex.length; i++) {\n prefix += '0';\n }\n acc[key] = `${prefix}${hex}`;\n return acc;\n}, {});\n\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n */\nfunction nameToHex(color) {\n const normalizedColorName = color.toLowerCase().trim();\n const result = compressedColorMap[hash(normalizedColorName)];\n if (!result) throw new ColorError$1(color);\n return `#${result}`;\n}\nconst r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');\nconst reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');\nconst hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');\nconst rgbaRegex = new RegExp(`^rgba?\\\\(\\\\s*(\\\\d+)\\\\s*${r(',\\\\s*(\\\\d+)\\\\s*', 2)}(?:,\\\\s*([\\\\d.]+))?\\\\s*\\\\)$`, 'i');\nconst hslaRegex = /^hsla?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i;\nconst namedColorRegex = /^[a-z]+$/i;\nconst roundColor = color => {\n return Math.round(color * 255);\n};\nconst hslToRgb = (hue, saturation, lightness) => {\n let l = lightness / 100;\n if (saturation === 0) {\n // achromatic\n return [l, l, l].map(roundColor);\n }\n\n // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n const huePrime = (hue % 360 + 360) % 360 / 60;\n const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);\n const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n let red = 0;\n let green = 0;\n let blue = 0;\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n const lightnessModification = l - chroma / 2;\n const finalRed = red + lightnessModification;\n const finalGreen = green + lightnessModification;\n const finalBlue = blue + lightnessModification;\n return [finalRed, finalGreen, finalBlue].map(roundColor);\n};\n\n// taken from:\n// https://github.com/styled-components/polished/blob/a23a6a2bb26802b3d922d9c3b67bac3f3a54a310/src/internalHelpers/_rgbToHsl.js\n\n/**\n * Parses a color in hue, saturation, lightness, and the alpha channel.\n *\n * Hue is a number between 0 and 360, saturation, lightness, and alpha are\n * decimal percentages between 0 and 1\n */\nfunction parseToHsla(color) {\n const [red, green, blue, alpha] = parseToRgba(color).map((value, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? value : value / 255);\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const lightness = (max + min) / 2;\n\n // achromatic\n if (max === min) return [0, 0, lightness, alpha];\n const delta = max - min;\n const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);\n return [hue, saturation, lightness, alpha];\n}\n\n/**\n * Takes in hsla parts and constructs an hsla string\n *\n * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue\n * @param saturation Percentage of saturation, given as a decimal between 0 and 1\n * @param lightness Percentage of lightness, given as a decimal between 0 and 1\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction hsla(hue, saturation, lightness, alpha) {\n return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Adjusts the current hue of the color by the given degrees. Wraps around when\n * over 360.\n *\n * @param color input color\n * @param degrees degrees to adjust the input color, accepts degree integers\n * (0 - 360) and wraps around on overflow\n */\nfunction adjustHue(color, degrees) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h + degrees, s, l, a);\n}\n\n/**\n * Darkens using lightness. This is equivalent to subtracting the lightness\n * from the L in HSL.\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction darken(color, amount) {\n const [hue, saturation, lightness, alpha] = parseToHsla(color);\n return hsla(hue, saturation, lightness - amount, alpha);\n}\n\n/**\n * Desaturates the input color by the given amount via subtracting from the `s`\n * in `hsla`.\n *\n * @param amount The amount to desaturate, given as a decimal between 0 and 1\n */\nfunction desaturate(color, amount) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h, s - amount, l, a);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js\n\n/**\n * Returns a number (float) representing the luminance of a color.\n */\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n function f(x) {\n const channel = x / 255;\n return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }\n const [r, g, b] = parseToRgba(color);\n return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getContrast.js\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n */\nfunction getContrast(color1, color2) {\n const luminance1 = getLuminance(color1);\n const luminance2 = getLuminance(color2);\n return luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05);\n}\n\n/**\n * Takes in rgba parts and returns an rgba string\n *\n * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive\n * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive\n * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction rgba(red, green, blue, alpha) {\n return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Mixes two colors together. Taken from sass's implementation.\n */\nfunction mix(color1, color2, weight) {\n const normalize = (n, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? n : n / 255;\n const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);\n const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize);\n\n // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n const alphaDelta = a2 - a1;\n const normalizedWeight = weight * 2 - 1;\n const combinedWeight = normalizedWeight * alphaDelta === -1 ? normalizedWeight : normalizedWeight + alphaDelta / (1 + normalizedWeight * alphaDelta);\n const weight2 = (combinedWeight + 1) / 2;\n const weight1 = 1 - weight2;\n const r = (r1 * weight1 + r2 * weight2) * 255;\n const g = (g1 * weight1 + g2 * weight2) * 255;\n const b = (b1 * weight1 + b2 * weight2) * 255;\n const a = a2 * weight + a1 * (1 - weight);\n return rgba(r, g, b, a);\n}\n\n/**\n * Given a series colors, this function will return a `scale(x)` function that\n * accepts a percentage as a decimal between 0 and 1 and returns the color at\n * that percentage in the scale.\n *\n * ```js\n * const scale = getScale('red', 'yellow', 'green');\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(0.5)); // rgba(255, 255, 0, 1)\n * console.log(scale(1)); // rgba(0, 128, 0, 1)\n * ```\n *\n * If you'd like to limit the domain and range like chroma-js, we recommend\n * wrapping scale again.\n *\n * ```js\n * const _scale = getScale('red', 'yellow', 'green');\n * const scale = x => _scale(x / 100);\n *\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(50)); // rgba(255, 255, 0, 1)\n * console.log(scale(100)); // rgba(0, 128, 0, 1)\n * ```\n */\nfunction getScale(...colors) {\n return n => {\n const lastIndex = colors.length - 1;\n const lowIndex = guard(0, lastIndex, Math.floor(n * lastIndex));\n const highIndex = guard(0, lastIndex, Math.ceil(n * lastIndex));\n const color1 = colors[lowIndex];\n const color2 = colors[highIndex];\n const unit = 1 / lastIndex;\n const weight = (n - unit * lowIndex) / unit;\n return mix(color1, color2, weight);\n };\n}\n\nconst guidelines = {\n decorative: 1.5,\n readable: 3,\n aa: 4.5,\n aaa: 7\n};\n\n/**\n * Returns whether or not a color has bad contrast against a background\n * according to a given standard.\n */\nfunction hasBadContrast(color, standard = 'aa', background = '#fff') {\n return getContrast(color, background) < guidelines[standard];\n}\n\n/**\n * Lightens a color by a given amount. This is equivalent to\n * `darken(color, -amount)`\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction lighten(color, amount) {\n return darken(color, -amount);\n}\n\n/**\n * Takes in a color and makes it more transparent by convert to `rgba` and\n * decreasing the amount in the alpha channel.\n *\n * @param amount The amount to increase the transparency by, given as a decimal between 0 and 1\n */\nfunction transparentize(color, amount) {\n const [r, g, b, a] = parseToRgba(color);\n return rgba(r, g, b, a - amount);\n}\n\n/**\n * Takes a color and un-transparentizes it. Equivalent to\n * `transparentize(color, -amount)`\n *\n * @param amount The amount to increase the opacity by, given as a decimal between 0 and 1\n */\nfunction opacify(color, amount) {\n return transparentize(color, -amount);\n}\n\n/**\n * An alternative function to `readableColor`. Returns whether or not the \n * readable color (i.e. the color to be place on top the input color) should be\n * black.\n */\nfunction readableColorIsBlack(color) {\n return getLuminance(color) > 0.179;\n}\n\n/**\n * Returns black or white for best contrast depending on the luminosity of the\n * given color.\n */\nfunction readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}\n\n/**\n * Saturates a color by converting it to `hsl` and increasing the saturation\n * amount. Equivalent to `desaturate(color, -amount)`\n * \n * @param color Input color\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction saturate(color, amount) {\n return desaturate(color, -amount);\n}\n\n/**\n * Takes in any color and returns it as a hex code.\n */\nfunction toHex(color) {\n const [r, g, b, a] = parseToRgba(color);\n let hex = x => {\n const h = guard(0, 255, x).toString(16);\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n return h.length === 1 ? `0${h}` : h;\n };\n return `#${hex(r)}${hex(g)}${hex(b)}${a < 1 ? hex(Math.round(a * 255)) : ''}`;\n}\n\n/**\n * Takes in any color and returns it as an rgba string.\n */\nfunction toRgba(color) {\n return rgba(...parseToRgba(color));\n}\n\n/**\n * Takes in any color and returns it as an hsla string.\n */\nfunction toHsla(color) {\n return hsla(...parseToHsla(color));\n}\n\nexport { ColorError$1 as ColorError, adjustHue, darken, desaturate, getContrast, getLuminance, getScale, guard, hasBadContrast, hsla, lighten, mix, opacify, parseToHsla, parseToRgba, readableColor, readableColorIsBlack, rgba, saturate, toHex, toHsla, toRgba, transparentize };\n//# sourceMappingURL=index.exports.import.es.mjs.map\n"],"names":["guard","low","high","value","ColorError","color","ColorError$1","parseToRgba","normalizedColor","namedColorRegex","nameToHex","reducedHexMatch","reducedHexRegex","arr","x","r","hexMatch","hexRegex","rgbaMatch","rgbaRegex","hslaMatch","hslaRegex","h","s","l","a","hslToRgb","hash","str","i","colorToInt","compressedColorMap","acc","next","key","hex","prefix","normalizedColorName","result","amount","roundColor","hue","saturation","lightness","huePrime","chroma","secondComponent","red","green","blue","lightnessModification","finalRed","finalGreen","finalBlue","parseToHsla","alpha","index","max","min","delta","hsla","adjustHue","degrees","darken","desaturate","getLuminance","f","channel","g","b","getContrast","color1","color2","luminance1","luminance2","rgba","mix","weight","normalize","n","r1","g1","b1","a1","r2","g2","b2","a2","alphaDelta","normalizedWeight","weight2","weight1","getScale","colors","lastIndex","lowIndex","highIndex","unit","guidelines","hasBadContrast","standard","background","lighten","transparentize","saturate","toHex","toRgba"],"mappings":"AAOA,SAASA,EAAMC,GAAKC,GAAMC,GAAO;AAC/B,SAAO,KAAK,IAAI,KAAK,IAAIF,GAAKE,CAAK,GAAGD,CAAI;AAC5C;AAEA,MAAME,UAAmB,MAAM;AAAA,EAC7B,YAAYC,GAAO;AACjB,UAAM,2BAA2BA,CAAK,GAAG;AAAA,EAC1C;AACH;AACG,IAACC,IAAeF;AAOnB,SAASG,EAAYF,GAAO;AAC1B,MAAI,OAAOA,KAAU,SAAU,OAAM,IAAIC,EAAaD,CAAK;AAC3D,MAAIA,EAAM,OAAO,kBAAkB,cAAe,QAAO,CAAC,GAAG,GAAG,GAAG,CAAC;AACpE,MAAIG,IAAkBH,EAAM;AAC5B,EAAAG,IAAkBC,EAAgB,KAAKJ,CAAK,IAAIK,EAAUL,CAAK,IAAIA;AACnE,QAAMM,IAAkBC,EAAgB,KAAKJ,CAAe;AAC5D,MAAIG,GAAiB;AACnB,UAAME,IAAM,MAAM,KAAKF,CAAe,EAAE,MAAM,CAAC;AAC/C,WAAO,CAAC,GAAGE,EAAI,MAAM,GAAG,CAAC,EAAE,IAAI,CAAAC,MAAK,SAASC,EAAED,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,SAASC,EAAEF,EAAI,CAAC,KAAK,KAAK,CAAC,GAAG,EAAE,IAAI,GAAG;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AAC,CAAC,GAAGjC,EAAIkC,CAAC,CAAC,GAAG5C,IAAI,IAAIU,EAAI,KAAK,MAAMV,IAAI,GAAG,CAAC,IAAI,EAAE;AAC7E;AAKA,SAASiF,GAAOrG,GAAO;AACrB,SAAOsE,EAAK,GAAGpE,EAAYF,CAAK,CAAC;AACnC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"index.exports.import.es.es.js","sources":["../../../../node_modules/color2k/dist/index.exports.import.es.mjs"],"sourcesContent":["/**\n * A simple guard function:\n *\n * ```js\n * Math.min(Math.max(low, value), high)\n * ```\n */\nfunction guard(low, high, value) {\n return Math.min(Math.max(low, value), high);\n}\n\nclass ColorError extends Error {\n constructor(color) {\n super(`Failed to parse color: \"${color}\"`);\n }\n}\nvar ColorError$1 = ColorError;\n\n/**\n * Parses a color into red, gree, blue, alpha parts\n *\n * @param color the input color. Can be a RGB, RBGA, HSL, HSLA, or named color\n */\nfunction parseToRgba(color) {\n if (typeof color !== 'string') throw new ColorError$1(color);\n if (color.trim().toLowerCase() === 'transparent') return [0, 0, 0, 0];\n let normalizedColor = color.trim();\n normalizedColor = namedColorRegex.test(color) ? nameToHex(color) : color;\n const reducedHexMatch = reducedHexRegex.exec(normalizedColor);\n if (reducedHexMatch) {\n const arr = Array.from(reducedHexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(r(x, 2), 16)), parseInt(r(arr[3] || 'f', 2), 16) / 255];\n }\n const hexMatch = hexRegex.exec(normalizedColor);\n if (hexMatch) {\n const arr = Array.from(hexMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 16)), parseInt(arr[3] || 'ff', 16) / 255];\n }\n const rgbaMatch = rgbaRegex.exec(normalizedColor);\n if (rgbaMatch) {\n const arr = Array.from(rgbaMatch).slice(1);\n return [...arr.slice(0, 3).map(x => parseInt(x, 10)), parseFloat(arr[3] || '1')];\n }\n const hslaMatch = hslaRegex.exec(normalizedColor);\n if (hslaMatch) {\n const [h, s, l, a] = Array.from(hslaMatch).slice(1).map(parseFloat);\n if (guard(0, 100, s) !== s) throw new ColorError$1(color);\n if (guard(0, 100, l) !== l) throw new ColorError$1(color);\n return [...hslToRgb(h, s, l), Number.isNaN(a) ? 1 : a];\n }\n throw new ColorError$1(color);\n}\nfunction hash(str) {\n let hash = 5381;\n let i = str.length;\n while (i) {\n hash = hash * 33 ^ str.charCodeAt(--i);\n }\n\n /* JavaScript does bitwise operations (like XOR, above) on 32-bit signed\n * integers. Since we want the results to be always positive, convert the\n * signed int to an unsigned by doing an unsigned bitshift. */\n return (hash >>> 0) % 2341;\n}\nconst colorToInt = x => parseInt(x.replace(/_/g, ''), 36);\nconst compressedColorMap = '1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm'.split(' ').reduce((acc, next) => {\n const key = colorToInt(next.substring(0, 3));\n const hex = colorToInt(next.substring(3)).toString(16);\n\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n let prefix = '';\n for (let i = 0; i < 6 - hex.length; i++) {\n prefix += '0';\n }\n acc[key] = `${prefix}${hex}`;\n return acc;\n}, {});\n\n/**\n * Checks if a string is a CSS named color and returns its equivalent hex value, otherwise returns the original color.\n */\nfunction nameToHex(color) {\n const normalizedColorName = color.toLowerCase().trim();\n const result = compressedColorMap[hash(normalizedColorName)];\n if (!result) throw new ColorError$1(color);\n return `#${result}`;\n}\nconst r = (str, amount) => Array.from(Array(amount)).map(() => str).join('');\nconst reducedHexRegex = new RegExp(`^#${r('([a-f0-9])', 3)}([a-f0-9])?$`, 'i');\nconst hexRegex = new RegExp(`^#${r('([a-f0-9]{2})', 3)}([a-f0-9]{2})?$`, 'i');\nconst rgbaRegex = new RegExp(`^rgba?\\\\(\\\\s*(\\\\d+)\\\\s*${r(',\\\\s*(\\\\d+)\\\\s*', 2)}(?:,\\\\s*([\\\\d.]+))?\\\\s*\\\\)$`, 'i');\nconst hslaRegex = /^hsla?\\(\\s*([\\d.]+)\\s*,\\s*([\\d.]+)%\\s*,\\s*([\\d.]+)%(?:\\s*,\\s*([\\d.]+))?\\s*\\)$/i;\nconst namedColorRegex = /^[a-z]+$/i;\nconst roundColor = color => {\n return Math.round(color * 255);\n};\nconst hslToRgb = (hue, saturation, lightness) => {\n let l = lightness / 100;\n if (saturation === 0) {\n // achromatic\n return [l, l, l].map(roundColor);\n }\n\n // formulae from https://en.wikipedia.org/wiki/HSL_and_HSV\n const huePrime = (hue % 360 + 360) % 360 / 60;\n const chroma = (1 - Math.abs(2 * l - 1)) * (saturation / 100);\n const secondComponent = chroma * (1 - Math.abs(huePrime % 2 - 1));\n let red = 0;\n let green = 0;\n let blue = 0;\n if (huePrime >= 0 && huePrime < 1) {\n red = chroma;\n green = secondComponent;\n } else if (huePrime >= 1 && huePrime < 2) {\n red = secondComponent;\n green = chroma;\n } else if (huePrime >= 2 && huePrime < 3) {\n green = chroma;\n blue = secondComponent;\n } else if (huePrime >= 3 && huePrime < 4) {\n green = secondComponent;\n blue = chroma;\n } else if (huePrime >= 4 && huePrime < 5) {\n red = secondComponent;\n blue = chroma;\n } else if (huePrime >= 5 && huePrime < 6) {\n red = chroma;\n blue = secondComponent;\n }\n const lightnessModification = l - chroma / 2;\n const finalRed = red + lightnessModification;\n const finalGreen = green + lightnessModification;\n const finalBlue = blue + lightnessModification;\n return [finalRed, finalGreen, finalBlue].map(roundColor);\n};\n\n// taken from:\n// https://github.com/styled-components/polished/blob/a23a6a2bb26802b3d922d9c3b67bac3f3a54a310/src/internalHelpers/_rgbToHsl.js\n\n/**\n * Parses a color in hue, saturation, lightness, and the alpha channel.\n *\n * Hue is a number between 0 and 360, saturation, lightness, and alpha are\n * decimal percentages between 0 and 1\n */\nfunction parseToHsla(color) {\n const [red, green, blue, alpha] = parseToRgba(color).map((value, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? value : value / 255);\n const max = Math.max(red, green, blue);\n const min = Math.min(red, green, blue);\n const lightness = (max + min) / 2;\n\n // achromatic\n if (max === min) return [0, 0, lightness, alpha];\n const delta = max - min;\n const saturation = lightness > 0.5 ? delta / (2 - max - min) : delta / (max + min);\n const hue = 60 * (red === max ? (green - blue) / delta + (green < blue ? 6 : 0) : green === max ? (blue - red) / delta + 2 : (red - green) / delta + 4);\n return [hue, saturation, lightness, alpha];\n}\n\n/**\n * Takes in hsla parts and constructs an hsla string\n *\n * @param hue The color circle (from 0 to 360) - 0 (or 360) is red, 120 is green, 240 is blue\n * @param saturation Percentage of saturation, given as a decimal between 0 and 1\n * @param lightness Percentage of lightness, given as a decimal between 0 and 1\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction hsla(hue, saturation, lightness, alpha) {\n return `hsla(${(hue % 360).toFixed()}, ${guard(0, 100, saturation * 100).toFixed()}%, ${guard(0, 100, lightness * 100).toFixed()}%, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Adjusts the current hue of the color by the given degrees. Wraps around when\n * over 360.\n *\n * @param color input color\n * @param degrees degrees to adjust the input color, accepts degree integers\n * (0 - 360) and wraps around on overflow\n */\nfunction adjustHue(color, degrees) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h + degrees, s, l, a);\n}\n\n/**\n * Darkens using lightness. This is equivalent to subtracting the lightness\n * from the L in HSL.\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction darken(color, amount) {\n const [hue, saturation, lightness, alpha] = parseToHsla(color);\n return hsla(hue, saturation, lightness - amount, alpha);\n}\n\n/**\n * Desaturates the input color by the given amount via subtracting from the `s`\n * in `hsla`.\n *\n * @param amount The amount to desaturate, given as a decimal between 0 and 1\n */\nfunction desaturate(color, amount) {\n const [h, s, l, a] = parseToHsla(color);\n return hsla(h, s - amount, l, a);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getLuminance.js\n\n/**\n * Returns a number (float) representing the luminance of a color.\n */\nfunction getLuminance(color) {\n if (color === 'transparent') return 0;\n function f(x) {\n const channel = x / 255;\n return channel <= 0.04045 ? channel / 12.92 : Math.pow((channel + 0.055) / 1.055, 2.4);\n }\n const [r, g, b] = parseToRgba(color);\n return 0.2126 * f(r) + 0.7152 * f(g) + 0.0722 * f(b);\n}\n\n// taken from:\n// https://github.com/styled-components/polished/blob/0764c982551b487469043acb56281b0358b3107b/src/color/getContrast.js\n\n/**\n * Returns the contrast ratio between two colors based on\n * [W3's recommended equation for calculating contrast](http://www.w3.org/TR/WCAG20/#contrast-ratiodef).\n */\nfunction getContrast(color1, color2) {\n const luminance1 = getLuminance(color1);\n const luminance2 = getLuminance(color2);\n return luminance1 > luminance2 ? (luminance1 + 0.05) / (luminance2 + 0.05) : (luminance2 + 0.05) / (luminance1 + 0.05);\n}\n\n/**\n * Takes in rgba parts and returns an rgba string\n *\n * @param red The amount of red in the red channel, given in a number between 0 and 255 inclusive\n * @param green The amount of green in the red channel, given in a number between 0 and 255 inclusive\n * @param blue The amount of blue in the red channel, given in a number between 0 and 255 inclusive\n * @param alpha Percentage of opacity, given as a decimal between 0 and 1\n */\nfunction rgba(red, green, blue, alpha) {\n return `rgba(${guard(0, 255, red).toFixed()}, ${guard(0, 255, green).toFixed()}, ${guard(0, 255, blue).toFixed()}, ${parseFloat(guard(0, 1, alpha).toFixed(3))})`;\n}\n\n/**\n * Mixes two colors together. Taken from sass's implementation.\n */\nfunction mix(color1, color2, weight) {\n const normalize = (n, index) =>\n // 3rd index is alpha channel which is already normalized\n index === 3 ? n : n / 255;\n const [r1, g1, b1, a1] = parseToRgba(color1).map(normalize);\n const [r2, g2, b2, a2] = parseToRgba(color2).map(normalize);\n\n // The formula is copied from the original Sass implementation:\n // http://sass-lang.com/documentation/Sass/Script/Functions.html#mix-instance_method\n const alphaDelta = a2 - a1;\n const normalizedWeight = weight * 2 - 1;\n const combinedWeight = normalizedWeight * alphaDelta === -1 ? normalizedWeight : normalizedWeight + alphaDelta / (1 + normalizedWeight * alphaDelta);\n const weight2 = (combinedWeight + 1) / 2;\n const weight1 = 1 - weight2;\n const r = (r1 * weight1 + r2 * weight2) * 255;\n const g = (g1 * weight1 + g2 * weight2) * 255;\n const b = (b1 * weight1 + b2 * weight2) * 255;\n const a = a2 * weight + a1 * (1 - weight);\n return rgba(r, g, b, a);\n}\n\n/**\n * Given a series colors, this function will return a `scale(x)` function that\n * accepts a percentage as a decimal between 0 and 1 and returns the color at\n * that percentage in the scale.\n *\n * ```js\n * const scale = getScale('red', 'yellow', 'green');\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(0.5)); // rgba(255, 255, 0, 1)\n * console.log(scale(1)); // rgba(0, 128, 0, 1)\n * ```\n *\n * If you'd like to limit the domain and range like chroma-js, we recommend\n * wrapping scale again.\n *\n * ```js\n * const _scale = getScale('red', 'yellow', 'green');\n * const scale = x => _scale(x / 100);\n *\n * console.log(scale(0)); // rgba(255, 0, 0, 1)\n * console.log(scale(50)); // rgba(255, 255, 0, 1)\n * console.log(scale(100)); // rgba(0, 128, 0, 1)\n * ```\n */\nfunction getScale(...colors) {\n return n => {\n const lastIndex = colors.length - 1;\n const lowIndex = guard(0, lastIndex, Math.floor(n * lastIndex));\n const highIndex = guard(0, lastIndex, Math.ceil(n * lastIndex));\n const color1 = colors[lowIndex];\n const color2 = colors[highIndex];\n const unit = 1 / lastIndex;\n const weight = (n - unit * lowIndex) / unit;\n return mix(color1, color2, weight);\n };\n}\n\nconst guidelines = {\n decorative: 1.5,\n readable: 3,\n aa: 4.5,\n aaa: 7\n};\n\n/**\n * Returns whether or not a color has bad contrast against a background\n * according to a given standard.\n */\nfunction hasBadContrast(color, standard = 'aa', background = '#fff') {\n return getContrast(color, background) < guidelines[standard];\n}\n\n/**\n * Lightens a color by a given amount. This is equivalent to\n * `darken(color, -amount)`\n *\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction lighten(color, amount) {\n return darken(color, -amount);\n}\n\n/**\n * Takes in a color and makes it more transparent by convert to `rgba` and\n * decreasing the amount in the alpha channel.\n *\n * @param amount The amount to increase the transparency by, given as a decimal between 0 and 1\n */\nfunction transparentize(color, amount) {\n const [r, g, b, a] = parseToRgba(color);\n return rgba(r, g, b, a - amount);\n}\n\n/**\n * Takes a color and un-transparentizes it. Equivalent to\n * `transparentize(color, -amount)`\n *\n * @param amount The amount to increase the opacity by, given as a decimal between 0 and 1\n */\nfunction opacify(color, amount) {\n return transparentize(color, -amount);\n}\n\n/**\n * An alternative function to `readableColor`. Returns whether or not the \n * readable color (i.e. the color to be place on top the input color) should be\n * black.\n */\nfunction readableColorIsBlack(color) {\n return getLuminance(color) > 0.179;\n}\n\n/**\n * Returns black or white for best contrast depending on the luminosity of the\n * given color.\n */\nfunction readableColor(color) {\n return readableColorIsBlack(color) ? '#000' : '#fff';\n}\n\n/**\n * Saturates a color by converting it to `hsl` and increasing the saturation\n * amount. Equivalent to `desaturate(color, -amount)`\n * \n * @param color Input color\n * @param amount The amount to darken, given as a decimal between 0 and 1\n */\nfunction saturate(color, amount) {\n return desaturate(color, -amount);\n}\n\n/**\n * Takes in any color and returns it as a hex code.\n */\nfunction toHex(color) {\n const [r, g, b, a] = parseToRgba(color);\n let hex = x => {\n const h = guard(0, 255, x).toString(16);\n // NOTE: padStart could be used here but it breaks Node 6 compat\n // https://github.com/ricokahler/color2k/issues/351\n return h.length === 1 ? `0${h}` : h;\n };\n return `#${hex(r)}${hex(g)}${hex(b)}${a < 1 ? hex(Math.round(a * 255)) : ''}`;\n}\n\n/**\n * Takes in any color and returns it as an rgba string.\n */\nfunction toRgba(color) {\n return rgba(...parseToRgba(color));\n}\n\n/**\n * Takes in any color and returns it as an hsla string.\n */\nfunction toHsla(color) {\n return hsla(...parseToHsla(color));\n}\n\nexport { ColorError$1 as ColorError, adjustHue, darken, desaturate, getContrast, getLuminance, getScale, guard, hasBadContrast, hsla, lighten, mix, opacify, parseToHsla, parseToRgba, readableColor, readableColorIsBlack, rgba, saturate, toHex, toHsla, toRgba, transparentize };\n//# sourceMappingURL=index.exports.import.es.mjs.map\n"],"names":["guard","low","high","value","ColorError","color","ColorError$1","parseToRgba","normalizedColor","namedColorRegex","nameToHex","reducedHexMatch","reducedHexRegex","arr","x","r","hexMatch","hexRegex","rgbaMatch","rgbaRegex","hslaMatch","hslaRegex","h","s","l","a","hslToRgb","hash","str","i","colorToInt","compressedColorMap","acc","next","key","hex","prefix","normalizedColorName","result","amount","roundColor","hue","saturation","lightness","huePrime","chroma","secondComponent","red","green","blue","lightnessModification","finalRed","finalGreen","finalBlue","parseToHsla","alpha","index","max","min","delta","hsla","adjustHue","degrees","darken","desaturate","getLuminance","f","channel","g","b","getContrast","color1","color2","luminance1","luminance2","rgba","mix","weight","normalize","n","r1","g1","b1","a1","r2","g2","b2","a2","alphaDelta","normalizedWeight","weight2","weight1","getScale","colors","lastIndex","lowIndex","highIndex","unit","guidelines","hasBadContrast","standard","background","lighten","transparentize","saturate","toHex","toRgba"],"mappings":"AAOA,SAASA,EAAMC,GAAKC,GAAMC,GAAO;AAC/B,SAAO,KAAK,IAAI,KAAK,IAAIF,GAAKE,CAAK,GAAGD,CAAI;AAC5C;AAEA,MAAME,UAAmB,MAAM;AAAA,EAC7B,YAAYC,GAAO;AACjB,UAAM,2BAA2BA,CAAK,GAAG;AAAA,EAC3C;AACF;AACG,IAACC,IAAeF;AAOnB,SAASG,EAAYF,GAAO;AAC1B,MAAI,OAAOA,KAAU,SAAU,OAAM,IAAIC,EAAaD,CAAK;AAC3D,MAAIA,EAAM,OAAO,kBAAkB,cAAe,QAAO,CAAC,GAAG,GAAG,GAAG,CAAC;AACpE,MAAIG,IAAkBH,EAAM,KAAI;AAChC,EAAAG,IAAkBC,EAAgB,KAAKJ,CAAK,IAAIK,EAAUL,CAAK,IAAIA;AACnE,QAAMM,IAAkBC,EAAgB,KAAKJ,CAAe;AAC5D,MAAIG,GAAiB;AACnB,UAAME,IAAM,MAAM,KAAKF,CAAe,EAAE,MAA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B,MAAK;AACb,UAAMQ,IAAItB,EAAM,GAAG,KAAKc,CAAC,EAAE,SAAS,EAAE;AAGtC,WAAOQ,EAAE,WAAW,IAAI,IAAIA,CAAC,KAAKA;AAAA,EACpC;AACA,SAAO,IAAIa,EAAIpB,CAAC,CAAC,GAAGoB,EAAIiC,CAAC,CAAC,GAAGjC,EAAIkC,CAAC,CAAC,GAAG5C,IAAI,IAAIU,EAAI,KAAK,MAAMV,IAAI,GAAG,CAAC,IAAI,EAAE;AAC7E;AAKA,SAASiF,GAAOrG,GAAO;AACrB,SAAOsE,EAAK,GAAGpE,EAAYF,CAAK,CAAC;AACnC;","x_google_ignoreList":[0]}
@@ -1,23 +1,15 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("../../../_virtual/react-jsx-runtime.development.cjs.js"),or=require("react");/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../_virtual/react-jsx-runtime.development.cjs.js"),J=require("react");/**
2
2
  * @license React
3
3
  * react-jsx-runtime.development.js
4
4
  *
5
- * Copyright (c) Facebook, Inc. and its affiliates.
5
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ye;function ur(){return ye||(ye=1,process.env.NODE_ENV!=="production"&&function(){var Ee=or,x=Symbol.for("react.element"),Re=Symbol.for("react.portal"),S=Symbol.for("react.fragment"),K=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),q=Symbol.for("react.provider"),G=Symbol.for("react.context"),w=Symbol.for("react.forward_ref"),F=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),C=Symbol.for("react.memo"),D=Symbol.for("react.lazy"),_e=Symbol.for("react.offscreen"),J=Symbol.iterator,me="@@iterator";function Te(e){if(e===null||typeof e!="object")return null;var r=J&&e[J]||e[me];return typeof r=="function"?r:null}var h=Ee.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function f(e){{for(var r=arguments.length,t=new Array(r>1?r-1:0),n=1;n<r;n++)t[n-1]=arguments[n];Se("error",e,t)}}function Se(e,r,t){{var n=h.ReactDebugCurrentFrame,o=n.getStackAddendum();o!==""&&(r+="%s",t=t.concat([o]));var u=t.map(function(i){return String(i)});u.unshift("Warning: "+r),Function.prototype.apply.call(console[e],console,u)}}var we=!1,Ce=!1,Oe=!1,Pe=!1,je=!1,z;z=Symbol.for("react.module.reference");function ke(e){return!!(typeof e=="string"||typeof e=="function"||e===S||e===N||je||e===K||e===F||e===A||Pe||e===_e||we||Ce||Oe||typeof e=="object"&&e!==null&&(e.$$typeof===D||e.$$typeof===C||e.$$typeof===q||e.$$typeof===G||e.$$typeof===w||e.$$typeof===z||e.getModuleId!==void 0))}function xe(e,r,t){var n=e.displayName;if(n)return n;var o=r.displayName||r.name||"";return o!==""?t+"("+o+")":t}function X(e){return e.displayName||"Context"}function p(e){if(e==null)return null;if(typeof e.tag=="number"&&f("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case S:return"Fragment";case Re:return"Portal";case N:return"Profiler";case K:return"StrictMode";case F:return"Suspense";case A:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case G:var r=e;return X(r)+".Consumer";case q:var t=e;return X(t._context)+".Provider";case w:return xe(e,e.render,"ForwardRef");case C:var n=e.displayName||null;return n!==null?n:p(e.type)||"Memo";case D:{var o=e,u=o._payload,i=o._init;try{return p(i(u))}catch{return null}}}return null}var g=Object.assign,R=0,H,Z,Q,ee,re,te,ne;function ae(){}ae.__reactDisabledLog=!0;function Fe(){{if(R===0){H=console.log,Z=console.info,Q=console.warn,ee=console.error,re=console.group,te=console.groupCollapsed,ne=console.groupEnd;var e={configurable:!0,enumerable:!0,value:ae,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}R++}}function Ae(){{if(R--,R===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:g({},e,{value:H}),info:g({},e,{value:Z}),warn:g({},e,{value:Q}),error:g({},e,{value:ee}),group:g({},e,{value:re}),groupCollapsed:g({},e,{value:te}),groupEnd:g({},e,{value:ne})})}R<0&&f("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var I=h.ReactCurrentDispatcher,W;function O(e,r,t){{if(W===void 0)try{throw Error()}catch(o){var n=o.stack.trim().match(/\n( *(at )?)/);W=n&&n[1]||""}return`
10
- `+W+e}}var $=!1,P;{var De=typeof WeakMap=="function"?WeakMap:Map;P=new De}function ie(e,r){if(!e||$)return"";{var t=P.get(e);if(t!==void 0)return t}var n;$=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var u;u=I.current,I.current=null,Fe();try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(v){n=v}Reflect.construct(e,[],i)}else{try{i.call()}catch(v){n=v}e.call(i.prototype)}}else{try{throw Error()}catch(v){n=v}e()}}catch(v){if(v&&n&&typeof v.stack=="string"){for(var a=v.stack.split(`
11
- `),c=n.stack.split(`
12
- `),s=a.length-1,l=c.length-1;s>=1&&l>=0&&a[s]!==c[l];)l--;for(;s>=1&&l>=0;s--,l--)if(a[s]!==c[l]){if(s!==1||l!==1)do if(s--,l--,l<0||a[s]!==c[l]){var d=`
13
- `+a[s].replace(" at new "," at ");return e.displayName&&d.includes("<anonymous>")&&(d=d.replace("<anonymous>",e.displayName)),typeof e=="function"&&P.set(e,d),d}while(s>=1&&l>=0);break}}}finally{$=!1,I.current=u,Ae(),Error.prepareStackTrace=o}var E=e?e.displayName||e.name:"",b=E?O(E):"";return typeof e=="function"&&P.set(e,b),b}function Ie(e,r,t){return ie(e,!1)}function We(e){var r=e.prototype;return!!(r&&r.isReactComponent)}function j(e,r,t){if(e==null)return"";if(typeof e=="function")return ie(e,We(e));if(typeof e=="string")return O(e);switch(e){case F:return O("Suspense");case A:return O("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case w:return Ie(e.render);case C:return j(e.type);case D:{var n=e,o=n._payload,u=n._init;try{return j(u(o))}catch{}}}return""}var _=Object.prototype.hasOwnProperty,oe={},ue=h.ReactDebugCurrentFrame;function k(e){if(e){var r=j(e.type);ue.setExtraStackFrame(r)}else ue.setExtraStackFrame(null)}function $e(e,r,t,n,o){{var u=Function.call.bind(_);for(var i in e)if(u(e,i)){var a=void 0;try{if(typeof e[i]!="function"){var c=Error((n||"React class")+": "+t+" type `"+i+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[i]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw c.name="Invariant Violation",c}a=e[i](r,i,n,t,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(s){a=s}a&&!(a instanceof Error)&&(k(o),f("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",n||"React class",t,i,typeof a),k(null)),a instanceof Error&&!(a.message in oe)&&(oe[a.message]=!0,k(o),f("Failed %s type: %s",t,a.message),k(null))}}}var Ye=Array.isArray;function Y(e){return Ye(e)}function Me(e){{var r=typeof Symbol=="function"&&Symbol.toStringTag,t=r&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t}}function Ve(e){try{return!1}catch{return!0}}function Le(e){return""+e}function se(e){if(Ve())return f("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Me(e)),Le(e)}var m=h.ReactCurrentOwner,Ue={key:!0,ref:!0,__self:!0,__source:!0},le,fe,M;M={};function Be(e){if(_.call(e,"ref")){var r=Object.getOwnPropertyDescriptor(e,"ref").get;if(r&&r.isReactWarning)return!1}return e.ref!==void 0}function Ke(e){if(_.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Ne(e,r){if(typeof e.ref=="string"&&m.current&&r&&m.current.stateNode!==r){var t=p(m.current.type);M[t]||(f('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',p(m.current.type),e.ref),M[t]=!0)}}function qe(e,r){{var t=function(){le||(le=!0,f("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}}function Ge(e,r){{var t=function(){fe||(fe=!0,f("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",r))};t.isReactWarning=!0,Object.defineProperty(e,"ref",{get:t,configurable:!0})}}var Je=function(e,r,t,n,o,u,i){var a={$$typeof:x,type:e,key:r,ref:t,props:i,_owner:u};return a._store={},Object.defineProperty(a._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(a,"_self",{configurable:!1,enumerable:!1,writable:!1,value:n}),Object.defineProperty(a,"_source",{configurable:!1,enumerable:!1,writable:!1,value:o}),Object.freeze&&(Object.freeze(a.props),Object.freeze(a)),a};function ze(e,r,t,n,o){{var u,i={},a=null,c=null;t!==void 0&&(se(t),a=""+t),Ke(r)&&(se(r.key),a=""+r.key),Be(r)&&(c=r.ref,Ne(r,o));for(u in r)_.call(r,u)&&!Ue.hasOwnProperty(u)&&(i[u]=r[u]);if(e&&e.defaultProps){var s=e.defaultProps;for(u in s)i[u]===void 0&&(i[u]=s[u])}if(a||c){var l=typeof e=="function"?e.displayName||e.name||"Unknown":e;a&&qe(i,l),c&&Ge(i,l)}return Je(e,a,c,o,n,m.current,i)}}var V=h.ReactCurrentOwner,ce=h.ReactDebugCurrentFrame;function y(e){if(e){var r=j(e.type);ce.setExtraStackFrame(r)}else ce.setExtraStackFrame(null)}var L;L=!1;function U(e){return typeof e=="object"&&e!==null&&e.$$typeof===x}function ve(){{if(V.current){var e=p(V.current.type);if(e)return`
14
-
15
- Check the render method of \``+e+"`."}return""}}function Xe(e){return""}var de={};function He(e){{var r=ve();if(!r){var t=typeof e=="string"?e:e.displayName||e.name;t&&(r=`
16
-
17
- Check the top-level render call using <`+t+">.")}return r}}function pe(e,r){{if(!e._store||e._store.validated||e.key!=null)return;e._store.validated=!0;var t=He(r);if(de[t])return;de[t]=!0;var n="";e&&e._owner&&e._owner!==V.current&&(n=" It was passed a child from "+p(e._owner.type)+"."),y(e),f('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',t,n),y(null)}}function ge(e,r){{if(typeof e!="object")return;if(Y(e))for(var t=0;t<e.length;t++){var n=e[t];U(n)&&pe(n,r)}else if(U(e))e._store&&(e._store.validated=!0);else if(e){var o=Te(e);if(typeof o=="function"&&o!==e.entries)for(var u=o.call(e),i;!(i=u.next()).done;)U(i.value)&&pe(i.value,r)}}}function Ze(e){{var r=e.type;if(r==null||typeof r=="string")return;var t;if(typeof r=="function")t=r.propTypes;else if(typeof r=="object"&&(r.$$typeof===w||r.$$typeof===C))t=r.propTypes;else return;if(t){var n=p(r);$e(t,e.props,"prop",n,e)}else if(r.PropTypes!==void 0&&!L){L=!0;var o=p(r);f("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",o||"Unknown")}typeof r.getDefaultProps=="function"&&!r.getDefaultProps.isReactClassApproved&&f("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function Qe(e){{for(var r=Object.keys(e.props),t=0;t<r.length;t++){var n=r[t];if(n!=="children"&&n!=="key"){y(e),f("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",n),y(null);break}}e.ref!==null&&(y(e),f("Invalid attribute `ref` supplied to `React.Fragment`."),y(null))}}var be={};function he(e,r,t,n,o,u){{var i=ke(e);if(!i){var a="";(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(a+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var c=Xe();c?a+=c:a+=ve();var s;e===null?s="null":Y(e)?s="array":e!==void 0&&e.$$typeof===x?(s="<"+(p(e.type)||"Unknown")+" />",a=" Did you accidentally export a JSX literal instead of a component?"):s=typeof e,f("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",s,a)}var l=ze(e,r,t,o,u);if(l==null)return l;if(i){var d=r.children;if(d!==void 0)if(n)if(Y(d)){for(var E=0;E<d.length;E++)ge(d[E],e);Object.freeze&&Object.freeze(d)}else f("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ge(d,e)}if(_.call(r,"key")){var b=p(e),v=Object.keys(r).filter(function(ir){return ir!=="key"}),B=v.length>0?"{key: someKey, "+v.join(": ..., ")+": ...}":"{key: someKey}";if(!be[b+B]){var ar=v.length>0?"{"+v.join(": ..., ")+": ...}":"{}";f(`A props object containing a "key" prop is being spread into JSX:
9
+ */var h;function B(){return h||(h=1,process.env.NODE_ENV!=="production"&&function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===G?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case f:return"Fragment";case F:return"Profiler";case D:return"StrictMode";case U:return"Suspense";case q:return"SuspenseList";case V:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case $:return"Portal";case L:return e.displayName||"Context";case W:return(e._context.displayName||"Context")+".Consumer";case M:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case z:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case _:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function j(e){return""+e}function p(e){try{var r=!1}catch{r=!0}if(r){r=console;var t=r.error,a=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",a),j(e)}}function i(e){if(e===f)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===_)return"<...>";try{var r=l(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function N(){var e=m.A;return e===null?null:e.getOwner()}function R(){return Error("react-stack-top-frame")}function x(e){if(k.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function C(e,r){function t(){y||(y=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function Y(){var e=l(this.type);return S[e]||(S[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function I(e,r,t,a,u,b){var n=t.ref;return e={$$typeof:g,type:e,key:r,props:t,_owner:a},(n!==void 0?n:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:Y}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:u}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:b}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function T(e,r,t,a,u,b){var n=r.children;if(n!==void 0)if(a)if(X(n)){for(a=0;a<n.length;a++)v(n[a]);Object.freeze&&Object.freeze(n)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else v(n);if(k.call(r,"key")){n=l(e);var o=Object.keys(r).filter(function(K){return K!=="key"});a=0<o.length?"{key: someKey, "+o.join(": ..., ")+": ...}":"{key: someKey}",P[n+a]||(o=0<o.length?"{"+o.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
18
10
  let props = %s;
19
11
  <%s {...props} />
20
12
  React keys must be passed directly to JSX without using spread:
21
13
  let props = %s;
22
- <%s key={someKey} {...props} />`,B,b,ar,b),be[b+B]=!0}}return e===S?Qe(l):Ze(l),l}}function er(e,r,t){return he(e,r,t,!0)}function rr(e,r,t){return he(e,r,t,!1)}var tr=rr,nr=er;T.__exports.Fragment=S,T.__exports.jsx=tr,T.__exports.jsxs=nr}()),T.__exports}exports.__require=ur;
14
+ <%s key={someKey} {...props} />`,a,n,o,n),P[n+a]=!0)}if(n=null,t!==void 0&&(p(t),n=""+t),x(r)&&(p(r.key),n=""+r.key),"key"in r){t={};for(var E in r)E!=="key"&&(t[E]=r[E])}else t=r;return n&&C(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),I(e,n,t,N(),u,b)}function v(e){O(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===_&&(e._payload.status==="fulfilled"?O(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function O(e){return typeof e=="object"&&e!==null&&e.$$typeof===g}var c=J,g=Symbol.for("react.transitional.element"),$=Symbol.for("react.portal"),f=Symbol.for("react.fragment"),D=Symbol.for("react.strict_mode"),F=Symbol.for("react.profiler"),W=Symbol.for("react.consumer"),L=Symbol.for("react.context"),M=Symbol.for("react.forward_ref"),U=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),_=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),G=Symbol.for("react.client.reference"),m=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=Object.prototype.hasOwnProperty,X=Array.isArray,d=console.createTask?console.createTask:function(){return null};c={react_stack_bottom_frame:function(e){return e()}};var y,S={},A=c.react_stack_bottom_frame.bind(c,R)(),w=d(i(R)),P={};s.__exports.Fragment=f,s.__exports.jsx=function(e,r,t){var a=1e4>m.recentlyCreatedOwnerStacks++;return T(e,r,t,!1,a?Error("react-stack-top-frame"):A,a?d(i(e)):w)},s.__exports.jsxs=function(e,r,t){var a=1e4>m.recentlyCreatedOwnerStacks++;return T(e,r,t,!0,a?Error("react-stack-top-frame"):A,a?d(i(e)):w)}}()),s.__exports}exports.__require=B;
23
15
  //# sourceMappingURL=react-jsx-runtime.development.cjs.js.map