@anoki/fse-ui 1.0.409 → 1.0.412
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/dist/index.cjs.js.map +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs100.js.map +1 -1
- package/dist/index.cjs101.js.map +1 -1
- package/dist/index.cjs102.js.map +1 -1
- package/dist/index.cjs103.js.map +1 -1
- package/dist/index.cjs104.js.map +1 -1
- package/dist/index.cjs105.js.map +1 -1
- package/dist/index.cjs106.js.map +1 -1
- package/dist/index.cjs107.js.map +1 -1
- package/dist/index.cjs108.js.map +1 -1
- package/dist/index.cjs109.js.map +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs110.js.map +1 -1
- package/dist/index.cjs111.js.map +1 -1
- package/dist/index.cjs112.js.map +1 -1
- package/dist/index.cjs113.js.map +1 -1
- package/dist/index.cjs114.js.map +1 -1
- package/dist/index.cjs115.js.map +1 -1
- package/dist/index.cjs116.js.map +1 -1
- package/dist/index.cjs117.js.map +1 -1
- package/dist/index.cjs118.js.map +1 -1
- package/dist/index.cjs119.js.map +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs120.js.map +1 -1
- package/dist/index.cjs121.js.map +1 -1
- package/dist/index.cjs122.js.map +1 -1
- package/dist/index.cjs123.js.map +1 -1
- package/dist/index.cjs124.js.map +1 -1
- package/dist/index.cjs125.js.map +1 -1
- package/dist/index.cjs126.js.map +1 -1
- package/dist/index.cjs127.js.map +1 -1
- package/dist/index.cjs128.js.map +1 -1
- package/dist/index.cjs129.js.map +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs130.js.map +1 -1
- package/dist/index.cjs131.js.map +1 -1
- package/dist/index.cjs132.js.map +1 -1
- package/dist/index.cjs133.js.map +1 -1
- package/dist/index.cjs134.js.map +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs135.js.map +1 -1
- package/dist/index.cjs136.js +1 -1
- package/dist/index.cjs136.js.map +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs140.js +1 -1
- package/dist/index.cjs140.js.map +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs149.js.map +1 -1
- package/dist/index.cjs15.js.map +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs153.js.map +1 -1
- package/dist/index.cjs16.js +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs163.js.map +1 -1
- package/dist/index.cjs165.js.map +1 -1
- package/dist/index.cjs166.js.map +1 -1
- package/dist/index.cjs169.js.map +1 -1
- package/dist/index.cjs17.js.map +1 -1
- package/dist/index.cjs173.js.map +1 -1
- package/dist/index.cjs176.js.map +1 -1
- package/dist/index.cjs18.js.map +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs183.js.map +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs191.js.map +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs20.js.map +1 -1
- package/dist/index.cjs201.js +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js.map +1 -1
- package/dist/index.cjs204.js.map +1 -1
- package/dist/index.cjs205.js.map +1 -1
- package/dist/index.cjs207.js.map +1 -1
- package/dist/index.cjs208.js.map +1 -1
- package/dist/index.cjs209.js.map +1 -1
- package/dist/index.cjs21.js.map +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs218.js.map +1 -1
- package/dist/index.cjs219.js.map +1 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs220.js.map +1 -1
- package/dist/index.cjs222.js.map +1 -1
- package/dist/index.cjs223.js.map +1 -1
- package/dist/index.cjs224.js.map +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs227.js.map +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs26.js.map +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs267.js +3 -12
- package/dist/index.cjs267.js.map +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs282.js.map +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs285.js.map +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs286.js.map +1 -1
- package/dist/{index.cjs292.js → index.cjs287.js} +2 -2
- package/dist/{index.cjs292.js.map → index.cjs287.js.map} +1 -1
- package/dist/{index.cjs293.js → index.cjs288.js} +1 -1
- package/dist/{index.cjs293.js.map → index.cjs288.js.map} +1 -1
- package/dist/{index.cjs294.js → index.cjs289.js} +1 -1
- package/dist/{index.cjs294.js.map → index.cjs289.js.map} +1 -1
- package/dist/index.cjs29.js.map +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs290.js.map +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs291.js.map +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs306.js +2 -0
- package/dist/index.cjs306.js.map +1 -0
- package/dist/index.cjs307.js +2 -0
- package/dist/index.cjs307.js.map +1 -0
- package/dist/{index.cjs300.js → index.cjs308.js} +1 -1
- package/dist/{index.cjs300.js.map → index.cjs308.js.map} +1 -1
- package/dist/{index.cjs301.js → index.cjs309.js} +2 -2
- package/dist/{index.cjs301.js.map → index.cjs309.js.map} +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/{index.cjs302.js → index.cjs310.js} +1 -1
- package/dist/{index.cjs302.js.map → index.cjs310.js.map} +1 -1
- package/dist/{index.cjs303.js → index.cjs311.js} +2 -2
- package/dist/{index.cjs303.js.map → index.cjs311.js.map} +1 -1
- package/dist/{index.cjs304.js → index.cjs312.js} +2 -2
- package/dist/{index.cjs304.js.map → index.cjs312.js.map} +1 -1
- package/dist/{index.cjs305.js → index.cjs313.js} +1 -1
- package/dist/{index.cjs305.js.map → index.cjs313.js.map} +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs324.js +1 -1
- package/dist/index.cjs326.js +38 -1
- package/dist/index.cjs326.js.map +1 -1
- package/dist/index.cjs327.js +1 -1
- package/dist/index.cjs327.js.map +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +1 -38
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs330.js +1 -1
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs331.js +1 -1
- package/dist/index.cjs331.js.map +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs332.js.map +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs333.js.map +1 -1
- package/dist/index.cjs336.js +1 -1
- package/dist/index.cjs336.js.map +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs337.js.map +1 -1
- package/dist/index.cjs338.js +1 -1
- package/dist/index.cjs338.js.map +1 -1
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs339.js.map +1 -1
- package/dist/index.cjs34.js.map +1 -1
- package/dist/index.cjs35.js.map +1 -1
- package/dist/index.cjs36.js.map +1 -1
- package/dist/index.cjs37.js.map +1 -1
- package/dist/index.cjs38.js.map +1 -1
- package/dist/index.cjs39.js.map +1 -1
- package/dist/index.cjs40.js.map +1 -1
- package/dist/index.cjs41.js.map +1 -1
- package/dist/index.cjs42.js.map +1 -1
- package/dist/index.cjs43.js.map +1 -1
- package/dist/index.cjs44.js.map +1 -1
- package/dist/index.cjs45.js.map +1 -1
- package/dist/index.cjs46.js.map +1 -1
- package/dist/index.cjs47.js.map +1 -1
- package/dist/index.cjs48.js.map +1 -1
- package/dist/index.cjs49.js.map +1 -1
- package/dist/index.cjs50.js.map +1 -1
- package/dist/index.cjs51.js.map +1 -1
- package/dist/index.cjs52.js.map +1 -1
- package/dist/index.cjs53.js.map +1 -1
- package/dist/index.cjs54.js.map +1 -1
- package/dist/index.cjs55.js.map +1 -1
- package/dist/index.cjs56.js.map +1 -1
- package/dist/index.cjs57.js.map +1 -1
- package/dist/index.cjs58.js.map +1 -1
- package/dist/index.cjs59.js.map +1 -1
- package/dist/index.cjs6.js.map +1 -1
- package/dist/index.cjs60.js.map +1 -1
- package/dist/index.cjs61.js.map +1 -1
- package/dist/index.cjs62.js.map +1 -1
- package/dist/index.cjs63.js.map +1 -1
- package/dist/index.cjs64.js.map +1 -1
- package/dist/index.cjs65.js.map +1 -1
- package/dist/index.cjs66.js.map +1 -1
- package/dist/index.cjs67.js.map +1 -1
- package/dist/index.cjs68.js.map +1 -1
- package/dist/index.cjs69.js.map +1 -1
- package/dist/index.cjs7.js.map +1 -1
- package/dist/index.cjs70.js.map +1 -1
- package/dist/index.cjs71.js.map +1 -1
- package/dist/index.cjs72.js.map +1 -1
- package/dist/index.cjs73.js.map +1 -1
- package/dist/index.cjs74.js.map +1 -1
- package/dist/index.cjs75.js.map +1 -1
- package/dist/index.cjs76.js.map +1 -1
- package/dist/index.cjs77.js.map +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs79.js.map +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.cjs82.js.map +1 -1
- package/dist/index.cjs83.js.map +1 -1
- package/dist/index.cjs84.js.map +1 -1
- package/dist/index.cjs85.js.map +1 -1
- package/dist/index.cjs87.js.map +1 -1
- package/dist/index.cjs88.js.map +1 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.cjs90.js.map +1 -1
- package/dist/index.cjs91.js.map +1 -1
- package/dist/index.cjs92.js.map +1 -1
- package/dist/index.cjs93.js.map +1 -1
- package/dist/index.cjs94.js.map +1 -1
- package/dist/index.cjs95.js.map +1 -1
- package/dist/index.cjs96.js.map +1 -1
- package/dist/index.cjs97.js.map +1 -1
- package/dist/index.cjs98.js.map +1 -1
- package/dist/index.cjs99.js.map +1 -1
- package/dist/index.d.ts +7 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js.map +1 -1
- package/dist/index.es103.js.map +1 -1
- package/dist/index.es104.js.map +1 -1
- package/dist/index.es105.js.map +1 -1
- package/dist/index.es106.js.map +1 -1
- package/dist/index.es107.js.map +1 -1
- package/dist/index.es108.js.map +1 -1
- package/dist/index.es109.js.map +1 -1
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es111.js.map +1 -1
- package/dist/index.es112.js.map +1 -1
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es114.js.map +1 -1
- package/dist/index.es115.js.map +1 -1
- package/dist/index.es116.js.map +1 -1
- package/dist/index.es117.js.map +1 -1
- package/dist/index.es118.js.map +1 -1
- package/dist/index.es119.js.map +1 -1
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es122.js.map +1 -1
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es124.js.map +1 -1
- package/dist/index.es125.js.map +1 -1
- package/dist/index.es126.js.map +1 -1
- package/dist/index.es127.js.map +1 -1
- package/dist/index.es128.js.map +1 -1
- package/dist/index.es129.js.map +1 -1
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js.map +1 -1
- package/dist/index.es131.js.map +1 -1
- package/dist/index.es132.js.map +1 -1
- package/dist/index.es133.js.map +1 -1
- package/dist/index.es134.js.map +1 -1
- package/dist/index.es135.js +76 -71
- package/dist/index.es135.js.map +1 -1
- package/dist/index.es136.js +11 -1
- package/dist/index.es136.js.map +1 -1
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es140.js +63 -58
- package/dist/index.es140.js.map +1 -1
- package/dist/index.es149.js +29 -26
- package/dist/index.es149.js.map +1 -1
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es153.js +18 -15
- package/dist/index.es153.js.map +1 -1
- package/dist/index.es16.js +32 -28
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es163.js.map +1 -1
- package/dist/index.es165.js.map +1 -1
- package/dist/index.es166.js.map +1 -1
- package/dist/index.es169.js.map +1 -1
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es173.js.map +1 -1
- package/dist/index.es176.js.map +1 -1
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es191.js.map +1 -1
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es201.js +7 -7
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js.map +1 -1
- package/dist/index.es204.js.map +1 -1
- package/dist/index.es205.js.map +1 -1
- package/dist/index.es207.js.map +1 -1
- package/dist/index.es208.js.map +1 -1
- package/dist/index.es209.js.map +1 -1
- package/dist/index.es21.js.map +1 -1
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es218.js.map +1 -1
- package/dist/index.es219.js.map +1 -1
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es220.js.map +1 -1
- package/dist/index.es222.js.map +1 -1
- package/dist/index.es223.js.map +1 -1
- package/dist/index.es224.js.map +1 -1
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es227.js.map +1 -1
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es266.js +1 -1
- package/dist/index.es267.js +146 -307
- package/dist/index.es267.js.map +1 -1
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es275.js +1 -1
- package/dist/index.es276.js +1 -1
- package/dist/index.es277.js +12 -12
- package/dist/index.es278.js +1 -1
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es280.js +1 -1
- package/dist/index.es281.js +1 -1
- package/dist/index.es282.js.map +1 -1
- package/dist/index.es285.js +125 -2
- package/dist/index.es285.js.map +1 -1
- package/dist/index.es286.js +135 -2
- package/dist/index.es286.js.map +1 -1
- package/dist/{index.es292.js → index.es287.js} +2 -2
- package/dist/{index.es292.js.map → index.es287.js.map} +1 -1
- package/dist/{index.es293.js → index.es288.js} +1 -1
- package/dist/{index.es293.js.map → index.es288.js.map} +1 -1
- package/dist/{index.es294.js → index.es289.js} +1 -1
- package/dist/{index.es294.js.map → index.es289.js.map} +1 -1
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es290.js +47 -122
- package/dist/index.es290.js.map +1 -1
- package/dist/index.es291.js +37 -130
- package/dist/index.es291.js.map +1 -1
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es306.js +5 -0
- package/dist/index.es306.js.map +1 -0
- package/dist/index.es307.js +5 -0
- package/dist/index.es307.js.map +1 -0
- package/dist/{index.es300.js → index.es308.js} +1 -1
- package/dist/{index.es300.js.map → index.es308.js.map} +1 -1
- package/dist/{index.es301.js → index.es309.js} +2 -2
- package/dist/{index.es301.js.map → index.es309.js.map} +1 -1
- package/dist/index.es31.js.map +1 -1
- package/dist/{index.es302.js → index.es310.js} +1 -1
- package/dist/{index.es302.js.map → index.es310.js.map} +1 -1
- package/dist/{index.es303.js → index.es311.js} +3 -3
- package/dist/{index.es303.js.map → index.es311.js.map} +1 -1
- package/dist/{index.es304.js → index.es312.js} +4 -4
- package/dist/{index.es304.js.map → index.es312.js.map} +1 -1
- package/dist/{index.es305.js → index.es313.js} +1 -1
- package/dist/{index.es305.js.map → index.es313.js.map} +1 -1
- package/dist/index.es314.js +1 -1
- package/dist/index.es317.js +3 -3
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es322.js +1 -1
- package/dist/index.es324.js +4 -4
- package/dist/index.es326.js +64 -518
- package/dist/index.es326.js.map +1 -1
- package/dist/index.es327.js +8 -126
- package/dist/index.es327.js.map +1 -1
- package/dist/index.es328.js +13 -128
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +61 -68
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es330.js +64 -8
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +520 -11
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es332.js +126 -61
- package/dist/index.es332.js.map +1 -1
- package/dist/index.es333.js +125 -61
- package/dist/index.es333.js.map +1 -1
- package/dist/index.es336.js +21 -11
- package/dist/index.es336.js.map +1 -1
- package/dist/index.es337.js +11 -26
- package/dist/index.es337.js.map +1 -1
- package/dist/index.es338.js +27 -4
- package/dist/index.es338.js.map +1 -1
- package/dist/index.es339.js +4 -22
- package/dist/index.es339.js.map +1 -1
- package/dist/index.es34.js.map +1 -1
- package/dist/index.es35.js.map +1 -1
- package/dist/index.es36.js.map +1 -1
- package/dist/index.es37.js.map +1 -1
- package/dist/index.es38.js.map +1 -1
- package/dist/index.es39.js.map +1 -1
- package/dist/index.es40.js.map +1 -1
- package/dist/index.es41.js.map +1 -1
- package/dist/index.es42.js.map +1 -1
- package/dist/index.es43.js.map +1 -1
- package/dist/index.es44.js.map +1 -1
- package/dist/index.es45.js.map +1 -1
- package/dist/index.es46.js.map +1 -1
- package/dist/index.es47.js.map +1 -1
- package/dist/index.es48.js.map +1 -1
- package/dist/index.es49.js.map +1 -1
- package/dist/index.es50.js.map +1 -1
- package/dist/index.es51.js.map +1 -1
- package/dist/index.es52.js.map +1 -1
- package/dist/index.es53.js.map +1 -1
- package/dist/index.es54.js.map +1 -1
- package/dist/index.es55.js.map +1 -1
- package/dist/index.es56.js.map +1 -1
- package/dist/index.es57.js.map +1 -1
- package/dist/index.es58.js.map +1 -1
- package/dist/index.es59.js.map +1 -1
- package/dist/index.es6.js.map +1 -1
- package/dist/index.es60.js.map +1 -1
- package/dist/index.es61.js.map +1 -1
- package/dist/index.es62.js.map +1 -1
- package/dist/index.es63.js.map +1 -1
- package/dist/index.es64.js.map +1 -1
- package/dist/index.es65.js.map +1 -1
- package/dist/index.es66.js.map +1 -1
- package/dist/index.es67.js.map +1 -1
- package/dist/index.es68.js.map +1 -1
- package/dist/index.es69.js.map +1 -1
- package/dist/index.es7.js.map +1 -1
- package/dist/index.es70.js.map +1 -1
- package/dist/index.es71.js.map +1 -1
- package/dist/index.es72.js.map +1 -1
- package/dist/index.es73.js.map +1 -1
- package/dist/index.es74.js.map +1 -1
- package/dist/index.es75.js.map +1 -1
- package/dist/index.es76.js.map +1 -1
- package/dist/index.es77.js.map +1 -1
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es79.js.map +1 -1
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js.map +1 -1
- package/dist/index.es84.js.map +1 -1
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es9.js.map +1 -1
- package/dist/index.es90.js.map +1 -1
- package/dist/index.es91.js.map +1 -1
- package/dist/index.es92.js.map +1 -1
- package/dist/index.es93.js.map +1 -1
- package/dist/index.es94.js.map +1 -1
- package/dist/index.es95.js.map +1 -1
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js.map +1 -1
- package/dist/index.es99.js.map +1 -1
- package/dist/sections/HomeServices/HomeServices.css +1 -1
- package/dist/sections/Login/Login.css +1 -1
- package/package.json +107 -107
- package/readme.md +42 -42
- package/dist/index.cjs295.js +0 -2
- package/dist/index.cjs295.js.map +0 -1
- package/dist/index.cjs296.js +0 -2
- package/dist/index.cjs296.js.map +0 -1
- package/dist/index.es295.js +0 -53
- package/dist/index.es295.js.map +0 -1
- package/dist/index.es296.js +0 -45
- package/dist/index.es296.js.map +0 -1
package/dist/index.es291.js
CHANGED
@@ -1,138 +1,45 @@
|
|
1
|
-
import * as
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
onUnmountAutoFocus: L,
|
12
|
-
...g
|
13
|
-
} = e, [o, R] = d.useState(null), E = y(p), v = y(L), b = d.useRef(null), U = P(n, (s) => R(s)), a = d.useRef({
|
14
|
-
paused: !1,
|
15
|
-
pause() {
|
16
|
-
this.paused = !0;
|
17
|
-
},
|
18
|
-
resume() {
|
19
|
-
this.paused = !1;
|
20
|
-
}
|
21
|
-
}).current;
|
22
|
-
d.useEffect(() => {
|
23
|
-
if (u) {
|
24
|
-
let s = function(i) {
|
25
|
-
if (a.paused || !o) return;
|
26
|
-
const c = i.target;
|
27
|
-
o.contains(c) ? b.current = c : f(b.current, { select: !0 });
|
28
|
-
}, l = function(i) {
|
29
|
-
if (a.paused || !o) return;
|
30
|
-
const c = i.relatedTarget;
|
31
|
-
c !== null && (o.contains(c) || f(b.current, { select: !0 }));
|
32
|
-
}, r = function(i) {
|
33
|
-
if (document.activeElement === document.body)
|
34
|
-
for (const h of i)
|
35
|
-
h.removedNodes.length > 0 && f(o);
|
36
|
-
};
|
37
|
-
document.addEventListener("focusin", s), document.addEventListener("focusout", l);
|
38
|
-
const m = new MutationObserver(r);
|
39
|
-
return o && m.observe(o, { childList: !0, subtree: !0 }), () => {
|
40
|
-
document.removeEventListener("focusin", s), document.removeEventListener("focusout", l), m.disconnect();
|
41
|
-
};
|
42
|
-
}
|
43
|
-
}, [u, o, a.paused]), d.useEffect(() => {
|
44
|
-
if (o) {
|
45
|
-
S.add(a);
|
46
|
-
const s = document.activeElement;
|
47
|
-
if (!o.contains(s)) {
|
48
|
-
const r = new CustomEvent(F, N);
|
49
|
-
o.addEventListener(F, E), o.dispatchEvent(r), r.defaultPrevented || (w(V(I(o)), { select: !0 }), document.activeElement === s && f(o));
|
50
|
-
}
|
51
|
-
return () => {
|
52
|
-
o.removeEventListener(F, E), setTimeout(() => {
|
53
|
-
const r = new CustomEvent(T, N);
|
54
|
-
o.addEventListener(T, v), o.dispatchEvent(r), r.defaultPrevented || f(s ?? document.body, { select: !0 }), o.removeEventListener(T, v), S.remove(a);
|
55
|
-
}, 0);
|
56
|
-
};
|
57
|
-
}
|
58
|
-
}, [o, E, v, a]);
|
59
|
-
const A = d.useCallback(
|
60
|
-
(s) => {
|
61
|
-
if (!t && !u || a.paused) return;
|
62
|
-
const l = s.key === "Tab" && !s.altKey && !s.ctrlKey && !s.metaKey, r = document.activeElement;
|
63
|
-
if (l && r) {
|
64
|
-
const m = s.currentTarget, [i, c] = x(m);
|
65
|
-
i && c ? !s.shiftKey && r === c ? (s.preventDefault(), t && f(i, { select: !0 })) : s.shiftKey && r === i && (s.preventDefault(), t && f(c, { select: !0 })) : r === m && s.preventDefault();
|
66
|
-
}
|
67
|
-
},
|
68
|
-
[t, u, a.paused]
|
69
|
-
);
|
70
|
-
return /* @__PURE__ */ _.jsx(M.div, { tabIndex: -1, ...g, ref: U, onKeyDown: A });
|
1
|
+
import * as l from "react";
|
2
|
+
import { composeRefs as u } from "./index.es273.js";
|
3
|
+
import { j as c } from "./index.es154.js";
|
4
|
+
var m = l.forwardRef((r, n) => {
|
5
|
+
const { children: e, ...t } = r, o = l.Children.toArray(e), i = o.find(g);
|
6
|
+
if (i) {
|
7
|
+
const s = i.props.children, a = o.map((f) => f === i ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : f);
|
8
|
+
return /* @__PURE__ */ c.jsx(p, { ...t, ref: n, children: l.isValidElement(s) ? l.cloneElement(s, void 0, a) : null });
|
9
|
+
}
|
10
|
+
return /* @__PURE__ */ c.jsx(p, { ...t, ref: n, children: e });
|
71
11
|
});
|
72
|
-
|
73
|
-
|
74
|
-
const t =
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
function x(e) {
|
79
|
-
const n = I(e), t = O(n, e), u = O(n.reverse(), e);
|
80
|
-
return [t, u];
|
81
|
-
}
|
82
|
-
function I(e) {
|
83
|
-
const n = [], t = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
84
|
-
acceptNode: (u) => {
|
85
|
-
const p = u.tagName === "INPUT" && u.type === "hidden";
|
86
|
-
return u.disabled || u.hidden || p ? NodeFilter.FILTER_SKIP : u.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
87
|
-
}
|
88
|
-
});
|
89
|
-
for (; t.nextNode(); ) n.push(t.currentNode);
|
90
|
-
return n;
|
91
|
-
}
|
92
|
-
function O(e, n) {
|
93
|
-
for (const t of e)
|
94
|
-
if (!D(t, { upTo: n })) return t;
|
95
|
-
}
|
96
|
-
function D(e, { upTo: n }) {
|
97
|
-
if (getComputedStyle(e).visibility === "hidden") return !0;
|
98
|
-
for (; e; ) {
|
99
|
-
if (n !== void 0 && e === n) return !1;
|
100
|
-
if (getComputedStyle(e).display === "none") return !0;
|
101
|
-
e = e.parentElement;
|
12
|
+
m.displayName = "Slot";
|
13
|
+
var p = l.forwardRef((r, n) => {
|
14
|
+
const { children: e, ...t } = r;
|
15
|
+
if (l.isValidElement(e)) {
|
16
|
+
const o = h(e), i = y(t, e.props);
|
17
|
+
return e.type !== l.Fragment && (i.ref = n ? u(n, o) : o), l.cloneElement(e, i);
|
102
18
|
}
|
103
|
-
return
|
104
|
-
}
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
19
|
+
return l.Children.count(e) > 1 ? l.Children.only(null) : null;
|
20
|
+
});
|
21
|
+
p.displayName = "SlotClone";
|
22
|
+
var d = ({ children: r }) => /* @__PURE__ */ c.jsx(c.Fragment, { children: r });
|
23
|
+
function g(r) {
|
24
|
+
return l.isValidElement(r) && r.type === d;
|
25
|
+
}
|
26
|
+
function y(r, n) {
|
27
|
+
const e = { ...n };
|
28
|
+
for (const t in n) {
|
29
|
+
const o = r[t], i = n[t];
|
30
|
+
/^on[A-Z]/.test(t) ? o && i ? e[t] = (...a) => {
|
31
|
+
i(...a), o(...a);
|
32
|
+
} : o && (e[t] = o) : t === "style" ? e[t] = { ...o, ...i } : t === "className" && (e[t] = [o, i].filter(Boolean).join(" "));
|
112
33
|
}
|
34
|
+
return { ...r, ...e };
|
113
35
|
}
|
114
|
-
|
115
|
-
|
116
|
-
let e =
|
117
|
-
return
|
118
|
-
add(n) {
|
119
|
-
const t = e[0];
|
120
|
-
n !== t && (t == null || t.pause()), e = C(e, n), e.unshift(n);
|
121
|
-
},
|
122
|
-
remove(n) {
|
123
|
-
var t;
|
124
|
-
e = C(e, n), (t = e[0]) == null || t.resume();
|
125
|
-
}
|
126
|
-
};
|
127
|
-
}
|
128
|
-
function C(e, n) {
|
129
|
-
const t = [...e], u = t.indexOf(n);
|
130
|
-
return u !== -1 && t.splice(u, 1), t;
|
131
|
-
}
|
132
|
-
function V(e) {
|
133
|
-
return e.filter((n) => n.tagName !== "A");
|
36
|
+
function h(r) {
|
37
|
+
var t, o;
|
38
|
+
let n = (t = Object.getOwnPropertyDescriptor(r.props, "ref")) == null ? void 0 : t.get, e = n && "isReactWarning" in n && n.isReactWarning;
|
39
|
+
return e ? r.ref : (n = (o = Object.getOwnPropertyDescriptor(r, "ref")) == null ? void 0 : o.get, e = n && "isReactWarning" in n && n.isReactWarning, e ? r.props.ref : r.props.ref || r.ref);
|
134
40
|
}
|
135
41
|
export {
|
136
|
-
|
42
|
+
m as Slot,
|
43
|
+
d as Slottable
|
137
44
|
};
|
138
45
|
//# sourceMappingURL=index.es291.js.map
|
package/dist/index.es291.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es291.js","sources":["../node_modules/@radix-ui/react-focus-scope/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/focus-scope/src/focus-scope.tsx\nimport * as React from \"react\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { jsx } from \"react/jsx-runtime\";\nvar AUTOFOCUS_ON_MOUNT = \"focusScope.autoFocusOnMount\";\nvar AUTOFOCUS_ON_UNMOUNT = \"focusScope.autoFocusOnUnmount\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar FOCUS_SCOPE_NAME = \"FocusScope\";\nvar FocusScope = React.forwardRef((props, forwardedRef) => {\n const {\n loop = false,\n trapped = false,\n onMountAutoFocus: onMountAutoFocusProp,\n onUnmountAutoFocus: onUnmountAutoFocusProp,\n ...scopeProps\n } = props;\n const [container, setContainer] = React.useState(null);\n const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);\n const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);\n const lastFocusedElementRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));\n const focusScope = React.useRef({\n paused: false,\n pause() {\n this.paused = true;\n },\n resume() {\n this.paused = false;\n }\n }).current;\n React.useEffect(() => {\n if (trapped) {\n let handleFocusIn2 = function(event) {\n if (focusScope.paused || !container) return;\n const target = event.target;\n if (container.contains(target)) {\n lastFocusedElementRef.current = target;\n } else {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleFocusOut2 = function(event) {\n if (focusScope.paused || !container) return;\n const relatedTarget = event.relatedTarget;\n if (relatedTarget === null) return;\n if (!container.contains(relatedTarget)) {\n focus(lastFocusedElementRef.current, { select: true });\n }\n }, handleMutations2 = function(mutations) {\n const focusedElement = document.activeElement;\n if (focusedElement !== document.body) return;\n for (const mutation of mutations) {\n if (mutation.removedNodes.length > 0) focus(container);\n }\n };\n var handleFocusIn = handleFocusIn2, handleFocusOut = handleFocusOut2, handleMutations = handleMutations2;\n document.addEventListener(\"focusin\", handleFocusIn2);\n document.addEventListener(\"focusout\", handleFocusOut2);\n const mutationObserver = new MutationObserver(handleMutations2);\n if (container) mutationObserver.observe(container, { childList: true, subtree: true });\n return () => {\n document.removeEventListener(\"focusin\", handleFocusIn2);\n document.removeEventListener(\"focusout\", handleFocusOut2);\n mutationObserver.disconnect();\n };\n }\n }, [trapped, container, focusScope.paused]);\n React.useEffect(() => {\n if (container) {\n focusScopesStack.add(focusScope);\n const previouslyFocusedElement = document.activeElement;\n const hasFocusedCandidate = container.contains(previouslyFocusedElement);\n if (!hasFocusedCandidate) {\n const mountEvent = new CustomEvent(AUTOFOCUS_ON_MOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n container.dispatchEvent(mountEvent);\n if (!mountEvent.defaultPrevented) {\n focusFirst(removeLinks(getTabbableCandidates(container)), { select: true });\n if (document.activeElement === previouslyFocusedElement) {\n focus(container);\n }\n }\n }\n return () => {\n container.removeEventListener(AUTOFOCUS_ON_MOUNT, onMountAutoFocus);\n setTimeout(() => {\n const unmountEvent = new CustomEvent(AUTOFOCUS_ON_UNMOUNT, EVENT_OPTIONS);\n container.addEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n container.dispatchEvent(unmountEvent);\n if (!unmountEvent.defaultPrevented) {\n focus(previouslyFocusedElement ?? document.body, { select: true });\n }\n container.removeEventListener(AUTOFOCUS_ON_UNMOUNT, onUnmountAutoFocus);\n focusScopesStack.remove(focusScope);\n }, 0);\n };\n }\n }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);\n const handleKeyDown = React.useCallback(\n (event) => {\n if (!loop && !trapped) return;\n if (focusScope.paused) return;\n const isTabKey = event.key === \"Tab\" && !event.altKey && !event.ctrlKey && !event.metaKey;\n const focusedElement = document.activeElement;\n if (isTabKey && focusedElement) {\n const container2 = event.currentTarget;\n const [first, last] = getTabbableEdges(container2);\n const hasTabbableElementsInside = first && last;\n if (!hasTabbableElementsInside) {\n if (focusedElement === container2) event.preventDefault();\n } else {\n if (!event.shiftKey && focusedElement === last) {\n event.preventDefault();\n if (loop) focus(first, { select: true });\n } else if (event.shiftKey && focusedElement === first) {\n event.preventDefault();\n if (loop) focus(last, { select: true });\n }\n }\n }\n },\n [loop, trapped, focusScope.paused]\n );\n return /* @__PURE__ */ jsx(Primitive.div, { tabIndex: -1, ...scopeProps, ref: composedRefs, onKeyDown: handleKeyDown });\n});\nFocusScope.displayName = FOCUS_SCOPE_NAME;\nfunction focusFirst(candidates, { select = false } = {}) {\n const previouslyFocusedElement = document.activeElement;\n for (const candidate of candidates) {\n focus(candidate, { select });\n if (document.activeElement !== previouslyFocusedElement) return;\n }\n}\nfunction getTabbableEdges(container) {\n const candidates = getTabbableCandidates(container);\n const first = findVisible(candidates, container);\n const last = findVisible(candidates.reverse(), container);\n return [first, last];\n}\nfunction getTabbableCandidates(container) {\n const nodes = [];\n const walker = document.createTreeWalker(container, NodeFilter.SHOW_ELEMENT, {\n acceptNode: (node) => {\n const isHiddenInput = node.tagName === \"INPUT\" && node.type === \"hidden\";\n if (node.disabled || node.hidden || isHiddenInput) return NodeFilter.FILTER_SKIP;\n return node.tabIndex >= 0 ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;\n }\n });\n while (walker.nextNode()) nodes.push(walker.currentNode);\n return nodes;\n}\nfunction findVisible(elements, container) {\n for (const element of elements) {\n if (!isHidden(element, { upTo: container })) return element;\n }\n}\nfunction isHidden(node, { upTo }) {\n if (getComputedStyle(node).visibility === \"hidden\") return true;\n while (node) {\n if (upTo !== void 0 && node === upTo) return false;\n if (getComputedStyle(node).display === \"none\") return true;\n node = node.parentElement;\n }\n return false;\n}\nfunction isSelectableInput(element) {\n return element instanceof HTMLInputElement && \"select\" in element;\n}\nfunction focus(element, { select = false } = {}) {\n if (element && element.focus) {\n const previouslyFocusedElement = document.activeElement;\n element.focus({ preventScroll: true });\n if (element !== previouslyFocusedElement && isSelectableInput(element) && select)\n element.select();\n }\n}\nvar focusScopesStack = createFocusScopesStack();\nfunction createFocusScopesStack() {\n let stack = [];\n return {\n add(focusScope) {\n const activeFocusScope = stack[0];\n if (focusScope !== activeFocusScope) {\n activeFocusScope?.pause();\n }\n stack = arrayRemove(stack, focusScope);\n stack.unshift(focusScope);\n },\n remove(focusScope) {\n stack = arrayRemove(stack, focusScope);\n stack[0]?.resume();\n }\n };\n}\nfunction arrayRemove(array, item) {\n const updatedArray = [...array];\n const index = updatedArray.indexOf(item);\n if (index !== -1) {\n updatedArray.splice(index, 1);\n }\n return updatedArray;\n}\nfunction removeLinks(items) {\n return items.filter((item) => item.tagName !== \"A\");\n}\nvar Root = FocusScope;\nexport {\n FocusScope,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["AUTOFOCUS_ON_MOUNT","AUTOFOCUS_ON_UNMOUNT","EVENT_OPTIONS","FOCUS_SCOPE_NAME","FocusScope","React","props","forwardedRef","loop","trapped","onMountAutoFocusProp","onUnmountAutoFocusProp","scopeProps","container","setContainer","onMountAutoFocus","useCallbackRef","onUnmountAutoFocus","lastFocusedElementRef","composedRefs","useComposedRefs","node","focusScope","handleFocusIn2","event","target","focus","handleFocusOut2","relatedTarget","handleMutations2","mutations","mutation","mutationObserver","focusScopesStack","previouslyFocusedElement","mountEvent","focusFirst","removeLinks","getTabbableCandidates","unmountEvent","handleKeyDown","isTabKey","focusedElement","container2","first","last","getTabbableEdges","jsx","Primitive","candidates","select","candidate","findVisible","nodes","walker","isHiddenInput","elements","element","isHidden","upTo","isSelectableInput","createFocusScopesStack","stack","activeFocusScope","arrayRemove","_a","array","item","updatedArray","index","items"],"mappings":";;;;;AAQA,IAAIA,IAAqB,+BACrBC,IAAuB,iCACvBC,IAAgB,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AAY;AACd,YAAMyC,IAAmBD,EAAM,CAAC;AAChC,MAAIxC,MAAeyC,MACjBA,KAAA,QAAAA,EAAkB,UAEpBD,IAAQE,EAAYF,GAAOxC,CAAU,GACrCwC,EAAM,QAAQxC,CAAU;AAAA,IACzB;AAAA,IACD,OAAOA,GAAY;;AACjB,MAAAwC,IAAQE,EAAYF,GAAOxC,CAAU,IACrC2C,IAAAH,EAAM,CAAC,MAAP,QAAAG,EAAU;AAAA,IAChB;AAAA,EACG;AACH;AACA,SAASD,EAAYE,GAAOC,GAAM;AAChC,QAAMC,IAAe,CAAC,GAAGF,CAAK,GACxBG,IAAQD,EAAa,QAAQD,CAAI;AACvC,SAAIE,MAAU,MACZD,EAAa,OAAOC,GAAO,CAAC,GAEvBD;AACT;AACA,SAAS/B,EAAYiC,GAAO;AAC1B,SAAOA,EAAM,OAAO,CAACH,MAASA,EAAK,YAAY,GAAG;AACpD;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.es291.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":";;;AAIG,IAACA,IAAOC,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACnD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH,GAC7BI,IAAgBL,EAAM,SAAS,QAAQG,CAAQ,GAC/CG,IAAYD,EAAc,KAAKE,CAAW;AAChD,MAAID,GAAW;AACb,UAAME,IAAaF,EAAU,MAAM,UAC7BG,IAAcJ,EAAc,IAAI,CAACK,MACjCA,MAAUJ,IACRN,EAAM,SAAS,MAAMQ,CAAU,IAAI,IAAUR,EAAM,SAAS,KAAK,IAAI,IAClEA,EAAM,eAAeQ,CAAU,IAAIA,EAAW,MAAM,WAAW,OAE/DE,CAEV;AACD,WAAuBC,gBAAAA,EAAAA,IAAIC,GAAW,EAAE,GAAGR,GAAW,KAAKF,GAAc,UAAUF,EAAM,eAAeQ,CAAU,IAAIR,EAAM,aAAaQ,GAAY,QAAQC,CAAW,IAAI,MAAM;AAAA,EACtL;AACE,SAAuBE,gBAAAA,EAAAA,IAAIC,GAAW,EAAE,GAAGR,GAAW,KAAKF,GAAc,UAAAC,GAAU;AACrF,CAAC;AACDJ,EAAK,cAAc;AACnB,IAAIa,IAAYZ,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACxD,QAAM,EAAE,UAAAC,GAAU,GAAGC,EAAS,IAAKH;AACnC,MAAID,EAAM,eAAeG,CAAQ,GAAG;AAClC,UAAMU,IAAcC,EAAcX,CAAQ,GACpCY,IAASC,EAAWZ,GAAWD,EAAS,KAAK;AACnD,WAAIA,EAAS,SAASH,EAAM,aAC1Be,EAAO,MAAMb,IAAee,EAAYf,GAAcW,CAAW,IAAIA,IAEhEb,EAAM,aAAaG,GAAUY,CAAM;AAAA,EAC9C;AACE,SAAOf,EAAM,SAAS,MAAMG,CAAQ,IAAI,IAAIH,EAAM,SAAS,KAAK,IAAI,IAAI;AAC1E,CAAC;AACDY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|
-
{"version":3,"file":"index.es30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./CardDocument.scss\";\nimport { Button, Col, Loader, Row } from \"@/components\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\n\ntype CardDocumentProps = {\n eventNumber?: string;\n date?: string | number;\n documentType?: string;\n documentTitle: string;\n label?: string;\n subtitle?: string;\n action?: string;\n CTA?: string;\n iconView?: \"attachments\" | \"obscured\";\n favorite?: boolean;\n handleDownloadDocument?: () => void;\n hrefDocument?: string;\n isLoading?: boolean;\n openDocumentLabel?: string;\n releaseDateLabel?: string;\n eventLabel?: string;\n};\n\nexport const CardDocument = ({\n eventNumber,\n date = \"--/--/--\",\n documentType,\n documentTitle,\n label,\n subtitle,\n action,\n CTA,\n handleDownloadDocument,\n hrefDocument = \"#\",\n isLoading = false,\n openDocumentLabel = \"Apri documento\",\n releaseDateLabel = \"Emesso il\",\n eventLabel = \"Evento n.\",\n}: CardDocumentProps) => {\n const isDesktop = useIsDesktop();\n\n const renderDownloadAction = () => {\n if (!action) return null;\n return (\n <Row\n alignItems={\"center\"}\n className={clsx(\n !isLoading && \"cursor-pointer\",\n \"text-decoration-none text-primary\",\n )}\n onClick={isLoading ? undefined : handleDownloadDocument}\n >\n <p>{action}</p>\n <Loader loading={isLoading} className={\"ml-x8\"} />\n </Row>\n );\n };\n\n return (\n <div\n className={clsx(\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\n )}\n >\n <Row\n as={\"header\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n py={\"x8\"}\n px={\"x24\"}\n className={\"ui-document-header\"}\n >\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\n <Row>\n {releaseDateLabel} {date}\n </Row>\n </Row>\n <main className={\"p-x16\"}>\n <Col pb={\"x32\"} justifyContent={\"space-between\"}>\n <div>\n <Row pb={\"x8\"}>{documentType}</Row>\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\n <Row pt={\"x8\"}>\n {label && (\n <div\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\n style={{ width: \"max-content\" }}\n >\n {label}\n </div>\n )}\n </Row>\n </div>\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\n </Col>\n {!isDesktop ? (\n <Col as={\"footer\"} gap={\"x16\"}>\n {renderDownloadAction()}\n <Divider bg={\"border-divider\"} />\n <Button\n className=\"filter-button fs-7 fw-semibold w-full\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={\"a\"}\n href={hrefDocument}\n disabled\n >\n {openDocumentLabel}\n </Button>\n </Col>\n ) : (\n <Row\n as={\"footer\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n >\n {renderDownloadAction()}\n {CTA && (\n <Button\n className=\"filter-button fs-7 text-primary fw-semibold\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={\"a\"}\n href={hrefDocument}\n >\n {CTA}\n </Button>\n )}\n </Row>\n )}\n </main>\n </div>\n );\n};\n"],"names":["CardDocument","eventNumber","date","documentType","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Loader","Col","Button","Divider"],"mappings":";;;;;;;;;AAyBO,MAAMA,IAAe,CAAC;AAAA,EAC3B,aAAAC;AAAA,EACA,MAAAC,IAAO;AAAA,EACP,cAAAC;AAAA,EACA,eAAAC;AAAA,EACA,OAAAC;AAAA,EACA,UAAAC;AAAA,EACA,QAAAC;AAAA,EACA,KAAAC;AAAA,EACA,wBAAAC;AAAA,EACA,cAAAC,IAAe;AAAA,EACf,WAAAC,IAAY;AAAA,EACZ,mBAAAC,IAAoB;AAAA,EACpB,kBAAAC,IAAmB;AAAA,EACnB,YAAAC,IAAa;AACf,MAAyB;AACvB,QA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version":3,"file":"index.es30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./CardDocument.scss\";\r\nimport { Button, Col, Loader, Row } from \"@/components\";\r\nimport { Divider } from \"@/components/ui/Divider\";\r\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\r\n\r\ntype CardDocumentProps = {\r\n eventNumber?: string;\r\n date?: string | number;\r\n documentType?: string;\r\n documentTitle: string;\r\n label?: string;\r\n subtitle?: string;\r\n action?: string;\r\n CTA?: string;\r\n iconView?: \"attachments\" | \"obscured\";\r\n favorite?: boolean;\r\n handleDownloadDocument?: () => void;\r\n hrefDocument?: string;\r\n isLoading?: boolean;\r\n openDocumentLabel?: string;\r\n releaseDateLabel?: string;\r\n eventLabel?: string;\r\n};\r\n\r\nexport const CardDocument = ({\r\n eventNumber,\r\n date = \"--/--/--\",\r\n documentType,\r\n documentTitle,\r\n label,\r\n subtitle,\r\n action,\r\n CTA,\r\n handleDownloadDocument,\r\n hrefDocument = \"#\",\r\n isLoading = false,\r\n openDocumentLabel = \"Apri documento\",\r\n releaseDateLabel = \"Emesso il\",\r\n eventLabel = \"Evento n.\",\r\n}: CardDocumentProps) => {\r\n const isDesktop = useIsDesktop();\r\n\r\n const renderDownloadAction = () => {\r\n if (!action) return null;\r\n return (\r\n <Row\r\n alignItems={\"center\"}\r\n className={clsx(\r\n !isLoading && \"cursor-pointer\",\r\n \"text-decoration-none text-primary\",\r\n )}\r\n onClick={isLoading ? undefined : handleDownloadDocument}\r\n >\r\n <p>{action}</p>\r\n <Loader loading={isLoading} className={\"ml-x8\"} />\r\n </Row>\r\n );\r\n };\r\n\r\n return (\r\n <div\r\n className={clsx(\r\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\r\n )}\r\n >\r\n <Row\r\n as={\"header\"}\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n py={\"x8\"}\r\n px={\"x24\"}\r\n className={\"ui-document-header\"}\r\n >\r\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\r\n <Row>\r\n {releaseDateLabel} {date}\r\n </Row>\r\n </Row>\r\n <main className={\"p-x16\"}>\r\n <Col pb={\"x32\"} justifyContent={\"space-between\"}>\r\n <div>\r\n <Row pb={\"x8\"}>{documentType}</Row>\r\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\r\n <Row pt={\"x8\"}>\r\n {label && (\r\n <div\r\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\r\n style={{ width: \"max-content\" }}\r\n >\r\n {label}\r\n </div>\r\n )}\r\n </Row>\r\n </div>\r\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\r\n </Col>\r\n {!isDesktop ? (\r\n <Col as={\"footer\"} gap={\"x16\"}>\r\n {renderDownloadAction()}\r\n <Divider bg={\"border-divider\"} />\r\n <Button\r\n className=\"filter-button fs-7 fw-semibold w-full\"\r\n variant={\"secondary\"}\r\n size=\"3\"\r\n asLink={\"a\"}\r\n href={hrefDocument}\r\n disabled\r\n >\r\n {openDocumentLabel}\r\n </Button>\r\n </Col>\r\n ) : (\r\n <Row\r\n as={\"footer\"}\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n >\r\n {renderDownloadAction()}\r\n {CTA && (\r\n <Button\r\n className=\"filter-button fs-7 text-primary fw-semibold\"\r\n variant={\"secondary\"}\r\n size=\"3\"\r\n asLink={\"a\"}\r\n href={hrefDocument}\r\n >\r\n {CTA}\r\n </Button>\r\n )}\r\n </Row>\r\n )}\r\n </main>\r\n </div>\r\n );\r\n};\r\n"],"names":["CardDocument","eventNumber","date","documentType","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Loader","Col","Button","Divider"],"mappings":";;;;;;;;;AAyBO,MAAMA,IAAe,CAAC;A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AA;AAAA,YAC/BJ,gBAAAA,EAAA;AAAA,cAACG;AAAA,cAAA;AAAA,gBACC,WAAU;AAAA,gBACV,SAAS;AAAA,gBACT,MAAK;AAAA,gBACL,QAAQ;AAAA,gBACR,MAAMd;AAAA,gBACN,UAAQ;AAAA,gBAEP,UAAAE;AAAA,cAAA;AAAA,YAAA;AAAA,UACH,EAAA,CACF;AAAA,QAmBA,EAEJ,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es306.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.es307.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.es308.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":";AAEA,SAASA,EAAeC,GAAU;AAChC,QAAMC,IAAcC,EAAM,OAAOF,CAAQ;AACzC,SAAAE,EAAM,UAAU,MAAM;AACpB,IAAAD,EAAY,UAAUD;AAAA,EAC1B,CAAG,GACME,EAAM,QAAQ,MAAM,IAAIC;;AAAS,YAAAC,IAAAH,EAAY,YAAZ,gBAAAG,EAAA,KAAAH,GAAsB,GAAGE;AAAA,KAAO,EAAE;AAC5E;","x_google_ignoreList":[0]}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import n from "react";
|
2
2
|
import { createContextScope as O } from "./index.es274.js";
|
3
3
|
import { useComposedRefs as I } from "./index.es273.js";
|
4
|
-
import { Slot as S } from "./index.
|
4
|
+
import { Slot as S } from "./index.es291.js";
|
5
5
|
import { j as u } from "./index.es154.js";
|
6
6
|
function L(s) {
|
7
7
|
const f = s + "CollectionProvider", [A, E] = O(f), [N, m] = A(
|
@@ -46,4 +46,4 @@ function L(s) {
|
|
46
46
|
export {
|
47
47
|
L as createCollection
|
48
48
|
};
|
49
|
-
//# sourceMappingURL=index.
|
49
|
+
//# sourceMappingURL=index.es309.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.es309.js","sources":["../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collection/src/collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":";;;;;AAQA,SAASA,EAAiBC,GAAM;AAC9B,QAAMC,IAAgBD,IAAO,sBACvB,CAACE,GAAyBC,CAAqB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,CAAG,EAC7C,GACsBG,gBAAAA,MAAIO,GAAM,EAAO,CAACE,CAAc,GAAG,IAAM,KAAKJ,GAAc,UAAAT,GAAU;AAAA,IACnG;AAAA,EACG;AACD,EAAAc,EAAmB,cAAcF;AACjC,WAASI,EAAcjB,GAAO;AAC5B,UAAMS,IAAUZ,EAAqBN,IAAO,sBAAsBS,CAAK;AAWvE,WAViBG,EAAM,YAAY,MAAM;AACvC,YAAMe,IAAiBT,EAAQ,cAAc;AAC7C,UAAI,CAACS,EAAgB,QAAO,CAAE;AAC9B,YAAMC,IAAe,MAAM,KAAKD,EAAe,iBAAiB,IAAIJ,CAAc,GAAG,CAAC;AAKtF,aAJc,MAAM,KAAKL,EAAQ,QAAQ,QAAQ,EACtB;AAAA,QACzB,CAACW,GAAGC,MAAMF,EAAa,QAAQC,EAAE,IAAI,OAAO,IAAID,EAAa,QAAQE,EAAE,IAAI,OAAO;AAAA,MACnF;AAAA,IAEF,GAAE,CAACZ,EAAQ,eAAeA,EAAQ,OAAO,CAAC;AAAA,EAE/C;AACE,SAAO;AAAA,IACL,EAAE,UAAUX,GAAoB,MAAMS,GAAgB,UAAUQ,EAAoB;AAAA,IACpFE;AAAA,IACAvB;AAAA,EACD;AACH;","x_google_ignoreList":[0]}
|
package/dist/index.es31.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es31.js","sources":["../src/components/ui/CardOpeningHours/index.tsx"],"sourcesContent":["import \"./CardOpeningHours.scss\";\nimport clsx from \"clsx\";\nimport { OpeningHours } from \"@anoki/fse-common\";\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { DateTime } from \"luxon\";\nimport { Col, Row } from \"@/components\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\ntype WeekDaysMap = Record<keyof OpeningHours, string>;\ntype TimeSlot = { from: string; to: string };\n\ntype CardOpeningHoursProps = {\n title: string;\n titleTag: HeadingLevel;\n openingHours: OpeningHours;\n weekDaysMap: WeekDaysMap;\n openLabel?: string;\n todayLabel?: string;\n closeLabel?: string;\n open24Label?: string;\n opensSoonLabel?: string;\n opensAtLabel?: string;\n opensTomorrowLabel?: string;\n opensOnLabel?: string;\n atLabel?: string;\n closesAtLabel?: string;\n};\n\nexport const CardOpeningHours = ({\n title = \"Orari di apertura\",\n titleTag: TitleTag = \"h3\",\n openingHours,\n weekDaysMap,\n openLabel = \"Aperto\",\n todayLabel = \"Oggi\",\n closeLabel = \"Chiuso\",\n open24Label = \"24 ore su 24\",\n opensSoonLabel = \"Apre tra poco\",\n opensAtLabel = \"Apre alle\",\n opensTomorrowLabel = \"Apre domani\",\n opensOnLabel = \"Apre\",\n atLabel = \"alle\",\n closesAtLabel = \"Chiude alle\",\n}: CardOpeningHoursProps) => {\n const [activeDay, setActiveDay] = useState<number | null>(null);\n const [dayLabel, setDayLabel] = useState(\"\");\n const [openingHoursText, setOpeningHoursText] = useState(\"\");\n const [openingHoursText2, setOpeningHoursText2] = useState(\"\");\n const [isOpen, setIsOpen] = useState(false);\n const [isOpeningSoon, setIsOpeningSoon] = useState(false);\n const [additionalInfo, setAdditionalInfo] = useState(\"\");\n\n const weekDays = Object.values(weekDaysMap);\n const weekKeys = Object.keys(weekDaysMap) as (keyof OpeningHours)[];\n\n const formatCurrentTime = () => {\n return DateTime.now().toFormat(\"HH:mm\");\n };\n\n const parseTimeToMinutes = (timeStr: string): number => {\n const [hours, minutes] = timeStr.split(\":\").map(Number);\n return hours * 60 + minutes;\n };\n\n const isSlot24Hours = useCallback(\n (slot: TimeSlot) => slot.from === \"00:00\" && slot.to === \"00:00\",\n [],\n );\n\n const is24HoursDay = useCallback(\n (slots: TimeSlot[]) => slots.some(isSlot24Hours),\n [isSlot24Hours],\n );\n\n const isCurrentlyOpen = (slots: TimeSlot[], currentTime: string) => {\n for (const { from, to } of slots) {\n if (currentTime >= from && currentTime <= to) {\n return { open: true, closingTime: to };\n }\n }\n return { open: false, closingTime: \"\" };\n };\n\n const getNextOpeningTime = (slots: TimeSlot[], currentTime: string) => {\n for (const { from } of slots) {\n if (from > currentTime) {\n return from;\n }\n }\n return \"\";\n };\n\n const checkIsOpeningSoon = useCallback(\n (openingTime: string, currentTime: string) => {\n if (!openingTime) return false;\n\n const openMinutes = parseTimeToMinutes(openingTime);\n const currentMinutes = parseTimeToMinutes(currentTime);\n const diffMinutes = openMinutes - currentMinutes;\n\n return diffMinutes > 0 && diffMinutes <= 60;\n },\n [],\n );\n\n const getNextOpenDay = useCallback(\n (currentDayIndex: number) => {\n for (let i = 1; i <= 7; i++) {\n const nextIndex = (currentDayIndex + i) % 7;\n const nextDayKey = weekKeys[nextIndex];\n const nextDaySlots = openingHours[nextDayKey];\n\n if (nextDaySlots && nextDaySlots.length > 0) {\n return {\n dayName: weekDays[nextIndex].toLowerCase(),\n isTomorrow: i === 1,\n };\n }\n }\n return null;\n },\n [weekKeys, openingHours, weekDays],\n );\n\n const generateOpeningHoursText = useMemo(() => {\n return (hours: TimeSlot[]) => {\n if (hours.length === 0) {\n return closeLabel;\n }\n\n if (is24HoursDay(hours)) {\n return `${openLabel} ${open24Label}`;\n }\n\n return hours.map(({ from, to }) => `${from} - ${to}`).join(\" | \");\n };\n }, [closeLabel, is24HoursDay, open24Label, openLabel]);\n\n useEffect(() => {\n const now = DateTime.now();\n const todayIndex = now.weekday - 1;\n setActiveDay(todayIndex);\n setDayLabel(weekDays[todayIndex] || \"\");\n\n const todayKey = weekKeys[todayIndex];\n const todaySlots = openingHours[todayKey];\n\n if (!todaySlots) {\n return;\n }\n\n const currentTime = formatCurrentTime();\n\n if (is24HoursDay(todaySlots)) {\n setOpeningHoursText(openLabel);\n setAdditionalInfo(` | ${open24Label}`);\n setIsOpen(true);\n setIsOpeningSoon(false);\n setOpeningHoursText2(`${openLabel} ${open24Label}`);\n return;\n }\n\n const { open, closingTime } = isCurrentlyOpen(todaySlots, currentTime);\n\n if (open) {\n setOpeningHoursText(openLabel);\n setAdditionalInfo(\n closingTime ? ` | ${closesAtLabel} ${closingTime}` : \"\",\n );\n setIsOpen(true);\n setIsOpeningSoon(false);\n } else {\n const nextOpeningTime = getNextOpeningTime(todaySlots, currentTime);\n setIsOpen(false);\n\n if (nextOpeningTime) {\n if (checkIsOpeningSoon(nextOpeningTime, currentTime)) {\n setOpeningHoursText(opensSoonLabel);\n setAdditionalInfo(` | ${atLabel} ${nextOpeningTime}`);\n setIsOpeningSoon(true);\n } else {\n setOpeningHoursText(closeLabel);\n setAdditionalInfo(` | ${opensAtLabel} ${nextOpeningTime}`);\n setIsOpeningSoon(false);\n }\n } else {\n setOpeningHoursText(closeLabel);\n setIsOpeningSoon(false);\n const nextDay = getNextOpenDay(todayIndex);\n\n if (nextDay) {\n setAdditionalInfo(\n nextDay.isTomorrow\n ? ` | ${opensTomorrowLabel}`\n : ` | ${opensOnLabel} ${nextDay.dayName}`,\n );\n } else {\n setAdditionalInfo(\"\");\n }\n }\n }\n\n setOpeningHoursText2(generateOpeningHoursText(todaySlots));\n }, [\n atLabel,\n checkIsOpeningSoon,\n closeLabel,\n closesAtLabel,\n generateOpeningHoursText,\n getNextOpenDay,\n is24HoursDay,\n open24Label,\n openLabel,\n openingHours,\n opensAtLabel,\n opensOnLabel,\n opensSoonLabel,\n opensTomorrowLabel,\n weekDays,\n weekKeys,\n ]);\n\n return (\n <Col\n fs={\"6\"}\n fw={\"semibold\"}\n className=\"ui-card-opening rounded shadow text-slate-28\"\n >\n <Col as={\"header\"} className=\"ui-card-header\">\n <TitleTag className=\"text-slate-20 fw-semibold fs-4\">{title}</TitleTag>\n <Row\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n style={{ backgroundColor: \"#F7F2FC\" }}\n py={\"x16\"}\n px={\"x24\"}\n fw={\"bold\"}\n fs={\"6\"}\n className=\"rounded\"\n >\n <p className=\"text-slate-28\">\n {todayLabel}, {dayLabel}\n </p>\n <p>\n <span\n className={\n isOpen\n ? \"text-success\"\n : isOpeningSoon\n ? \"text-warning\"\n : \"text-error\"\n }\n >\n {openingHoursText}\n </span>\n <span className=\"fw-regular text-grey-black\">{additionalInfo}</span>\n </p>\n </Row>\n </Col>\n <Col as={\"main\"} pt={\"x32\"} gap={\"x24\"}>\n <Row justifyContent={\"space-around\"} className=\"ui-weekdays-container\">\n {weekDays.map((day, index) => (\n <Row\n justifyContent={\"center\"}\n alignItems={\"center\"}\n key={index}\n className={clsx(\n activeDay === index ? \"active-day text-primary\" : \"\",\n \"flex-1\",\n )}\n >\n {day.charAt(0).toUpperCase()}\n </Row>\n ))}\n </Row>\n <Row\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n fw={\"regular\"}\n >\n <p>{dayLabel}</p>\n <p>{openingHoursText2}</p>\n </Row>\n </Col>\n </Col>\n );\n};\n"],"names":["CardOpeningHours","title","TitleTag","openingHours","weekDaysMap","openLabel","todayLabel","closeLabel","open24Label","opensSoonLabel","opensAtLabel","opensTomorrowLabel","opensOnLabel","atLabel","closesAtLabel","activeDay","setActiveDay","useState","dayLabel","setDayLabel","openingHoursText","setOpeningHoursText","openingHoursText2","setOpeningHoursText2","isOpen","setIsOpen","isOpeningSoon","setIsOpeningSoon","additionalInfo","setAdditionalInfo","weekDays","weekKeys","formatCurrentTime","DateTime","parseTimeToMinutes","timeStr","hours","minutes","isSlot24Hours","useCallback","slot","is24HoursDay","slots","isCurrentlyOpen","currentTime","from","to","getNextOpeningTime","checkIsOpeningSoon","openingTime","openMinutes","currentMinutes","diffMinutes","getNextOpenDay","currentDayIndex","i","nextIndex","nextDayKey","nextDaySlots","generateOpeningHoursText","useMemo","useEffect","todayIndex","todayKey","todaySlots","open","closingTime","nextOpeningTime","nextDay","jsxs","Col","jsx","Row","day","index","clsx"],"mappings":";;;;;;;;AA4BO,MAAMA,KAAmB,CAAC;AAAA,EAC/B,OAAAC,IAAQ;AAAA,EACR,UAAUC,IAAW;AAAA,EACrB,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,YAAAC,IAAa;AAAA,EACb,YA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AAgB,WAAU,yBAC5C,UAAS1C,EAAA,IAAI,CAAC2C,GAAKC,MAClBH,gBAAAA,EAAA;AAAA,YAACC;AAAA,YAAA;AAAA,cACC,gBAAgB;AAAA,cAChB,YAAY;AAAA,cAEZ,WAAWG;AAAA,gBACT5D,MAAc2D,IAAQ,4BAA4B;AAAA,gBAClD;AAAA,cACF;AAAA,cAEC,UAAID,EAAA,OAAO,CAAC,EAAE,YAAY;AAAA,YAAA;AAAA,YANtBC;AAAA,UAQR,CAAA,GACH;AAAA,UACAL,gBAAAA,EAAA;AAAA,YAACG;AAAA,YAAA;AAAA,cACC,gBAAgB;AAAA,cAChB,YAAY;AAAA,cACZ,IAAI;AAAA,cAEJ,UAAA;AAAA,gBAAAD,gBAAAA,EAAAA,IAAC,OAAG,UAASrD,EAAA,CAAA;AAAA,gBACbqD,gBAAAA,EAAAA,IAAC,OAAG,UAAkBjD,EAAA,CAAA;AAAA,cAAA;AAAA,YAAA;AAAA,UAAA;AAAA,QACxB,EACF,CAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EACF;AAEJ;"}
|
1
|
+
{"version":3,"file":"index.es31.js","sources":["../src/components/ui/CardOpeningHours/index.tsx"],"sourcesContent":["import \"./CardOpeningHours.scss\";\r\nimport clsx from \"clsx\";\r\nimport { OpeningHours } from \"@anoki/fse-common\";\r\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\r\nimport { DateTime } from \"luxon\";\r\nimport { Col, Row } from \"@/components\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\ntype WeekDaysMap = Record<keyof OpeningHours, string>;\r\ntype TimeSlot = { from: string; to: string };\r\n\r\ntype CardOpeningHoursProps = {\r\n title: string;\r\n titleTag: HeadingLevel;\r\n openingHours: OpeningHours;\r\n weekDaysMap: WeekDaysMap;\r\n openLabel?: string;\r\n todayLabel?: string;\r\n closeLabel?: string;\r\n open24Label?: string;\r\n opensSoonLabel?: string;\r\n opensAtLabel?: string;\r\n opensTomorrowLabel?: string;\r\n opensOnLabel?: string;\r\n atLabel?: string;\r\n closesAtLabel?: string;\r\n};\r\n\r\nexport const CardOpeningHours = ({\r\n title = \"Orari di apertura\",\r\n titleTag: TitleTag = \"h3\",\r\n openingHours,\r\n weekDaysMap,\r\n openLabel = \"Aperto\",\r\n todayLabel = \"Oggi\",\r\n closeLabel = \"Chiuso\",\r\n open24Label = \"24 ore su 24\",\r\n opensSoonLabel = \"Apre tra poco\",\r\n opensAtLabel = \"Apre alle\",\r\n opensTomorrowLabel = \"Apre domani\",\r\n opensOnLabel = \"Apre\",\r\n atLabel = \"alle\",\r\n closesAtLabel = \"Chiude alle\",\r\n}: CardOpeningHoursProps) => {\r\n const [activeDay, setActiveDay] = useState<number | null>(null);\r\n const [dayLabel, setDayLabel] = useState(\"\");\r\n const [openingHoursText, setOpeningHoursText] = useState(\"\");\r\n const [openingHoursText2, setOpeningHoursText2] = useState(\"\");\r\n const [isOpen, setIsOpen] = useState(false);\r\n const [isOpeningSoon, setIsOpeningSoon] = useState(false);\r\n const [additionalInfo, setAdditionalInfo] = useState(\"\");\r\n\r\n const weekDays = Object.values(weekDaysMap);\r\n const weekKeys = Object.keys(weekDaysMap) as (keyof OpeningHours)[];\r\n\r\n const formatCurrentTime = () => {\r\n return DateTime.now().toFormat(\"HH:mm\");\r\n };\r\n\r\n const parseTimeToMinutes = (timeStr: string): number => {\r\n const [hours, minutes] = timeStr.split(\":\").map(Number);\r\n return hours * 60 + minutes;\r\n };\r\n\r\n const isSlot24Hours = useCallback(\r\n (slot: TimeSlot) => slot.from === \"00:00\" && slot.to === \"00:00\",\r\n [],\r\n );\r\n\r\n const is24HoursDay = useCallback(\r\n (slots: TimeSlot[]) => slots.some(isSlot24Hours),\r\n [isSlot24Hours],\r\n );\r\n\r\n const isCurrentlyOpen = (slots: TimeSlot[], currentTime: string) => {\r\n for (const { from, to } of slots) {\r\n if (currentTime >= from && currentTime <= to) {\r\n return { open: true, closingTime: to };\r\n }\r\n }\r\n return { open: false, closingTime: \"\" };\r\n };\r\n\r\n const getNextOpeningTime = (slots: TimeSlot[], currentTime: string) => {\r\n for (const { from } of slots) {\r\n if (from > currentTime) {\r\n return from;\r\n }\r\n }\r\n return \"\";\r\n };\r\n\r\n const checkIsOpeningSoon = useCallback(\r\n (openingTime: string, currentTime: string) => {\r\n if (!openingTime) return false;\r\n\r\n const openMinutes = parseTimeToMinutes(openingTime);\r\n const currentMinutes = parseTimeToMinutes(currentTime);\r\n const diffMinutes = openMinutes - currentMinutes;\r\n\r\n return diffMinutes > 0 && diffMinutes <= 60;\r\n },\r\n [],\r\n );\r\n\r\n const getNextOpenDay = useCallback(\r\n (currentDayIndex: number) => {\r\n for (let i = 1; i <= 7; i++) {\r\n const nextIndex = (currentDayIndex + i) % 7;\r\n const nextDayKey = weekKeys[nextIndex];\r\n const nextDaySlots = openingHours[nextDayKey];\r\n\r\n if (nextDaySlots && nextDaySlots.length > 0) {\r\n return {\r\n dayName: weekDays[nextIndex].toLowerCase(),\r\n isTomorrow: i === 1,\r\n };\r\n }\r\n }\r\n return null;\r\n },\r\n [weekKeys, openingHours, weekDays],\r\n );\r\n\r\n const generateOpeningHoursText = useMemo(() => {\r\n return (hours: TimeSlot[]) => {\r\n if (hours.length === 0) {\r\n return closeLabel;\r\n }\r\n\r\n if (is24HoursDay(hours)) {\r\n return `${openLabel} ${open24Label}`;\r\n }\r\n\r\n return hours.map(({ from, to }) => `${from} - ${to}`).join(\" | \");\r\n };\r\n }, [closeLabel, is24HoursDay, open24Label, openLabel]);\r\n\r\n useEffect(() => {\r\n const now = DateTime.now();\r\n const todayIndex = now.weekday - 1;\r\n setActiveDay(todayIndex);\r\n setDayLabel(weekDays[todayIndex] || \"\");\r\n\r\n const todayKey = weekKeys[todayIndex];\r\n const todaySlots = openingHours[todayKey];\r\n\r\n if (!todaySlots) {\r\n return;\r\n }\r\n\r\n const currentTime = formatCurrentTime();\r\n\r\n if (is24HoursDay(todaySlots)) {\r\n setOpeningHoursText(openLabel);\r\n setAdditionalInfo(` | ${open24Label}`);\r\n setIsOpen(true);\r\n setIsOpeningSoon(false);\r\n setOpeningHoursText2(`${openLabel} ${open24Label}`);\r\n return;\r\n }\r\n\r\n const { open, closingTime } = isCurrentlyOpen(todaySlots, currentTime);\r\n\r\n if (open) {\r\n setOpeningHoursText(openLabel);\r\n setAdditionalInfo(\r\n closingTime ? ` | ${closesAtLabel} ${closingTime}` : \"\",\r\n );\r\n setIsOpen(true);\r\n setIsOpeningSoon(false);\r\n } else {\r\n const nextOpeningTime = getNextOpeningTime(todaySlots, currentTime);\r\n setIsOpen(false);\r\n\r\n if (nextOpeningTime) {\r\n if (checkIsOpeningSoon(nextOpeningTime, currentTime)) {\r\n setOpeningHoursText(opensSoonLabel);\r\n setAdditionalInfo(` | ${atLabel} ${nextOpeningTime}`);\r\n setIsOpeningSoon(true);\r\n } else {\r\n setOpeningHoursText(closeLabel);\r\n setAdditionalInfo(` | ${opensAtLabel} ${nextOpeningTime}`);\r\n setIsOpeningSoon(false);\r\n }\r\n } else {\r\n setOpeningHoursText(closeLabel);\r\n setIsOpeningSoon(false);\r\n const nextDay = getNextOpenDay(todayIndex);\r\n\r\n if (nextDay) {\r\n setAdditionalInfo(\r\n nextDay.isTomorrow\r\n ? ` | ${opensTomorrowLabel}`\r\n : ` | ${opensOnLabel} ${nextDay.dayName}`,\r\n );\r\n } else {\r\n setAdditionalInfo(\"\");\r\n }\r\n }\r\n }\r\n\r\n setOpeningHoursText2(generateOpeningHoursText(todaySlots));\r\n }, [\r\n atLabel,\r\n checkIsOpeningSoon,\r\n closeLabel,\r\n closesAtLabel,\r\n generateOpeningHoursText,\r\n getNextOpenDay,\r\n is24HoursDay,\r\n open24Label,\r\n openLabel,\r\n openingHours,\r\n opensAtLabel,\r\n opensOnLabel,\r\n opensSoonLabel,\r\n opensTomorrowLabel,\r\n weekDays,\r\n weekKeys,\r\n ]);\r\n\r\n return (\r\n <Col\r\n fs={\"6\"}\r\n fw={\"semibold\"}\r\n className=\"ui-card-opening rounded shadow text-slate-28\"\r\n >\r\n <Col as={\"header\"} className=\"ui-card-header\">\r\n <TitleTag className=\"text-slate-20 fw-semibold fs-4\">{title}</TitleTag>\r\n <Row\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n style={{ backgroundColor: \"#F7F2FC\" }}\r\n py={\"x16\"}\r\n px={\"x24\"}\r\n fw={\"bold\"}\r\n fs={\"6\"}\r\n className=\"rounded\"\r\n >\r\n <p className=\"text-slate-28\">\r\n {todayLabel}, {dayLabel}\r\n </p>\r\n <p>\r\n <span\r\n className={\r\n isOpen\r\n ? \"text-success\"\r\n : isOpeningSoon\r\n ? \"text-warning\"\r\n : \"text-error\"\r\n }\r\n >\r\n {openingHoursText}\r\n </span>\r\n <span className=\"fw-regular text-grey-black\">{additionalInfo}</span>\r\n </p>\r\n </Row>\r\n </Col>\r\n <Col as={\"main\"} pt={\"x32\"} gap={\"x24\"}>\r\n <Row justifyContent={\"space-around\"} className=\"ui-weekdays-container\">\r\n {weekDays.map((day, index) => (\r\n <Row\r\n justifyContent={\"center\"}\r\n alignItems={\"center\"}\r\n key={index}\r\n className={clsx(\r\n activeDay === index ? \"active-day text-primary\" : \"\",\r\n \"flex-1\",\r\n )}\r\n >\r\n {day.charAt(0).toUpperCase()}\r\n </Row>\r\n ))}\r\n </Row>\r\n <Row\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n fw={\"regular\"}\r\n >\r\n <p>{dayLabel}</p>\r\n <p>{openingHoursText2}</p>\r\n </Row>\r\n </Col>\r\n </Col>\r\n );\r\n};\r\n"],"names":["CardOpeningHours","title","TitleTag","openingHours","weekDaysMap","openLabel","todayLabel","closeLabel","open24Label","opensSoonLabel","opensAtLabel","opensTomorrowLabel","opensOnLabel","atLabel","closesAtLabel","activeDay","setActiveDay","useState","dayLabel","setDayLabel","openingHoursText","setOpeningHoursText","openingHoursText2","setOpeningHoursText2","isOpen","setIsOpen","isOpeningSoon","setIsOpeningSoon","additionalInfo","setAdditionalInfo","weekDays","weekKeys","formatCurrentTime","DateTime","parseTimeToMinutes","timeStr","hours","minutes","isSlot24Hours","useCallback","slot","is24HoursDay","slots","isCurrentlyOpen","currentTime","from","to","getNextOpeningTime","checkIsOpeningSoon","openingTime","openMinutes","currentMinutes","diffMinutes","getNextOpenDay","currentDayIndex","i","nextIndex","nextDayKey","nextDaySlots","generateOpeningHoursText","useMemo","useEffect","todayIndex","todayKey","todaySlots","open","closingTime","nextOpeningTime","nextDay","jsxs","Col","jsx","Row","day","index","clsx"],"mappings":";;;;;;;;AA4BO,MAAMA,KAAmB,CAAC;AAAA,EAC/B,OAAAC,IAAQ;AAAA,EACR,UAAUC,IAAW;AAAA,EACrB,cAAAC;AAAA,EACA,aAAAC;AAAA,EACA,WAAAC,IAAY;AAAA,EACZ,YAAAC,IAAa;AAAA,EACb,YAAAC,IAAa;AAAA,EACb,aAAAC,IAAc;AAAA,EACd,gBAAAC,IAAiB;AAAA,EACjB,cAAAC,IAAe;AAAA,EACf,oBAAAC,IAAqB;AAAA,EACrB,cAAAC,IAAe;AAAA,EACf,SAAAC,IAAU;AAAA,EACV,eAAAC,IAAgB;AAClB,MAA6B;AAC3B,QAAM,CAACC,GAAWC,CAAY,IAAIC,EAAwB,IAAI,GACxD,CAACC,GAAUC,CAAW,IAAIF,EAAS,EAAE,GACrC,CAACG,GAAkBC,CAAmB,IAAIJ,EAAS,EAAE,GACrD,CAACK,GAAmBC,CAAoB,IAAIN,EAAS,EAAE,GACvD,CAACO,GAAQC,CAAS,IAAIR,EAAS,EAAK,GACpC,CAACS,GAAeC,CAAgB,IAAIV,EAAS,EAAK,GAClD,CAACW,GAAgBC,CAAiB,IAAIZ,EAAS,EAAE,GAEjDa,IAAW,OAAO,OAAO1B,CAAW,GACpC2B,IAAW,OAAO,KAAK3B,CAAW,GAElC4B,IAAoB,MACjBC,EAAS,MAAM,SAAS,OAAO,GAGlCC,IAAqB,CAACC,MAA4B;AAChD,UAAA,CAACC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
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.es310.js","sources":["../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/Direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":";;AAGA,IAAIA,IAAmBC,EAAM,cAAc,MAAM;AAKjD,SAASC,EAAaC,GAAU;AAC9B,QAAMC,IAAYH,EAAM,WAAWD,CAAgB;AACnD,SAAOG,KAAYC,KAAa;AAClC;","x_google_ignoreList":[0]}
|
@@ -4,8 +4,8 @@ import { Root as Oe } from "./index.es316.js";
|
|
4
4
|
import { useComposedRefs as T } from "./index.es273.js";
|
5
5
|
import { createContextScope as Re } from "./index.es274.js";
|
6
6
|
import { Primitive as z } from "./index.es276.js";
|
7
|
-
import { useCallbackRef as Ee } from "./index.
|
8
|
-
import { useLayoutEffect as B } from "./index.
|
7
|
+
import { useCallbackRef as Ee } from "./index.es308.js";
|
8
|
+
import { useLayoutEffect as B } from "./index.es313.js";
|
9
9
|
import { useSize as Ne } from "./index.es280.js";
|
10
10
|
import { j as f } from "./index.es154.js";
|
11
11
|
import { autoUpdate as _e } from "./index.es317.js";
|
@@ -218,4 +218,4 @@ export {
|
|
218
218
|
qe as Root,
|
219
219
|
Ue as createPopperScope
|
220
220
|
};
|
221
|
-
//# sourceMappingURL=index.
|
221
|
+
//# sourceMappingURL=index.es311.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es303.js","sources":["../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","_a","arrowY","_b","cannotCenterArrow","_c","contentZIndex","setContentZIndex","_d","_e","_f","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor","Content","Arrow"],"mappings":";;;;;;;;;;;AAyBA,IAAIA,IAAc,UACd,CAACC,GAAqBC,EAAiB,IAAIC,GAAmBH,CAAW,GACzE,CAACI,IAAgBC,CAAgB,IAAIJ,EAAoBD,CAAW,GACpEM,IAAS,CAACC,MAAU;AACtB,QAAM,EAAE,eAAAC,GAAe,UAAAC,EAAQ,IAAKF,GAC9B,CAACG,GAAQC,CAAS,IAAIC,EAAM,SAAS,IAAI;AAC/C,SAAuBC,gBAAAA,EAAG,IAACT,IAAgB,EAAE,OAAOI,GAAe,QAAAE,GAAQ,gBAAgBC,GAAW,UAAAF,GAAU;AAClH;AACAH,EAAO,cAAcN;AACrB,IAAIc,IAAc,gBACdC,IAAeH,EAAM;AAAA,EACvB,CAACL,GAAOS,MAAiB;AACvB,UAAM,EAAE,eAAAR,GAAe,YAAAS,GAAY,GAA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e,GAAGC,CAAY,MAClDG,IAAI,GAAG,CAAC9D,CAAW,QACV8B,MAAe,SACxB+B,IAAIJ,IAAgBC,IAAe,GAAGC,CAAY,MAClDG,IAAI,GAAGzC,EAAM,SAAS,SAASrB,CAAW,QACjC8B,MAAe,WACxB+B,IAAI,GAAG,CAAC7D,CAAW,MACnB8D,IAAIL,IAAgBC,IAAe,GAAGE,CAAY,QACzC9B,MAAe,WACxB+B,IAAI,GAAGxC,EAAM,SAAS,QAAQrB,CAAW,MACzC8D,IAAIL,IAAgBC,IAAe,GAAGE,CAAY,OAE7C,EAAE,MAAM,EAAE,GAAAC,GAAG,GAAAC,EAAC,EAAI;AAAA,EAC7B;AACA;AACA,SAAS9B,EAA6BvB,GAAW;AAC/C,QAAM,CAAC9B,GAAME,IAAQ,QAAQ,IAAI4B,EAAU,MAAM,GAAG;AACpD,SAAO,CAAC9B,GAAME,CAAK;AACrB;AACG,IAACkF,KAAQ1G,GACR2G,KAASlG,GACTmG,KAAUvF,GACVwF,KAAQjB;","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.es311.js","sources":["../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","_a","arrowY","_b","cannotCenterArrow","_c","contentZIndex","setContentZIndex","_d","_e","_f","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor","Content","Arrow"],"mappings":";;;;;;;;;;;AAyBA,IAAIA,IAAc,UACd,CAACC,GAAqBC,EAAiB,IAAIC,GAAmBH,CAAW,GACzE,CAACI,IAAgBC,CAAgB,IAAIJ,EAAoBD,CAAW,GACpEM,IAAS,CAACC,MAAU;AACtB,QAAM,EAAE,eAAAC,GAAe,UAAAC,EAAQ,IAAKF,GAC9B,CAACG,GAAQC,CAAS,IAAIC,EAAM,SAAS,IAAI;AAC/C,SAAuBC,gBAAAA,EAAG,IAACT,IAAgB,EAAE,OAAOI,GAAe,QAAAE,GAAQ,gBAAgBC,GAAW,UAAAF,GAAU;AAClH;AACAH,EAAO,cAAcN;AACrB,IAAIc,IAAc,gBACdC,IAAeH,EAAM;AAAA,EACvB,CAACL,GAAOS,MAAiB;AACvB,UAAM,EAAE,eAAAR,GAAe,YAAAS,GAAY,GAAGC,EAAa,IAAGX,GAChDY,IAAUd,EAAiBS,GAAaN,CAAa,GACrDY,IAAMR,EAAM,OAAO,IAAI,GACvBS,IAAeC,EAAgBN,GAAcI,CAAG;AACtD,WAAAR,EAAM,UAAU,MAAM;AACpB,MAAAO,EAAQ,gBAAeF,KAAA,gBAAAA,EAAY,YAAWG,EAAI,OAAO;AAAA,IAC/D,CAAK,GACMH,IAAa,OAAuBJ,gBAAAA,EAAAA,IAAIU,EAAU,KAAK,EAAE,GAAGL,GAAa,KAAKG,GAAc;AAAA,EACvG;AACA;AACAN,EAAa,cAAcD;AAC3B,IAAIU,IAAe,iBACf,CAACC,IAAuBC,EAAiB,IAAIzB,EAAoBuB,CAAY,GAC7EG,IAAgBf,EAAM;AAAA,EACxB,CAACL,GAAOS,MAAiB;;AACvB,UAAM;AAAA,MACJ,eAAAR;AAAA,MACA,MAAAo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C9B,GAAME,CAAK;AACrB;AACG,IAACkF,KAAQ1G,GACR2G,KAASlG,GACTmG,KAAUvF,GACVwF,KAAQjB;","x_google_ignoreList":[0]}
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import * as s from "react";
|
2
2
|
import { composeEventHandlers as p } from "./index.es272.js";
|
3
|
-
import { createCollection as H } from "./index.
|
3
|
+
import { createCollection as H } from "./index.es309.js";
|
4
4
|
import { useComposedRefs as V } from "./index.es273.js";
|
5
5
|
import { createContextScope as z } from "./index.es274.js";
|
6
6
|
import { useId as q } from "./index.es278.js";
|
7
7
|
import { Primitive as P } from "./index.es276.js";
|
8
|
-
import { useCallbackRef as J } from "./index.
|
8
|
+
import { useCallbackRef as J } from "./index.es308.js";
|
9
9
|
import { useControllableState as Q } from "./index.es275.js";
|
10
|
-
import { useDirection as W } from "./index.
|
10
|
+
import { useDirection as W } from "./index.es310.js";
|
11
11
|
import { j as d } from "./index.es154.js";
|
12
12
|
var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, b = "RovingFocusGroup", [h, G, Z] = H(b), [$, Fe] = z(
|
13
13
|
b,
|
@@ -178,4 +178,4 @@ export {
|
|
178
178
|
K as RovingFocusGroupItem,
|
179
179
|
Fe as createRovingFocusGroupScope
|
180
180
|
};
|
181
|
-
//# sourceMappingURL=index.
|
181
|
+
//# sourceMappingURL=index.es312.js.map
|