@new-black/lyra 0.0.6 → 0.0.8
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.
- package/README.md +22 -8
- package/dist/lyra10.cjs +1 -1
- package/dist/lyra10.js +1 -1
- package/dist/lyra100.cjs +1 -1
- package/dist/lyra100.js +19 -39
- package/dist/lyra101.cjs +1 -1
- package/dist/lyra101.js +10 -17
- package/dist/lyra102.cjs +1 -1
- package/dist/lyra102.js +15 -14
- package/dist/lyra103.cjs +1 -1
- package/dist/lyra103.js +5 -19
- package/dist/lyra104.cjs +1 -1
- package/dist/lyra104.js +7 -9
- package/dist/lyra105.cjs +1 -1
- package/dist/lyra105.js +10 -15
- package/dist/lyra106.cjs +1 -1
- package/dist/lyra106.js +9 -5
- package/dist/lyra107.cjs +1 -1
- package/dist/lyra107.js +37 -8
- package/dist/lyra108.cjs +1 -1
- package/dist/lyra108.js +3 -10
- package/dist/lyra109.cjs +1 -1
- package/dist/lyra109.js +4 -9
- package/dist/lyra11.cjs +1 -1
- package/dist/lyra11.js +2 -2
- package/dist/lyra110.cjs +1 -1
- package/dist/lyra110.js +4 -37
- package/dist/lyra111.cjs +1 -1
- package/dist/lyra111.js +10 -3
- package/dist/lyra112.cjs +1 -1
- package/dist/lyra112.js +7 -4
- package/dist/lyra113.cjs +1 -1
- package/dist/lyra113.js +4 -5
- package/dist/lyra114.cjs +1 -1
- package/dist/lyra114.js +2 -10
- package/dist/lyra115.cjs +1 -1
- package/dist/lyra115.js +17 -6
- package/dist/lyra116.cjs +1 -1
- package/dist/lyra116.js +14 -4
- package/dist/lyra117.cjs +1 -1
- package/dist/lyra117.js +33 -2
- package/dist/lyra118.cjs +1 -1
- package/dist/lyra118.js +29 -17
- package/dist/lyra119.cjs +1 -1
- package/dist/lyra119.js +38 -13
- package/dist/lyra12.cjs +1 -1
- package/dist/lyra12.js +1 -1
- package/dist/lyra120.cjs +1 -1
- package/dist/lyra120.js +9 -32
- package/dist/lyra121.cjs +1 -1
- package/dist/lyra121.js +3 -30
- package/dist/lyra122.cjs +1 -1
- package/dist/lyra122.js +47 -38
- package/dist/lyra123.cjs +1 -1
- package/dist/lyra123.js +7 -10
- package/dist/lyra124.cjs +1 -1
- package/dist/lyra124.js +3 -3
- package/dist/lyra125.cjs +1 -1
- package/dist/lyra125.js +27 -47
- package/dist/lyra126.cjs +1 -1
- package/dist/lyra126.js +16 -7
- package/dist/lyra127.cjs +1 -1
- package/dist/lyra127.js +11 -3
- package/dist/lyra128.cjs +1 -1
- package/dist/lyra128.js +8 -27
- package/dist/lyra129.cjs +1 -1
- package/dist/lyra129.js +2 -16
- package/dist/lyra13.cjs +1 -1
- package/dist/lyra13.js +1 -1
- package/dist/lyra130.cjs +1 -1
- package/dist/lyra130.js +3 -11
- package/dist/lyra131.cjs +1 -1
- package/dist/lyra131.js +3 -9
- package/dist/lyra132.cjs +1 -1
- package/dist/lyra132.js +2 -2
- package/dist/lyra133.cjs +1 -1
- package/dist/lyra133.js +258 -3
- package/dist/lyra134.cjs +1 -1
- package/dist/lyra134.js +25 -3
- package/dist/lyra135.cjs +1 -1
- package/dist/lyra135.js +16 -2
- package/dist/lyra136.cjs +1 -1
- package/dist/lyra136.js +3 -257
- package/dist/lyra137.cjs +1 -1
- package/dist/lyra137.js +10 -24
- package/dist/lyra138.cjs +1 -1
- package/dist/lyra138.js +3 -16
- package/dist/lyra139.cjs +1 -1
- package/dist/lyra139.js +26 -3
- package/dist/lyra14.cjs +1 -1
- package/dist/lyra14.js +4 -4
- package/dist/lyra140.cjs +1 -1
- package/dist/lyra140.js +200 -10
- package/dist/lyra141.cjs +1 -1
- package/dist/lyra141.js +5 -3
- package/dist/lyra142.cjs +1 -1
- package/dist/lyra142.js +21 -27
- package/dist/lyra143.cjs +1 -1
- package/dist/lyra143.js +9 -199
- package/dist/lyra144.cjs +1 -1
- package/dist/lyra144.js +3 -4
- package/dist/lyra145.cjs +1 -1
- package/dist/lyra145.js +26 -21
- package/dist/lyra146.cjs +1 -1
- package/dist/lyra146.js +3 -10
- package/dist/lyra147.cjs +1 -1
- package/dist/lyra147.js +4 -3
- package/dist/lyra148.cjs +1 -1
- package/dist/lyra148.js +25 -26
- package/dist/lyra149.cjs +1 -1
- package/dist/lyra149.js +11 -4
- package/dist/lyra15.cjs +1 -1
- package/dist/lyra15.js +2 -2
- package/dist/lyra150.cjs +1 -1
- package/dist/lyra150.js +2 -5
- package/dist/lyra151.cjs +1 -1
- package/dist/lyra151.js +6 -25
- package/dist/lyra152.cjs +1 -1
- package/dist/lyra152.js +19 -11
- package/dist/lyra153.cjs +1 -1
- package/dist/lyra153.js +119 -2
- package/dist/lyra154.cjs +1 -1
- package/dist/lyra154.js +27 -5
- package/dist/lyra155.cjs +1 -1
- package/dist/lyra155.js +61 -17
- package/dist/lyra156.cjs +1 -1
- package/dist/lyra156.js +30 -115
- package/dist/lyra157.cjs +1 -1
- package/dist/lyra157.js +13 -26
- package/dist/lyra158.cjs +1 -1
- package/dist/lyra158.js +36 -58
- package/dist/lyra159.cjs +1 -1
- package/dist/lyra159.js +2 -34
- package/dist/lyra16.cjs +1 -1
- package/dist/lyra16.js +1 -1
- package/dist/lyra160.cjs +1 -1
- package/dist/lyra160.js +3 -15
- package/dist/lyra161.cjs +1 -1
- package/dist/lyra161.js +10 -40
- package/dist/lyra162.cjs +1 -1
- package/dist/lyra162.js +10 -2
- package/dist/lyra163.cjs +1 -1
- package/dist/lyra163.js +9 -3
- package/dist/lyra164.cjs +1 -1
- package/dist/lyra164.js +16 -10
- package/dist/lyra165.cjs +1 -1
- package/dist/lyra165.js +9 -9
- package/dist/lyra166.cjs +1 -1
- package/dist/lyra166.js +14 -9
- package/dist/lyra167.cjs +1 -1
- package/dist/lyra167.js +62 -14
- package/dist/lyra168.cjs +1 -1
- package/dist/lyra168.js +4 -10
- package/dist/lyra169.cjs +1 -1
- package/dist/lyra169.js +2 -14
- package/dist/lyra17.cjs +1 -1
- package/dist/lyra17.js +1 -1
- package/dist/lyra170.cjs +1 -1
- package/dist/lyra170.js +14 -64
- package/dist/lyra171.cjs +1 -1
- package/dist/lyra171.js +16 -4
- package/dist/lyra172.cjs +1 -1
- package/dist/lyra172.js +4 -2
- package/dist/lyra173.cjs +1 -1
- package/dist/lyra173.js +2 -15
- package/dist/lyra174.cjs +1 -1
- package/dist/lyra174.js +7 -16
- package/dist/lyra175.cjs +1 -1
- package/dist/lyra175.js +53 -4
- package/dist/lyra176.cjs +1 -1
- package/dist/lyra176.js +17 -2
- package/dist/lyra177.cjs +1 -1
- package/dist/lyra177.js +8 -6
- package/dist/lyra178.cjs +1 -1
- package/dist/lyra178.js +2 -53
- package/dist/lyra179.cjs +1 -1
- package/dist/lyra179.js +6 -17
- package/dist/lyra18.cjs +1 -1
- package/dist/lyra18.js +2 -2
- package/dist/lyra180.cjs +1 -1
- package/dist/lyra180.js +3 -8
- package/dist/lyra181.cjs +1 -1
- package/dist/lyra181.js +2 -2
- package/dist/lyra182.cjs +1 -1
- package/dist/lyra182.js +2 -6
- package/dist/lyra183.cjs +1 -1
- package/dist/lyra183.js +5 -4
- package/dist/lyra184.cjs +1 -1
- package/dist/lyra184.js +3 -2
- package/dist/lyra185.cjs +1 -1
- package/dist/lyra185.js +7 -2
- package/dist/lyra186.cjs +1 -1
- package/dist/lyra186.js +16 -5
- package/dist/lyra187.cjs +1 -1
- package/dist/lyra187.js +2 -3
- package/dist/lyra188.cjs +1 -1
- package/dist/lyra188.js +2 -7
- package/dist/lyra189.cjs +1 -1
- package/dist/lyra189.js +6 -16
- package/dist/lyra19.cjs +1 -1
- package/dist/lyra19.js +2 -2
- package/dist/lyra190.cjs +1 -1
- package/dist/lyra190.js +5 -2
- package/dist/lyra191.cjs +1 -1
- package/dist/lyra191.js +9 -2
- package/dist/lyra192.cjs +1 -1
- package/dist/lyra192.js +7 -6
- package/dist/lyra193.cjs +1 -1
- package/dist/lyra193.js +22 -5
- package/dist/lyra194.cjs +1 -1
- package/dist/lyra194.js +32 -8
- package/dist/lyra195.cjs +1 -1
- package/dist/lyra195.js +35 -6
- package/dist/lyra196.cjs +1 -1
- package/dist/lyra196.js +29 -21
- package/dist/lyra197.cjs +1 -1
- package/dist/lyra197.js +22 -32
- package/dist/lyra198.cjs +1 -1
- package/dist/lyra198.js +48 -34
- package/dist/lyra199.cjs +1 -1
- package/dist/lyra199.js +2 -30
- package/dist/lyra2.cjs +1 -1
- package/dist/lyra2.js +12 -12
- package/dist/lyra20.cjs +1 -1
- package/dist/lyra20.js +3 -3
- package/dist/lyra200.cjs +1 -1
- package/dist/lyra200.js +2 -23
- package/dist/lyra201.cjs +1 -1
- package/dist/lyra201.js +7 -49
- package/dist/lyra202.cjs +1 -1
- package/dist/lyra202.js +6 -2
- package/dist/lyra203.cjs +1 -1
- package/dist/lyra203.js +33 -2
- package/dist/lyra204.cjs +1 -1
- package/dist/lyra204.js +17 -7
- package/dist/lyra205.cjs +1 -1
- package/dist/lyra205.js +47 -6
- package/dist/lyra206.cjs +1 -1
- package/dist/lyra206.js +3 -32
- package/dist/lyra207.cjs +1 -1
- package/dist/lyra207.js +5 -17
- package/dist/lyra208.cjs +1 -1
- package/dist/lyra208.js +28 -44
- package/dist/lyra209.cjs +1 -1
- package/dist/lyra209.js +5 -3
- package/dist/lyra210.cjs +1 -1
- package/dist/lyra210.js +3 -5
- package/dist/lyra211.cjs +1 -1
- package/dist/lyra211.js +10 -29
- package/dist/lyra212.cjs +1 -1
- package/dist/lyra212.js +2 -6
- package/dist/lyra213.cjs +1 -1
- package/dist/lyra213.js +97 -3
- package/dist/lyra214.cjs +1 -1
- package/dist/lyra214.js +22 -8
- package/dist/lyra215.cjs +1 -1
- package/dist/lyra215.js +39 -2
- package/dist/lyra218.cjs +1 -1
- package/dist/lyra218.js +1 -1
- package/dist/lyra219.cjs +1 -1
- package/dist/lyra219.js +4 -4
- package/dist/lyra220.cjs +1 -1
- package/dist/lyra220.js +6 -6
- package/dist/lyra221.cjs +1 -1
- package/dist/lyra221.js +3 -3
- package/dist/lyra222.cjs +1 -1
- package/dist/lyra222.js +4 -4
- package/dist/lyra223.cjs +1 -1
- package/dist/lyra223.js +2 -2
- package/dist/lyra224.cjs +1 -1
- package/dist/lyra224.js +8 -8
- package/dist/lyra225.cjs +1 -1
- package/dist/lyra225.js +1 -1
- package/dist/lyra226.cjs +1 -1
- package/dist/lyra226.js +2 -2
- package/dist/lyra227.cjs +1 -1
- package/dist/lyra227.js +4 -4
- package/dist/lyra228.cjs +1 -1
- package/dist/lyra228.js +8 -8
- package/dist/lyra229.cjs +1 -1
- package/dist/lyra229.js +2 -2
- package/dist/lyra230.cjs +1 -1
- package/dist/lyra230.js +4 -4
- package/dist/lyra231.cjs +1 -1
- package/dist/lyra231.js +7 -7
- package/dist/lyra234.cjs +1 -1
- package/dist/lyra234.js +4 -4
- package/dist/lyra235.cjs +1 -1
- package/dist/lyra235.js +2 -2
- package/dist/lyra236.cjs +1 -1
- package/dist/lyra236.js +3 -583
- package/dist/lyra237.cjs +1 -1
- package/dist/lyra237.js +584 -11
- package/dist/lyra238.cjs +1 -1
- package/dist/lyra238.js +11 -4
- package/dist/lyra24.cjs +1 -1
- package/dist/lyra24.js +1 -1
- package/dist/lyra240.cjs +1 -1
- package/dist/lyra240.js +7 -7
- package/dist/lyra243.cjs +1 -1
- package/dist/lyra243.js +1 -1
- package/dist/lyra246.cjs +1 -1
- package/dist/lyra246.js +2 -2
- package/dist/lyra248.cjs +1 -1
- package/dist/lyra248.js +5 -5
- package/dist/lyra25.cjs +1 -1
- package/dist/lyra25.js +1 -1
- package/dist/lyra250.cjs +1 -1
- package/dist/lyra250.js +2 -2
- package/dist/lyra251.cjs +1 -1
- package/dist/lyra251.js +2 -2
- package/dist/lyra252.cjs +1 -1
- package/dist/lyra252.js +3 -3
- package/dist/lyra254.cjs +1 -1
- package/dist/lyra254.js +2 -28
- package/dist/lyra255.cjs +1 -1
- package/dist/lyra255.js +17 -23
- package/dist/lyra256.cjs +1 -1
- package/dist/lyra256.js +229 -17
- package/dist/lyra257.cjs +1 -1
- package/dist/lyra257.js +80 -8
- package/dist/lyra258.cjs +1 -1
- package/dist/lyra258.js +13 -13
- package/dist/lyra259.cjs +1 -1
- package/dist/lyra259.js +19 -6
- package/dist/lyra26.cjs +1 -1
- package/dist/lyra26.js +1 -1
- package/dist/lyra260.cjs +1 -1
- package/dist/lyra260.js +13 -23
- package/dist/lyra261.cjs +1 -1
- package/dist/lyra261.js +28 -2
- package/dist/lyra262.cjs +1 -1
- package/dist/lyra262.js +24 -8
- package/dist/lyra263.cjs +1 -1
- package/dist/lyra263.js +20 -7
- package/dist/lyra264.cjs +1 -1
- package/dist/lyra264.js +9 -2
- package/dist/lyra265.cjs +1 -1
- package/dist/lyra265.js +12 -18
- package/dist/lyra266.cjs +1 -1
- package/dist/lyra266.js +6 -232
- package/dist/lyra267.cjs +1 -1
- package/dist/lyra267.js +22 -79
- package/dist/lyra268.cjs +1 -1
- package/dist/lyra268.js +2 -13
- package/dist/lyra269.cjs +1 -1
- package/dist/lyra269.js +8 -18
- package/dist/lyra270.cjs +1 -1
- package/dist/lyra270.js +7 -14
- package/dist/lyra271.cjs +1 -1
- package/dist/lyra271.js +4 -4
- package/dist/lyra273.cjs +1 -1
- package/dist/lyra273.js +1 -1
- package/dist/lyra274.cjs +1 -1
- package/dist/lyra274.js +2 -2
- package/dist/lyra276.cjs +1 -1
- package/dist/lyra276.js +3 -3
- package/dist/lyra277.cjs +1 -1
- package/dist/lyra277.js +2 -2
- package/dist/lyra278.cjs +1 -1
- package/dist/lyra278.js +1 -1
- package/dist/lyra279.cjs +1 -1
- package/dist/lyra279.js +1 -1
- package/dist/lyra280.cjs +1 -1
- package/dist/lyra280.js +1 -1
- package/dist/lyra282.cjs +1 -1
- package/dist/lyra282.js +5 -5
- package/dist/lyra284.cjs +1 -1
- package/dist/lyra284.js +1 -1
- package/dist/lyra285.cjs +1 -1
- package/dist/lyra285.js +2 -2
- package/dist/lyra286.cjs +1 -1
- package/dist/lyra286.js +1 -1
- package/dist/lyra287.cjs +1 -1
- package/dist/lyra287.js +1 -1
- package/dist/lyra293.cjs +1 -1
- package/dist/lyra293.js +2 -2
- package/dist/lyra296.cjs +1 -1
- package/dist/lyra296.js +4 -69
- package/dist/lyra297.cjs +1 -1
- package/dist/lyra297.js +69 -4
- package/dist/lyra298.cjs +1 -1
- package/dist/lyra298.js +64 -5
- package/dist/lyra299.cjs +1 -1
- package/dist/lyra299.js +21 -7
- package/dist/lyra3.cjs +1 -1
- package/dist/lyra3.js +2 -2
- package/dist/lyra30.cjs +1 -1
- package/dist/lyra30.js +2 -2
- package/dist/lyra300.cjs +1 -1
- package/dist/lyra300.js +5 -15
- package/dist/lyra301.cjs +1 -1
- package/dist/lyra301.js +7 -63
- package/dist/lyra302.cjs +1 -1
- package/dist/lyra302.js +15 -22
- package/dist/lyra307.cjs +1 -1
- package/dist/lyra307.js +1 -1
- package/dist/lyra308.cjs +1 -1
- package/dist/lyra308.js +1 -1
- package/dist/lyra309.cjs +1 -1
- package/dist/lyra309.js +2 -2
- package/dist/lyra31.cjs +1 -1
- package/dist/lyra31.js +4 -446
- package/dist/lyra310.cjs +1 -1
- package/dist/lyra310.js +5 -5
- package/dist/lyra32.cjs +1 -1
- package/dist/lyra32.js +39 -82
- package/dist/lyra33.cjs +1 -1
- package/dist/lyra33.js +2 -43
- package/dist/lyra34.cjs +1 -1
- package/dist/lyra34.js +467 -632
- package/dist/lyra35.cjs +1 -1
- package/dist/lyra35.js +444 -19
- package/dist/lyra36.cjs +1 -1
- package/dist/lyra36.js +2 -39
- package/dist/lyra37.cjs +1 -1
- package/dist/lyra37.js +2 -12
- package/dist/lyra38.cjs +1 -1
- package/dist/lyra38.js +29 -481
- package/dist/lyra39.cjs +1 -1
- package/dist/lyra39.js +14 -4
- package/dist/lyra4.cjs +1 -1
- package/dist/lyra4.js +1 -1
- package/dist/lyra40.cjs +1 -1
- package/dist/lyra40.js +2 -66
- package/dist/lyra41.cjs +1 -1
- package/dist/lyra41.js +2 -14
- package/dist/lyra42.cjs +1 -1
- package/dist/lyra42.js +3 -235
- package/dist/lyra43.cjs +1 -1
- package/dist/lyra43.js +82 -2
- package/dist/lyra44.cjs +1 -1
- package/dist/lyra44.js +43 -2
- package/dist/lyra45.cjs +1 -1
- package/dist/lyra45.js +657 -2
- package/dist/lyra46.cjs +1 -1
- package/dist/lyra46.js +19 -490
- package/dist/lyra47.cjs +1 -1
- package/dist/lyra47.js +12 -2
- package/dist/lyra48.cjs +1 -1
- package/dist/lyra48.js +481 -29
- package/dist/lyra49.cjs +1 -1
- package/dist/lyra49.js +66 -2
- package/dist/lyra5.cjs +1 -1
- package/dist/lyra5.js +2 -2
- package/dist/lyra50.cjs +1 -1
- package/dist/lyra50.js +236 -2
- package/dist/lyra51.cjs +1 -1
- package/dist/lyra51.js +2 -13
- package/dist/lyra52.cjs +1 -1
- package/dist/lyra52.js +10 -27
- package/dist/lyra53.cjs +1 -1
- package/dist/lyra53.js +30 -4
- package/dist/lyra57.cjs +1 -1
- package/dist/lyra57.js +2 -2
- package/dist/lyra59.cjs +1 -1
- package/dist/lyra59.js +3 -3
- package/dist/lyra6.cjs +1 -1
- package/dist/lyra6.js +3 -3
- package/dist/lyra61.cjs +1 -1
- package/dist/lyra61.js +59 -19
- package/dist/lyra62.cjs +1 -1
- package/dist/lyra62.js +38 -57
- package/dist/lyra63.cjs +1 -1
- package/dist/lyra63.js +816 -33
- package/dist/lyra64.cjs +1 -1
- package/dist/lyra64.js +40 -815
- package/dist/lyra65.cjs +1 -1
- package/dist/lyra65.js +34 -45
- package/dist/lyra66.cjs +1 -1
- package/dist/lyra66.js +29 -35
- package/dist/lyra67.cjs +1 -1
- package/dist/lyra67.js +33 -31
- package/dist/lyra68.cjs +1 -1
- package/dist/lyra68.js +440 -29
- package/dist/lyra69.cjs +1 -1
- package/dist/lyra69.js +48 -439
- package/dist/lyra7.cjs +1 -1
- package/dist/lyra7.js +2 -2
- package/dist/lyra70.cjs +1 -1
- package/dist/lyra70.js +62 -48
- package/dist/lyra71.cjs +1 -1
- package/dist/lyra71.js +18 -66
- package/dist/lyra74.cjs +1 -1
- package/dist/lyra74.js +27 -20
- package/dist/lyra75.cjs +1 -1
- package/dist/lyra75.js +2 -19
- package/dist/lyra76.cjs +1 -1
- package/dist/lyra76.js +3 -28
- package/dist/lyra77.cjs +1 -1
- package/dist/lyra77.js +27 -2
- package/dist/lyra78.cjs +1 -1
- package/dist/lyra78.js +38 -17
- package/dist/lyra79.cjs +1 -1
- package/dist/lyra79.js +18 -990
- package/dist/lyra8.cjs +1 -1
- package/dist/lyra8.js +5 -5
- package/dist/lyra80.cjs +1 -1
- package/dist/lyra80.js +19 -2
- package/dist/lyra81.cjs +1 -1
- package/dist/lyra81.js +17 -3
- package/dist/lyra82.cjs +1 -1
- package/dist/lyra82.js +991 -27
- package/dist/lyra83.cjs +1 -1
- package/dist/lyra83.js +2 -36
- package/dist/lyra84.cjs +1 -1
- package/dist/lyra84.js +122 -10
- package/dist/lyra85.cjs +1 -1
- package/dist/lyra85.js +58 -21
- package/dist/lyra86.cjs +1 -1
- package/dist/lyra86.js +3 -11
- package/dist/lyra87.cjs +1 -1
- package/dist/lyra87.js +2 -39
- package/dist/lyra88.cjs +1 -1
- package/dist/lyra88.js +322 -1993
- package/dist/lyra89.cjs +1 -1
- package/dist/lyra89.js +12 -6
- package/dist/lyra9.cjs +1 -1
- package/dist/lyra9.js +3 -3
- package/dist/lyra90.cjs +1 -1
- package/dist/lyra90.js +24 -71
- package/dist/lyra91.cjs +1 -1
- package/dist/lyra91.js +10 -124
- package/dist/lyra92.cjs +1 -1
- package/dist/lyra92.js +38 -61
- package/dist/lyra93.cjs +1 -1
- package/dist/lyra93.js +1993 -322
- package/dist/lyra94.cjs +1 -1
- package/dist/lyra94.js +7 -2
- package/dist/lyra95.cjs +1 -1
- package/dist/lyra95.js +72 -3
- package/dist/lyra98.cjs +1 -1
- package/dist/lyra98.js +15 -95
- package/dist/lyra99.cjs +1 -1
- package/dist/lyra99.js +11 -23
- package/dist/provider.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/lyra136.js
CHANGED
|
@@ -1,260 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { createBox as P } from "./lyra138.js";
|
|
4
|
-
import { isRefObject as T } from "./lyra139.js";
|
|
5
|
-
import { initPrefersReducedMotion as y } from "./lyra140.js";
|
|
6
|
-
import { hasReducedMotionListener as F, prefersReducedMotion as R } from "./lyra141.js";
|
|
7
|
-
import { SubscriptionManager as j } from "./lyra142.js";
|
|
8
|
-
import { motionValue as w } from "./lyra143.js";
|
|
9
|
-
import { isWillChangeMotionValue as N } from "./lyra144.js";
|
|
10
|
-
import { isMotionValue as m } from "./lyra117.js";
|
|
11
|
-
import { transformProps as E } from "./lyra145.js";
|
|
12
|
-
import { isControllingVariants as x, isVariantNode as B } from "./lyra146.js";
|
|
13
|
-
import { isVariantLabel as L } from "./lyra147.js";
|
|
14
|
-
import { updateMotionValuesFromProps as I } from "./lyra148.js";
|
|
15
|
-
import { resolveVariantFromProps as O } from "./lyra149.js";
|
|
16
|
-
import { warnOnce as A } from "./lyra150.js";
|
|
17
|
-
import { featureDefinitions as g } from "./lyra151.js";
|
|
18
|
-
import { variantProps as M } from "./lyra152.js";
|
|
19
|
-
import { visualElementStore as V } from "./lyra153.js";
|
|
20
|
-
const C = Object.keys(g), U = C.length, v = [
|
|
21
|
-
"AnimationStart",
|
|
22
|
-
"AnimationComplete",
|
|
23
|
-
"Update",
|
|
24
|
-
"BeforeLayoutMeasure",
|
|
25
|
-
"LayoutMeasure",
|
|
26
|
-
"LayoutAnimationStart",
|
|
27
|
-
"LayoutAnimationComplete"
|
|
28
|
-
], D = M.length;
|
|
29
|
-
class ot {
|
|
30
|
-
constructor({ parent: t, props: e, presenceContext: i, reducedMotionConfig: s, visualState: r }, u = {}) {
|
|
31
|
-
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.values = /* @__PURE__ */ new Map(), this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
32
|
-
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
33
|
-
}, this.scheduleRender = () => c.render(this.render, !1, !0);
|
|
34
|
-
const { latestValues: h, renderState: n } = r;
|
|
35
|
-
this.latestValues = h, this.baseTarget = { ...h }, this.initialValues = e.initial ? { ...h } : {}, this.renderState = n, this.parent = t, this.props = e, this.presenceContext = i, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = s, this.options = u, this.isControllingVariants = x(e), this.isVariantNode = B(e), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
36
|
-
const { willChange: o, ...p } = this.scrapeMotionValuesFromProps(e, {});
|
|
37
|
-
for (const a in p) {
|
|
38
|
-
const l = p[a];
|
|
39
|
-
h[a] !== void 0 && m(l) && (l.set(h[a], !1), N(o) && o.add(a));
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* This method takes React props and returns found MotionValues. For example, HTML
|
|
44
|
-
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
45
|
-
*
|
|
46
|
-
* This isn't an abstract method as it needs calling in the constructor, but it is
|
|
47
|
-
* intended to be one.
|
|
48
|
-
*/
|
|
49
|
-
scrapeMotionValuesFromProps(t, e) {
|
|
50
|
-
return {};
|
|
51
|
-
}
|
|
52
|
-
mount(t) {
|
|
53
|
-
this.current = t, V.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, i) => this.bindToMotionValue(i, e)), F.current || y(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : R.current, process.env.NODE_ENV !== "production" && A(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
54
|
-
}
|
|
55
|
-
unmount() {
|
|
56
|
-
V.delete(this.current), this.projection && this.projection.unmount(), f(this.notifyUpdate), f(this.render), this.valueSubscriptions.forEach((t) => t()), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
57
|
-
for (const t in this.events)
|
|
58
|
-
this.events[t].clear();
|
|
59
|
-
for (const t in this.features)
|
|
60
|
-
this.features[t].unmount();
|
|
61
|
-
this.current = null;
|
|
62
|
-
}
|
|
63
|
-
bindToMotionValue(t, e) {
|
|
64
|
-
const i = E.has(t), s = e.on("change", (u) => {
|
|
65
|
-
this.latestValues[t] = u, this.props.onUpdate && c.update(this.notifyUpdate, !1, !0), i && this.projection && (this.projection.isTransformDirty = !0);
|
|
66
|
-
}), r = e.on("renderRequest", this.scheduleRender);
|
|
67
|
-
this.valueSubscriptions.set(t, () => {
|
|
68
|
-
s(), r();
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
sortNodePosition(t) {
|
|
72
|
-
return !this.current || !this.sortInstanceNodePosition || this.type !== t.type ? 0 : this.sortInstanceNodePosition(this.current, t.current);
|
|
73
|
-
}
|
|
74
|
-
loadFeatures({ children: t, ...e }, i, s, r) {
|
|
75
|
-
let u, h;
|
|
76
|
-
if (process.env.NODE_ENV !== "production" && s && i) {
|
|
77
|
-
const n = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
78
|
-
e.ignoreStrict ? b(!1, n) : S(!1, n);
|
|
79
|
-
}
|
|
80
|
-
for (let n = 0; n < U; n++) {
|
|
81
|
-
const o = C[n], { isEnabled: p, Feature: a, ProjectionNode: l, MeasureLayout: d } = g[o];
|
|
82
|
-
l && (u = l), p(e) && (!this.features[o] && a && (this.features[o] = new a(this)), d && (h = d));
|
|
83
|
-
}
|
|
84
|
-
if (!this.projection && u) {
|
|
85
|
-
this.projection = new u(this.latestValues, this.parent && this.parent.projection);
|
|
86
|
-
const { layoutId: n, layout: o, drag: p, dragConstraints: a, layoutScroll: l, layoutRoot: d } = e;
|
|
87
|
-
this.projection.setOptions({
|
|
88
|
-
layoutId: n,
|
|
89
|
-
layout: o,
|
|
90
|
-
alwaysMeasureLayout: !!p || a && T(a),
|
|
91
|
-
visualElement: this,
|
|
92
|
-
scheduleRender: () => this.scheduleRender(),
|
|
93
|
-
/**
|
|
94
|
-
* TODO: Update options in an effect. This could be tricky as it'll be too late
|
|
95
|
-
* to update by the time layout animations run.
|
|
96
|
-
* We also need to fix this safeToRemove by linking it up to the one returned by usePresence,
|
|
97
|
-
* ensuring it gets called if there's no potential layout animations.
|
|
98
|
-
*
|
|
99
|
-
*/
|
|
100
|
-
animationType: typeof o == "string" ? o : "both",
|
|
101
|
-
initialPromotionConfig: r,
|
|
102
|
-
layoutScroll: l,
|
|
103
|
-
layoutRoot: d
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
return h;
|
|
107
|
-
}
|
|
108
|
-
updateFeatures() {
|
|
109
|
-
for (const t in this.features) {
|
|
110
|
-
const e = this.features[t];
|
|
111
|
-
e.isMounted ? e.update() : (e.mount(), e.isMounted = !0);
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
triggerBuild() {
|
|
115
|
-
this.build(this.renderState, this.latestValues, this.options, this.props);
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Measure the current viewport box with or without transforms.
|
|
119
|
-
* Only measures axis-aligned boxes, rotate and skew must be manually
|
|
120
|
-
* removed with a re-render to work.
|
|
121
|
-
*/
|
|
122
|
-
measureViewportBox() {
|
|
123
|
-
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : P();
|
|
124
|
-
}
|
|
125
|
-
getStaticValue(t) {
|
|
126
|
-
return this.latestValues[t];
|
|
127
|
-
}
|
|
128
|
-
setStaticValue(t, e) {
|
|
129
|
-
this.latestValues[t] = e;
|
|
130
|
-
}
|
|
131
|
-
/**
|
|
132
|
-
* Make a target animatable by Popmotion. For instance, if we're
|
|
133
|
-
* trying to animate width from 100px to 100vw we need to measure 100vw
|
|
134
|
-
* in pixels to determine what we really need to animate to. This is also
|
|
135
|
-
* pluggable to support Framer's custom value types like Color,
|
|
136
|
-
* and CSS variables.
|
|
137
|
-
*/
|
|
138
|
-
makeTargetAnimatable(t, e = !0) {
|
|
139
|
-
return this.makeTargetAnimatableFromInstance(t, this.props, e);
|
|
140
|
-
}
|
|
141
|
-
/**
|
|
142
|
-
* Update the provided props. Ensure any newly-added motion values are
|
|
143
|
-
* added to our map, old ones removed, and listeners updated.
|
|
144
|
-
*/
|
|
145
|
-
update(t, e) {
|
|
146
|
-
(t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = e;
|
|
147
|
-
for (let i = 0; i < v.length; i++) {
|
|
148
|
-
const s = v[i];
|
|
149
|
-
this.propEventSubscriptions[s] && (this.propEventSubscriptions[s](), delete this.propEventSubscriptions[s]);
|
|
150
|
-
const r = t["on" + s];
|
|
151
|
-
r && (this.propEventSubscriptions[s] = this.on(s, r));
|
|
152
|
-
}
|
|
153
|
-
this.prevMotionValues = I(this, this.scrapeMotionValuesFromProps(t, this.prevProps), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
154
|
-
}
|
|
155
|
-
getProps() {
|
|
156
|
-
return this.props;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Returns the variant definition with a given name.
|
|
160
|
-
*/
|
|
161
|
-
getVariant(t) {
|
|
162
|
-
return this.props.variants ? this.props.variants[t] : void 0;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Returns the defined default transition on this component.
|
|
166
|
-
*/
|
|
167
|
-
getDefaultTransition() {
|
|
168
|
-
return this.props.transition;
|
|
169
|
-
}
|
|
170
|
-
getTransformPagePoint() {
|
|
171
|
-
return this.props.transformPagePoint;
|
|
172
|
-
}
|
|
173
|
-
getClosestVariantNode() {
|
|
174
|
-
return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
|
|
175
|
-
}
|
|
176
|
-
getVariantContext(t = !1) {
|
|
177
|
-
if (t)
|
|
178
|
-
return this.parent ? this.parent.getVariantContext() : void 0;
|
|
179
|
-
if (!this.isControllingVariants) {
|
|
180
|
-
const i = this.parent ? this.parent.getVariantContext() || {} : {};
|
|
181
|
-
return this.props.initial !== void 0 && (i.initial = this.props.initial), i;
|
|
182
|
-
}
|
|
183
|
-
const e = {};
|
|
184
|
-
for (let i = 0; i < D; i++) {
|
|
185
|
-
const s = M[i], r = this.props[s];
|
|
186
|
-
(L(r) || r === !1) && (e[s] = r);
|
|
187
|
-
}
|
|
188
|
-
return e;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Add a child visual element to our set of children.
|
|
192
|
-
*/
|
|
193
|
-
addVariantChild(t) {
|
|
194
|
-
const e = this.getClosestVariantNode();
|
|
195
|
-
if (e)
|
|
196
|
-
return e.variantChildren && e.variantChildren.add(t), () => e.variantChildren.delete(t);
|
|
197
|
-
}
|
|
198
|
-
/**
|
|
199
|
-
* Add a motion value and bind it to this visual element.
|
|
200
|
-
*/
|
|
201
|
-
addValue(t, e) {
|
|
202
|
-
e !== this.values.get(t) && (this.removeValue(t), this.bindToMotionValue(t, e)), this.values.set(t, e), this.latestValues[t] = e.get();
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Remove a motion value and unbind any active subscriptions.
|
|
206
|
-
*/
|
|
207
|
-
removeValue(t) {
|
|
208
|
-
this.values.delete(t);
|
|
209
|
-
const e = this.valueSubscriptions.get(t);
|
|
210
|
-
e && (e(), this.valueSubscriptions.delete(t)), delete this.latestValues[t], this.removeValueFromRenderState(t, this.renderState);
|
|
211
|
-
}
|
|
212
|
-
/**
|
|
213
|
-
* Check whether we have a motion value for this key
|
|
214
|
-
*/
|
|
215
|
-
hasValue(t) {
|
|
216
|
-
return this.values.has(t);
|
|
217
|
-
}
|
|
218
|
-
getValue(t, e) {
|
|
219
|
-
if (this.props.values && this.props.values[t])
|
|
220
|
-
return this.props.values[t];
|
|
221
|
-
let i = this.values.get(t);
|
|
222
|
-
return i === void 0 && e !== void 0 && (i = w(e, { owner: this }), this.addValue(t, i)), i;
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* If we're trying to animate to a previously unencountered value,
|
|
226
|
-
* we need to check for it in our state and as a last resort read it
|
|
227
|
-
* directly from the instance (which might have performance implications).
|
|
228
|
-
*/
|
|
229
|
-
readValue(t) {
|
|
230
|
-
return this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : this.readValueFromInstance(this.current, t, this.options);
|
|
231
|
-
}
|
|
232
|
-
/**
|
|
233
|
-
* Set the base target to later animate back to. This is currently
|
|
234
|
-
* only hydrated on creation and when we first read a value.
|
|
235
|
-
*/
|
|
236
|
-
setBaseTarget(t, e) {
|
|
237
|
-
this.baseTarget[t] = e;
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* Find the base target for a value thats been removed from all animation
|
|
241
|
-
* props.
|
|
242
|
-
*/
|
|
243
|
-
getBaseTarget(t) {
|
|
244
|
-
var e;
|
|
245
|
-
const { initial: i } = this.props, s = typeof i == "string" || typeof i == "object" ? (e = O(this.props, i)) === null || e === void 0 ? void 0 : e[t] : void 0;
|
|
246
|
-
if (i && s !== void 0)
|
|
247
|
-
return s;
|
|
248
|
-
const r = this.getBaseTargetFromProps(this.props, t);
|
|
249
|
-
return r !== void 0 && !m(r) ? r : this.initialValues[t] !== void 0 && s === void 0 ? void 0 : this.baseTarget[t];
|
|
250
|
-
}
|
|
251
|
-
on(t, e) {
|
|
252
|
-
return this.events[t] || (this.events[t] = new j()), this.events[t].add(e);
|
|
253
|
-
}
|
|
254
|
-
notify(t, ...e) {
|
|
255
|
-
this.events[t] && this.events[t].notify(...e);
|
|
256
|
-
}
|
|
1
|
+
function e(t) {
|
|
2
|
+
return typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
257
3
|
}
|
|
258
4
|
export {
|
|
259
|
-
|
|
5
|
+
e as isRefObject
|
|
260
6
|
};
|
package/dist/lyra137.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./lyra129.cjs"),e=require("./lyra138.cjs");function o(){if(e.hasReducedMotionListener.current=!0,!!i.isBrowser)if(window.matchMedia){const r=window.matchMedia("(prefers-reduced-motion)"),t=()=>e.prefersReducedMotion.current=r.matches;r.addListener(t),t()}else e.prefersReducedMotion.current=!1}exports.initPrefersReducedMotion=o;
|
package/dist/lyra137.js
CHANGED
|
@@ -1,27 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"postRender"
|
|
11
|
-
], o = a.reduce((e, t) => (e[t] = f(() => s = !0), e), {}), d = (e) => o[e].process(r), c = (e) => {
|
|
12
|
-
s = !1, r.delta = n ? 1e3 / 60 : Math.max(Math.min(e - r.timestamp, l), 1), r.timestamp = e, r.isProcessing = !0, a.forEach(d), r.isProcessing = !1, s && (n = !1, requestAnimationFrame(c));
|
|
13
|
-
}, h = () => {
|
|
14
|
-
s = !0, n = !0, r.isProcessing || requestAnimationFrame(c);
|
|
15
|
-
}, E = a.reduce((e, t) => {
|
|
16
|
-
const i = o[t];
|
|
17
|
-
return e[t] = (m, p = !1, u = !1) => (s || h(), i.schedule(m, p, u)), e;
|
|
18
|
-
}, {});
|
|
19
|
-
function g(e) {
|
|
20
|
-
a.forEach((t) => o[t].cancel(e));
|
|
1
|
+
import { isBrowser as o } from "./lyra129.js";
|
|
2
|
+
import { hasReducedMotionListener as i, prefersReducedMotion as t } from "./lyra138.js";
|
|
3
|
+
function c() {
|
|
4
|
+
if (i.current = !0, !!o)
|
|
5
|
+
if (window.matchMedia) {
|
|
6
|
+
const e = window.matchMedia("(prefers-reduced-motion)"), r = () => t.current = e.matches;
|
|
7
|
+
e.addListener(r), r();
|
|
8
|
+
} else
|
|
9
|
+
t.current = !1;
|
|
21
10
|
}
|
|
22
11
|
export {
|
|
23
|
-
|
|
24
|
-
E as frame,
|
|
25
|
-
o as steps,
|
|
26
|
-
a as stepsOrder
|
|
12
|
+
c as initPrefersReducedMotion
|
|
27
13
|
};
|
package/dist/lyra138.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={current:null},t={current:!1};exports.hasReducedMotionListener=t;exports.prefersReducedMotion=e;
|
package/dist/lyra138.js
CHANGED
|
@@ -1,18 +1,5 @@
|
|
|
1
|
-
const
|
|
2
|
-
translate: 0,
|
|
3
|
-
scale: 1,
|
|
4
|
-
origin: 0,
|
|
5
|
-
originPoint: 0
|
|
6
|
-
}), a = () => ({
|
|
7
|
-
x: t(),
|
|
8
|
-
y: t()
|
|
9
|
-
}), e = () => ({ min: 0, max: 0 }), c = () => ({
|
|
10
|
-
x: e(),
|
|
11
|
-
y: e()
|
|
12
|
-
});
|
|
1
|
+
const e = { current: null }, n = { current: !1 };
|
|
13
2
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
c as createBox,
|
|
17
|
-
a as createDelta
|
|
3
|
+
n as hasReducedMotionListener,
|
|
4
|
+
e as prefersReducedMotion
|
|
18
5
|
};
|
package/dist/lyra139.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lyra177.cjs");class u{constructor(){this.subscriptions=[]}add(s){return o.addUniqueItem(this.subscriptions,s),()=>o.removeItem(this.subscriptions,s)}notify(s,r,e){const t=this.subscriptions.length;if(t)if(t===1)this.subscriptions[0](s,r,e);else for(let i=0;i<t;i++){const n=this.subscriptions[i];n&&n(s,r,e)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}exports.SubscriptionManager=u;
|
package/dist/lyra139.js
CHANGED
|
@@ -1,6 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { addUniqueItem as e, removeItem as u } from "./lyra177.js";
|
|
2
|
+
class h {
|
|
3
|
+
constructor() {
|
|
4
|
+
this.subscriptions = [];
|
|
5
|
+
}
|
|
6
|
+
add(s) {
|
|
7
|
+
return e(this.subscriptions, s), () => u(this.subscriptions, s);
|
|
8
|
+
}
|
|
9
|
+
notify(s, r, n) {
|
|
10
|
+
const i = this.subscriptions.length;
|
|
11
|
+
if (i)
|
|
12
|
+
if (i === 1)
|
|
13
|
+
this.subscriptions[0](s, r, n);
|
|
14
|
+
else
|
|
15
|
+
for (let t = 0; t < i; t++) {
|
|
16
|
+
const o = this.subscriptions[t];
|
|
17
|
+
o && o(s, r, n);
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
getSize() {
|
|
21
|
+
return this.subscriptions.length;
|
|
22
|
+
}
|
|
23
|
+
clear() {
|
|
24
|
+
this.subscriptions.length = 0;
|
|
25
|
+
}
|
|
3
26
|
}
|
|
4
27
|
export {
|
|
5
|
-
|
|
28
|
+
h as SubscriptionManager
|
|
6
29
|
};
|
package/dist/lyra14.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra27.cjs"),x=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./lyra27.cjs"),x=require("./lyra34.cjs"),n=require("./lyra15.cjs"),b=require("./lyra38.cjs"),f=require("./lyra18.cjs"),c=require("./lyra19.cjs"),u=require("./lyra31.cjs"),d=require("./lyra39.cjs"),g=require("./lyra30.cjs"),S=({label:a,showValueText:m,valueTextClassName:j,valueTextVariant:y="body-small",valueTextColor:p,labelVariant:w="body-medium",labelColor:v,labelClassName:h,height:s,color:r,...R})=>{const[q,t]=b.default(),{direction:i}=g.useLocale(),o=t.width/3;return e.jsxRuntimeExports.jsx(x.ProgressBar,{...R,children:({percentage:E,valueText:l,isIndeterminate:N})=>e.jsxRuntimeExports.jsxs("div",{className:"flex flex-col gap-2",children:[e.jsxRuntimeExports.jsxs("div",{className:"flex items-center justify-between",children:[a?e.jsxRuntimeExports.jsx(x.Label,{className:u.twMerge(c.textStyles({color:v,variant:w,className:h})),children:a}):e.jsxRuntimeExports.jsx("div",{}),m&&l?e.jsxRuntimeExports.jsx(f.Text,{className:u.twMerge(c.textStyles({color:p,variant:y,className:j})),children:l}):null]}),e.jsxRuntimeExports.jsx("div",{ref:q,className:n.barStyles({height:s,color:r}),children:N?e.jsxRuntimeExports.jsx(d.motion.div,{className:n.barActiveStyles({height:s,color:r}),style:{width:o},initial:{x:i==="rtl"?t.width+400:-400},animate:{direction:i,x:i==="rtl"?-t.width:t.width+o},transition:{repeat:1/0,duration:2,type:"tween"}}):e.jsxRuntimeExports.jsx(d.motion.div,{className:n.barActiveStyles({height:s,color:r}),layout:!0,initial:{width:"0%",zIndex:1},animate:{width:`${E}%`},transition:{duration:.5,type:"tween"}})})]})})};exports.ProgressBar=S;
|
package/dist/lyra14.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { j as e } from "./lyra27.js";
|
|
2
|
-
import { ProgressBar as N, Label as S } from "./
|
|
2
|
+
import { ProgressBar as N, Label as S } from "./lyra34.js";
|
|
3
3
|
import { barStyles as g, barActiveStyles as n } from "./lyra15.js";
|
|
4
|
-
import A from "./
|
|
4
|
+
import A from "./lyra38.js";
|
|
5
5
|
import { Text as B } from "./lyra18.js";
|
|
6
6
|
import { textStyles as l } from "./lyra19.js";
|
|
7
|
-
import { twMerge as d } from "./
|
|
8
|
-
import { motion as c } from "./
|
|
7
|
+
import { twMerge as d } from "./lyra31.js";
|
|
8
|
+
import { motion as c } from "./lyra39.js";
|
|
9
9
|
import { useLocale as I } from "./lyra30.js";
|
|
10
10
|
const q = ({
|
|
11
11
|
label: a,
|
package/dist/lyra140.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./lyra179.cjs"),n=require("./lyra134.cjs"),l=require("./lyra139.cjs"),f=require("./lyra180.cjs"),u=require("./lyra147.cjs"),v=s=>!isNaN(parseFloat(s));class r{constructor(t,e={}){this.version="10.12.16",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(i,h=!0)=>{this.prev=this.current,this.current=i;const{delta:o,timestamp:a}=c.frameData;this.lastUpdated!==a&&(this.timeDelta=o,this.lastUpdated=a,n.frame.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),h&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>n.frame.postRender(this.velocityCheck),this.velocityCheck=({timestamp:i})=>{i!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=v(this.current),this.owner=e.owner}onChange(t){return process.env.NODE_ENV!=="production"&&u.warnOnce(!1,'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'),this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new l.SubscriptionManager);const i=this.events[t].add(e);return t==="change"?()=>{i(),n.frame.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t,e=!0){!e||!this.passiveEffect?this.updateAndNotify(t,e):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,e,i){this.set(e),this.prev=t,this.timeDelta=i}jump(t){this.updateAndNotify(t),this.prev=t,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?f.velocityPerSecond(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function p(s,t){return new r(s,t)}exports.MotionValue=r;exports.motionValue=p;
|
package/dist/lyra140.js
CHANGED
|
@@ -1,13 +1,203 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { frameData as o } from "./lyra179.js";
|
|
2
|
+
import { frame as n } from "./lyra134.js";
|
|
3
|
+
import { SubscriptionManager as c } from "./lyra139.js";
|
|
4
|
+
import { velocityPerSecond as f } from "./lyra180.js";
|
|
5
|
+
import { warnOnce as l } from "./lyra147.js";
|
|
6
|
+
const p = (s) => !isNaN(parseFloat(s));
|
|
7
|
+
class v {
|
|
8
|
+
/**
|
|
9
|
+
* @param init - The initiating value
|
|
10
|
+
* @param config - Optional configuration options
|
|
11
|
+
*
|
|
12
|
+
* - `transformer`: A function to transform incoming values with.
|
|
13
|
+
*
|
|
14
|
+
* @internal
|
|
15
|
+
*/
|
|
16
|
+
constructor(t, e = {}) {
|
|
17
|
+
this.version = "10.12.16", this.timeDelta = 0, this.lastUpdated = 0, this.canTrackVelocity = !1, this.events = {}, this.updateAndNotify = (i, h = !0) => {
|
|
18
|
+
this.prev = this.current, this.current = i;
|
|
19
|
+
const { delta: r, timestamp: a } = o;
|
|
20
|
+
this.lastUpdated !== a && (this.timeDelta = r, this.lastUpdated = a, n.postRender(this.scheduleVelocityCheck)), this.prev !== this.current && this.events.change && this.events.change.notify(this.current), this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()), h && this.events.renderRequest && this.events.renderRequest.notify(this.current);
|
|
21
|
+
}, this.scheduleVelocityCheck = () => n.postRender(this.velocityCheck), this.velocityCheck = ({ timestamp: i }) => {
|
|
22
|
+
i !== this.lastUpdated && (this.prev = this.current, this.events.velocityChange && this.events.velocityChange.notify(this.getVelocity()));
|
|
23
|
+
}, this.hasAnimated = !1, this.prev = this.current = t, this.canTrackVelocity = p(this.current), this.owner = e.owner;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Adds a function that will be notified when the `MotionValue` is updated.
|
|
27
|
+
*
|
|
28
|
+
* It returns a function that, when called, will cancel the subscription.
|
|
29
|
+
*
|
|
30
|
+
* When calling `onChange` inside a React component, it should be wrapped with the
|
|
31
|
+
* `useEffect` hook. As it returns an unsubscribe function, this should be returned
|
|
32
|
+
* from the `useEffect` function to ensure you don't add duplicate subscribers..
|
|
33
|
+
*
|
|
34
|
+
* ```jsx
|
|
35
|
+
* export const MyComponent = () => {
|
|
36
|
+
* const x = useMotionValue(0)
|
|
37
|
+
* const y = useMotionValue(0)
|
|
38
|
+
* const opacity = useMotionValue(1)
|
|
39
|
+
*
|
|
40
|
+
* useEffect(() => {
|
|
41
|
+
* function updateOpacity() {
|
|
42
|
+
* const maxXY = Math.max(x.get(), y.get())
|
|
43
|
+
* const newOpacity = transform(maxXY, [0, 100], [1, 0])
|
|
44
|
+
* opacity.set(newOpacity)
|
|
45
|
+
* }
|
|
46
|
+
*
|
|
47
|
+
* const unsubscribeX = x.on("change", updateOpacity)
|
|
48
|
+
* const unsubscribeY = y.on("change", updateOpacity)
|
|
49
|
+
*
|
|
50
|
+
* return () => {
|
|
51
|
+
* unsubscribeX()
|
|
52
|
+
* unsubscribeY()
|
|
53
|
+
* }
|
|
54
|
+
* }, [])
|
|
55
|
+
*
|
|
56
|
+
* return <motion.div style={{ x }} />
|
|
57
|
+
* }
|
|
58
|
+
* ```
|
|
59
|
+
*
|
|
60
|
+
* @param subscriber - A function that receives the latest value.
|
|
61
|
+
* @returns A function that, when called, will cancel this subscription.
|
|
62
|
+
*
|
|
63
|
+
* @deprecated
|
|
64
|
+
*/
|
|
65
|
+
onChange(t) {
|
|
66
|
+
return process.env.NODE_ENV !== "production" && l(!1, 'value.onChange(callback) is deprecated. Switch to value.on("change", callback).'), this.on("change", t);
|
|
67
|
+
}
|
|
68
|
+
on(t, e) {
|
|
69
|
+
this.events[t] || (this.events[t] = new c());
|
|
70
|
+
const i = this.events[t].add(e);
|
|
71
|
+
return t === "change" ? () => {
|
|
72
|
+
i(), n.read(() => {
|
|
73
|
+
this.events.change.getSize() || this.stop();
|
|
74
|
+
});
|
|
75
|
+
} : i;
|
|
76
|
+
}
|
|
77
|
+
clearListeners() {
|
|
78
|
+
for (const t in this.events)
|
|
79
|
+
this.events[t].clear();
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Attaches a passive effect to the `MotionValue`.
|
|
83
|
+
*
|
|
84
|
+
* @internal
|
|
85
|
+
*/
|
|
86
|
+
attach(t, e) {
|
|
87
|
+
this.passiveEffect = t, this.stopPassiveEffect = e;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Sets the state of the `MotionValue`.
|
|
91
|
+
*
|
|
92
|
+
* @remarks
|
|
93
|
+
*
|
|
94
|
+
* ```jsx
|
|
95
|
+
* const x = useMotionValue(0)
|
|
96
|
+
* x.set(10)
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* @param latest - Latest value to set.
|
|
100
|
+
* @param render - Whether to notify render subscribers. Defaults to `true`
|
|
101
|
+
*
|
|
102
|
+
* @public
|
|
103
|
+
*/
|
|
104
|
+
set(t, e = !0) {
|
|
105
|
+
!e || !this.passiveEffect ? this.updateAndNotify(t, e) : this.passiveEffect(t, this.updateAndNotify);
|
|
106
|
+
}
|
|
107
|
+
setWithVelocity(t, e, i) {
|
|
108
|
+
this.set(e), this.prev = t, this.timeDelta = i;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Set the state of the `MotionValue`, stopping any active animations,
|
|
112
|
+
* effects, and resets velocity to `0`.
|
|
113
|
+
*/
|
|
114
|
+
jump(t) {
|
|
115
|
+
this.updateAndNotify(t), this.prev = t, this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Returns the latest state of `MotionValue`
|
|
119
|
+
*
|
|
120
|
+
* @returns - The latest state of `MotionValue`
|
|
121
|
+
*
|
|
122
|
+
* @public
|
|
123
|
+
*/
|
|
124
|
+
get() {
|
|
125
|
+
return this.current;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
getPrevious() {
|
|
131
|
+
return this.prev;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Returns the latest velocity of `MotionValue`
|
|
135
|
+
*
|
|
136
|
+
* @returns - The latest velocity of `MotionValue`. Returns `0` if the state is non-numerical.
|
|
137
|
+
*
|
|
138
|
+
* @public
|
|
139
|
+
*/
|
|
140
|
+
getVelocity() {
|
|
141
|
+
return this.canTrackVelocity ? (
|
|
142
|
+
// These casts could be avoided if parseFloat would be typed better
|
|
143
|
+
f(parseFloat(this.current) - parseFloat(this.prev), this.timeDelta)
|
|
144
|
+
) : 0;
|
|
145
|
+
}
|
|
146
|
+
/**
|
|
147
|
+
* Registers a new animation to control this `MotionValue`. Only one
|
|
148
|
+
* animation can drive a `MotionValue` at one time.
|
|
149
|
+
*
|
|
150
|
+
* ```jsx
|
|
151
|
+
* value.start()
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @param animation - A function that starts the provided animation
|
|
155
|
+
*
|
|
156
|
+
* @internal
|
|
157
|
+
*/
|
|
158
|
+
start(t) {
|
|
159
|
+
return this.stop(), new Promise((e) => {
|
|
160
|
+
this.hasAnimated = !0, this.animation = t(e), this.events.animationStart && this.events.animationStart.notify();
|
|
161
|
+
}).then(() => {
|
|
162
|
+
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Stop the currently active animation.
|
|
167
|
+
*
|
|
168
|
+
* @public
|
|
169
|
+
*/
|
|
170
|
+
stop() {
|
|
171
|
+
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
172
|
+
}
|
|
173
|
+
/**
|
|
174
|
+
* Returns `true` if this value is currently animating.
|
|
175
|
+
*
|
|
176
|
+
* @public
|
|
177
|
+
*/
|
|
178
|
+
isAnimating() {
|
|
179
|
+
return !!this.animation;
|
|
180
|
+
}
|
|
181
|
+
clearAnimation() {
|
|
182
|
+
delete this.animation;
|
|
183
|
+
}
|
|
184
|
+
/**
|
|
185
|
+
* Destroy and clean up subscribers to this `MotionValue`.
|
|
186
|
+
*
|
|
187
|
+
* The `MotionValue` hooks like `useMotionValue` and `useTransform` automatically
|
|
188
|
+
* handle the lifecycle of the returned `MotionValue`, so this method is only necessary if you've manually
|
|
189
|
+
* created a `MotionValue` via the `motionValue` function.
|
|
190
|
+
*
|
|
191
|
+
* @public
|
|
192
|
+
*/
|
|
193
|
+
destroy() {
|
|
194
|
+
this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
function C(s, t) {
|
|
198
|
+
return new v(s, t);
|
|
10
199
|
}
|
|
11
200
|
export {
|
|
12
|
-
|
|
201
|
+
v as MotionValue,
|
|
202
|
+
C as motionValue
|
|
13
203
|
};
|
package/dist/lyra141.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./lyra114.cjs");function i(e){return!!(o.isMotionValue(e)&&e.add)}exports.isWillChangeMotionValue=i;
|
package/dist/lyra141.js
CHANGED
package/dist/lyra142.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],t=new Set(r);exports.transformPropOrder=r;exports.transformProps=t;
|