@new-black/lyra 1.0.12 → 1.0.14

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 (502) hide show
  1. package/dist/components/inputs/checkbox/checkbox.styles.d.ts +21 -56
  2. package/dist/components/inputs/checkbox/checkbox.styles.d.ts.map +1 -1
  3. package/dist/components/inputs/text-field-area/text-field-area.d.ts.map +1 -1
  4. package/dist/components/table/table.d.ts.map +1 -1
  5. package/dist/lyra16.cjs +1 -1
  6. package/dist/lyra16.js +1 -1
  7. package/dist/lyra21.cjs +1 -1
  8. package/dist/lyra21.cjs.map +1 -1
  9. package/dist/lyra21.js +1 -1
  10. package/dist/lyra21.js.map +1 -1
  11. package/dist/lyra22.cjs +1 -1
  12. package/dist/lyra22.cjs.map +1 -1
  13. package/dist/lyra22.js +5 -10
  14. package/dist/lyra22.js.map +1 -1
  15. package/dist/lyra23.cjs +1 -1
  16. package/dist/lyra23.js +1 -1
  17. package/dist/lyra25.cjs +1 -1
  18. package/dist/lyra25.js +1 -1
  19. package/dist/lyra27.cjs +1 -1
  20. package/dist/lyra27.js +2 -2
  21. package/dist/lyra34.cjs +1 -1
  22. package/dist/lyra34.js +3 -3
  23. package/dist/lyra36.cjs +1 -1
  24. package/dist/lyra36.js +5 -5
  25. package/dist/lyra37.cjs +1 -1
  26. package/dist/lyra37.js +6 -6
  27. package/dist/lyra43.cjs +1 -1
  28. package/dist/lyra43.js +2 -2
  29. package/dist/lyra45.cjs +1 -1
  30. package/dist/lyra45.cjs.map +1 -1
  31. package/dist/lyra45.js +81 -74
  32. package/dist/lyra45.js.map +1 -1
  33. package/dist/lyra450.cjs +1 -1
  34. package/dist/lyra450.cjs.map +1 -1
  35. package/dist/lyra450.js +1 -16
  36. package/dist/lyra450.js.map +1 -1
  37. package/dist/lyra451.cjs +1 -1
  38. package/dist/lyra451.cjs.map +1 -1
  39. package/dist/lyra451.js +13 -11
  40. package/dist/lyra451.js.map +1 -1
  41. package/dist/lyra452.cjs +1 -1
  42. package/dist/lyra452.cjs.map +1 -1
  43. package/dist/lyra452.js +14 -1
  44. package/dist/lyra452.js.map +1 -1
  45. package/dist/lyra453.cjs +1 -1
  46. package/dist/lyra453.cjs.map +1 -1
  47. package/dist/lyra453.js +81 -22
  48. package/dist/lyra453.js.map +1 -1
  49. package/dist/lyra454.cjs +1 -1
  50. package/dist/lyra454.cjs.map +1 -1
  51. package/dist/lyra454.js +44 -90
  52. package/dist/lyra454.js.map +1 -1
  53. package/dist/lyra455.cjs +1 -1
  54. package/dist/lyra455.cjs.map +1 -1
  55. package/dist/lyra455.js +14 -44
  56. package/dist/lyra455.js.map +1 -1
  57. package/dist/lyra456.cjs +1 -1
  58. package/dist/lyra456.cjs.map +1 -1
  59. package/dist/lyra456.js +30 -51
  60. package/dist/lyra456.js.map +1 -1
  61. package/dist/lyra457.cjs +1 -1
  62. package/dist/lyra457.cjs.map +1 -1
  63. package/dist/lyra457.js +49 -50
  64. package/dist/lyra457.js.map +1 -1
  65. package/dist/lyra458.cjs +1 -1
  66. package/dist/lyra458.cjs.map +1 -1
  67. package/dist/lyra458.js +53 -7
  68. package/dist/lyra458.js.map +1 -1
  69. package/dist/lyra459.cjs +1 -1
  70. package/dist/lyra459.cjs.map +1 -1
  71. package/dist/lyra459.js +6 -61
  72. package/dist/lyra459.js.map +1 -1
  73. package/dist/lyra460.cjs +1 -1
  74. package/dist/lyra460.cjs.map +1 -1
  75. package/dist/lyra460.js +61 -36
  76. package/dist/lyra460.js.map +1 -1
  77. package/dist/lyra461.cjs +1 -5
  78. package/dist/lyra461.cjs.map +1 -1
  79. package/dist/lyra461.js +35 -2556
  80. package/dist/lyra461.js.map +1 -1
  81. package/dist/lyra462.cjs +5 -1
  82. package/dist/lyra462.cjs.map +1 -1
  83. package/dist/lyra462.js +2556 -52
  84. package/dist/lyra462.js.map +1 -1
  85. package/dist/lyra463.cjs +1 -1
  86. package/dist/lyra463.cjs.map +1 -1
  87. package/dist/lyra463.js +53 -13
  88. package/dist/lyra463.js.map +1 -1
  89. package/dist/lyra465.cjs +1 -1
  90. package/dist/lyra465.js +3 -3
  91. package/dist/lyra48.cjs +1 -1
  92. package/dist/lyra48.js +1 -1
  93. package/dist/lyra49.cjs +1 -1
  94. package/dist/lyra49.js +2 -2
  95. package/dist/lyra50.cjs +1 -1
  96. package/dist/lyra50.js +2 -2
  97. package/dist/lyra506.cjs +1 -1
  98. package/dist/lyra506.js +3 -3
  99. package/dist/lyra508.cjs +1 -1
  100. package/dist/lyra508.js +1 -1
  101. package/dist/lyra58.cjs +1 -1
  102. package/dist/lyra58.js +6 -6
  103. package/dist/lyra59.cjs +1 -1
  104. package/dist/lyra59.js +8 -8
  105. package/dist/lyra604.cjs +1 -1
  106. package/dist/lyra604.cjs.map +1 -1
  107. package/dist/lyra604.js +180 -229
  108. package/dist/lyra604.js.map +1 -1
  109. package/dist/lyra605.cjs +1 -1
  110. package/dist/lyra605.cjs.map +1 -1
  111. package/dist/lyra605.js +77 -14
  112. package/dist/lyra605.js.map +1 -1
  113. package/dist/lyra606.cjs +1 -1
  114. package/dist/lyra606.cjs.map +1 -1
  115. package/dist/lyra606.js +41 -479
  116. package/dist/lyra606.js.map +1 -1
  117. package/dist/lyra607.cjs +1 -1
  118. package/dist/lyra607.cjs.map +1 -1
  119. package/dist/lyra607.js +2 -66
  120. package/dist/lyra607.js.map +1 -1
  121. package/dist/lyra608.cjs +9 -1
  122. package/dist/lyra608.cjs.map +1 -1
  123. package/dist/lyra608.js +48 -13
  124. package/dist/lyra608.js.map +1 -1
  125. package/dist/lyra609.cjs +9 -1
  126. package/dist/lyra609.cjs.map +1 -1
  127. package/dist/lyra609.js +82 -51
  128. package/dist/lyra609.js.map +1 -1
  129. package/dist/lyra610.cjs +1 -1
  130. package/dist/lyra610.cjs.map +1 -1
  131. package/dist/lyra610.js +139 -2
  132. package/dist/lyra610.js.map +1 -1
  133. package/dist/lyra611.cjs +1 -9
  134. package/dist/lyra611.cjs.map +1 -1
  135. package/dist/lyra611.js +16 -48
  136. package/dist/lyra611.js.map +1 -1
  137. package/dist/lyra612.cjs +1 -9
  138. package/dist/lyra612.cjs.map +1 -1
  139. package/dist/lyra612.js +3 -83
  140. package/dist/lyra612.js.map +1 -1
  141. package/dist/lyra613.cjs +1 -1
  142. package/dist/lyra613.cjs.map +1 -1
  143. package/dist/lyra613.js +14 -139
  144. package/dist/lyra613.js.map +1 -1
  145. package/dist/lyra614.cjs +1 -1
  146. package/dist/lyra614.cjs.map +1 -1
  147. package/dist/lyra614.js +31 -182
  148. package/dist/lyra614.js.map +1 -1
  149. package/dist/lyra615.cjs +1 -1
  150. package/dist/lyra615.cjs.map +1 -1
  151. package/dist/lyra615.js +233 -79
  152. package/dist/lyra615.js.map +1 -1
  153. package/dist/lyra616.cjs +1 -1
  154. package/dist/lyra616.cjs.map +1 -1
  155. package/dist/lyra616.js +15 -43
  156. package/dist/lyra616.js.map +1 -1
  157. package/dist/lyra617.cjs +1 -1
  158. package/dist/lyra617.cjs.map +1 -1
  159. package/dist/lyra617.js +479 -13
  160. package/dist/lyra617.js.map +1 -1
  161. package/dist/lyra618.cjs +1 -1
  162. package/dist/lyra618.cjs.map +1 -1
  163. package/dist/lyra618.js +66 -3
  164. package/dist/lyra618.js.map +1 -1
  165. package/dist/lyra619.cjs +1 -1
  166. package/dist/lyra619.cjs.map +1 -1
  167. package/dist/lyra619.js +13 -14
  168. package/dist/lyra619.js.map +1 -1
  169. package/dist/lyra620.cjs +1 -1
  170. package/dist/lyra620.cjs.map +1 -1
  171. package/dist/lyra620.js +50 -31
  172. package/dist/lyra620.js.map +1 -1
  173. package/dist/lyra65.cjs +1 -1
  174. package/dist/lyra65.cjs.map +1 -1
  175. package/dist/lyra65.js +109 -107
  176. package/dist/lyra65.js.map +1 -1
  177. package/dist/lyra664.cjs +1 -1
  178. package/dist/lyra664.js +4 -4
  179. package/dist/lyra665.cjs +1 -1
  180. package/dist/lyra665.js +4 -4
  181. package/dist/lyra667.cjs +1 -1
  182. package/dist/lyra667.js +4 -4
  183. package/dist/lyra668.cjs +1 -1
  184. package/dist/lyra668.js +3 -3
  185. package/dist/lyra669.cjs +1 -1
  186. package/dist/lyra669.js +2 -2
  187. package/dist/lyra674.cjs +1 -1
  188. package/dist/lyra674.js +1 -1
  189. package/dist/lyra678.cjs +1 -1
  190. package/dist/lyra678.js +2 -2
  191. package/dist/lyra683.cjs +1 -1
  192. package/dist/lyra683.js +1 -1
  193. package/dist/lyra686.cjs +1 -1
  194. package/dist/lyra686.js +1 -1
  195. package/dist/lyra688.cjs +1 -1
  196. package/dist/lyra688.js +1 -1
  197. package/dist/lyra716.cjs +1 -1
  198. package/dist/lyra716.js +4 -4
  199. package/dist/lyra726.cjs +1 -1
  200. package/dist/lyra726.js +1 -1
  201. package/dist/lyra727.cjs +1 -1
  202. package/dist/lyra727.js +1 -1
  203. package/dist/lyra728.cjs +1 -1
  204. package/dist/lyra728.js +1 -1
  205. package/dist/lyra73.cjs +1 -1
  206. package/dist/lyra73.js +1 -1
  207. package/dist/lyra777.cjs +1 -1
  208. package/dist/lyra777.cjs.map +1 -1
  209. package/dist/lyra777.js +373 -20
  210. package/dist/lyra777.js.map +1 -1
  211. package/dist/lyra778.cjs +1 -1
  212. package/dist/lyra778.cjs.map +1 -1
  213. package/dist/lyra778.js +21 -19
  214. package/dist/lyra778.js.map +1 -1
  215. package/dist/lyra779.cjs +1 -1
  216. package/dist/lyra779.cjs.map +1 -1
  217. package/dist/lyra779.js +20 -30
  218. package/dist/lyra779.js.map +1 -1
  219. package/dist/lyra780.cjs +1 -1
  220. package/dist/lyra780.cjs.map +1 -1
  221. package/dist/lyra780.js +28 -8
  222. package/dist/lyra780.js.map +1 -1
  223. package/dist/lyra781.cjs +1 -1
  224. package/dist/lyra781.cjs.map +1 -1
  225. package/dist/lyra781.js +10 -24
  226. package/dist/lyra781.js.map +1 -1
  227. package/dist/lyra782.cjs +1 -1
  228. package/dist/lyra782.cjs.map +1 -1
  229. package/dist/lyra782.js +19 -21
  230. package/dist/lyra782.js.map +1 -1
  231. package/dist/lyra783.cjs +1 -1
  232. package/dist/lyra783.cjs.map +1 -1
  233. package/dist/lyra783.js +17 -63
  234. package/dist/lyra783.js.map +1 -1
  235. package/dist/lyra784.cjs +1 -1
  236. package/dist/lyra784.cjs.map +1 -1
  237. package/dist/lyra784.js +62 -32
  238. package/dist/lyra784.js.map +1 -1
  239. package/dist/lyra785.cjs +1 -1
  240. package/dist/lyra785.cjs.map +1 -1
  241. package/dist/lyra785.js +36 -10
  242. package/dist/lyra785.js.map +1 -1
  243. package/dist/lyra786.cjs +1 -1
  244. package/dist/lyra786.cjs.map +1 -1
  245. package/dist/lyra786.js +10 -35
  246. package/dist/lyra786.js.map +1 -1
  247. package/dist/lyra787.cjs +1 -1
  248. package/dist/lyra787.cjs.map +1 -1
  249. package/dist/lyra787.js +34 -64
  250. package/dist/lyra787.js.map +1 -1
  251. package/dist/lyra788.cjs +1 -1
  252. package/dist/lyra788.cjs.map +1 -1
  253. package/dist/lyra788.js +70 -22
  254. package/dist/lyra788.js.map +1 -1
  255. package/dist/lyra789.cjs +1 -1
  256. package/dist/lyra789.cjs.map +1 -1
  257. package/dist/lyra789.js +22 -46
  258. package/dist/lyra789.js.map +1 -1
  259. package/dist/lyra790.cjs +1 -1
  260. package/dist/lyra790.cjs.map +1 -1
  261. package/dist/lyra790.js +38 -32
  262. package/dist/lyra790.js.map +1 -1
  263. package/dist/lyra791.cjs +1 -1
  264. package/dist/lyra791.cjs.map +1 -1
  265. package/dist/lyra791.js +41 -2
  266. package/dist/lyra791.js.map +1 -1
  267. package/dist/lyra792.cjs +1 -1
  268. package/dist/lyra792.cjs.map +1 -1
  269. package/dist/lyra792.js +2 -54
  270. package/dist/lyra792.js.map +1 -1
  271. package/dist/lyra793.cjs +1 -1
  272. package/dist/lyra793.cjs.map +1 -1
  273. package/dist/lyra793.js +54 -8
  274. package/dist/lyra793.js.map +1 -1
  275. package/dist/lyra794.cjs +1 -1
  276. package/dist/lyra794.cjs.map +1 -1
  277. package/dist/lyra794.js +8 -4
  278. package/dist/lyra794.js.map +1 -1
  279. package/dist/lyra795.cjs +1 -1
  280. package/dist/lyra795.cjs.map +1 -1
  281. package/dist/lyra795.js +4 -13
  282. package/dist/lyra795.js.map +1 -1
  283. package/dist/lyra796.cjs +1 -1
  284. package/dist/lyra796.cjs.map +1 -1
  285. package/dist/lyra796.js +11 -583
  286. package/dist/lyra796.js.map +1 -1
  287. package/dist/lyra797.cjs +1 -1
  288. package/dist/lyra797.cjs.map +1 -1
  289. package/dist/lyra797.js +4 -11
  290. package/dist/lyra797.js.map +1 -1
  291. package/dist/lyra798.cjs +1 -1
  292. package/dist/lyra798.cjs.map +1 -1
  293. package/dist/lyra798.js +584 -3
  294. package/dist/lyra798.js.map +1 -1
  295. package/dist/lyra799.cjs +1 -1
  296. package/dist/lyra799.cjs.map +1 -1
  297. package/dist/lyra799.js +11 -375
  298. package/dist/lyra799.js.map +1 -1
  299. package/dist/lyra800.cjs +1 -1
  300. package/dist/lyra800.cjs.map +1 -1
  301. package/dist/lyra800.js +14 -2
  302. package/dist/lyra800.js.map +1 -1
  303. package/dist/lyra801.cjs +1 -1
  304. package/dist/lyra801.cjs.map +1 -1
  305. package/dist/lyra801.js +2 -29
  306. package/dist/lyra801.js.map +1 -1
  307. package/dist/lyra802.cjs +1 -1
  308. package/dist/lyra802.cjs.map +1 -1
  309. package/dist/lyra802.js +29 -6
  310. package/dist/lyra802.js.map +1 -1
  311. package/dist/lyra803.cjs +1 -1
  312. package/dist/lyra803.cjs.map +1 -1
  313. package/dist/lyra803.js +5 -3
  314. package/dist/lyra803.js.map +1 -1
  315. package/dist/lyra804.cjs +1 -1
  316. package/dist/lyra804.cjs.map +1 -1
  317. package/dist/lyra804.js +4 -14
  318. package/dist/lyra804.js.map +1 -1
  319. package/dist/lyra807.cjs +1 -1
  320. package/dist/lyra807.js +1 -1
  321. package/dist/lyra810.cjs +1 -1
  322. package/dist/lyra810.js +1 -1
  323. package/dist/lyra813.cjs +1 -1
  324. package/dist/lyra813.js +1 -1
  325. package/dist/lyra814.cjs +1 -1
  326. package/dist/lyra814.js +1 -1
  327. package/dist/lyra816.cjs +4 -1
  328. package/dist/lyra816.cjs.map +1 -1
  329. package/dist/lyra816.js +47 -28
  330. package/dist/lyra816.js.map +1 -1
  331. package/dist/lyra817.cjs +1 -1
  332. package/dist/lyra817.cjs.map +1 -1
  333. package/dist/lyra817.js +28 -25
  334. package/dist/lyra817.js.map +1 -1
  335. package/dist/lyra818.cjs +1 -1
  336. package/dist/lyra818.cjs.map +1 -1
  337. package/dist/lyra818.js +24 -19
  338. package/dist/lyra818.js.map +1 -1
  339. package/dist/lyra819.cjs +1 -1
  340. package/dist/lyra819.cjs.map +1 -1
  341. package/dist/lyra819.js +19 -8
  342. package/dist/lyra819.js.map +1 -1
  343. package/dist/lyra820.cjs +1 -1
  344. package/dist/lyra820.cjs.map +1 -1
  345. package/dist/lyra820.js +8 -12
  346. package/dist/lyra820.js.map +1 -1
  347. package/dist/lyra821.cjs +1 -1
  348. package/dist/lyra821.cjs.map +1 -1
  349. package/dist/lyra821.js +13 -6
  350. package/dist/lyra821.js.map +1 -1
  351. package/dist/lyra822.cjs +1 -1
  352. package/dist/lyra822.cjs.map +1 -1
  353. package/dist/lyra822.js +6 -24
  354. package/dist/lyra822.js.map +1 -1
  355. package/dist/lyra823.cjs +1 -1
  356. package/dist/lyra823.cjs.map +1 -1
  357. package/dist/lyra823.js +24 -2
  358. package/dist/lyra823.js.map +1 -1
  359. package/dist/lyra824.cjs +1 -1
  360. package/dist/lyra824.cjs.map +1 -1
  361. package/dist/lyra824.js +2 -9
  362. package/dist/lyra824.js.map +1 -1
  363. package/dist/lyra825.cjs +1 -1
  364. package/dist/lyra825.cjs.map +1 -1
  365. package/dist/lyra825.js +9 -7
  366. package/dist/lyra825.js.map +1 -1
  367. package/dist/lyra826.cjs +1 -1
  368. package/dist/lyra826.cjs.map +1 -1
  369. package/dist/lyra826.js +7 -2
  370. package/dist/lyra826.js.map +1 -1
  371. package/dist/lyra827.cjs +1 -1
  372. package/dist/lyra827.cjs.map +1 -1
  373. package/dist/lyra827.js +2 -19
  374. package/dist/lyra827.js.map +1 -1
  375. package/dist/lyra828.cjs +1 -1
  376. package/dist/lyra828.cjs.map +1 -1
  377. package/dist/lyra828.js +17 -251
  378. package/dist/lyra828.js.map +1 -1
  379. package/dist/lyra829.cjs +1 -1
  380. package/dist/lyra829.cjs.map +1 -1
  381. package/dist/lyra829.js +243 -72
  382. package/dist/lyra829.js.map +1 -1
  383. package/dist/lyra830.cjs +1 -1
  384. package/dist/lyra830.cjs.map +1 -1
  385. package/dist/lyra830.js +82 -2
  386. package/dist/lyra830.js.map +1 -1
  387. package/dist/lyra831.cjs +1 -1
  388. package/dist/lyra831.cjs.map +1 -1
  389. package/dist/lyra831.js +2 -13
  390. package/dist/lyra831.js.map +1 -1
  391. package/dist/lyra832.cjs +1 -1
  392. package/dist/lyra832.cjs.map +1 -1
  393. package/dist/lyra832.js +12 -18
  394. package/dist/lyra832.js.map +1 -1
  395. package/dist/lyra833.cjs +1 -1
  396. package/dist/lyra833.cjs.map +1 -1
  397. package/dist/lyra833.js +17 -12
  398. package/dist/lyra833.js.map +1 -1
  399. package/dist/lyra834.cjs +1 -1
  400. package/dist/lyra834.cjs.map +1 -1
  401. package/dist/lyra834.js +13 -27
  402. package/dist/lyra834.js.map +1 -1
  403. package/dist/lyra835.cjs +1 -1
  404. package/dist/lyra835.cjs.map +1 -1
  405. package/dist/lyra835.js +27 -5
  406. package/dist/lyra835.js.map +1 -1
  407. package/dist/lyra836.cjs +1 -1
  408. package/dist/lyra836.cjs.map +1 -1
  409. package/dist/lyra836.js +5 -10
  410. package/dist/lyra836.js.map +1 -1
  411. package/dist/lyra837.cjs +1 -1
  412. package/dist/lyra837.cjs.map +1 -1
  413. package/dist/lyra837.js +10 -27
  414. package/dist/lyra837.js.map +1 -1
  415. package/dist/lyra838.cjs +1 -1
  416. package/dist/lyra838.cjs.map +1 -1
  417. package/dist/lyra838.js +28 -26
  418. package/dist/lyra838.js.map +1 -1
  419. package/dist/lyra839.cjs +1 -1
  420. package/dist/lyra839.cjs.map +1 -1
  421. package/dist/lyra839.js +26 -7
  422. package/dist/lyra839.js.map +1 -1
  423. package/dist/lyra840.cjs +1 -1
  424. package/dist/lyra840.cjs.map +1 -1
  425. package/dist/lyra840.js +7 -105
  426. package/dist/lyra840.js.map +1 -1
  427. package/dist/lyra841.cjs +1 -1
  428. package/dist/lyra841.cjs.map +1 -1
  429. package/dist/lyra841.js +104 -21
  430. package/dist/lyra841.js.map +1 -1
  431. package/dist/lyra842.cjs +1 -1
  432. package/dist/lyra842.cjs.map +1 -1
  433. package/dist/lyra842.js +22 -20
  434. package/dist/lyra842.js.map +1 -1
  435. package/dist/lyra843.cjs +1 -1
  436. package/dist/lyra843.cjs.map +1 -1
  437. package/dist/lyra843.js +20 -5
  438. package/dist/lyra843.js.map +1 -1
  439. package/dist/lyra844.cjs +1 -1
  440. package/dist/lyra844.cjs.map +1 -1
  441. package/dist/lyra844.js +5 -20
  442. package/dist/lyra844.js.map +1 -1
  443. package/dist/lyra845.cjs +1 -1
  444. package/dist/lyra845.cjs.map +1 -1
  445. package/dist/lyra845.js +19 -29
  446. package/dist/lyra845.js.map +1 -1
  447. package/dist/lyra846.cjs +1 -1
  448. package/dist/lyra846.cjs.map +1 -1
  449. package/dist/lyra846.js +28 -6
  450. package/dist/lyra846.js.map +1 -1
  451. package/dist/lyra847.cjs +1 -1
  452. package/dist/lyra847.cjs.map +1 -1
  453. package/dist/lyra847.js +6 -51
  454. package/dist/lyra847.js.map +1 -1
  455. package/dist/lyra848.cjs +1 -1
  456. package/dist/lyra848.cjs.map +1 -1
  457. package/dist/lyra848.js +49 -19
  458. package/dist/lyra848.js.map +1 -1
  459. package/dist/lyra849.cjs +1 -1
  460. package/dist/lyra849.cjs.map +1 -1
  461. package/dist/lyra849.js +19 -16
  462. package/dist/lyra849.js.map +1 -1
  463. package/dist/lyra850.cjs +1 -1
  464. package/dist/lyra850.cjs.map +1 -1
  465. package/dist/lyra850.js +19 -55
  466. package/dist/lyra850.js.map +1 -1
  467. package/dist/lyra851.cjs +1 -1
  468. package/dist/lyra851.cjs.map +1 -1
  469. package/dist/lyra851.js +55 -10
  470. package/dist/lyra851.js.map +1 -1
  471. package/dist/lyra852.cjs +1 -1
  472. package/dist/lyra852.cjs.map +1 -1
  473. package/dist/lyra852.js +10 -3
  474. package/dist/lyra852.js.map +1 -1
  475. package/dist/lyra853.cjs +1 -1
  476. package/dist/lyra853.cjs.map +1 -1
  477. package/dist/lyra853.js +3 -17
  478. package/dist/lyra853.js.map +1 -1
  479. package/dist/lyra854.cjs +1 -1
  480. package/dist/lyra854.cjs.map +1 -1
  481. package/dist/lyra854.js +17 -3
  482. package/dist/lyra854.js.map +1 -1
  483. package/dist/lyra855.cjs +1 -1
  484. package/dist/lyra855.cjs.map +1 -1
  485. package/dist/lyra855.js +3 -3
  486. package/dist/lyra855.js.map +1 -1
  487. package/dist/lyra856.cjs +1 -4
  488. package/dist/lyra856.cjs.map +1 -1
  489. package/dist/lyra856.js +3 -46
  490. package/dist/lyra856.js.map +1 -1
  491. package/dist/lyra861.cjs +1 -1
  492. package/dist/lyra861.cjs.map +1 -1
  493. package/dist/lyra861.js +4 -69
  494. package/dist/lyra861.js.map +1 -1
  495. package/dist/lyra862.cjs +1 -1
  496. package/dist/lyra862.cjs.map +1 -1
  497. package/dist/lyra862.js +69 -4
  498. package/dist/lyra862.js.map +1 -1
  499. package/dist/lyra874.cjs +1 -1
  500. package/dist/lyra874.js +1 -1
  501. package/dist/style.css +1 -1
  502. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"lyra842.js","sources":["../node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs"],"sourcesContent":["import { transformProps } from '../../render/html/utils/transform.mjs';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n"],"names":["underDampedSpring","criticallyDampedSpring","target","keyframesTransition","ease","getDefaultTransition","valueKey","keyframes","transformProps"],"mappings":";AAEA,MAAMA,IAAoB;AAAA,EACtB,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AACf,GACMC,IAAyB,CAACC,OAAY;AAAA,EACxC,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAASA,MAAW,IAAI,IAAI,KAAK,KAAK,GAAG,IAAI;AAAA,EAC7C,WAAW;AACf,IACMC,IAAsB;AAAA,EACxB,MAAM;AAAA,EACN,UAAU;AACd,GAKMC,IAAO;AAAA,EACT,MAAM;AAAA,EACN,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC;AAAA,EACzB,UAAU;AACd,GACMC,IAAuB,CAACC,GAAU,EAAE,WAAAC,QAClCA,EAAU,SAAS,IACZJ,IAEFK,EAAe,IAAIF,CAAQ,IACzBA,EAAS,WAAW,OAAO,IAC5BL,EAAuBM,EAAU,CAAC,CAAC,IACnCP,IAEHI;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra842.js","sources":["../node_modules/framer-motion/dist/es/animation/animators/instant.mjs"],"sourcesContent":["import { animateValue } from './js/index.mjs';\nimport { noop } from '../../utils/noop.mjs';\n\nfunction createInstantAnimation({ keyframes, delay, onUpdate, onComplete, }) {\n const setValue = () => {\n onUpdate && onUpdate(keyframes[keyframes.length - 1]);\n onComplete && onComplete();\n /**\n * TODO: As this API grows it could make sense to always return\n * animateValue. This will be a bigger project as animateValue\n * is frame-locked whereas this function resolves instantly.\n * This is a behavioural change and also has ramifications regarding\n * assumptions within tests.\n */\n return {\n time: 0,\n speed: 1,\n duration: 0,\n play: (noop),\n pause: (noop),\n stop: (noop),\n then: (resolve) => {\n resolve();\n return Promise.resolve();\n },\n cancel: (noop),\n complete: (noop),\n };\n };\n return delay\n ? animateValue({\n keyframes: [0, 1],\n duration: 0,\n delay,\n onComplete: setValue,\n })\n : setValue();\n}\n\nexport { createInstantAnimation };\n"],"names":["createInstantAnimation","keyframes","delay","onUpdate","onComplete","setValue","noop","resolve","animateValue"],"mappings":";;AAGA,SAASA,EAAuB,EAAE,WAAAC,GAAW,OAAAC,GAAO,UAAAC,GAAU,YAAAC,EAAU,GAAK;AACzE,QAAMC,IAAW,OACbF,KAAYA,EAASF,EAAUA,EAAU,SAAS,CAAC,CAAC,GACpDG,KAAcA,EAAU,GAQjB;AAAA,IACH,MAAM;AAAA,IACN,OAAO;AAAA,IACP,UAAU;AAAA,IACV,MAAOE;AAAA,IACP,OAAQA;AAAA,IACR,MAAOA;AAAA,IACP,MAAM,CAACC,OACHA,KACO,QAAQ;IAEnB,QAASD;AAAA,IACT,UAAWA;AAAA,EACvB;AAEI,SAAOJ,IACDM,EAAa;AAAA,IACX,WAAW,CAAC,GAAG,CAAC;AAAA,IAChB,UAAU;AAAA,IACV,OAAAN;AAAA,IACA,YAAYG;AAAA,EACxB,CAAS,IACCA;AACV;","x_google_ignoreList":[0]}
package/dist/lyra843.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra729.cjs"),i=(t,r)=>t==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(e.complex.test(r)||r==="0")&&!r.startsWith("url("));exports.isAnimatable=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./lyra703.cjs"),s={type:"spring",stiffness:500,damping:25,restSpeed:10},n=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),i={type:"keyframes",duration:.8},a={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},o=(e,{keyframes:t})=>t.length>2?i:r.transformProps.has(e)?e.startsWith("scale")?n(t[1]):s:a;exports.getDefaultTransition=o;
@@ -1 +1 @@
1
- {"version":3,"file":"lyra843.cjs","sources":["../node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs"],"sourcesContent":["import { complex } from '../../value/types/complex/index.mjs';\n\n/**\n * Check if a value is animatable. Examples:\n *\n * ✅: 100, \"100px\", \"#fff\"\n * ❌: \"block\", \"url(2.jpg)\"\n * @param value\n *\n * @internal\n */\nconst isAnimatable = (key, value) => {\n // If the list of keys tat might be non-animatable grows, replace with Set\n if (key === \"zIndex\")\n return false;\n // If it's a number or a keyframes array, we can animate it. We might at some point\n // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,\n // but for now lets leave it like this for performance reasons\n if (typeof value === \"number\" || Array.isArray(value))\n return true;\n if (typeof value === \"string\" && // It's animatable if we have a string\n (complex.test(value) || value === \"0\") && // And it contains numbers and/or colors\n !value.startsWith(\"url(\") // Unless it starts with \"url(\"\n ) {\n return true;\n }\n return false;\n};\n\nexport { isAnimatable };\n"],"names":["isAnimatable","key","value","complex"],"mappings":"iHAWMA,EAAe,CAACC,EAAKC,IAEnBD,IAAQ,SACD,GAIP,UAAOC,GAAU,UAAY,MAAM,QAAQA,CAAK,GAEhD,OAAOA,GAAU,WAChBC,EAAAA,QAAQ,KAAKD,CAAK,GAAKA,IAAU,MAClC,CAACA,EAAM,WAAW,MAAM","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra843.cjs","sources":["../node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs"],"sourcesContent":["import { transformProps } from '../../render/html/utils/transform.mjs';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n"],"names":["underDampedSpring","criticallyDampedSpring","target","keyframesTransition","ease","getDefaultTransition","valueKey","keyframes","transformProps"],"mappings":"iHAEMA,EAAoB,CACtB,KAAM,SACN,UAAW,IACX,QAAS,GACT,UAAW,EACf,EACMC,EAA0BC,IAAY,CACxC,KAAM,SACN,UAAW,IACX,QAASA,IAAW,EAAI,EAAI,KAAK,KAAK,GAAG,EAAI,GAC7C,UAAW,EACf,GACMC,EAAsB,CACxB,KAAM,YACN,SAAU,EACd,EAKMC,EAAO,CACT,KAAM,YACN,KAAM,CAAC,IAAM,GAAK,IAAM,CAAC,EACzB,SAAU,EACd,EACMC,EAAuB,CAACC,EAAU,CAAE,UAAAC,KAClCA,EAAU,OAAS,EACZJ,EAEFK,EAAc,eAAC,IAAIF,CAAQ,EACzBA,EAAS,WAAW,OAAO,EAC5BL,EAAuBM,EAAU,CAAC,CAAC,EACnCP,EAEHI","x_google_ignoreList":[0]}
package/dist/lyra843.js CHANGED
@@ -1,7 +1,22 @@
1
- import { complex as e } from "./lyra729.js";
2
- const n = (t, r) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
3
- (e.test(r) || r === "0") && // And it contains numbers and/or colors
4
- !r.startsWith("url("));
1
+ import { transformProps as s } from "./lyra703.js";
2
+ const r = {
3
+ type: "spring",
4
+ stiffness: 500,
5
+ damping: 25,
6
+ restSpeed: 10
7
+ }, n = (t) => ({
8
+ type: "spring",
9
+ stiffness: 550,
10
+ damping: t === 0 ? 2 * Math.sqrt(550) : 30,
11
+ restSpeed: 10
12
+ }), i = {
13
+ type: "keyframes",
14
+ duration: 0.8
15
+ }, a = {
16
+ type: "keyframes",
17
+ ease: [0.25, 0.1, 0.35, 1],
18
+ duration: 0.3
19
+ }, o = (t, { keyframes: e }) => e.length > 2 ? i : s.has(t) ? t.startsWith("scale") ? n(e[1]) : r : a;
5
20
  export {
6
- n as isAnimatable
21
+ o as getDefaultTransition
7
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lyra843.js","sources":["../node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs"],"sourcesContent":["import { complex } from '../../value/types/complex/index.mjs';\n\n/**\n * Check if a value is animatable. Examples:\n *\n * ✅: 100, \"100px\", \"#fff\"\n * ❌: \"block\", \"url(2.jpg)\"\n * @param value\n *\n * @internal\n */\nconst isAnimatable = (key, value) => {\n // If the list of keys tat might be non-animatable grows, replace with Set\n if (key === \"zIndex\")\n return false;\n // If it's a number or a keyframes array, we can animate it. We might at some point\n // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,\n // but for now lets leave it like this for performance reasons\n if (typeof value === \"number\" || Array.isArray(value))\n return true;\n if (typeof value === \"string\" && // It's animatable if we have a string\n (complex.test(value) || value === \"0\") && // And it contains numbers and/or colors\n !value.startsWith(\"url(\") // Unless it starts with \"url(\"\n ) {\n return true;\n }\n return false;\n};\n\nexport { isAnimatable };\n"],"names":["isAnimatable","key","value","complex"],"mappings":";AAWK,MAACA,IAAe,CAACC,GAAKC,MAEnBD,MAAQ,WACD,KAIP,UAAOC,KAAU,YAAY,MAAM,QAAQA,CAAK,KAEhD,OAAOA,KAAU;AAAA,CAChBC,EAAQ,KAAKD,CAAK,KAAKA,MAAU;AAClC,CAACA,EAAM,WAAW,MAAM;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra843.js","sources":["../node_modules/framer-motion/dist/es/animation/utils/default-transitions.mjs"],"sourcesContent":["import { transformProps } from '../../render/html/utils/transform.mjs';\n\nconst underDampedSpring = {\n type: \"spring\",\n stiffness: 500,\n damping: 25,\n restSpeed: 10,\n};\nconst criticallyDampedSpring = (target) => ({\n type: \"spring\",\n stiffness: 550,\n damping: target === 0 ? 2 * Math.sqrt(550) : 30,\n restSpeed: 10,\n});\nconst keyframesTransition = {\n type: \"keyframes\",\n duration: 0.8,\n};\n/**\n * Default easing curve is a slightly shallower version of\n * the default browser easing curve.\n */\nconst ease = {\n type: \"keyframes\",\n ease: [0.25, 0.1, 0.35, 1],\n duration: 0.3,\n};\nconst getDefaultTransition = (valueKey, { keyframes }) => {\n if (keyframes.length > 2) {\n return keyframesTransition;\n }\n else if (transformProps.has(valueKey)) {\n return valueKey.startsWith(\"scale\")\n ? criticallyDampedSpring(keyframes[1])\n : underDampedSpring;\n }\n return ease;\n};\n\nexport { getDefaultTransition };\n"],"names":["underDampedSpring","criticallyDampedSpring","target","keyframesTransition","ease","getDefaultTransition","valueKey","keyframes","transformProps"],"mappings":";AAEA,MAAMA,IAAoB;AAAA,EACtB,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAAS;AAAA,EACT,WAAW;AACf,GACMC,IAAyB,CAACC,OAAY;AAAA,EACxC,MAAM;AAAA,EACN,WAAW;AAAA,EACX,SAASA,MAAW,IAAI,IAAI,KAAK,KAAK,GAAG,IAAI;AAAA,EAC7C,WAAW;AACf,IACMC,IAAsB;AAAA,EACxB,MAAM;AAAA,EACN,UAAU;AACd,GAKMC,IAAO;AAAA,EACT,MAAM;AAAA,EACN,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC;AAAA,EACzB,UAAU;AACd,GACMC,IAAuB,CAACC,GAAU,EAAE,WAAAC,QAClCA,EAAU,SAAS,IACZJ,IAEFK,EAAe,IAAIF,CAAQ,IACzBA,EAAS,WAAW,OAAO,IAC5BL,EAAuBM,EAAU,CAAC,CAAC,IACnCP,IAEHI;","x_google_ignoreList":[0]}
package/dist/lyra844.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./lyra764.cjs"),c=require("./lyra843.cjs"),d=require("./lyra871.cjs");function g(s,r,i,o){const a=c.isAnimatable(r,i);let n;Array.isArray(i)?n=[...i]:n=[null,i];const f=o.from!==void 0?o.from:s.get();let l;const t=[];for(let e=0;e<n.length;e++)n[e]===null&&(n[e]=e===0?f:n[e-1]),d.isNone(n[e])&&t.push(e),typeof n[e]=="string"&&n[e]!=="none"&&n[e]!=="0"&&(l=n[e]);if(a&&t.length&&l)for(let e=0;e<t.length;e++){const u=t[e];n[u]=m.getAnimatableNone(r,l)}return n}exports.getKeyframes=g;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra729.cjs"),i=(t,r)=>t==="zIndex"?!1:!!(typeof r=="number"||Array.isArray(r)||typeof r=="string"&&(e.complex.test(r)||r==="0")&&!r.startsWith("url("));exports.isAnimatable=i;
@@ -1 +1 @@
1
- {"version":3,"file":"lyra844.cjs","sources":["../node_modules/framer-motion/dist/es/animation/utils/keyframes.mjs"],"sourcesContent":["import { getAnimatableNone } from '../../render/dom/value-types/animatable-none.mjs';\nimport { isAnimatable } from './is-animatable.mjs';\nimport { isNone } from './is-none.mjs';\n\nfunction getKeyframes(value, valueName, target, transition) {\n const isTargetAnimatable = isAnimatable(valueName, target);\n let keyframes;\n if (Array.isArray(target)) {\n keyframes = [...target];\n }\n else {\n keyframes = [null, target];\n }\n const defaultOrigin = transition.from !== undefined ? transition.from : value.get();\n let animatableTemplateValue = undefined;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < keyframes.length; i++) {\n /**\n * Fill null/wildcard keyframes\n */\n if (keyframes[i] === null) {\n keyframes[i] = i === 0 ? defaultOrigin : keyframes[i - 1];\n }\n if (isNone(keyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n // TODO: Clean this conditional, it works for now\n if (typeof keyframes[i] === \"string\" &&\n keyframes[i] !== \"none\" &&\n keyframes[i] !== \"0\") {\n animatableTemplateValue = keyframes[i];\n }\n }\n if (isTargetAnimatable &&\n noneKeyframeIndexes.length &&\n animatableTemplateValue) {\n for (let i = 0; i < noneKeyframeIndexes.length; i++) {\n const index = noneKeyframeIndexes[i];\n keyframes[index] = getAnimatableNone(valueName, animatableTemplateValue);\n }\n }\n return keyframes;\n}\n\nexport { getKeyframes };\n"],"names":["getKeyframes","value","valueName","target","transition","isTargetAnimatable","isAnimatable","keyframes","defaultOrigin","animatableTemplateValue","noneKeyframeIndexes","i","isNone","index","getAnimatableNone"],"mappings":"uKAIA,SAASA,EAAaC,EAAOC,EAAWC,EAAQC,EAAY,CACxD,MAAMC,EAAqBC,EAAAA,aAAaJ,EAAWC,CAAM,EACzD,IAAII,EACA,MAAM,QAAQJ,CAAM,EACpBI,EAAY,CAAC,GAAGJ,CAAM,EAGtBI,EAAY,CAAC,KAAMJ,CAAM,EAE7B,MAAMK,EAAgBJ,EAAW,OAAS,OAAYA,EAAW,KAAOH,EAAM,MAC9E,IAAIQ,EACJ,MAAMC,EAAsB,CAAA,EAC5B,QAASC,EAAI,EAAGA,EAAIJ,EAAU,OAAQI,IAI9BJ,EAAUI,CAAC,IAAM,OACjBJ,EAAUI,CAAC,EAAIA,IAAM,EAAIH,EAAgBD,EAAUI,EAAI,CAAC,GAExDC,SAAOL,EAAUI,CAAC,CAAC,GACnBD,EAAoB,KAAKC,CAAC,EAG1B,OAAOJ,EAAUI,CAAC,GAAM,UACxBJ,EAAUI,CAAC,IAAM,QACjBJ,EAAUI,CAAC,IAAM,MACjBF,EAA0BF,EAAUI,CAAC,GAG7C,GAAIN,GACAK,EAAoB,QACpBD,EACA,QAASE,EAAI,EAAGA,EAAID,EAAoB,OAAQC,IAAK,CACjD,MAAME,EAAQH,EAAoBC,CAAC,EACnCJ,EAAUM,CAAK,EAAIC,EAAiB,kBAACZ,EAAWO,CAAuB,CAC1E,CAEL,OAAOF,CACX","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra844.cjs","sources":["../node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs"],"sourcesContent":["import { complex } from '../../value/types/complex/index.mjs';\n\n/**\n * Check if a value is animatable. Examples:\n *\n * ✅: 100, \"100px\", \"#fff\"\n * ❌: \"block\", \"url(2.jpg)\"\n * @param value\n *\n * @internal\n */\nconst isAnimatable = (key, value) => {\n // If the list of keys tat might be non-animatable grows, replace with Set\n if (key === \"zIndex\")\n return false;\n // If it's a number or a keyframes array, we can animate it. We might at some point\n // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,\n // but for now lets leave it like this for performance reasons\n if (typeof value === \"number\" || Array.isArray(value))\n return true;\n if (typeof value === \"string\" && // It's animatable if we have a string\n (complex.test(value) || value === \"0\") && // And it contains numbers and/or colors\n !value.startsWith(\"url(\") // Unless it starts with \"url(\"\n ) {\n return true;\n }\n return false;\n};\n\nexport { isAnimatable };\n"],"names":["isAnimatable","key","value","complex"],"mappings":"iHAWMA,EAAe,CAACC,EAAKC,IAEnBD,IAAQ,SACD,GAIP,UAAOC,GAAU,UAAY,MAAM,QAAQA,CAAK,GAEhD,OAAOA,GAAU,WAChBC,EAAAA,QAAQ,KAAKD,CAAK,GAAKA,IAAU,MAClC,CAACA,EAAM,WAAW,MAAM","x_google_ignoreList":[0]}
package/dist/lyra844.js CHANGED
@@ -1,22 +1,7 @@
1
- import { getAnimatableNone as u } from "./lyra764.js";
2
- import { isAnimatable as d } from "./lyra843.js";
3
- import { isNone as p } from "./lyra871.js";
4
- function A(l, o, i, r) {
5
- const m = d(o, i);
6
- let n;
7
- Array.isArray(i) ? n = [...i] : n = [null, i];
8
- const s = r.from !== void 0 ? r.from : l.get();
9
- let f;
10
- const t = [];
11
- for (let e = 0; e < n.length; e++)
12
- n[e] === null && (n[e] = e === 0 ? s : n[e - 1]), p(n[e]) && t.push(e), typeof n[e] == "string" && n[e] !== "none" && n[e] !== "0" && (f = n[e]);
13
- if (m && t.length && f)
14
- for (let e = 0; e < t.length; e++) {
15
- const a = t[e];
16
- n[a] = u(o, f);
17
- }
18
- return n;
19
- }
1
+ import { complex as e } from "./lyra729.js";
2
+ const n = (t, r) => t === "zIndex" ? !1 : !!(typeof r == "number" || Array.isArray(r) || typeof r == "string" && // It's animatable if we have a string
3
+ (e.test(r) || r === "0") && // And it contains numbers and/or colors
4
+ !r.startsWith("url("));
20
5
  export {
21
- A as getKeyframes
6
+ n as isAnimatable
22
7
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lyra844.js","sources":["../node_modules/framer-motion/dist/es/animation/utils/keyframes.mjs"],"sourcesContent":["import { getAnimatableNone } from '../../render/dom/value-types/animatable-none.mjs';\nimport { isAnimatable } from './is-animatable.mjs';\nimport { isNone } from './is-none.mjs';\n\nfunction getKeyframes(value, valueName, target, transition) {\n const isTargetAnimatable = isAnimatable(valueName, target);\n let keyframes;\n if (Array.isArray(target)) {\n keyframes = [...target];\n }\n else {\n keyframes = [null, target];\n }\n const defaultOrigin = transition.from !== undefined ? transition.from : value.get();\n let animatableTemplateValue = undefined;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < keyframes.length; i++) {\n /**\n * Fill null/wildcard keyframes\n */\n if (keyframes[i] === null) {\n keyframes[i] = i === 0 ? defaultOrigin : keyframes[i - 1];\n }\n if (isNone(keyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n // TODO: Clean this conditional, it works for now\n if (typeof keyframes[i] === \"string\" &&\n keyframes[i] !== \"none\" &&\n keyframes[i] !== \"0\") {\n animatableTemplateValue = keyframes[i];\n }\n }\n if (isTargetAnimatable &&\n noneKeyframeIndexes.length &&\n animatableTemplateValue) {\n for (let i = 0; i < noneKeyframeIndexes.length; i++) {\n const index = noneKeyframeIndexes[i];\n keyframes[index] = getAnimatableNone(valueName, animatableTemplateValue);\n }\n }\n return keyframes;\n}\n\nexport { getKeyframes };\n"],"names":["getKeyframes","value","valueName","target","transition","isTargetAnimatable","isAnimatable","keyframes","defaultOrigin","animatableTemplateValue","noneKeyframeIndexes","i","isNone","index","getAnimatableNone"],"mappings":";;;AAIA,SAASA,EAAaC,GAAOC,GAAWC,GAAQC,GAAY;AACxD,QAAMC,IAAqBC,EAAaJ,GAAWC,CAAM;AACzD,MAAII;AACJ,EAAI,MAAM,QAAQJ,CAAM,IACpBI,IAAY,CAAC,GAAGJ,CAAM,IAGtBI,IAAY,CAAC,MAAMJ,CAAM;AAE7B,QAAMK,IAAgBJ,EAAW,SAAS,SAAYA,EAAW,OAAOH,EAAM;AAC9E,MAAIQ;AACJ,QAAMC,IAAsB,CAAA;AAC5B,WAASC,IAAI,GAAGA,IAAIJ,EAAU,QAAQI;AAIlC,IAAIJ,EAAUI,CAAC,MAAM,SACjBJ,EAAUI,CAAC,IAAIA,MAAM,IAAIH,IAAgBD,EAAUI,IAAI,CAAC,IAExDC,EAAOL,EAAUI,CAAC,CAAC,KACnBD,EAAoB,KAAKC,CAAC,GAG1B,OAAOJ,EAAUI,CAAC,KAAM,YACxBJ,EAAUI,CAAC,MAAM,UACjBJ,EAAUI,CAAC,MAAM,QACjBF,IAA0BF,EAAUI,CAAC;AAG7C,MAAIN,KACAK,EAAoB,UACpBD;AACA,aAASE,IAAI,GAAGA,IAAID,EAAoB,QAAQC,KAAK;AACjD,YAAME,IAAQH,EAAoBC,CAAC;AACnC,MAAAJ,EAAUM,CAAK,IAAIC,EAAkBZ,GAAWO,CAAuB;AAAA,IAC1E;AAEL,SAAOF;AACX;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra844.js","sources":["../node_modules/framer-motion/dist/es/animation/utils/is-animatable.mjs"],"sourcesContent":["import { complex } from '../../value/types/complex/index.mjs';\n\n/**\n * Check if a value is animatable. Examples:\n *\n * ✅: 100, \"100px\", \"#fff\"\n * ❌: \"block\", \"url(2.jpg)\"\n * @param value\n *\n * @internal\n */\nconst isAnimatable = (key, value) => {\n // If the list of keys tat might be non-animatable grows, replace with Set\n if (key === \"zIndex\")\n return false;\n // If it's a number or a keyframes array, we can animate it. We might at some point\n // need to do a deep isAnimatable check of keyframes, or let Popmotion handle this,\n // but for now lets leave it like this for performance reasons\n if (typeof value === \"number\" || Array.isArray(value))\n return true;\n if (typeof value === \"string\" && // It's animatable if we have a string\n (complex.test(value) || value === \"0\") && // And it contains numbers and/or colors\n !value.startsWith(\"url(\") // Unless it starts with \"url(\"\n ) {\n return true;\n }\n return false;\n};\n\nexport { isAnimatable };\n"],"names":["isAnimatable","key","value","complex"],"mappings":";AAWK,MAACA,IAAe,CAACC,GAAKC,MAEnBD,MAAQ,WACD,KAIP,UAAOC,KAAU,YAAY,MAAM,QAAQA,CAAK,KAEhD,OAAOA,KAAU;AAAA,CAChBC,EAAQ,KAAKD,CAAK,KAAKA,MAAU;AAClC,CAACA,EAAM,WAAW,MAAM;","x_google_ignoreList":[0]}
package/dist/lyra845.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./lyra752.cjs"),q=require("./lyra746.cjs"),s=require("./lyra744.cjs"),h=require("./lyra731.cjs"),d=require("./lyra733.cjs"),y=["TopLeft","TopRight","BottomLeft","BottomRight"],M=y.length,f=t=>typeof t=="string"?parseFloat(t):t,p=t=>typeof t=="number"||d.px.test(t);function B(t,e,i,n,x,b){x?(t.opacity=s.mix(0,i.opacity!==void 0?i.opacity:1,L(n)),t.opacityExit=s.mix(e.opacity!==void 0?e.opacity:1,0,O(n))):b&&(t.opacity=s.mix(e.opacity!==void 0?e.opacity:1,i.opacity!==void 0?i.opacity:1,n));for(let u=0;u<M;u++){const c=`border${y[u]}Radius`;let r=a(e,c),o=a(i,c);if(r===void 0&&o===void 0)continue;r||(r=0),o||(o=0),r===0||o===0||p(r)===p(o)?(t[c]=Math.max(s.mix(f(r),f(o),n),0),(d.percent.test(o)||d.percent.test(r))&&(t[c]+="%")):t[c]=o}(e.rotate||i.rotate)&&(t.rotate=s.mix(e.rotate||0,i.rotate||0,n))}function a(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const L=m(0,.5,R.circOut),O=m(.5,.95,h.noop);function m(t,e,i){return n=>n<t?0:n>e?1:i(q.progress(t,e,n))}exports.mixValues=B;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const m=require("./lyra764.cjs"),c=require("./lyra844.cjs"),d=require("./lyra871.cjs");function g(s,r,i,o){const a=c.isAnimatable(r,i);let n;Array.isArray(i)?n=[...i]:n=[null,i];const f=o.from!==void 0?o.from:s.get();let l;const t=[];for(let e=0;e<n.length;e++)n[e]===null&&(n[e]=e===0?f:n[e-1]),d.isNone(n[e])&&t.push(e),typeof n[e]=="string"&&n[e]!=="none"&&n[e]!=="0"&&(l=n[e]);if(a&&t.length&&l)for(let e=0;e<t.length;e++){const u=t[e];n[u]=m.getAnimatableNone(r,l)}return n}exports.getKeyframes=g;
@@ -1 +1 @@
1
- {"version":3,"file":"lyra845.cjs","sources":["../node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs"],"sourcesContent":["import { circOut } from '../../easing/circ.mjs';\nimport { progress } from '../../utils/progress.mjs';\nimport { mix } from '../../utils/mix.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { percent, px } from '../../value/types/numbers/units.mjs';\n\nconst borders = [\"TopLeft\", \"TopRight\", \"BottomLeft\", \"BottomRight\"];\nconst numBorders = borders.length;\nconst asNumber = (value) => typeof value === \"string\" ? parseFloat(value) : value;\nconst isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {\n if (shouldCrossfadeOpacity) {\n target.opacity = mix(0, \n // TODO Reinstate this if only child\n lead.opacity !== undefined ? lead.opacity : 1, easeCrossfadeIn(progress));\n target.opacityExit = mix(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));\n }\n else if (isOnlyMember) {\n target.opacity = mix(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);\n }\n /**\n * Mix border radius\n */\n for (let i = 0; i < numBorders; i++) {\n const borderLabel = `border${borders[i]}Radius`;\n let followRadius = getRadius(follow, borderLabel);\n let leadRadius = getRadius(lead, borderLabel);\n if (followRadius === undefined && leadRadius === undefined)\n continue;\n followRadius || (followRadius = 0);\n leadRadius || (leadRadius = 0);\n const canMix = followRadius === 0 ||\n leadRadius === 0 ||\n isPx(followRadius) === isPx(leadRadius);\n if (canMix) {\n target[borderLabel] = Math.max(mix(asNumber(followRadius), asNumber(leadRadius), progress), 0);\n if (percent.test(leadRadius) || percent.test(followRadius)) {\n target[borderLabel] += \"%\";\n }\n }\n else {\n target[borderLabel] = leadRadius;\n }\n }\n /**\n * Mix rotation\n */\n if (follow.rotate || lead.rotate) {\n target.rotate = mix(follow.rotate || 0, lead.rotate || 0, progress);\n }\n}\nfunction getRadius(values, radiusName) {\n return values[radiusName] !== undefined\n ? values[radiusName]\n : values.borderRadius;\n}\n// /**\n// * We only want to mix the background color if there's a follow element\n// * that we're not crossfading opacity between. For instance with switch\n// * AnimateSharedLayout animations, this helps the illusion of a continuous\n// * element being animated but also cuts down on the number of paints triggered\n// * for elements where opacity is doing that work for us.\n// */\n// if (\n// !hasFollowElement &&\n// latestLeadValues.backgroundColor &&\n// latestFollowValues.backgroundColor\n// ) {\n// /**\n// * This isn't ideal performance-wise as mixColor is creating a new function every frame.\n// * We could probably create a mixer that runs at the start of the animation but\n// * the idea behind the crossfader is that it runs dynamically between two potentially\n// * changing targets (ie opacity or borderRadius may be animating independently via variants)\n// */\n// leadState.backgroundColor = followState.backgroundColor = mixColor(\n// latestFollowValues.backgroundColor as string,\n// latestLeadValues.backgroundColor as string\n// )(p)\n// }\nconst easeCrossfadeIn = compress(0, 0.5, circOut);\nconst easeCrossfadeOut = compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n return (p) => {\n // Could replace ifs with clamp\n if (p < min)\n return 0;\n if (p > max)\n return 1;\n return easing(progress(min, max, p));\n };\n}\n\nexport { mixValues };\n"],"names":["borders","numBorders","asNumber","value","isPx","px","mixValues","target","follow","lead","progress","shouldCrossfadeOpacity","isOnlyMember","mix","easeCrossfadeIn","easeCrossfadeOut","i","borderLabel","followRadius","getRadius","leadRadius","percent","values","radiusName","compress","circOut","noop","min","max","easing","p"],"mappings":"6NAMMA,EAAU,CAAC,UAAW,WAAY,aAAc,aAAa,EAC7DC,EAAaD,EAAQ,OACrBE,EAAYC,GAAU,OAAOA,GAAU,SAAW,WAAWA,CAAK,EAAIA,EACtEC,EAAQD,GAAU,OAAOA,GAAU,UAAYE,KAAG,KAAKF,CAAK,EAClE,SAASG,EAAUC,EAAQC,EAAQC,EAAMC,EAAUC,EAAwBC,EAAc,CACjFD,GACAJ,EAAO,QAAUM,EAAAA,IAAI,EAErBJ,EAAK,UAAY,OAAYA,EAAK,QAAU,EAAGK,EAAgBJ,CAAQ,CAAC,EACxEH,EAAO,YAAcM,EAAAA,IAAIL,EAAO,UAAY,OAAYA,EAAO,QAAU,EAAG,EAAGO,EAAiBL,CAAQ,CAAC,GAEpGE,IACLL,EAAO,QAAUM,MAAIL,EAAO,UAAY,OAAYA,EAAO,QAAU,EAAGC,EAAK,UAAY,OAAYA,EAAK,QAAU,EAAGC,CAAQ,GAKnI,QAASM,EAAI,EAAGA,EAAIf,EAAYe,IAAK,CACjC,MAAMC,EAAc,SAASjB,EAAQgB,CAAC,CAAC,SACvC,IAAIE,EAAeC,EAAUX,EAAQS,CAAW,EAC5CG,EAAaD,EAAUV,EAAMQ,CAAW,EAC5C,GAAIC,IAAiB,QAAaE,IAAe,OAC7C,SACJF,IAAiBA,EAAe,GAChCE,IAAeA,EAAa,GACbF,IAAiB,GAC5BE,IAAe,GACfhB,EAAKc,CAAY,IAAMd,EAAKgB,CAAU,GAEtCb,EAAOU,CAAW,EAAI,KAAK,IAAIJ,EAAG,IAACX,EAASgB,CAAY,EAAGhB,EAASkB,CAAU,EAAGV,CAAQ,EAAG,CAAC,GACzFW,EAAAA,QAAQ,KAAKD,CAAU,GAAKC,EAAAA,QAAQ,KAAKH,CAAY,KACrDX,EAAOU,CAAW,GAAK,MAI3BV,EAAOU,CAAW,EAAIG,CAE7B,EAIGZ,EAAO,QAAUC,EAAK,UACtBF,EAAO,OAASM,MAAIL,EAAO,QAAU,EAAGC,EAAK,QAAU,EAAGC,CAAQ,EAE1E,CACA,SAASS,EAAUG,EAAQC,EAAY,CACnC,OAAOD,EAAOC,CAAU,IAAM,OACxBD,EAAOC,CAAU,EACjBD,EAAO,YACjB,CAwBA,MAAMR,EAAkBU,EAAS,EAAG,GAAKC,EAAO,OAAA,EAC1CV,EAAmBS,EAAS,GAAK,IAAME,EAAI,IAAA,EACjD,SAASF,EAASG,EAAKC,EAAKC,EAAQ,CAChC,OAAQC,GAEAA,EAAIH,EACG,EACPG,EAAIF,EACG,EACJC,EAAOnB,EAAAA,SAASiB,EAAKC,EAAKE,CAAC,CAAC,CAE3C","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra845.cjs","sources":["../node_modules/framer-motion/dist/es/animation/utils/keyframes.mjs"],"sourcesContent":["import { getAnimatableNone } from '../../render/dom/value-types/animatable-none.mjs';\nimport { isAnimatable } from './is-animatable.mjs';\nimport { isNone } from './is-none.mjs';\n\nfunction getKeyframes(value, valueName, target, transition) {\n const isTargetAnimatable = isAnimatable(valueName, target);\n let keyframes;\n if (Array.isArray(target)) {\n keyframes = [...target];\n }\n else {\n keyframes = [null, target];\n }\n const defaultOrigin = transition.from !== undefined ? transition.from : value.get();\n let animatableTemplateValue = undefined;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < keyframes.length; i++) {\n /**\n * Fill null/wildcard keyframes\n */\n if (keyframes[i] === null) {\n keyframes[i] = i === 0 ? defaultOrigin : keyframes[i - 1];\n }\n if (isNone(keyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n // TODO: Clean this conditional, it works for now\n if (typeof keyframes[i] === \"string\" &&\n keyframes[i] !== \"none\" &&\n keyframes[i] !== \"0\") {\n animatableTemplateValue = keyframes[i];\n }\n }\n if (isTargetAnimatable &&\n noneKeyframeIndexes.length &&\n animatableTemplateValue) {\n for (let i = 0; i < noneKeyframeIndexes.length; i++) {\n const index = noneKeyframeIndexes[i];\n keyframes[index] = getAnimatableNone(valueName, animatableTemplateValue);\n }\n }\n return keyframes;\n}\n\nexport { getKeyframes };\n"],"names":["getKeyframes","value","valueName","target","transition","isTargetAnimatable","isAnimatable","keyframes","defaultOrigin","animatableTemplateValue","noneKeyframeIndexes","i","isNone","index","getAnimatableNone"],"mappings":"uKAIA,SAASA,EAAaC,EAAOC,EAAWC,EAAQC,EAAY,CACxD,MAAMC,EAAqBC,EAAAA,aAAaJ,EAAWC,CAAM,EACzD,IAAII,EACA,MAAM,QAAQJ,CAAM,EACpBI,EAAY,CAAC,GAAGJ,CAAM,EAGtBI,EAAY,CAAC,KAAMJ,CAAM,EAE7B,MAAMK,EAAgBJ,EAAW,OAAS,OAAYA,EAAW,KAAOH,EAAM,MAC9E,IAAIQ,EACJ,MAAMC,EAAsB,CAAA,EAC5B,QAASC,EAAI,EAAGA,EAAIJ,EAAU,OAAQI,IAI9BJ,EAAUI,CAAC,IAAM,OACjBJ,EAAUI,CAAC,EAAIA,IAAM,EAAIH,EAAgBD,EAAUI,EAAI,CAAC,GAExDC,SAAOL,EAAUI,CAAC,CAAC,GACnBD,EAAoB,KAAKC,CAAC,EAG1B,OAAOJ,EAAUI,CAAC,GAAM,UACxBJ,EAAUI,CAAC,IAAM,QACjBJ,EAAUI,CAAC,IAAM,MACjBF,EAA0BF,EAAUI,CAAC,GAG7C,GAAIN,GACAK,EAAoB,QACpBD,EACA,QAASE,EAAI,EAAGA,EAAID,EAAoB,OAAQC,IAAK,CACjD,MAAME,EAAQH,EAAoBC,CAAC,EACnCJ,EAAUM,CAAK,EAAIC,EAAiB,kBAACZ,EAAWO,CAAuB,CAC1E,CAEL,OAAOF,CACX","x_google_ignoreList":[0]}
package/dist/lyra845.js CHANGED
@@ -1,32 +1,22 @@
1
- import { circOut as R } from "./lyra752.js";
2
- import { progress as h } from "./lyra746.js";
3
- import { mix as f } from "./lyra744.js";
4
- import { noop as B } from "./lyra731.js";
5
- import { percent as p, px as L } from "./lyra733.js";
6
- const a = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], M = a.length, u = (t) => typeof t == "string" ? parseFloat(t) : t, d = (t) => typeof t == "number" || L.test(t);
7
- function $(t, i, o, n, x, b) {
8
- x ? (t.opacity = f(
9
- 0,
10
- // TODO Reinstate this if only child
11
- o.opacity !== void 0 ? o.opacity : 1,
12
- C(n)
13
- ), t.opacityExit = f(i.opacity !== void 0 ? i.opacity : 1, 0, O(n))) : b && (t.opacity = f(i.opacity !== void 0 ? i.opacity : 1, o.opacity !== void 0 ? o.opacity : 1, n));
14
- for (let s = 0; s < M; s++) {
15
- const c = `border${a[s]}Radius`;
16
- let r = m(i, c), e = m(o, c);
17
- if (r === void 0 && e === void 0)
18
- continue;
19
- r || (r = 0), e || (e = 0), r === 0 || e === 0 || d(r) === d(e) ? (t[c] = Math.max(f(u(r), u(e), n), 0), (p.test(e) || p.test(r)) && (t[c] += "%")) : t[c] = e;
20
- }
21
- (i.rotate || o.rotate) && (t.rotate = f(i.rotate || 0, o.rotate || 0, n));
22
- }
23
- function m(t, i) {
24
- return t[i] !== void 0 ? t[i] : t.borderRadius;
25
- }
26
- const C = y(0, 0.5, R), O = y(0.5, 0.95, B);
27
- function y(t, i, o) {
28
- return (n) => n < t ? 0 : n > i ? 1 : o(h(t, i, n));
1
+ import { getAnimatableNone as u } from "./lyra764.js";
2
+ import { isAnimatable as d } from "./lyra844.js";
3
+ import { isNone as p } from "./lyra871.js";
4
+ function A(l, o, i, r) {
5
+ const m = d(o, i);
6
+ let n;
7
+ Array.isArray(i) ? n = [...i] : n = [null, i];
8
+ const s = r.from !== void 0 ? r.from : l.get();
9
+ let f;
10
+ const t = [];
11
+ for (let e = 0; e < n.length; e++)
12
+ n[e] === null && (n[e] = e === 0 ? s : n[e - 1]), p(n[e]) && t.push(e), typeof n[e] == "string" && n[e] !== "none" && n[e] !== "0" && (f = n[e]);
13
+ if (m && t.length && f)
14
+ for (let e = 0; e < t.length; e++) {
15
+ const a = t[e];
16
+ n[a] = u(o, f);
17
+ }
18
+ return n;
29
19
  }
30
20
  export {
31
- $ as mixValues
21
+ A as getKeyframes
32
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lyra845.js","sources":["../node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs"],"sourcesContent":["import { circOut } from '../../easing/circ.mjs';\nimport { progress } from '../../utils/progress.mjs';\nimport { mix } from '../../utils/mix.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { percent, px } from '../../value/types/numbers/units.mjs';\n\nconst borders = [\"TopLeft\", \"TopRight\", \"BottomLeft\", \"BottomRight\"];\nconst numBorders = borders.length;\nconst asNumber = (value) => typeof value === \"string\" ? parseFloat(value) : value;\nconst isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {\n if (shouldCrossfadeOpacity) {\n target.opacity = mix(0, \n // TODO Reinstate this if only child\n lead.opacity !== undefined ? lead.opacity : 1, easeCrossfadeIn(progress));\n target.opacityExit = mix(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));\n }\n else if (isOnlyMember) {\n target.opacity = mix(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);\n }\n /**\n * Mix border radius\n */\n for (let i = 0; i < numBorders; i++) {\n const borderLabel = `border${borders[i]}Radius`;\n let followRadius = getRadius(follow, borderLabel);\n let leadRadius = getRadius(lead, borderLabel);\n if (followRadius === undefined && leadRadius === undefined)\n continue;\n followRadius || (followRadius = 0);\n leadRadius || (leadRadius = 0);\n const canMix = followRadius === 0 ||\n leadRadius === 0 ||\n isPx(followRadius) === isPx(leadRadius);\n if (canMix) {\n target[borderLabel] = Math.max(mix(asNumber(followRadius), asNumber(leadRadius), progress), 0);\n if (percent.test(leadRadius) || percent.test(followRadius)) {\n target[borderLabel] += \"%\";\n }\n }\n else {\n target[borderLabel] = leadRadius;\n }\n }\n /**\n * Mix rotation\n */\n if (follow.rotate || lead.rotate) {\n target.rotate = mix(follow.rotate || 0, lead.rotate || 0, progress);\n }\n}\nfunction getRadius(values, radiusName) {\n return values[radiusName] !== undefined\n ? values[radiusName]\n : values.borderRadius;\n}\n// /**\n// * We only want to mix the background color if there's a follow element\n// * that we're not crossfading opacity between. For instance with switch\n// * AnimateSharedLayout animations, this helps the illusion of a continuous\n// * element being animated but also cuts down on the number of paints triggered\n// * for elements where opacity is doing that work for us.\n// */\n// if (\n// !hasFollowElement &&\n// latestLeadValues.backgroundColor &&\n// latestFollowValues.backgroundColor\n// ) {\n// /**\n// * This isn't ideal performance-wise as mixColor is creating a new function every frame.\n// * We could probably create a mixer that runs at the start of the animation but\n// * the idea behind the crossfader is that it runs dynamically between two potentially\n// * changing targets (ie opacity or borderRadius may be animating independently via variants)\n// */\n// leadState.backgroundColor = followState.backgroundColor = mixColor(\n// latestFollowValues.backgroundColor as string,\n// latestLeadValues.backgroundColor as string\n// )(p)\n// }\nconst easeCrossfadeIn = compress(0, 0.5, circOut);\nconst easeCrossfadeOut = compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n return (p) => {\n // Could replace ifs with clamp\n if (p < min)\n return 0;\n if (p > max)\n return 1;\n return easing(progress(min, max, p));\n };\n}\n\nexport { mixValues };\n"],"names":["borders","numBorders","asNumber","value","isPx","px","mixValues","target","follow","lead","progress","shouldCrossfadeOpacity","isOnlyMember","mix","easeCrossfadeIn","easeCrossfadeOut","i","borderLabel","followRadius","getRadius","leadRadius","percent","values","radiusName","compress","circOut","noop","min","max","easing","p"],"mappings":";;;;;AAMA,MAAMA,IAAU,CAAC,WAAW,YAAY,cAAc,aAAa,GAC7DC,IAAaD,EAAQ,QACrBE,IAAW,CAACC,MAAU,OAAOA,KAAU,WAAW,WAAWA,CAAK,IAAIA,GACtEC,IAAO,CAACD,MAAU,OAAOA,KAAU,YAAYE,EAAG,KAAKF,CAAK;AAClE,SAASG,EAAUC,GAAQC,GAAQC,GAAMC,GAAUC,GAAwBC,GAAc;AACrF,EAAID,KACAJ,EAAO,UAAUM;AAAA,IAAI;AAAA;AAAA,IAErBJ,EAAK,YAAY,SAAYA,EAAK,UAAU;AAAA,IAAGK,EAAgBJ,CAAQ;AAAA,EAAC,GACxEH,EAAO,cAAcM,EAAIL,EAAO,YAAY,SAAYA,EAAO,UAAU,GAAG,GAAGO,EAAiBL,CAAQ,CAAC,KAEpGE,MACLL,EAAO,UAAUM,EAAIL,EAAO,YAAY,SAAYA,EAAO,UAAU,GAAGC,EAAK,YAAY,SAAYA,EAAK,UAAU,GAAGC,CAAQ;AAKnI,WAASM,IAAI,GAAGA,IAAIf,GAAYe,KAAK;AACjC,UAAMC,IAAc,SAASjB,EAAQgB,CAAC,CAAC;AACvC,QAAIE,IAAeC,EAAUX,GAAQS,CAAW,GAC5CG,IAAaD,EAAUV,GAAMQ,CAAW;AAC5C,QAAIC,MAAiB,UAAaE,MAAe;AAC7C;AACJ,IAAAF,MAAiBA,IAAe,IAChCE,MAAeA,IAAa,IACbF,MAAiB,KAC5BE,MAAe,KACfhB,EAAKc,CAAY,MAAMd,EAAKgB,CAAU,KAEtCb,EAAOU,CAAW,IAAI,KAAK,IAAIJ,EAAIX,EAASgB,CAAY,GAAGhB,EAASkB,CAAU,GAAGV,CAAQ,GAAG,CAAC,IACzFW,EAAQ,KAAKD,CAAU,KAAKC,EAAQ,KAAKH,CAAY,OACrDX,EAAOU,CAAW,KAAK,QAI3BV,EAAOU,CAAW,IAAIG;AAAA,EAE7B;AAID,GAAIZ,EAAO,UAAUC,EAAK,YACtBF,EAAO,SAASM,EAAIL,EAAO,UAAU,GAAGC,EAAK,UAAU,GAAGC,CAAQ;AAE1E;AACA,SAASS,EAAUG,GAAQC,GAAY;AACnC,SAAOD,EAAOC,CAAU,MAAM,SACxBD,EAAOC,CAAU,IACjBD,EAAO;AACjB;AAwBA,MAAMR,IAAkBU,EAAS,GAAG,KAAKC,CAAO,GAC1CV,IAAmBS,EAAS,KAAK,MAAME,CAAI;AACjD,SAASF,EAASG,GAAKC,GAAKC,GAAQ;AAChC,SAAO,CAACC,MAEAA,IAAIH,IACG,IACPG,IAAIF,IACG,IACJC,EAAOnB,EAASiB,GAAKC,GAAKE,CAAC,CAAC;AAE3C;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra845.js","sources":["../node_modules/framer-motion/dist/es/animation/utils/keyframes.mjs"],"sourcesContent":["import { getAnimatableNone } from '../../render/dom/value-types/animatable-none.mjs';\nimport { isAnimatable } from './is-animatable.mjs';\nimport { isNone } from './is-none.mjs';\n\nfunction getKeyframes(value, valueName, target, transition) {\n const isTargetAnimatable = isAnimatable(valueName, target);\n let keyframes;\n if (Array.isArray(target)) {\n keyframes = [...target];\n }\n else {\n keyframes = [null, target];\n }\n const defaultOrigin = transition.from !== undefined ? transition.from : value.get();\n let animatableTemplateValue = undefined;\n const noneKeyframeIndexes = [];\n for (let i = 0; i < keyframes.length; i++) {\n /**\n * Fill null/wildcard keyframes\n */\n if (keyframes[i] === null) {\n keyframes[i] = i === 0 ? defaultOrigin : keyframes[i - 1];\n }\n if (isNone(keyframes[i])) {\n noneKeyframeIndexes.push(i);\n }\n // TODO: Clean this conditional, it works for now\n if (typeof keyframes[i] === \"string\" &&\n keyframes[i] !== \"none\" &&\n keyframes[i] !== \"0\") {\n animatableTemplateValue = keyframes[i];\n }\n }\n if (isTargetAnimatable &&\n noneKeyframeIndexes.length &&\n animatableTemplateValue) {\n for (let i = 0; i < noneKeyframeIndexes.length; i++) {\n const index = noneKeyframeIndexes[i];\n keyframes[index] = getAnimatableNone(valueName, animatableTemplateValue);\n }\n }\n return keyframes;\n}\n\nexport { getKeyframes };\n"],"names":["getKeyframes","value","valueName","target","transition","isTargetAnimatable","isAnimatable","keyframes","defaultOrigin","animatableTemplateValue","noneKeyframeIndexes","i","isNone","index","getAnimatableNone"],"mappings":";;;AAIA,SAASA,EAAaC,GAAOC,GAAWC,GAAQC,GAAY;AACxD,QAAMC,IAAqBC,EAAaJ,GAAWC,CAAM;AACzD,MAAII;AACJ,EAAI,MAAM,QAAQJ,CAAM,IACpBI,IAAY,CAAC,GAAGJ,CAAM,IAGtBI,IAAY,CAAC,MAAMJ,CAAM;AAE7B,QAAMK,IAAgBJ,EAAW,SAAS,SAAYA,EAAW,OAAOH,EAAM;AAC9E,MAAIQ;AACJ,QAAMC,IAAsB,CAAA;AAC5B,WAASC,IAAI,GAAGA,IAAIJ,EAAU,QAAQI;AAIlC,IAAIJ,EAAUI,CAAC,MAAM,SACjBJ,EAAUI,CAAC,IAAIA,MAAM,IAAIH,IAAgBD,EAAUI,IAAI,CAAC,IAExDC,EAAOL,EAAUI,CAAC,CAAC,KACnBD,EAAoB,KAAKC,CAAC,GAG1B,OAAOJ,EAAUI,CAAC,KAAM,YACxBJ,EAAUI,CAAC,MAAM,UACjBJ,EAAUI,CAAC,MAAM,QACjBF,IAA0BF,EAAUI,CAAC;AAG7C,MAAIN,KACAK,EAAoB,UACpBD;AACA,aAASE,IAAI,GAAGA,IAAID,EAAoB,QAAQC,KAAK;AACjD,YAAME,IAAQH,EAAoBC,CAAC;AACnC,MAAAJ,EAAUM,CAAK,IAAIC,EAAkBZ,GAAWO,CAAuB;AAAA,IAC1E;AAEL,SAAOF;AACX;","x_google_ignoreList":[0]}
package/dist/lyra846.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(o,t){o.min=t.min,o.max=t.max}function c(o,t){n(o.x,t.x),n(o.y,t.y)}exports.copyAxisInto=n;exports.copyBoxInto=c;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const R=require("./lyra752.cjs"),q=require("./lyra746.cjs"),s=require("./lyra744.cjs"),h=require("./lyra731.cjs"),d=require("./lyra733.cjs"),y=["TopLeft","TopRight","BottomLeft","BottomRight"],M=y.length,f=t=>typeof t=="string"?parseFloat(t):t,p=t=>typeof t=="number"||d.px.test(t);function B(t,e,i,n,x,b){x?(t.opacity=s.mix(0,i.opacity!==void 0?i.opacity:1,L(n)),t.opacityExit=s.mix(e.opacity!==void 0?e.opacity:1,0,O(n))):b&&(t.opacity=s.mix(e.opacity!==void 0?e.opacity:1,i.opacity!==void 0?i.opacity:1,n));for(let u=0;u<M;u++){const c=`border${y[u]}Radius`;let r=a(e,c),o=a(i,c);if(r===void 0&&o===void 0)continue;r||(r=0),o||(o=0),r===0||o===0||p(r)===p(o)?(t[c]=Math.max(s.mix(f(r),f(o),n),0),(d.percent.test(o)||d.percent.test(r))&&(t[c]+="%")):t[c]=o}(e.rotate||i.rotate)&&(t.rotate=s.mix(e.rotate||0,i.rotate||0,n))}function a(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const L=m(0,.5,R.circOut),O=m(.5,.95,h.noop);function m(t,e,i){return n=>n<t?0:n>e?1:i(q.progress(t,e,n))}exports.mixValues=B;
@@ -1 +1 @@
1
- {"version":3,"file":"lyra846.cjs","sources":["../node_modules/framer-motion/dist/es/projection/geometry/copy.mjs"],"sourcesContent":["/**\n * Reset an axis to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisInto(axis, originAxis) {\n axis.min = originAxis.min;\n axis.max = originAxis.max;\n}\n/**\n * Reset a box to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyBoxInto(box, originBox) {\n copyAxisInto(box.x, originBox.x);\n copyAxisInto(box.y, originBox.y);\n}\n\nexport { copyAxisInto, copyBoxInto };\n"],"names":["copyAxisInto","axis","originAxis","copyBoxInto","box","originBox"],"mappings":"gFAKA,SAASA,EAAaC,EAAMC,EAAY,CACpCD,EAAK,IAAMC,EAAW,IACtBD,EAAK,IAAMC,EAAW,GAC1B,CAMA,SAASC,EAAYC,EAAKC,EAAW,CACjCL,EAAaI,EAAI,EAAGC,EAAU,CAAC,EAC/BL,EAAaI,EAAI,EAAGC,EAAU,CAAC,CACnC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra846.cjs","sources":["../node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs"],"sourcesContent":["import { circOut } from '../../easing/circ.mjs';\nimport { progress } from '../../utils/progress.mjs';\nimport { mix } from '../../utils/mix.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { percent, px } from '../../value/types/numbers/units.mjs';\n\nconst borders = [\"TopLeft\", \"TopRight\", \"BottomLeft\", \"BottomRight\"];\nconst numBorders = borders.length;\nconst asNumber = (value) => typeof value === \"string\" ? parseFloat(value) : value;\nconst isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {\n if (shouldCrossfadeOpacity) {\n target.opacity = mix(0, \n // TODO Reinstate this if only child\n lead.opacity !== undefined ? lead.opacity : 1, easeCrossfadeIn(progress));\n target.opacityExit = mix(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));\n }\n else if (isOnlyMember) {\n target.opacity = mix(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);\n }\n /**\n * Mix border radius\n */\n for (let i = 0; i < numBorders; i++) {\n const borderLabel = `border${borders[i]}Radius`;\n let followRadius = getRadius(follow, borderLabel);\n let leadRadius = getRadius(lead, borderLabel);\n if (followRadius === undefined && leadRadius === undefined)\n continue;\n followRadius || (followRadius = 0);\n leadRadius || (leadRadius = 0);\n const canMix = followRadius === 0 ||\n leadRadius === 0 ||\n isPx(followRadius) === isPx(leadRadius);\n if (canMix) {\n target[borderLabel] = Math.max(mix(asNumber(followRadius), asNumber(leadRadius), progress), 0);\n if (percent.test(leadRadius) || percent.test(followRadius)) {\n target[borderLabel] += \"%\";\n }\n }\n else {\n target[borderLabel] = leadRadius;\n }\n }\n /**\n * Mix rotation\n */\n if (follow.rotate || lead.rotate) {\n target.rotate = mix(follow.rotate || 0, lead.rotate || 0, progress);\n }\n}\nfunction getRadius(values, radiusName) {\n return values[radiusName] !== undefined\n ? values[radiusName]\n : values.borderRadius;\n}\n// /**\n// * We only want to mix the background color if there's a follow element\n// * that we're not crossfading opacity between. For instance with switch\n// * AnimateSharedLayout animations, this helps the illusion of a continuous\n// * element being animated but also cuts down on the number of paints triggered\n// * for elements where opacity is doing that work for us.\n// */\n// if (\n// !hasFollowElement &&\n// latestLeadValues.backgroundColor &&\n// latestFollowValues.backgroundColor\n// ) {\n// /**\n// * This isn't ideal performance-wise as mixColor is creating a new function every frame.\n// * We could probably create a mixer that runs at the start of the animation but\n// * the idea behind the crossfader is that it runs dynamically between two potentially\n// * changing targets (ie opacity or borderRadius may be animating independently via variants)\n// */\n// leadState.backgroundColor = followState.backgroundColor = mixColor(\n// latestFollowValues.backgroundColor as string,\n// latestLeadValues.backgroundColor as string\n// )(p)\n// }\nconst easeCrossfadeIn = compress(0, 0.5, circOut);\nconst easeCrossfadeOut = compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n return (p) => {\n // Could replace ifs with clamp\n if (p < min)\n return 0;\n if (p > max)\n return 1;\n return easing(progress(min, max, p));\n };\n}\n\nexport { mixValues };\n"],"names":["borders","numBorders","asNumber","value","isPx","px","mixValues","target","follow","lead","progress","shouldCrossfadeOpacity","isOnlyMember","mix","easeCrossfadeIn","easeCrossfadeOut","i","borderLabel","followRadius","getRadius","leadRadius","percent","values","radiusName","compress","circOut","noop","min","max","easing","p"],"mappings":"6NAMMA,EAAU,CAAC,UAAW,WAAY,aAAc,aAAa,EAC7DC,EAAaD,EAAQ,OACrBE,EAAYC,GAAU,OAAOA,GAAU,SAAW,WAAWA,CAAK,EAAIA,EACtEC,EAAQD,GAAU,OAAOA,GAAU,UAAYE,KAAG,KAAKF,CAAK,EAClE,SAASG,EAAUC,EAAQC,EAAQC,EAAMC,EAAUC,EAAwBC,EAAc,CACjFD,GACAJ,EAAO,QAAUM,EAAAA,IAAI,EAErBJ,EAAK,UAAY,OAAYA,EAAK,QAAU,EAAGK,EAAgBJ,CAAQ,CAAC,EACxEH,EAAO,YAAcM,EAAAA,IAAIL,EAAO,UAAY,OAAYA,EAAO,QAAU,EAAG,EAAGO,EAAiBL,CAAQ,CAAC,GAEpGE,IACLL,EAAO,QAAUM,MAAIL,EAAO,UAAY,OAAYA,EAAO,QAAU,EAAGC,EAAK,UAAY,OAAYA,EAAK,QAAU,EAAGC,CAAQ,GAKnI,QAASM,EAAI,EAAGA,EAAIf,EAAYe,IAAK,CACjC,MAAMC,EAAc,SAASjB,EAAQgB,CAAC,CAAC,SACvC,IAAIE,EAAeC,EAAUX,EAAQS,CAAW,EAC5CG,EAAaD,EAAUV,EAAMQ,CAAW,EAC5C,GAAIC,IAAiB,QAAaE,IAAe,OAC7C,SACJF,IAAiBA,EAAe,GAChCE,IAAeA,EAAa,GACbF,IAAiB,GAC5BE,IAAe,GACfhB,EAAKc,CAAY,IAAMd,EAAKgB,CAAU,GAEtCb,EAAOU,CAAW,EAAI,KAAK,IAAIJ,EAAG,IAACX,EAASgB,CAAY,EAAGhB,EAASkB,CAAU,EAAGV,CAAQ,EAAG,CAAC,GACzFW,EAAAA,QAAQ,KAAKD,CAAU,GAAKC,EAAAA,QAAQ,KAAKH,CAAY,KACrDX,EAAOU,CAAW,GAAK,MAI3BV,EAAOU,CAAW,EAAIG,CAE7B,EAIGZ,EAAO,QAAUC,EAAK,UACtBF,EAAO,OAASM,MAAIL,EAAO,QAAU,EAAGC,EAAK,QAAU,EAAGC,CAAQ,EAE1E,CACA,SAASS,EAAUG,EAAQC,EAAY,CACnC,OAAOD,EAAOC,CAAU,IAAM,OACxBD,EAAOC,CAAU,EACjBD,EAAO,YACjB,CAwBA,MAAMR,EAAkBU,EAAS,EAAG,GAAKC,EAAO,OAAA,EAC1CV,EAAmBS,EAAS,GAAK,IAAME,EAAI,IAAA,EACjD,SAASF,EAASG,EAAKC,EAAKC,EAAQ,CAChC,OAAQC,GAEAA,EAAIH,EACG,EACPG,EAAIF,EACG,EACJC,EAAOnB,EAAAA,SAASiB,EAAKC,EAAKE,CAAC,CAAC,CAE3C","x_google_ignoreList":[0]}
package/dist/lyra846.js CHANGED
@@ -1,10 +1,32 @@
1
- function c(n, t) {
2
- n.min = t.min, n.max = t.max;
1
+ import { circOut as R } from "./lyra752.js";
2
+ import { progress as h } from "./lyra746.js";
3
+ import { mix as f } from "./lyra744.js";
4
+ import { noop as B } from "./lyra731.js";
5
+ import { percent as p, px as L } from "./lyra733.js";
6
+ const a = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], M = a.length, u = (t) => typeof t == "string" ? parseFloat(t) : t, d = (t) => typeof t == "number" || L.test(t);
7
+ function $(t, i, o, n, x, b) {
8
+ x ? (t.opacity = f(
9
+ 0,
10
+ // TODO Reinstate this if only child
11
+ o.opacity !== void 0 ? o.opacity : 1,
12
+ C(n)
13
+ ), t.opacityExit = f(i.opacity !== void 0 ? i.opacity : 1, 0, O(n))) : b && (t.opacity = f(i.opacity !== void 0 ? i.opacity : 1, o.opacity !== void 0 ? o.opacity : 1, n));
14
+ for (let s = 0; s < M; s++) {
15
+ const c = `border${a[s]}Radius`;
16
+ let r = m(i, c), e = m(o, c);
17
+ if (r === void 0 && e === void 0)
18
+ continue;
19
+ r || (r = 0), e || (e = 0), r === 0 || e === 0 || d(r) === d(e) ? (t[c] = Math.max(f(u(r), u(e), n), 0), (p.test(e) || p.test(r)) && (t[c] += "%")) : t[c] = e;
20
+ }
21
+ (i.rotate || o.rotate) && (t.rotate = f(i.rotate || 0, o.rotate || 0, n));
3
22
  }
4
- function m(n, t) {
5
- c(n.x, t.x), c(n.y, t.y);
23
+ function m(t, i) {
24
+ return t[i] !== void 0 ? t[i] : t.borderRadius;
25
+ }
26
+ const C = y(0, 0.5, R), O = y(0.5, 0.95, B);
27
+ function y(t, i, o) {
28
+ return (n) => n < t ? 0 : n > i ? 1 : o(h(t, i, n));
6
29
  }
7
30
  export {
8
- c as copyAxisInto,
9
- m as copyBoxInto
31
+ $ as mixValues
10
32
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lyra846.js","sources":["../node_modules/framer-motion/dist/es/projection/geometry/copy.mjs"],"sourcesContent":["/**\n * Reset an axis to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisInto(axis, originAxis) {\n axis.min = originAxis.min;\n axis.max = originAxis.max;\n}\n/**\n * Reset a box to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyBoxInto(box, originBox) {\n copyAxisInto(box.x, originBox.x);\n copyAxisInto(box.y, originBox.y);\n}\n\nexport { copyAxisInto, copyBoxInto };\n"],"names":["copyAxisInto","axis","originAxis","copyBoxInto","box","originBox"],"mappings":"AAKA,SAASA,EAAaC,GAAMC,GAAY;AACpC,EAAAD,EAAK,MAAMC,EAAW,KACtBD,EAAK,MAAMC,EAAW;AAC1B;AAMA,SAASC,EAAYC,GAAKC,GAAW;AACjC,EAAAL,EAAaI,EAAI,GAAGC,EAAU,CAAC,GAC/BL,EAAaI,EAAI,GAAGC,EAAU,CAAC;AACnC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra846.js","sources":["../node_modules/framer-motion/dist/es/projection/animation/mix-values.mjs"],"sourcesContent":["import { circOut } from '../../easing/circ.mjs';\nimport { progress } from '../../utils/progress.mjs';\nimport { mix } from '../../utils/mix.mjs';\nimport { noop } from '../../utils/noop.mjs';\nimport { percent, px } from '../../value/types/numbers/units.mjs';\n\nconst borders = [\"TopLeft\", \"TopRight\", \"BottomLeft\", \"BottomRight\"];\nconst numBorders = borders.length;\nconst asNumber = (value) => typeof value === \"string\" ? parseFloat(value) : value;\nconst isPx = (value) => typeof value === \"number\" || px.test(value);\nfunction mixValues(target, follow, lead, progress, shouldCrossfadeOpacity, isOnlyMember) {\n if (shouldCrossfadeOpacity) {\n target.opacity = mix(0, \n // TODO Reinstate this if only child\n lead.opacity !== undefined ? lead.opacity : 1, easeCrossfadeIn(progress));\n target.opacityExit = mix(follow.opacity !== undefined ? follow.opacity : 1, 0, easeCrossfadeOut(progress));\n }\n else if (isOnlyMember) {\n target.opacity = mix(follow.opacity !== undefined ? follow.opacity : 1, lead.opacity !== undefined ? lead.opacity : 1, progress);\n }\n /**\n * Mix border radius\n */\n for (let i = 0; i < numBorders; i++) {\n const borderLabel = `border${borders[i]}Radius`;\n let followRadius = getRadius(follow, borderLabel);\n let leadRadius = getRadius(lead, borderLabel);\n if (followRadius === undefined && leadRadius === undefined)\n continue;\n followRadius || (followRadius = 0);\n leadRadius || (leadRadius = 0);\n const canMix = followRadius === 0 ||\n leadRadius === 0 ||\n isPx(followRadius) === isPx(leadRadius);\n if (canMix) {\n target[borderLabel] = Math.max(mix(asNumber(followRadius), asNumber(leadRadius), progress), 0);\n if (percent.test(leadRadius) || percent.test(followRadius)) {\n target[borderLabel] += \"%\";\n }\n }\n else {\n target[borderLabel] = leadRadius;\n }\n }\n /**\n * Mix rotation\n */\n if (follow.rotate || lead.rotate) {\n target.rotate = mix(follow.rotate || 0, lead.rotate || 0, progress);\n }\n}\nfunction getRadius(values, radiusName) {\n return values[radiusName] !== undefined\n ? values[radiusName]\n : values.borderRadius;\n}\n// /**\n// * We only want to mix the background color if there's a follow element\n// * that we're not crossfading opacity between. For instance with switch\n// * AnimateSharedLayout animations, this helps the illusion of a continuous\n// * element being animated but also cuts down on the number of paints triggered\n// * for elements where opacity is doing that work for us.\n// */\n// if (\n// !hasFollowElement &&\n// latestLeadValues.backgroundColor &&\n// latestFollowValues.backgroundColor\n// ) {\n// /**\n// * This isn't ideal performance-wise as mixColor is creating a new function every frame.\n// * We could probably create a mixer that runs at the start of the animation but\n// * the idea behind the crossfader is that it runs dynamically between two potentially\n// * changing targets (ie opacity or borderRadius may be animating independently via variants)\n// */\n// leadState.backgroundColor = followState.backgroundColor = mixColor(\n// latestFollowValues.backgroundColor as string,\n// latestLeadValues.backgroundColor as string\n// )(p)\n// }\nconst easeCrossfadeIn = compress(0, 0.5, circOut);\nconst easeCrossfadeOut = compress(0.5, 0.95, noop);\nfunction compress(min, max, easing) {\n return (p) => {\n // Could replace ifs with clamp\n if (p < min)\n return 0;\n if (p > max)\n return 1;\n return easing(progress(min, max, p));\n };\n}\n\nexport { mixValues };\n"],"names":["borders","numBorders","asNumber","value","isPx","px","mixValues","target","follow","lead","progress","shouldCrossfadeOpacity","isOnlyMember","mix","easeCrossfadeIn","easeCrossfadeOut","i","borderLabel","followRadius","getRadius","leadRadius","percent","values","radiusName","compress","circOut","noop","min","max","easing","p"],"mappings":";;;;;AAMA,MAAMA,IAAU,CAAC,WAAW,YAAY,cAAc,aAAa,GAC7DC,IAAaD,EAAQ,QACrBE,IAAW,CAACC,MAAU,OAAOA,KAAU,WAAW,WAAWA,CAAK,IAAIA,GACtEC,IAAO,CAACD,MAAU,OAAOA,KAAU,YAAYE,EAAG,KAAKF,CAAK;AAClE,SAASG,EAAUC,GAAQC,GAAQC,GAAMC,GAAUC,GAAwBC,GAAc;AACrF,EAAID,KACAJ,EAAO,UAAUM;AAAA,IAAI;AAAA;AAAA,IAErBJ,EAAK,YAAY,SAAYA,EAAK,UAAU;AAAA,IAAGK,EAAgBJ,CAAQ;AAAA,EAAC,GACxEH,EAAO,cAAcM,EAAIL,EAAO,YAAY,SAAYA,EAAO,UAAU,GAAG,GAAGO,EAAiBL,CAAQ,CAAC,KAEpGE,MACLL,EAAO,UAAUM,EAAIL,EAAO,YAAY,SAAYA,EAAO,UAAU,GAAGC,EAAK,YAAY,SAAYA,EAAK,UAAU,GAAGC,CAAQ;AAKnI,WAASM,IAAI,GAAGA,IAAIf,GAAYe,KAAK;AACjC,UAAMC,IAAc,SAASjB,EAAQgB,CAAC,CAAC;AACvC,QAAIE,IAAeC,EAAUX,GAAQS,CAAW,GAC5CG,IAAaD,EAAUV,GAAMQ,CAAW;AAC5C,QAAIC,MAAiB,UAAaE,MAAe;AAC7C;AACJ,IAAAF,MAAiBA,IAAe,IAChCE,MAAeA,IAAa,IACbF,MAAiB,KAC5BE,MAAe,KACfhB,EAAKc,CAAY,MAAMd,EAAKgB,CAAU,KAEtCb,EAAOU,CAAW,IAAI,KAAK,IAAIJ,EAAIX,EAASgB,CAAY,GAAGhB,EAASkB,CAAU,GAAGV,CAAQ,GAAG,CAAC,IACzFW,EAAQ,KAAKD,CAAU,KAAKC,EAAQ,KAAKH,CAAY,OACrDX,EAAOU,CAAW,KAAK,QAI3BV,EAAOU,CAAW,IAAIG;AAAA,EAE7B;AAID,GAAIZ,EAAO,UAAUC,EAAK,YACtBF,EAAO,SAASM,EAAIL,EAAO,UAAU,GAAGC,EAAK,UAAU,GAAGC,CAAQ;AAE1E;AACA,SAASS,EAAUG,GAAQC,GAAY;AACnC,SAAOD,EAAOC,CAAU,MAAM,SACxBD,EAAOC,CAAU,IACjBD,EAAO;AACjB;AAwBA,MAAMR,IAAkBU,EAAS,GAAG,KAAKC,CAAO,GAC1CV,IAAmBS,EAAS,KAAK,MAAME,CAAI;AACjD,SAASF,EAASG,GAAKC,GAAKC,GAAQ;AAChC,SAAO,CAACC,MAEAA,IAAIH,IACG,IACPG,IAAIF,IACG,IACJC,EAAOnB,EAASiB,GAAKC,GAAKE,CAAC,CAAC;AAE3C;","x_google_ignoreList":[0]}
package/dist/lyra847.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("./lyra744.cjs"),d=require("./lyra853.cjs");function u(n,t,e){const l=n-e,o=t*l;return e+o}function c(n,t,e,l,o){return o!==void 0&&(n=u(n,o,l)),u(n,e,l)+t}function a(n,t=0,e=1,l,o){n.min=c(n.min,t,e,l,o),n.max=c(n.max,t,e,l,o)}function x(n,{x:t,y:e}){a(n.x,t.translate,t.scale,t.originPoint),a(n.y,e.translate,e.scale,e.originPoint)}function g(n,t,e,l=!1){const o=e.length;if(!o)return;t.x=t.y=1;let i,s;for(let r=0;r<o;r++){i=e[r],s=i.projectionDelta;const f=i.instance;f&&f.style&&f.style.display==="contents"||(l&&i.options.layoutScroll&&i.scroll&&i!==i.root&&p(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,x(n,s)),l&&d.hasTransform(i.latestValues)&&p(n,i.latestValues))}t.x=m(t.x),t.y=m(t.y)}function m(n){return Number.isInteger(n)||n>1.0000000000001||n<.999999999999?n:1}function A(n,t){n.min=n.min+t,n.max=n.max+t}function y(n,t,[e,l,o]){const i=t[o]!==void 0?t[o]:.5,s=D.mix(n.min,n.max,i);a(n,t[e],t[l],s,t.scale)}const T=["x","scaleX","originX"],B=["y","scaleY","originY"];function p(n,t){y(n.x,t,T),y(n.y,t,B)}exports.applyAxisDelta=a;exports.applyBoxDelta=x;exports.applyPointDelta=c;exports.applyTreeDeltas=g;exports.scalePoint=u;exports.transformAxis=y;exports.transformBox=p;exports.translateAxis=A;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function n(o,t){o.min=t.min,o.max=t.max}function c(o,t){n(o.x,t.x),n(o.y,t.y)}exports.copyAxisInto=n;exports.copyBoxInto=c;
@@ -1 +1 @@
1
- {"version":3,"file":"lyra847.cjs","sources":["../node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs"],"sourcesContent":["import { mix } from '../../utils/mix.mjs';\nimport { hasTransform } from '../utils/has-transform.mjs';\n\n/**\n * Scales a point based on a factor and an originPoint\n */\nfunction scalePoint(point, scale, originPoint) {\n const distanceFromOrigin = point - originPoint;\n const scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}\n/**\n * Applies a translate/scale delta to a point\n */\nfunction applyPointDelta(point, translate, scale, originPoint, boxScale) {\n if (boxScale !== undefined) {\n point = scalePoint(point, boxScale, originPoint);\n }\n return scalePoint(point, scale, originPoint) + translate;\n}\n/**\n * Applies a translate/scale delta to an axis\n */\nfunction applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {\n axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Applies a translate/scale delta to a box\n */\nfunction applyBoxDelta(box, { x, y }) {\n applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\n/**\n * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms\n * in a tree upon our box before then calculating how to project it into our desired viewport-relative box\n *\n * This is the final nested loop within updateLayoutDelta for future refactoring\n */\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n const treeLength = treePath.length;\n if (!treeLength)\n return;\n // Reset the treeScale\n treeScale.x = treeScale.y = 1;\n let node;\n let delta;\n for (let i = 0; i < treeLength; i++) {\n node = treePath[i];\n delta = node.projectionDelta;\n /**\n * TODO: Prefer to remove this, but currently we have motion components with\n * display: contents in Framer.\n */\n const instance = node.instance;\n if (instance &&\n instance.style &&\n instance.style.display === \"contents\") {\n continue;\n }\n if (isSharedTransition &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(box, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (delta) {\n // Incoporate each ancestor's scale into a culmulative treeScale for this component\n treeScale.x *= delta.x.scale;\n treeScale.y *= delta.y.scale;\n // Apply each ancestor's calculated delta into this component's recorded layout box\n applyBoxDelta(box, delta);\n }\n if (isSharedTransition && hasTransform(node.latestValues)) {\n transformBox(box, node.latestValues);\n }\n }\n /**\n * Snap tree scale back to 1 if it's within a non-perceivable threshold.\n * This will help reduce useless scales getting rendered.\n */\n treeScale.x = snapToDefault(treeScale.x);\n treeScale.y = snapToDefault(treeScale.y);\n}\nfunction snapToDefault(scale) {\n if (Number.isInteger(scale))\n return scale;\n return scale > 1.0000000000001 || scale < 0.999999999999 ? scale : 1;\n}\nfunction translateAxis(axis, distance) {\n axis.min = axis.min + distance;\n axis.max = axis.max + distance;\n}\n/**\n * Apply a transform to an axis from the latest resolved motion values.\n * This function basically acts as a bridge between a flat motion value map\n * and applyAxisDelta\n */\nfunction transformAxis(axis, transforms, [key, scaleKey, originKey]) {\n const axisOrigin = transforms[originKey] !== undefined ? transforms[originKey] : 0.5;\n const originPoint = mix(axis.min, axis.max, axisOrigin);\n // Apply the axis delta to the final axis\n applyAxisDelta(axis, transforms[key], transforms[scaleKey], originPoint, transforms.scale);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Apply a transform to a box from the latest resolved motion values.\n */\nfunction transformBox(box, transform) {\n transformAxis(box.x, transform, xKeys);\n transformAxis(box.y, transform, yKeys);\n}\n\nexport { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };\n"],"names":["scalePoint","point","scale","originPoint","distanceFromOrigin","scaled","applyPointDelta","translate","boxScale","applyAxisDelta","axis","applyBoxDelta","box","x","y","applyTreeDeltas","treeScale","treePath","isSharedTransition","treeLength","node","delta","i","instance","transformBox","hasTransform","snapToDefault","translateAxis","distance","transformAxis","transforms","key","scaleKey","originKey","axisOrigin","mix","xKeys","yKeys","transform"],"mappings":"4IAMA,SAASA,EAAWC,EAAOC,EAAOC,EAAa,CAC3C,MAAMC,EAAqBH,EAAQE,EAC7BE,EAASH,EAAQE,EACvB,OAAOD,EAAcE,CACzB,CAIA,SAASC,EAAgBL,EAAOM,EAAWL,EAAOC,EAAaK,EAAU,CACrE,OAAIA,IAAa,SACbP,EAAQD,EAAWC,EAAOO,EAAUL,CAAW,GAE5CH,EAAWC,EAAOC,EAAOC,CAAW,EAAII,CACnD,CAIA,SAASE,EAAeC,EAAMH,EAAY,EAAGL,EAAQ,EAAGC,EAAaK,EAAU,CAC3EE,EAAK,IAAMJ,EAAgBI,EAAK,IAAKH,EAAWL,EAAOC,EAAaK,CAAQ,EAC5EE,EAAK,IAAMJ,EAAgBI,EAAK,IAAKH,EAAWL,EAAOC,EAAaK,CAAQ,CAChF,CAIA,SAASG,EAAcC,EAAK,CAAE,EAAAC,EAAG,EAAAC,CAAC,EAAI,CAClCL,EAAeG,EAAI,EAAGC,EAAE,UAAWA,EAAE,MAAOA,EAAE,WAAW,EACzDJ,EAAeG,EAAI,EAAGE,EAAE,UAAWA,EAAE,MAAOA,EAAE,WAAW,CAC7D,CAOA,SAASC,EAAgBH,EAAKI,EAAWC,EAAUC,EAAqB,GAAO,CAC3E,MAAMC,EAAaF,EAAS,OAC5B,GAAI,CAACE,EACD,OAEJH,EAAU,EAAIA,EAAU,EAAI,EAC5B,IAAII,EACAC,EACJ,QAASC,EAAI,EAAGA,EAAIH,EAAYG,IAAK,CACjCF,EAAOH,EAASK,CAAC,EACjBD,EAAQD,EAAK,gBAKb,MAAMG,EAAWH,EAAK,SAClBG,GACAA,EAAS,OACTA,EAAS,MAAM,UAAY,aAG3BL,GACAE,EAAK,QAAQ,cACbA,EAAK,QACLA,IAASA,EAAK,MACdI,EAAaZ,EAAK,CACd,EAAG,CAACQ,EAAK,OAAO,OAAO,EACvB,EAAG,CAACA,EAAK,OAAO,OAAO,CACvC,CAAa,EAEDC,IAEAL,EAAU,GAAKK,EAAM,EAAE,MACvBL,EAAU,GAAKK,EAAM,EAAE,MAEvBV,EAAcC,EAAKS,CAAK,GAExBH,GAAsBO,EAAAA,aAAaL,EAAK,YAAY,GACpDI,EAAaZ,EAAKQ,EAAK,YAAY,EAE1C,CAKDJ,EAAU,EAAIU,EAAcV,EAAU,CAAC,EACvCA,EAAU,EAAIU,EAAcV,EAAU,CAAC,CAC3C,CACA,SAASU,EAAcxB,EAAO,CAC1B,OAAI,OAAO,UAAUA,CAAK,GAEnBA,EAAQ,iBAAmBA,EAAQ,cAD/BA,EACwD,CACvE,CACA,SAASyB,EAAcjB,EAAMkB,EAAU,CACnClB,EAAK,IAAMA,EAAK,IAAMkB,EACtBlB,EAAK,IAAMA,EAAK,IAAMkB,CAC1B,CAMA,SAASC,EAAcnB,EAAMoB,EAAY,CAACC,EAAKC,EAAUC,CAAS,EAAG,CACjE,MAAMC,EAAaJ,EAAWG,CAAS,IAAM,OAAYH,EAAWG,CAAS,EAAI,GAC3E9B,EAAcgC,EAAAA,IAAIzB,EAAK,IAAKA,EAAK,IAAKwB,CAAU,EAEtDzB,EAAeC,EAAMoB,EAAWC,CAAG,EAAGD,EAAWE,CAAQ,EAAG7B,EAAa2B,EAAW,KAAK,CAC7F,CAIA,MAAMM,EAAQ,CAAC,IAAK,SAAU,SAAS,EACjCC,EAAQ,CAAC,IAAK,SAAU,SAAS,EAIvC,SAASb,EAAaZ,EAAK0B,EAAW,CAClCT,EAAcjB,EAAI,EAAG0B,EAAWF,CAAK,EACrCP,EAAcjB,EAAI,EAAG0B,EAAWD,CAAK,CACzC","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra847.cjs","sources":["../node_modules/framer-motion/dist/es/projection/geometry/copy.mjs"],"sourcesContent":["/**\n * Reset an axis to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisInto(axis, originAxis) {\n axis.min = originAxis.min;\n axis.max = originAxis.max;\n}\n/**\n * Reset a box to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyBoxInto(box, originBox) {\n copyAxisInto(box.x, originBox.x);\n copyAxisInto(box.y, originBox.y);\n}\n\nexport { copyAxisInto, copyBoxInto };\n"],"names":["copyAxisInto","axis","originAxis","copyBoxInto","box","originBox"],"mappings":"gFAKA,SAASA,EAAaC,EAAMC,EAAY,CACpCD,EAAK,IAAMC,EAAW,IACtBD,EAAK,IAAMC,EAAW,GAC1B,CAMA,SAASC,EAAYC,EAAKC,EAAW,CACjCL,EAAaI,EAAI,EAAGC,EAAU,CAAC,EAC/BL,EAAaI,EAAI,EAAGC,EAAU,CAAC,CACnC","x_google_ignoreList":[0]}
package/dist/lyra847.js CHANGED
@@ -1,55 +1,10 @@
1
- import { mix as x } from "./lyra744.js";
2
- import { hasTransform as d } from "./lyra853.js";
3
- function r(n, t, o) {
4
- const e = n - o, i = t * e;
5
- return o + i;
1
+ function c(n, t) {
2
+ n.min = t.min, n.max = t.max;
6
3
  }
7
- function y(n, t, o, e, i) {
8
- return i !== void 0 && (n = r(n, i, e)), r(n, o, e) + t;
9
- }
10
- function c(n, t = 0, o = 1, e, i) {
11
- n.min = y(n.min, t, o, e, i), n.max = y(n.max, t, o, e, i);
12
- }
13
- function g(n, { x: t, y: o }) {
14
- c(n.x, t.translate, t.scale, t.originPoint), c(n.y, o.translate, o.scale, o.originPoint);
15
- }
16
- function T(n, t, o, e = !1) {
17
- const i = o.length;
18
- if (!i)
19
- return;
20
- t.x = t.y = 1;
21
- let l, f;
22
- for (let s = 0; s < i; s++) {
23
- l = o[s], f = l.projectionDelta;
24
- const u = l.instance;
25
- u && u.style && u.style.display === "contents" || (e && l.options.layoutScroll && l.scroll && l !== l.root && p(n, {
26
- x: -l.scroll.offset.x,
27
- y: -l.scroll.offset.y
28
- }), f && (t.x *= f.x.scale, t.y *= f.y.scale, g(n, f)), e && d(l.latestValues) && p(n, l.latestValues));
29
- }
30
- t.x = m(t.x), t.y = m(t.y);
31
- }
32
- function m(n) {
33
- return Number.isInteger(n) || n > 1.0000000000001 || n < 0.999999999999 ? n : 1;
34
- }
35
- function V(n, t) {
36
- n.min = n.min + t, n.max = n.max + t;
37
- }
38
- function a(n, t, [o, e, i]) {
39
- const l = t[i] !== void 0 ? t[i] : 0.5, f = x(n.min, n.max, l);
40
- c(n, t[o], t[e], f, t.scale);
41
- }
42
- const D = ["x", "scaleX", "originX"], A = ["y", "scaleY", "originY"];
43
- function p(n, t) {
44
- a(n.x, t, D), a(n.y, t, A);
4
+ function m(n, t) {
5
+ c(n.x, t.x), c(n.y, t.y);
45
6
  }
46
7
  export {
47
- c as applyAxisDelta,
48
- g as applyBoxDelta,
49
- y as applyPointDelta,
50
- T as applyTreeDeltas,
51
- r as scalePoint,
52
- a as transformAxis,
53
- p as transformBox,
54
- V as translateAxis
8
+ c as copyAxisInto,
9
+ m as copyBoxInto
55
10
  };
@@ -1 +1 @@
1
- {"version":3,"file":"lyra847.js","sources":["../node_modules/framer-motion/dist/es/projection/geometry/delta-apply.mjs"],"sourcesContent":["import { mix } from '../../utils/mix.mjs';\nimport { hasTransform } from '../utils/has-transform.mjs';\n\n/**\n * Scales a point based on a factor and an originPoint\n */\nfunction scalePoint(point, scale, originPoint) {\n const distanceFromOrigin = point - originPoint;\n const scaled = scale * distanceFromOrigin;\n return originPoint + scaled;\n}\n/**\n * Applies a translate/scale delta to a point\n */\nfunction applyPointDelta(point, translate, scale, originPoint, boxScale) {\n if (boxScale !== undefined) {\n point = scalePoint(point, boxScale, originPoint);\n }\n return scalePoint(point, scale, originPoint) + translate;\n}\n/**\n * Applies a translate/scale delta to an axis\n */\nfunction applyAxisDelta(axis, translate = 0, scale = 1, originPoint, boxScale) {\n axis.min = applyPointDelta(axis.min, translate, scale, originPoint, boxScale);\n axis.max = applyPointDelta(axis.max, translate, scale, originPoint, boxScale);\n}\n/**\n * Applies a translate/scale delta to a box\n */\nfunction applyBoxDelta(box, { x, y }) {\n applyAxisDelta(box.x, x.translate, x.scale, x.originPoint);\n applyAxisDelta(box.y, y.translate, y.scale, y.originPoint);\n}\n/**\n * Apply a tree of deltas to a box. We do this to calculate the effect of all the transforms\n * in a tree upon our box before then calculating how to project it into our desired viewport-relative box\n *\n * This is the final nested loop within updateLayoutDelta for future refactoring\n */\nfunction applyTreeDeltas(box, treeScale, treePath, isSharedTransition = false) {\n const treeLength = treePath.length;\n if (!treeLength)\n return;\n // Reset the treeScale\n treeScale.x = treeScale.y = 1;\n let node;\n let delta;\n for (let i = 0; i < treeLength; i++) {\n node = treePath[i];\n delta = node.projectionDelta;\n /**\n * TODO: Prefer to remove this, but currently we have motion components with\n * display: contents in Framer.\n */\n const instance = node.instance;\n if (instance &&\n instance.style &&\n instance.style.display === \"contents\") {\n continue;\n }\n if (isSharedTransition &&\n node.options.layoutScroll &&\n node.scroll &&\n node !== node.root) {\n transformBox(box, {\n x: -node.scroll.offset.x,\n y: -node.scroll.offset.y,\n });\n }\n if (delta) {\n // Incoporate each ancestor's scale into a culmulative treeScale for this component\n treeScale.x *= delta.x.scale;\n treeScale.y *= delta.y.scale;\n // Apply each ancestor's calculated delta into this component's recorded layout box\n applyBoxDelta(box, delta);\n }\n if (isSharedTransition && hasTransform(node.latestValues)) {\n transformBox(box, node.latestValues);\n }\n }\n /**\n * Snap tree scale back to 1 if it's within a non-perceivable threshold.\n * This will help reduce useless scales getting rendered.\n */\n treeScale.x = snapToDefault(treeScale.x);\n treeScale.y = snapToDefault(treeScale.y);\n}\nfunction snapToDefault(scale) {\n if (Number.isInteger(scale))\n return scale;\n return scale > 1.0000000000001 || scale < 0.999999999999 ? scale : 1;\n}\nfunction translateAxis(axis, distance) {\n axis.min = axis.min + distance;\n axis.max = axis.max + distance;\n}\n/**\n * Apply a transform to an axis from the latest resolved motion values.\n * This function basically acts as a bridge between a flat motion value map\n * and applyAxisDelta\n */\nfunction transformAxis(axis, transforms, [key, scaleKey, originKey]) {\n const axisOrigin = transforms[originKey] !== undefined ? transforms[originKey] : 0.5;\n const originPoint = mix(axis.min, axis.max, axisOrigin);\n // Apply the axis delta to the final axis\n applyAxisDelta(axis, transforms[key], transforms[scaleKey], originPoint, transforms.scale);\n}\n/**\n * The names of the motion values we want to apply as translation, scale and origin.\n */\nconst xKeys = [\"x\", \"scaleX\", \"originX\"];\nconst yKeys = [\"y\", \"scaleY\", \"originY\"];\n/**\n * Apply a transform to a box from the latest resolved motion values.\n */\nfunction transformBox(box, transform) {\n transformAxis(box.x, transform, xKeys);\n transformAxis(box.y, transform, yKeys);\n}\n\nexport { applyAxisDelta, applyBoxDelta, applyPointDelta, applyTreeDeltas, scalePoint, transformAxis, transformBox, translateAxis };\n"],"names":["scalePoint","point","scale","originPoint","distanceFromOrigin","scaled","applyPointDelta","translate","boxScale","applyAxisDelta","axis","applyBoxDelta","box","x","y","applyTreeDeltas","treeScale","treePath","isSharedTransition","treeLength","node","delta","i","instance","transformBox","hasTransform","snapToDefault","translateAxis","distance","transformAxis","transforms","key","scaleKey","originKey","axisOrigin","mix","xKeys","yKeys","transform"],"mappings":";;AAMA,SAASA,EAAWC,GAAOC,GAAOC,GAAa;AAC3C,QAAMC,IAAqBH,IAAQE,GAC7BE,IAASH,IAAQE;AACvB,SAAOD,IAAcE;AACzB;AAIA,SAASC,EAAgBL,GAAOM,GAAWL,GAAOC,GAAaK,GAAU;AACrE,SAAIA,MAAa,WACbP,IAAQD,EAAWC,GAAOO,GAAUL,CAAW,IAE5CH,EAAWC,GAAOC,GAAOC,CAAW,IAAII;AACnD;AAIA,SAASE,EAAeC,GAAMH,IAAY,GAAGL,IAAQ,GAAGC,GAAaK,GAAU;AAC3E,EAAAE,EAAK,MAAMJ,EAAgBI,EAAK,KAAKH,GAAWL,GAAOC,GAAaK,CAAQ,GAC5EE,EAAK,MAAMJ,EAAgBI,EAAK,KAAKH,GAAWL,GAAOC,GAAaK,CAAQ;AAChF;AAIA,SAASG,EAAcC,GAAK,EAAE,GAAAC,GAAG,GAAAC,EAAC,GAAI;AAClC,EAAAL,EAAeG,EAAI,GAAGC,EAAE,WAAWA,EAAE,OAAOA,EAAE,WAAW,GACzDJ,EAAeG,EAAI,GAAGE,EAAE,WAAWA,EAAE,OAAOA,EAAE,WAAW;AAC7D;AAOA,SAASC,EAAgBH,GAAKI,GAAWC,GAAUC,IAAqB,IAAO;AAC3E,QAAMC,IAAaF,EAAS;AAC5B,MAAI,CAACE;AACD;AAEJ,EAAAH,EAAU,IAAIA,EAAU,IAAI;AAC5B,MAAII,GACAC;AACJ,WAASC,IAAI,GAAGA,IAAIH,GAAYG,KAAK;AACjC,IAAAF,IAAOH,EAASK,CAAC,GACjBD,IAAQD,EAAK;AAKb,UAAMG,IAAWH,EAAK;AACtB,IAAIG,KACAA,EAAS,SACTA,EAAS,MAAM,YAAY,eAG3BL,KACAE,EAAK,QAAQ,gBACbA,EAAK,UACLA,MAASA,EAAK,QACdI,EAAaZ,GAAK;AAAA,MACd,GAAG,CAACQ,EAAK,OAAO,OAAO;AAAA,MACvB,GAAG,CAACA,EAAK,OAAO,OAAO;AAAA,IACvC,CAAa,GAEDC,MAEAL,EAAU,KAAKK,EAAM,EAAE,OACvBL,EAAU,KAAKK,EAAM,EAAE,OAEvBV,EAAcC,GAAKS,CAAK,IAExBH,KAAsBO,EAAaL,EAAK,YAAY,KACpDI,EAAaZ,GAAKQ,EAAK,YAAY;AAAA,EAE1C;AAKD,EAAAJ,EAAU,IAAIU,EAAcV,EAAU,CAAC,GACvCA,EAAU,IAAIU,EAAcV,EAAU,CAAC;AAC3C;AACA,SAASU,EAAcxB,GAAO;AAC1B,SAAI,OAAO,UAAUA,CAAK,KAEnBA,IAAQ,mBAAmBA,IAAQ,iBAD/BA,IACwD;AACvE;AACA,SAASyB,EAAcjB,GAAMkB,GAAU;AACnC,EAAAlB,EAAK,MAAMA,EAAK,MAAMkB,GACtBlB,EAAK,MAAMA,EAAK,MAAMkB;AAC1B;AAMA,SAASC,EAAcnB,GAAMoB,GAAY,CAACC,GAAKC,GAAUC,CAAS,GAAG;AACjE,QAAMC,IAAaJ,EAAWG,CAAS,MAAM,SAAYH,EAAWG,CAAS,IAAI,KAC3E9B,IAAcgC,EAAIzB,EAAK,KAAKA,EAAK,KAAKwB,CAAU;AAEtD,EAAAzB,EAAeC,GAAMoB,EAAWC,CAAG,GAAGD,EAAWE,CAAQ,GAAG7B,GAAa2B,EAAW,KAAK;AAC7F;AAIA,MAAMM,IAAQ,CAAC,KAAK,UAAU,SAAS,GACjCC,IAAQ,CAAC,KAAK,UAAU,SAAS;AAIvC,SAASb,EAAaZ,GAAK0B,GAAW;AAClC,EAAAT,EAAcjB,EAAI,GAAG0B,GAAWF,CAAK,GACrCP,EAAcjB,EAAI,GAAG0B,GAAWD,CAAK;AACzC;","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"lyra847.js","sources":["../node_modules/framer-motion/dist/es/projection/geometry/copy.mjs"],"sourcesContent":["/**\n * Reset an axis to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyAxisInto(axis, originAxis) {\n axis.min = originAxis.min;\n axis.max = originAxis.max;\n}\n/**\n * Reset a box to the provided origin box.\n *\n * This is a mutative operation.\n */\nfunction copyBoxInto(box, originBox) {\n copyAxisInto(box.x, originBox.x);\n copyAxisInto(box.y, originBox.y);\n}\n\nexport { copyAxisInto, copyBoxInto };\n"],"names":["copyAxisInto","axis","originAxis","copyBoxInto","box","originBox"],"mappings":"AAKA,SAASA,EAAaC,GAAMC,GAAY;AACpC,EAAAD,EAAK,MAAMC,EAAW,KACtBD,EAAK,MAAMC,EAAW;AAC1B;AAMA,SAASC,EAAYC,GAAKC,GAAW;AACjC,EAAAL,EAAaI,EAAI,GAAGC,EAAU,CAAC,GAC/BL,EAAaI,EAAI,GAAGC,EAAU,CAAC;AACnC;","x_google_ignoreList":[0]}
package/dist/lyra848.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("./lyra744.cjs"),l=require("./lyra733.cjs"),c=require("./lyra847.cjs");function t(e,n,m,i,f){return e-=n,e=c.scalePoint(e,1/m,i),f!==void 0&&(e=c.scalePoint(e,1/f,i)),e}function o(e,n=0,m=1,i=.5,f,r=e,u=e){if(l.percent.test(n)&&(n=parseFloat(n),n=y.mix(u.min,u.max,n/100)-u.min),typeof n!="number")return;let d=y.mix(r.min,r.max,i);e===r&&(d-=n),e.min=t(e.min,n,m,d,f),e.max=t(e.max,n,m,d,f)}function v(e,n,[m,i,f],r,u){o(e,n[m],n[i],n[f],n.scale,r,u)}const P=["x","scaleX","originX"],T=["y","scaleY","originY"];function D(e,n,m,i){v(e.x,n,P,m?m.x:void 0,i?i.x:void 0),v(e.y,n,T,m?m.y:void 0,i?i.y:void 0)}exports.removeAxisDelta=o;exports.removeAxisTransforms=v;exports.removeBoxTransforms=D;exports.removePointDelta=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("./lyra744.cjs"),d=require("./lyra854.cjs");function u(n,t,e){const l=n-e,o=t*l;return e+o}function c(n,t,e,l,o){return o!==void 0&&(n=u(n,o,l)),u(n,e,l)+t}function a(n,t=0,e=1,l,o){n.min=c(n.min,t,e,l,o),n.max=c(n.max,t,e,l,o)}function x(n,{x:t,y:e}){a(n.x,t.translate,t.scale,t.originPoint),a(n.y,e.translate,e.scale,e.originPoint)}function g(n,t,e,l=!1){const o=e.length;if(!o)return;t.x=t.y=1;let i,s;for(let r=0;r<o;r++){i=e[r],s=i.projectionDelta;const f=i.instance;f&&f.style&&f.style.display==="contents"||(l&&i.options.layoutScroll&&i.scroll&&i!==i.root&&p(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,x(n,s)),l&&d.hasTransform(i.latestValues)&&p(n,i.latestValues))}t.x=m(t.x),t.y=m(t.y)}function m(n){return Number.isInteger(n)||n>1.0000000000001||n<.999999999999?n:1}function A(n,t){n.min=n.min+t,n.max=n.max+t}function y(n,t,[e,l,o]){const i=t[o]!==void 0?t[o]:.5,s=D.mix(n.min,n.max,i);a(n,t[e],t[l],s,t.scale)}const T=["x","scaleX","originX"],B=["y","scaleY","originY"];function p(n,t){y(n.x,t,T),y(n.y,t,B)}exports.applyAxisDelta=a;exports.applyBoxDelta=x;exports.applyPointDelta=c;exports.applyTreeDeltas=g;exports.scalePoint=u;exports.transformAxis=y;exports.transformBox=p;exports.translateAxis=A;