@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.cjs224.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs224.js","sources":["../src/components/ui/DocumentUploadModal/DocumentUploadModalFooter/index.tsx"],"sourcesContent":["import \"./DocumentUploadModalFooter.scss\";\n\ntype DocumentUploadModalFooterProps = {\n children?: React.ReactNode;\n};\n\nexport const DocumentUploadModalFooter = ({\n children,\n}: DocumentUploadModalFooterProps) => {\n return (\n <footer className=\"ui-upload-modal-footer bg-white shadow\">\n {children}\n </footer>\n );\n};\n"],"names":["DocumentUploadModalFooter","children","jsx"],"mappings":"kJAMO,MAAMA,EAA4B,CAAC,CACxC,SAAAC,CACF,IAEKC,EAAAA,kBAAAA,IAAA,SAAA,CAAO,UAAU,yCACf,SAAAD,CACH,CAAA"}
|
1
|
+
{"version":3,"file":"index.cjs224.js","sources":["../src/components/ui/DocumentUploadModal/DocumentUploadModalFooter/index.tsx"],"sourcesContent":["import \"./DocumentUploadModalFooter.scss\";\r\n\r\ntype DocumentUploadModalFooterProps = {\r\n children?: React.ReactNode;\r\n};\r\n\r\nexport const DocumentUploadModalFooter = ({\r\n children,\r\n}: DocumentUploadModalFooterProps) => {\r\n return (\r\n <footer className=\"ui-upload-modal-footer bg-white shadow\">\r\n {children}\r\n </footer>\r\n );\r\n};\r\n"],"names":["DocumentUploadModalFooter","children","jsx"],"mappings":"kJAMO,MAAMA,EAA4B,CAAC,CACxC,SAAAC,CACF,IAEKC,EAAAA,kBAAAA,IAAA,SAAA,CAAO,UAAU,yCACf,SAAAD,CACH,CAAA"}
|
package/dist/index.cjs226.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs226.js","sources":["../src/components/ui/Section/Title/index.tsx"],"sourcesContent":["import { TypographyKeys } from \"@/theme/typography\";\nimport { ColorKeys, createColorClasses } from \"@/theme/colors\";\nimport clsx from \"clsx\";\nimport { ReactNode } from \"react\";\n\ntype TitleProps = {\n className?: string;\n fs?: TypographyKeys;\n mdFs?: TypographyKeys;\n color?: ColorKeys;\n as?: \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n children: ReactNode;\n};\n\nexport const Title = ({\n className,\n fs = \"3\",\n mdFs = \"1\",\n color = \"slate-20\",\n as = \"h2\",\n children,\n}: TitleProps) => {\n const Heading = as;\n\n const createFontSizeClass = (size: TypographyKeys) => {\n return `fs-${size}`;\n };\n\n const fontSizeClass = createFontSizeClass(fs);\n const mdFontSizeClass = mdFs ? `md-fs-${mdFs}` : \"\";\n const textColorClass = createColorClasses({ text: color });\n\n return (\n <Heading\n className={clsx(\n \"fw-bold\",\n fontSizeClass,\n mdFontSizeClass,\n\n textColorClass,\n className,\n )}\n >\n {children}\n </Heading>\n );\n};\n"],"names":["Title","className","fs","mdFs","color","as","children","Heading","fontSizeClass","size","mdFontSizeClass","textColorClass","createColorClasses","jsx","clsx"],"mappings":"mLAcaA,EAAQ,CAAC,CACpB,UAAAC,EACA,GAAAC,EAAK,IACL,KAAAC,EAAO,IACP,MAAAC,EAAQ,WACR,GAAAC,EAAK,KACL,SAAAC,CACF,IAAkB,CAChB,MAAMC,EAAUF,EAMVG,GAJuBC,GACpB,MAAMA,CAAI,IAGuBP,CAAE,EACtCQ,EAAkBP,EAAO,SAASA,CAAI,GAAK,GAC3CQ,EAAiBC,EAAA,mBAAmB,CAAE,KAAMR,EAAO,EAGvD,OAAAS,EAAA,kBAAA,IAACN,EAAA,CACC,UAAWO,EAAA,KACT,UACAN,EACAE,EAEAC,EACAV,CACF,EAEC,SAAAK,CAAA,CACH,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs226.js","sources":["../src/components/ui/Section/Title/index.tsx"],"sourcesContent":["import { TypographyKeys } from \"@/theme/typography\";\r\nimport { ColorKeys, createColorClasses } from \"@/theme/colors\";\r\nimport clsx from \"clsx\";\r\nimport { ReactNode } from \"react\";\r\n\r\ntype TitleProps = {\r\n className?: string;\r\n fs?: TypographyKeys;\r\n mdFs?: TypographyKeys;\r\n color?: ColorKeys;\r\n as?: \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\r\n children: ReactNode;\r\n};\r\n\r\nexport const Title = ({\r\n className,\r\n fs = \"3\",\r\n mdFs = \"1\",\r\n color = \"slate-20\",\r\n as = \"h2\",\r\n children,\r\n}: TitleProps) => {\r\n const Heading = as;\r\n\r\n const createFontSizeClass = (size: TypographyKeys) => {\r\n return `fs-${size}`;\r\n };\r\n\r\n const fontSizeClass = createFontSizeClass(fs);\r\n const mdFontSizeClass = mdFs ? `md-fs-${mdFs}` : \"\";\r\n const textColorClass = createColorClasses({ text: color });\r\n\r\n return (\r\n <Heading\r\n className={clsx(\r\n \"fw-bold\",\r\n fontSizeClass,\r\n mdFontSizeClass,\r\n\r\n textColorClass,\r\n className,\r\n )}\r\n >\r\n {children}\r\n </Heading>\r\n );\r\n};\r\n"],"names":["Title","className","fs","mdFs","color","as","children","Heading","fontSizeClass","size","mdFontSizeClass","textColorClass","createColorClasses","jsx","clsx"],"mappings":"mLAcaA,EAAQ,CAAC,CACpB,UAAAC,EACA,GAAAC,EAAK,IACL,KAAAC,EAAO,IACP,MAAAC,EAAQ,WACR,GAAAC,EAAK,KACL,SAAAC,CACF,IAAkB,CAChB,MAAMC,EAAUF,EAMVG,GAJuBC,GACpB,MAAMA,CAAI,IAGuBP,CAAE,EACtCQ,EAAkBP,EAAO,SAASA,CAAI,GAAK,GAC3CQ,EAAiBC,EAAA,mBAAmB,CAAE,KAAMR,EAAO,EAGvD,OAAAS,EAAA,kBAAA,IAACN,EAAA,CACC,UAAWO,EAAA,KACT,UACAN,EACAE,EAEAC,EACAV,CACF,EAEC,SAAAK,CAAA,CACH,CAEJ"}
|
package/dist/index.cjs227.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs227.js","sources":["../src/components/ui/Section/Description/index.tsx"],"sourcesContent":["import { TypographyKeys } from \"@/theme/typography\";\nimport { ColorKeys, createColorClasses } from \"@/theme/colors\";\nimport clsx from \"clsx\";\nimport { PropsWithChildren } from \"react\";\n\ntype DescriptionProps = PropsWithChildren<{\n fs?: TypographyKeys;\n color?: ColorKeys;\n className?: string;\n}>;\n\nexport const Description = ({\n fs = \"6\",\n color = \"slate-28\",\n className,\n children,\n}: DescriptionProps) => {\n const createFontSizeClass = (size: TypographyKeys) => {\n return `fs-${size}`;\n };\n\n const fontSizeClass = createFontSizeClass(fs);\n\n const textColorClass = createColorClasses({ text: color });\n\n return (\n <div\n className={clsx(\n fontSizeClass,\n textColorClass,\n \"fw-regular\",\n \"ui-max-width-section-description\",\n className,\n \"md-fs-custom\",\n )}\n >\n {children}\n </div>\n );\n};\n"],"names":["Description","fs","color","className","children","fontSizeClass","size","textColorClass","createColorClasses","jsx","clsx"],"mappings":"mLAWaA,EAAc,CAAC,CAC1B,GAAAC,EAAK,IACL,MAAAC,EAAQ,WACR,UAAAC,EACA,SAAAC,CACF,IAAwB,CAKhB,MAAAC,GAJuBC,GACpB,MAAMA,CAAI,IAGuBL,CAAE,EAEtCM,EAAiBC,EAAA,mBAAmB,CAAE,KAAMN,EAAO,EAGvD,OAAAO,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWC,EAAA,KACTL,EACAE,EACA,aACA,mCACAJ,EACA,cACF,EAEC,SAAAC,CAAA,CACH,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs227.js","sources":["../src/components/ui/Section/Description/index.tsx"],"sourcesContent":["import { TypographyKeys } from \"@/theme/typography\";\r\nimport { ColorKeys, createColorClasses } from \"@/theme/colors\";\r\nimport clsx from \"clsx\";\r\nimport { PropsWithChildren } from \"react\";\r\n\r\ntype DescriptionProps = PropsWithChildren<{\r\n fs?: TypographyKeys;\r\n color?: ColorKeys;\r\n className?: string;\r\n}>;\r\n\r\nexport const Description = ({\r\n fs = \"6\",\r\n color = \"slate-28\",\r\n className,\r\n children,\r\n}: DescriptionProps) => {\r\n const createFontSizeClass = (size: TypographyKeys) => {\r\n return `fs-${size}`;\r\n };\r\n\r\n const fontSizeClass = createFontSizeClass(fs);\r\n\r\n const textColorClass = createColorClasses({ text: color });\r\n\r\n return (\r\n <div\r\n className={clsx(\r\n fontSizeClass,\r\n textColorClass,\r\n \"fw-regular\",\r\n \"ui-max-width-section-description\",\r\n className,\r\n \"md-fs-custom\",\r\n )}\r\n >\r\n {children}\r\n </div>\r\n );\r\n};\r\n"],"names":["Description","fs","color","className","children","fontSizeClass","size","textColorClass","createColorClasses","jsx","clsx"],"mappings":"mLAWaA,EAAc,CAAC,CAC1B,GAAAC,EAAK,IACL,MAAAC,EAAQ,WACR,UAAAC,EACA,SAAAC,CACF,IAAwB,CAKhB,MAAAC,GAJuBC,GACpB,MAAMA,CAAI,IAGuBL,CAAE,EAEtCM,EAAiBC,EAAA,mBAAmB,CAAE,KAAMN,EAAO,EAGvD,OAAAO,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWC,EAAA,KACTL,EACAE,EACA,aACA,mCACAJ,EACA,cACF,EAEC,SAAAC,CAAA,CACH,CAEJ"}
|
package/dist/index.cjs23.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs23.js","sources":["../src/components/ui/FilterDropDown/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./FilterDropDown.scss\";\nimport { ArrowDown } from \"@/icons/ArrowDown\";\nimport { useEffect, useMemo, useRef, useState } from \"react\";\nimport { ArrowList } from \"@/icons/ArrowList\";\nimport { Col } from \"@/components\";\n\ntype FilterDropdownProps = {\n size: \"small\" | \"large\";\n items: string[];\n className?: string;\n filter: string;\n setFilter: (filter: string) => void;\n allStructuresLabel: string;\n};\nexport const FilterDropDown = ({\n size,\n items = [],\n className,\n filter,\n setFilter,\n allStructuresLabel,\n}: FilterDropdownProps) => {\n const [isExpanded, setIsExpanded] = useState(false);\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n const processedItems = useMemo(() => {\n return [allStructuresLabel, ...items];\n }, [items, allStructuresLabel]);\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setIsExpanded(false);\n }\n };\n\n if (isExpanded) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n } else {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [isExpanded]);\n\n return (\n <div\n ref={dropdownRef}\n style={size === \"large\" ? { width: \"668px\" } : { width: \"322px\" }}\n className={clsx(className, \"ui-filter-dropdown\")}\n >\n <button\n className=\"ui-button-accordion\"\n type=\"button\"\n onClick={() => setIsExpanded(!isExpanded)}\n >\n <h3 className=\"fw-semibold fs-custom text-primary\">{filter}</h3>\n <ArrowDown\n color=\"primary\"\n className={clsx(\"ui-arrow\", { \"ui-expanded\": isExpanded })}\n />\n </button>\n {isExpanded && (\n <div className={\"ui-wrap-list-item-filter position-relative pt-x12\"}>\n <ArrowList className={\"ui-arrow-list position-absolute\"} />\n <div className={\"p-x24 h-full shadow\"}>\n <Col\n gap={\"x24\"}\n text={\"primary\"}\n fs={\"custom\"}\n fw={\"regular\"}\n className={\"ui-list-item-filter h-full overflow fw-regular\"}\n >\n {processedItems.map((item, index) => {\n return (\n <div\n key={index}\n onClick={() => {\n setFilter(item);\n setIsExpanded(false);\n }}\n >\n {item}\n </div>\n );\n })}\n </Col>\n </div>\n </div>\n )}\n </div>\n );\n};\n"],"names":["FilterDropDown","size","items","className","filter","setFilter","allStructuresLabel","isExpanded","setIsExpanded","useState","dropdownRef","useRef","processedItems","useMemo","useEffect","handleClickOutside","event","jsxs","cl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AAU,UAAW,iCAAmC,CAAA,EACzDF,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAW,sBACd,SAAAA,EAAA,kBAAA,IAACG,EAAA,IAAA,CACC,IAAK,MACL,KAAM,UACN,GAAI,SACJ,GAAI,UACJ,UAAW,iDAEV,SAAeV,EAAA,IAAI,CAACW,EAAMC,IAEvBL,EAAA,kBAAA,IAAC,MAAA,CAEC,QAAS,IAAM,CACbd,EAAUkB,CAAI,EACdf,EAAc,EAAK,CACrB,EAEC,SAAAe,CAAA,EANIC,CAOP,CAEH,CAAA,CAAA,CAEL,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CAEJ,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs23.js","sources":["../src/components/ui/FilterDropDown/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./FilterDropDown.scss\";\r\nimport { ArrowDown } from \"@/icons/ArrowDown\";\r\nimport { useEffect, useMemo, useRef, useState } from \"react\";\r\nimport { ArrowList } from \"@/icons/ArrowList\";\r\nimport { Col } from \"@/components\";\r\n\r\ntype FilterDropdownProps = {\r\n size: \"small\" | \"large\";\r\n items: string[];\r\n className?: string;\r\n filter: string;\r\n setFilter: (filter: string) => void;\r\n allStructuresLabel: string;\r\n};\r\nexport const FilterDropDown = ({\r\n size,\r\n items = [],\r\n className,\r\n filter,\r\n setFilter,\r\n allStructuresLabel,\r\n}: FilterDropdownProps) => {\r\n const [isExpanded, setIsExpanded] = useState(false);\r\n const dropdownRef = useRef<HTMLDivElement>(null);\r\n\r\n const processedItems = useMemo(() => {\r\n return [allStructuresLabel, ...items];\r\n }, [items, allStructuresLabel]);\r\n\r\n useEffect(() => {\r\n const handleClickOutside = (event: MouseEvent) => {\r\n if (\r\n dropdownRef.current &&\r\n !dropdownRef.current.contains(event.target as Node)\r\n ) {\r\n setIsExpanded(false);\r\n }\r\n };\r\n\r\n if (isExpanded) {\r\n document.addEventListener(\"mousedown\", handleClickOutside);\r\n } else {\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n }\r\n\r\n return () => {\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n };\r\n }, [isExpanded]);\r\n\r\n return (\r\n <div\r\n ref={dropdownRef}\r\n style={size === \"large\" ? { width: \"668px\" } : { width: \"322px\" }}\r\n className={clsx(className, \"ui-filter-dropdown\")}\r\n >\r\n <button\r\n className=\"ui-button-accordion\"\r\n type=\"button\"\r\n onClick={() => setIsExpanded(!isExpanded)}\r\n >\r\n <h3 className=\"fw-semibold fs-custom text-primary\">{filter}</h3>\r\n <ArrowDown\r\n color=\"primary\"\r\n className={clsx(\"ui-arrow\", { \"ui-expanded\": isExpanded })}\r\n />\r\n </button>\r\n {isExpanded && (\r\n <div className={\"ui-wrap-list-item-filter position-relative pt-x12\"}>\r\n <ArrowList className={\"ui-arrow-list position-absolute\"} />\r\n <div className={\"p-x24 h-full shadow\"}>\r\n <Col\r\n gap={\"x24\"}\r\n text={\"primary\"}\r\n fs={\"custom\"}\r\n fw={\"regular\"}\r\n className={\"ui-list-item-filter h-full overflow fw-regular\"}\r\n >\r\n {processedItems.map((item, index) => {\r\n return (\r\n <div\r\n key={index}\r\n onClick={() => {\r\n setFilter(item);\r\n setIsExpanded(false);\r\n }}\r\n >\r\n {item}\r\n </div>\r\n );\r\n })}\r\n </Col>\r\n </div>\r\n </div>\r\n )}\r\n </div>\r\n );\r\n};\r\n"],"names":["FilterDropDown","size","items","className","filter","setFilter","allStructuresLabel","isExpanded","setIsExpanded","useState","dropdownRef","useRef","processedItems","useMemo","useEffect","handleClickOutside","event","jsxs","clsx","jsx","ArrowDown","ArrowList","Col","item","index"],"mappings":"qSAeaA,EAAiB,CAAC,CAC7B,KAAAC,EACA,MAAAC,EAAQ,CAAC,EACT,UAAAC,EACA,OAAAC,EACA,UAAAC,EACA,mBAAAC,CACF,IAA2B,CACzB,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAS,EAAK,EAC5CC,EAAcC,SAAuB,IA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CAEC,QAAS,IAAM,CACbd,EAAUkB,CAAI,EACdf,EAAc,EAAK,CACrB,EAEC,SAAAe,CAAA,EANIC,CAOP,CAEH,CAAA,CAAA,CAEL,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CAEJ,CAEJ"}
|
package/dist/index.cjs25.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs25.js","sources":["../src/components/ui/Button/index.tsx"],"sourcesContent":["// src/components/ui/Button/index.tsx\nimport { ColorKeys, createColorClasses } from \"@/theme/colors\";\nimport clsx from \"clsx\";\nimport \"./Button.scss\";\nimport { Spinner } from \"@/icons\";\n\ntype ButtonSize = \"2\" | \"3\" | \"4\";\ntype ButtonVariant = \"primary\" | \"secondary\";\n\ntype BaseButtonProps = {\n children: React.ReactNode;\n variant?: ButtonVariant;\n bg?: ColorKeys;\n textColor?: ColorKeys;\n border?: ColorKeys;\n size?: ButtonSize;\n className?: string;\n disabled?: boolean;\n loading?: boolean;\n form?: string;\n rel?: string;\n target?: string;\n};\n\ntype ButtonAsButtonProps = BaseButtonProps & {\n onClick?: () => void;\n type?: \"button\" | \"submit\" | \"reset\";\n asLink?: never;\n href?: never;\n};\n\ntype ButtonAsLinkProps = BaseButtonProps & {\n href: string;\n onClick?: never;\n type?: never;\n asLink?: \"a\" | React.ComponentType<any>;\n};\n\ntype ButtonProps = ButtonAsButtonProps | ButtonAsLinkProps;\n\nexport const Button = ({\n children,\n variant,\n bg = \"primary\",\n textColor = \"white\",\n border = \"white\",\n size = \"3\",\n className,\n disabled,\n loading,\n onClick,\n type = \"button\",\n form = \"\",\n asLink,\n href,\n target = undefined,\n rel = undefined,\n ...props\n}: ButtonProps) => {\n // Only apply color classes if no variant is specified\n const colorClasses = !variant\n ? createColorClasses({\n bg,\n text: textColor,\n border,\n })\n : \"\";\n\n const BTN_SIZES = {\n \"2\": \"fs-6 py-x12 px-x24\",\n \"3\": \"fs-7 py-x12 px-x24\",\n \"4\": \"fs-6 py-x4 px-x8\",\n };\n\n const baseClasses = clsx(\n \"ui-button\",\n BTN_SIZES[size],\n // Apply variant class if provided\n variant && `ui-button-${variant}`,\n // Otherwise use traditional classes\n !variant && colorClasses,\n {\n \"ui-button-disabled\": disabled || loading,\n },\n {\n \"ui-button-loading\": loading,\n },\n className,\n \"fw-bold\",\n );\n\n if (asLink) {\n const LinkComponent = asLink;\n return (\n <LinkComponent\n target={target}\n rel={rel}\n href={href}\n className={baseClasses}\n {...props}\n >\n {children}\n </LinkComponent>\n );\n }\n\n return (\n <button\n type={type}\n form={form}\n className={baseClasses}\n onClick={onClick}\n disabled={disabled || loading}\n {...props}\n >\n {children}\n {loading ? <Spinner /> : null}\n </button>\n );\n};\n"],"names":["Button","children","variant","bg","textColor","border","size","className","disabled","loading","onClick","type","form","asLink","href","target","rel","props","colorClasses","createColorClasses","BTN_SIZES","baseClasses","clsx","LinkComponent","jsx","jsxs","Spinner"],"mappings":"qPAwCaA,EAAS,CAAC,CACrB,SAAAC,EACA,QAAAC,EACA,GAAAC,EAAK,UACL,UAAAC,EAAY,QACZ,OAAAC,EAAS,QACT,KAAAC,EAAO,IACP,UAAAC,EACA,SAAAC,EACA,QAAAC,EACA,QAAAC,EACA,KAAAC,EAAO,SACP,KAAAC,EAAO,GACP,OAAAC,EACA,KAAAC,EACA,OAAAC,EAAS,OACT,IAAAC,EAAM,OACN,GAAGC,CACL,IAAmB,CAEX,MAAAC,EAAgBhB,EAMlB,GALAiB,qBAAmB,CACjB,GAAAhB,EACA,KAAMC,EACN,OAAAC,CACD,CAAA,EAGCe,EAAY,CAChB,EAAK,qBACL,EAAK,qBACL,EAAK,kBACP,EAEMC,EAAcC,EAAA,KAClB,YACAF,EAAUd,CAAI,EAEdJ,GAAW,aAAaA,CAAO,GAE/B,CAACA,GAAWgB,EACZ,CACE,qBAAsBV,GAAYC,CACpC,EACA,CACE,oBAAqBA,CACvB,EACAF,EACA,SACF,EAEA,GAAIM,EAAQ,CACV,MAAMU,EAAgBV,EAEpB,OAAAW,EAAA,kBAAA,IAACD,EAAA,CACC,OAAAR,EACA,IAAAC,EACA,KAAAF,EACA,UAAWO,EACV,GAAGJ,EAEH,SAAAhB,CAAA,CACH,CAAA,CAKF,OAAAwB,EAAA,kBAAA,KAAC,SAAA,CACC,KAAAd,EACA,KAAAC,EACA,UAAWS,EACX,QAAAX,EACA,SAAUF,GAAYC,EACrB,GAAGQ,EAEH,SAAA,CAAAhB,EACAQ,EAAWe,EAAA,kBAAA,IAAAE,UAAA,CAAA,CAAQ,EAAK,IAAA,CAAA,CAC3B,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs25.js","sources":["../src/components/ui/Button/index.tsx"],"sourcesContent":["// src/components/ui/Button/index.tsx\r\nimport { ColorKeys, createColorClasses } from \"@/theme/colors\";\r\nimport clsx from \"clsx\";\r\nimport \"./Button.scss\";\r\nimport { Spinner } from \"@/icons\";\r\n\r\ntype ButtonSize = \"2\" | \"3\" | \"4\";\r\ntype ButtonVariant = \"primary\" | \"secondary\";\r\n\r\ntype BaseButtonProps = {\r\n children: React.ReactNode;\r\n variant?: ButtonVariant;\r\n bg?: ColorKeys;\r\n textColor?: ColorKeys;\r\n border?: ColorKeys;\r\n size?: ButtonSize;\r\n className?: string;\r\n disabled?: boolean;\r\n loading?: boolean;\r\n form?: string;\r\n rel?: string;\r\n target?: string;\r\n};\r\n\r\ntype ButtonAsButtonProps = BaseButtonProps & {\r\n onClick?: () => void;\r\n type?: \"button\" | \"submit\" | \"reset\";\r\n asLink?: never;\r\n href?: never;\r\n};\r\n\r\ntype ButtonAsLinkProps = BaseButtonProps & {\r\n href: string;\r\n onClick?: never;\r\n type?: never;\r\n asLink?: \"a\" | React.ComponentType<any>;\r\n};\r\n\r\ntype ButtonProps = ButtonAsButtonProps | ButtonAsLinkProps;\r\n\r\nexport const Button = ({\r\n children,\r\n variant,\r\n bg = \"primary\",\r\n textColor = \"white\",\r\n border = \"white\",\r\n size = \"3\",\r\n className,\r\n disabled,\r\n loading,\r\n onClick,\r\n type = \"button\",\r\n form = \"\",\r\n asLink,\r\n href,\r\n target = undefined,\r\n rel = undefined,\r\n ...props\r\n}: ButtonProps) => {\r\n // Only apply color classes if no variant is specified\r\n const colorClasses = !variant\r\n ? createColorClasses({\r\n bg,\r\n text: textColor,\r\n border,\r\n })\r\n : \"\";\r\n\r\n const BTN_SIZES = {\r\n \"2\": \"fs-6 py-x12 px-x24\",\r\n \"3\": \"fs-7 py-x12 px-x24\",\r\n \"4\": \"fs-6 py-x4 px-x8\",\r\n };\r\n\r\n const baseClasses = clsx(\r\n \"ui-button\",\r\n BTN_SIZES[size],\r\n // Apply variant class if provided\r\n variant && `ui-button-${variant}`,\r\n // Otherwise use traditional classes\r\n !variant && colorClasses,\r\n {\r\n \"ui-button-disabled\": disabled || loading,\r\n },\r\n {\r\n \"ui-button-loading\": loading,\r\n },\r\n className,\r\n \"fw-bold\",\r\n );\r\n\r\n if (asLink) {\r\n const LinkComponent = asLink;\r\n return (\r\n <LinkComponent\r\n target={target}\r\n rel={rel}\r\n href={href}\r\n className={baseClasses}\r\n {...props}\r\n >\r\n {children}\r\n </LinkComponent>\r\n );\r\n }\r\n\r\n return (\r\n <button\r\n type={type}\r\n form={form}\r\n className={baseClasses}\r\n onClick={onClick}\r\n disabled={disabled || loading}\r\n {...props}\r\n >\r\n {children}\r\n {loading ? <Spinner /> : null}\r\n </button>\r\n );\r\n};\r\n"],"names":["Button","children","variant","bg","textColor","border","size","className","disabled","loading","onClick","type","form","asLink","href","target","rel","props","colorClasses","createColorClasses","BTN_SIZES","baseClasses","clsx","LinkComponent","jsx","jsxs","Spinner"],"mappings":"qPAwCaA,EAAS,CAAC,CACrB,SAAAC,EACA,QAAAC,EACA,GAAAC,EAAK,UACL,UAAAC,EAAY,QACZ,OAAAC,EAAS,QACT,KAAAC,EAAO,IACP,UAAAC,EACA,SAAAC,EACA,QAAAC,EACA,QAAAC,EACA,KAAAC,EAAO,SACP,KAAAC,EAAO,GACP,OAAAC,EACA,KAAAC,EACA,OAAAC,EAAS,OACT,IAAAC,EAAM,OACN,GAAGC,CACL,IAAmB,CAEX,MAAAC,EAAgBhB,EAMlB,GALAiB,qBAAmB,CACjB,GAAAhB,EACA,KAAMC,EACN,OAAAC,CACD,CAAA,EAGCe,EAAY,CAChB,EAAK,qBACL,EAAK,qBACL,EAAK,kBACP,EAEMC,EAAcC,EAAA,KAClB,YACAF,EAAUd,CAAI,EAEdJ,GAAW,aAAaA,CAAO,GAE/B,CAACA,GAAWgB,EACZ,CACE,qBAAsBV,GAAYC,CACpC,EACA,CACE,oBAAqBA,CACvB,EACAF,EACA,SACF,EAEA,GAAIM,EAAQ,CACV,MAAMU,EAAgBV,EAEpB,OAAAW,EAAA,kBAAA,IAACD,EAAA,CACC,OAAAR,EACA,IAAAC,EACA,KAAAF,EACA,UAAWO,EACV,GAAGJ,EAEH,SAAAhB,CAAA,CACH,CAAA,CAKF,OAAAwB,EAAA,kBAAA,KAAC,SAAA,CACC,KAAAd,EACA,KAAAC,EACA,UAAWS,EACX,QAAAX,EACA,SAAUF,GAAYC,EACrB,GAAGQ,EAEH,SAAA,CAAAhB,EACAQ,EAAWe,EAAA,kBAAA,IAAAE,UAAA,CAAA,CAAQ,EAAK,IAAA,CAAA,CAC3B,CAEJ"}
|
package/dist/index.cjs26.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs26.js","sources":["../src/components/ui/CardCategory/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { ExternalLink } from \"@/icons\";\nimport { ArrowLink } from \"@/components/ui/ArrowLink\";\nimport \"./CardCategory.scss\";\nimport { Col, Row } from \"@/components\";\nimport { ComponentType, MouseEvent } from \"react\";\n\ntype Image = {\n alt: string;\n src: string;\n title: string;\n};\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\n\ntype CardCategoryProps = {\n image?: Image;\n title: string;\n titleTag?: HeadingLevel;\n href?: string;\n description?: string;\n description2?: string;\n isExternal?: boolean;\n showIcon?: boolean;\n goToLabel?: string;\n asImage?: \"img\";\n asLink?: \"a\" | ComponentType<any>;\n className?: string;\n classNameTitle?: string;\n classNameDescription?: string;\n handleOnClick?: (e: MouseEvent<HTMLAnchorElement>) => void;\n};\n\nexport const CardCategory = ({\n image,\n title,\n titleTag: TitleTag = \"h3\",\n href,\n description,\n description2,\n isExternal = false,\n showIcon = false,\n goToLabel,\n asLink = \"a\",\n asImage = \"img\",\n className,\n classNameTitle,\n classNameDescription,\n handleOnClick,\n}: CardCategoryProps) => {\n const ImageComponent = asImage;\n const LinkComponent = asLink;\n return (\n <LinkComponent\n className={clsx(\n \"ui-card-category shadow br-x4 bg-white\",\n className,\n handleOnClick && \"cursor-pointer\",\n )}\n href={href}\n target={isExternal ? \"_blank\" : undefined}\n rel={isExternal ? \"noreferrer noopener\" : undefined}\n onClick={handleOnClick ?? undefined}\n >\n {image?.src && (\n <header className=\"ui-card-category-header\">\n <ImageComponent\n src={image?.src}\n alt={image?.alt}\n title={image?.title}\n />\n </header>\n )}\n\n <Col\n className={clsx(\n image?.src\n ? \"ui-card-category-content-with-image ui-mt-negative\"\n : \"ui-card-category-content\",\n \"gap-x8 br-x4 bg-white\",\n )}\n >\n <Row alignItems={\"center\"} justifyContent={\"space-between\"} gap={\"x4\"}>\n <TitleTag\n className={clsx(\n \"flex-1 cursor-pointer hover-underline\",\n classNameTitle ? classNameTitle : \"text-primary fs-5 md-fs-custom-2\",\n )}\n >\n {title}\n {isExternal && (\n <span className=\"visually-hidden\">\n (si apre in una nuova finestra)\n </span>\n )}\n </TitleTag>\n\n {showIcon && (\n <span>\n <ExternalLink\n width={24}\n height={24}\n color=\"primary\"\n className=\"ui-external-link\"\n />\n </span>\n )}\n </Row>\n <div className={clsx(classNameDescription)}>\n <p className=\"fs-6 md-fs-custom fw-regular text-slate-28\">\n {description}\n </p>\n <p className=\"fs-6 md-fs-custom fw-regular text-slate-28\">\n {description2}\n </p>\n </div>\n </Col>\n {goToLabel && href && (\n <footer className=\"ui-card-category-footer bg-white\">\n <ArrowLink href={href ?? \"#\"} isExternal={isExternal}>\n {goToLabel?.toUpperCase()}\n </ArrowLink>\n </footer>\n )}\n </LinkComponent>\n );\n};\n"],"names":["CardCategory","image","title","TitleTag","href","description","description2","isExternal","showIcon","goToLabel","asLink","asImage","className","classNameTitle","classNameDescription","handleOnClick","ImageComponent","LinkComponent","jsxs","clsx","jsx","Col","Row","ExternalLink","ArrowLink"],"mappings":"8SAiCaA,EAAe,CAAC,CAC3B,MAAAC,EACA,MAAAC,EACA,SAAUC,EAAW,KACrB,KAAAC,EACA,YAAAC,EACA,aAAAC,EACA,WAAAC,EAAa,GACb,SAAAC,EAAW,GACX,UAAAC,EACA,OAAAC,EAAS,IACT,QAAAC,EAAU,MACV,UAAAC,EACA,eAAAC,EACA,qBAAAC,EACA,cAAAC,CACF,IAAyB,CACvB,MAAMC,EAAiBL,EACjBM,EAAgBP,EAEpB,OAAAQ,EAAA,kBAAA,KAACD,EAAA,CACC,UAAWE,EAAA,KACT,yCACAP,EACAG,GAAiB,gBACnB,EACA,KAAAX,EACA,OAAQG,EAAa,SAAW,OAChC,IAAKA,EAAa,sBAAwB,OAC1C,QAASQ,GAAiB,OAEzB,SAAA,EAAAd,GAAA,YAAAA,EAAO,MACNmB,wBAAC,SAAO,CAAA,UAAU,0BAChB,SAAAA,EAAA,kBAAA,IAACJ,EAAA,CACC,IAAKf,GAAA,YAAAA,EAAO,IACZ,IAAKA,GAAA,YAAAA,EAAO,IACZ,MAAOA,GAAA,YAAAA,EAAO,KAAA,CAAA,EAElB,EAGFiB,EAAA,kBAAA,KAACG,EAAA,IAAA,CACC,UAAWF,EAAA,KACTlB,GAAA,MAAAA,EAAO,IACH,qDACA,2BACJ,uBACF,EAEA,SAAA,CAAAiB,yBAACI,EAAAA,KAAI,WAAY,SAAU,eAAgB,gBAAiB,IAAK,KAC/D,SAAA,CAAAJ,EAAA,kBAAA,KAACf,EAAA,CACC,UAAWgB,EAAA,KACT,wCACAN,GAAkC,kCACpC,EAEC,SAAA,CAAAX,EACAK,GACCa,EAAA,kBAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAElC,iCAAA,CAAA,CAAA,CAAA,CAEJ,EAECZ,2BACE,OACC,CAAA,SAAAY,EAAA,kBAAA,IAACG,EAAA,aAAA,CACC,MAAO,GACP,OAAQ,GACR,MAAM,UACN,UAAU,kBAAA,CAAA,CAEd,CAAA,CAAA,EAEJ,EACCL,EAAA,kBAAA,KAAA,MAAA,CAAI,UAAWC,EAAAA,KAAKL,CAAoB,EACvC,SAAA,CAACM,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,6CACV,SACHf,EAAA,EACCe,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,6CACV,SACHd,CAAA,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CACF,EACCG,GAAaL,GACXgB,EAAAA,kBAAAA,IAAA,SAAA,CAAO,UAAU,mCAChB,SAAAA,wBAACI,EAAAA,UAAU,CAAA,KAAMpB,GAAQ,IAAK,WAAAG,EAC3B,SAAWE,GAAA,YAAAA,EAAA,cACd,CACF,CAAA,CAAA,CAAA,CAEJ,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs26.js","sources":["../src/components/ui/CardCategory/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport { ExternalLink } from \"@/icons\";\r\nimport { ArrowLink } from \"@/components/ui/ArrowLink\";\r\nimport \"./CardCategory.scss\";\r\nimport { Col, Row } from \"@/components\";\r\nimport { ComponentType, MouseEvent } from \"react\";\r\n\r\ntype Image = {\r\n alt: string;\r\n src: string;\r\n title: string;\r\n};\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\n\r\ntype CardCategoryProps = {\r\n image?: Image;\r\n title: string;\r\n titleTag?: HeadingLevel;\r\n href?: string;\r\n description?: string;\r\n description2?: string;\r\n isExternal?: boolean;\r\n showIcon?: boolean;\r\n goToLabel?: string;\r\n asImage?: \"img\";\r\n asLink?: \"a\" | ComponentType<any>;\r\n className?: string;\r\n classNameTitle?: string;\r\n classNameDescription?: string;\r\n handleOnClick?: (e: MouseEvent<HTMLAnchorElement>) => void;\r\n};\r\n\r\nexport const CardCategory = ({\r\n image,\r\n title,\r\n titleTag: TitleTag = \"h3\",\r\n href,\r\n description,\r\n description2,\r\n isExternal = false,\r\n showIcon = false,\r\n goToLabel,\r\n asLink = \"a\",\r\n asImage = \"img\",\r\n className,\r\n classNameTitle,\r\n classNameDescription,\r\n handleOnClick,\r\n}: CardCategoryProps) => {\r\n const ImageComponent = asImage;\r\n const LinkComponent = asLink;\r\n return (\r\n <LinkComponent\r\n className={clsx(\r\n \"ui-card-category shadow br-x4 bg-white\",\r\n className,\r\n handleOnClick && \"cursor-pointer\",\r\n )}\r\n href={href}\r\n target={isExternal ? \"_blank\" : undefined}\r\n rel={isExternal ? \"noreferrer noopener\" : undefined}\r\n onClick={handleOnClick ?? undefined}\r\n >\r\n {image?.src && (\r\n <header className=\"ui-card-category-header\">\r\n <ImageComponent\r\n src={image?.src}\r\n alt={image?.alt}\r\n title={image?.title}\r\n />\r\n </header>\r\n )}\r\n\r\n <Col\r\n className={clsx(\r\n image?.src\r\n ? \"ui-card-category-content-with-image ui-mt-negative\"\r\n : \"ui-card-category-content\",\r\n \"gap-x8 br-x4 bg-white\",\r\n )}\r\n >\r\n <Row alignItems={\"center\"} justifyContent={\"space-between\"} gap={\"x4\"}>\r\n <TitleTag\r\n className={clsx(\r\n \"flex-1 cursor-pointer hover-underline\",\r\n classNameTitle ? classNameTitle : \"text-primary fs-5 md-fs-custom-2\",\r\n )}\r\n >\r\n {title}\r\n {isExternal && (\r\n <span className=\"visually-hidden\">\r\n (si apre in una nuova finestra)\r\n </span>\r\n )}\r\n </TitleTag>\r\n\r\n {showIcon && (\r\n <span>\r\n <ExternalLink\r\n width={24}\r\n height={24}\r\n color=\"primary\"\r\n className=\"ui-external-link\"\r\n />\r\n </span>\r\n )}\r\n </Row>\r\n <div className={clsx(classNameDescription)}>\r\n <p className=\"fs-6 md-fs-custom fw-regular text-slate-28\">\r\n {description}\r\n </p>\r\n <p className=\"fs-6 md-fs-custom fw-regular text-slate-28\">\r\n {description2}\r\n </p>\r\n </div>\r\n </Col>\r\n {goToLabel && href && (\r\n <footer className=\"ui-card-category-footer bg-white\">\r\n <ArrowLink href={href ?? \"#\"} isExternal={isExternal}>\r\n {goToLabel?.toUpperCase()}\r\n </ArrowLink>\r\n </footer>\r\n )}\r\n </LinkComponent>\r\n );\r\n};\r\n"],"names":["CardCategory","image","title","TitleTag","href","description","description2","isExternal","showIcon","goToLabel","asLink","asImage","className","classNameTitle","classNameDescription","handleOnClick","ImageComponent","LinkComponent","jsxs","clsx","jsx","Col","Row","ExternalLink","ArrowLink"],"mappings":"8SAiCaA,EAAe,CAAC,CAC3B,MAAAC,EACA,MAAAC,EACA,SAAUC,EAAW,KACrB,KAAAC,EACA,YAAAC,EACA,aAAAC,EACA,WAAAC,EAAa,GACb,SAAAC,EAAW,GACX,UAAAC,EACA,OAAAC,EAAS,IACT,QAAAC,EAAU,MACV,UAAAC,EACA,eAAAC,EACA,qBAAAC,EACA,cAAAC,CACF,IAAyB,CACvB,MAAMC,EAAiBL,EACjBM,EAAgBP,EAEpB,OAAAQ,EAAA,kBAAA,KAACD,EAAA,CACC,UAAWE,EAAA,KACT,yCACAP,EACAG,GAAiB,gBACnB,EACA,KAAAX,EACA,OAAQG,EAAa,SAAW,OAChC,IAAKA,EAAa,sBAAwB,OAC1C,QAASQ,GAAiB,OAEzB,SAAA,EAAAd,GAAA,YAAAA,EAAO,MACNmB,wBAAC,SAAO,CAAA,UAAU,0BAChB,SAAAA,EAAA,kBAAA,IAACJ,EAAA,CACC,IAAKf,GAAA,YAAAA,EAAO,IACZ,IAAKA,GAAA,YAAAA,EAAO,IACZ,MAAOA,GAAA,YAAAA,EAAO,KAAA,CAAA,EAElB,EAGFiB,EAAA,kBAAA,KAACG,EAAA,IAAA,CACC,UAAWF,EAAA,KACTlB,GAAA,MAAAA,EAAO,IACH,qDACA,2BACJ,uBACF,EAEA,SAAA,CAAAiB,yBAACI,EAAAA,KAAI,WAAY,SAAU,eAAgB,gBAAiB,IAAK,KAC/D,SAAA,CAAAJ,EAAA,kBAAA,KAACf,EAAA,CACC,UAAWgB,EAAA,KACT,wCACAN,GAAkC,kCACpC,EAEC,SAAA,CAAAX,EACAK,GACCa,EAAA,kBAAA,IAAC,OAAK,CAAA,UAAU,kBAAkB,SAElC,iCAAA,CAAA,CAAA,CAAA,CAEJ,EAECZ,2BACE,OACC,CAAA,SAAAY,EAAA,kBAAA,IAACG,EAAA,aAAA,CACC,MAAO,GACP,OAAQ,GACR,MAAM,UACN,UAAU,kBAAA,CAAA,CAEd,CAAA,CAAA,EAEJ,EACCL,EAAA,kBAAA,KAAA,MAAA,CAAI,UAAWC,EAAAA,KAAKL,CAAoB,EACvC,SAAA,CAACM,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,6CACV,SACHf,EAAA,EACCe,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,6CACV,SACHd,CAAA,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CACF,EACCG,GAAaL,GACXgB,EAAAA,kBAAAA,IAAA,SAAA,CAAO,UAAU,mCAChB,SAAAA,wBAACI,EAAAA,UAAU,CAAA,KAAMpB,GAAQ,IAAK,WAAAG,EAC3B,SAAWE,GAAA,YAAAA,EAAA,cACd,CACF,CAAA,CAAA,CAAA,CAEJ,CAEJ"}
|
package/dist/index.cjs266.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs306.js");/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.js
|
4
4
|
*
|
package/dist/index.cjs267.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index.cjs307.js"),B=require("react");/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.development.js
|
4
4
|
*
|
@@ -6,19 +6,10 @@
|
|
6
6
|
*
|
7
7
|
* This source code is licensed under the MIT license found in the
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
9
|
-
*/var
|
10
|
-
at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
|
11
|
-
`+N+e+re}function U(e,r){if(!e||P)return"";var o=Y.get(e);if(o!==void 0)return o;P=!0,o=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var n=null;n=E.H,E.H=null,le();try{var u={DetermineComponentFrameRoot:function(){try{if(r){var i=function(){throw Error()};if(Object.defineProperty(i.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(i,[])}catch(c){var T=c}Reflect.construct(e,[],i)}else{try{i.call()}catch(c){T=c}e.call(i.prototype)}}else{try{throw Error()}catch(c){T=c}(i=e())&&typeof i.catch=="function"&&i.catch(function(){})}}catch(c){if(c&&T&&typeof c.stack=="string")return[c.stack,T.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var t=u.DetermineComponentFrameRoot(),f=t[0],d=t[1];if(f&&d){var l=f.split(`
|
12
|
-
`),b=d.split(`
|
13
|
-
`);for(t=a=0;a<l.length&&!l[a].includes("DetermineComponentFrameRoot");)a++;for(;t<b.length&&!b[t].includes("DetermineComponentFrameRoot");)t++;if(a===l.length||t===b.length)for(a=l.length-1,t=b.length-1;1<=a&&0<=t&&l[a]!==b[t];)t--;for(;1<=a&&0<=t;a--,t--)if(l[a]!==b[t]){if(a!==1||t!==1)do if(a--,t--,0>t||l[a]!==b[t]){var m=`
|
14
|
-
`+l[a].replace(" at new "," at ");return e.displayName&&m.includes("<anonymous>")&&(m=m.replace("<anonymous>",e.displayName)),typeof e=="function"&&Y.set(e,m),m}while(1<=a&&0<=t);break}}}finally{P=!1,E.H=n,fe(),Error.prepareStackTrace=o}return l=(l=e?e.displayName||e.name:"")?y(l):"",typeof e=="function"&&Y.set(e,l),l}function w(e){if(e==null)return"";if(typeof e=="function"){var r=e.prototype;return U(e,!(!r||!r.isReactComponent))}if(typeof e=="string")return y(e);switch(e){case p:return y("Suspense");case x:return y("SuspenseList")}if(typeof e=="object")switch(e.$$typeof){case j:return e=U(e.render,!1),e;case A:return w(e.type);case R:r=e._payload,e=e._init;try{return w(e(r))}catch{}}return""}function C(){var e=E.A;return e===null?null:e.getOwner()}function ce(e){if(J.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function se(e,r){function o(){oe||(oe=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}o.isReactWarning=!0,Object.defineProperty(e,"key",{get:o,configurable:!0})}function ie(){var e=s(this.type);return te[e]||(te[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function Ee(e,r,o,n,u,a){return o=a.ref,e={$$typeof:S,type:e,key:r,props:a,_owner:u},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:ie}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function z(e,r,o,n,u,a){if(typeof e=="string"||typeof e=="function"||e===h||e===H||e===G||e===p||e===x||e===ge||typeof e=="object"&&e!==null&&(e.$$typeof===R||e.$$typeof===A||e.$$typeof===X||e.$$typeof===K||e.$$typeof===j||e.$$typeof===_e||e.getModuleId!==void 0)){var t=r.children;if(t!==void 0)if(n)if(k(t)){for(n=0;n<t.length;n++)q(t[n],e);Object.freeze&&Object.freeze(t)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else q(t,e)}else t="",(e===void 0||typeof e=="object"&&e!==null&&Object.keys(e).length===0)&&(t+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),e===null?n="null":k(e)?n="array":e!==void 0&&e.$$typeof===S?(n="<"+(s(e.type)||"Unknown")+" />",t=" Did you accidentally export a JSX literal instead of a component?"):n=typeof e,console.error("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",n,t);if(J.call(r,"key")){t=s(e);var f=Object.keys(r).filter(function(l){return l!=="key"});n=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",ne[t+n]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
9
|
+
*/var N;function H(){return N||(N=1,process.env.NODE_ENV!=="production"&&function(){function l(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===X?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case m:return"Fragment";case W:return"Profiler";case $:return"StrictMode";case z:return"Suspense";case q:return"SuspenseList";case G:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case F:return"Portal";case M:return(e.displayName||"Context")+".Provider";case L:return(e._context.displayName||"Context")+".Consumer";case U:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case V:return r=e.displayName||null,r!==null?r:l(e.type)||"Memo";case S:r=e._payload,e=e._init;try{return l(e(r))}catch{}}return null}function T(e){return""+e}function v(e){try{T(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),T(e)}}function f(e){if(e===m)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===S)return"<...>";try{var r=l(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function x(){var e=b.A;return e===null?null:e.getOwner()}function p(){return Error("react-stack-top-frame")}function C(e){if(A.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function Y(e,r){function t(){w||(w=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function I(){var e=l(this.type);return P[e]||(P[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function D(e,r,t,n,c,a,_,E){return t=a.ref,e={$$typeof:k,type:e,key:r,props:a,_owner:c},(t!==void 0?t:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:I}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:_}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:E}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function O(e,r,t,n,c,a,_,E){var o=r.children;if(o!==void 0)if(n)if(K(o)){for(n=0;n<o.length;n++)g(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else g(o);if(A.call(r,"key")){o=l(e);var s=Object.keys(r).filter(function(J){return J!=="key"});n=0<s.length?"{key: someKey, "+s.join(": ..., ")+": ...}":"{key: someKey}",h[o+n]||(s=0<s.length?"{"+s.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
15
10
|
let props = %s;
|
16
11
|
<%s {...props} />
|
17
12
|
React keys must be passed directly to JSX without using spread:
|
18
13
|
let props = %s;
|
19
|
-
<%s key={someKey} {...props} />`,n,
|
20
|
-
|
21
|
-
Check the render method of \``+o+"`."),r||(e=s(e))&&(r=`
|
22
|
-
|
23
|
-
Check the top-level render call using <`+e+">."),r}var be=Te,S=Symbol.for("react.transitional.element"),de=Symbol.for("react.portal"),h=Symbol.for("react.fragment"),G=Symbol.for("react.strict_mode"),H=Symbol.for("react.profiler"),K=Symbol.for("react.consumer"),X=Symbol.for("react.context"),j=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),x=Symbol.for("react.suspense_list"),A=Symbol.for("react.memo"),R=Symbol.for("react.lazy"),ge=Symbol.for("react.offscreen"),B=Symbol.iterator,me=Symbol.for("react.client.reference"),E=be.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,J=Object.prototype.hasOwnProperty,v=Object.assign,_e=Symbol.for("react.client.reference"),k=Array.isArray,g=0,Z,F,I,L,Q,D,ee;$.__reactDisabledLog=!0;var N,re,P=!1,Y=new(typeof WeakMap=="function"?WeakMap:Map),ye=Symbol.for("react.client.reference"),oe,te={},ne={},ae={};_.__exports.Fragment=h,_.__exports.jsx=function(e,r,o,n,u){return z(e,r,o,!1,n,u)},_.__exports.jsxs=function(e,r,o,n,u){return z(e,r,o,!0,n,u)}}()),_.__exports}exports.__require=we;
|
14
|
+
<%s key={someKey} {...props} />`,n,o,s,o),h[o+n]=!0)}if(o=null,t!==void 0&&(v(t),o=""+t),C(r)&&(v(r.key),o=""+r.key),"key"in r){t={};for(var R in r)R!=="key"&&(t[R]=r[R])}else t=r;return o&&Y(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),D(e,o,a,c,x(),t,_,E)}function g(e){typeof e=="object"&&e!==null&&e.$$typeof===k&&e._store&&(e._store.validated=1)}var i=B,k=Symbol.for("react.transitional.element"),F=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),$=Symbol.for("react.strict_mode"),W=Symbol.for("react.profiler"),L=Symbol.for("react.consumer"),M=Symbol.for("react.context"),U=Symbol.for("react.forward_ref"),z=Symbol.for("react.suspense"),q=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),S=Symbol.for("react.lazy"),G=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),b=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,A=Object.prototype.hasOwnProperty,K=Array.isArray,d=console.createTask?console.createTask:function(){return null};i={"react-stack-bottom-frame":function(e){return e()}};var w,P={},y=i["react-stack-bottom-frame"].bind(i,p)(),j=d(f(p)),h={};u.__exports.Fragment=m,u.__exports.jsx=function(e,r,t,n,c){var a=1e4>b.recentlyCreatedOwnerStacks++;return O(e,r,t,!1,n,c,a?Error("react-stack-top-frame"):y,a?d(f(e)):j)},u.__exports.jsxs=function(e,r,t,n,c){var a=1e4>b.recentlyCreatedOwnerStacks++;return O(e,r,t,!0,n,c,a?Error("react-stack-top-frame"):y,a?d(f(e)):j)}}()),u.__exports}exports.__require=H;
|
24
15
|
//# sourceMappingURL=index.cjs267.js.map
|
package/dist/index.cjs267.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs267.js","sources":["../node_modules/react/cjs/react-jsx-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE$2\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function disabledLog() {}\n function disableLogs() {\n if (0 === disabledDepth) {\n prevLog = console.log;\n prevInfo = console.info;\n prevWarn = console.warn;\n prevError = console.error;\n prevGroup = console.group;\n prevGroupCollapsed = console.groupCollapsed;\n prevGroupEnd = console.groupEnd;\n var props = {\n configurable: !0,\n enumerable: !0,\n value: disabledLog,\n writable: !0\n };\n Object.defineProperties(console, {\n info: props,\n log: props,\n warn: props,\n error: props,\n group: props,\n groupCollapsed: props,\n groupEnd: props\n });\n }\n disabledDepth++;\n }\n function reenableLogs() {\n disabledDepth--;\n if (0 === disabledDepth) {\n var props = { configurable: !0, enumerable: !0, writable: !0 };\n Object.defineProperties(console, {\n log: assign({}, props, { value: prevLog }),\n info: assign({}, props, { value: prevInfo }),\n warn: assign({}, props, { value: prevWarn }),\n error: assign({}, props, { value: prevError }),\n group: assign({}, props, { value: prevGroup }),\n groupCollapsed: assign({}, props, { value: prevGroupCollapsed }),\n groupEnd: assign({}, props, { value: prevGroupEnd })\n });\n }\n 0 > disabledDepth &&\n console.error(\n \"disabledDepth fell below zero. This is a bug in React. Please file an issue.\"\n );\n }\n function describeBuiltInComponentFrame(name) {\n if (void 0 === prefix)\n try {\n throw Error();\n } catch (x) {\n var match = x.stack.trim().match(/\\n( *(at )?)/);\n prefix = (match && match[1]) || \"\";\n suffix =\n -1 < x.stack.indexOf(\"\\n at\")\n ? \" (<anonymous>)\"\n : -1 < x.stack.indexOf(\"@\")\n ? \"@unknown:0:0\"\n : \"\";\n }\n return \"\\n\" + prefix + name + suffix;\n }\n function describeNativeComponentFrame(fn, construct) {\n if (!fn || reentry) return \"\";\n var frame = componentFrameCache.get(fn);\n if (void 0 !== frame) return frame;\n reentry = !0;\n frame = Error.prepareStackTrace;\n Error.prepareStackTrace = void 0;\n var previousDispatcher = null;\n previousDispatcher = ReactSharedInternals.H;\n ReactSharedInternals.H = null;\n disableLogs();\n try {\n var RunInRootFrame = {\n DetermineComponentFrameRoot: function () {\n try {\n if (construct) {\n var Fake = function () {\n throw Error();\n };\n Object.defineProperty(Fake.prototype, \"props\", {\n set: function () {\n throw Error();\n }\n });\n if (\"object\" === typeof Reflect && Reflect.construct) {\n try {\n Reflect.construct(Fake, []);\n } catch (x) {\n var control = x;\n }\n Reflect.construct(fn, [], Fake);\n } else {\n try {\n Fake.call();\n } catch (x$0) {\n control = x$0;\n }\n fn.call(Fake.prototype);\n }\n } else {\n try {\n throw Error();\n } catch (x$1) {\n control = x$1;\n }\n (Fake = fn()) &&\n \"function\" === typeof Fake.catch &&\n Fake.catch(function () {});\n }\n } catch (sample) {\n if (sample && control && \"string\" === typeof sample.stack)\n return [sample.stack, control.stack];\n }\n return [null, null];\n }\n };\n RunInRootFrame.DetermineComponentFrameRoot.displayName =\n \"DetermineComponentFrameRoot\";\n var namePropDescriptor = Object.getOwnPropertyDescriptor(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\"\n );\n namePropDescriptor &&\n namePropDescriptor.configurable &&\n Object.defineProperty(\n RunInRootFrame.DetermineComponentFrameRoot,\n \"name\",\n { value: \"DetermineComponentFrameRoot\" }\n );\n var _RunInRootFrame$Deter =\n RunInRootFrame.DetermineComponentFrameRoot(),\n sampleStack = _RunInRootFrame$Deter[0],\n controlStack = _RunInRootFrame$Deter[1];\n if (sampleStack && controlStack) {\n var sampleLines = sampleStack.split(\"\\n\"),\n controlLines = controlStack.split(\"\\n\");\n for (\n _RunInRootFrame$Deter = namePropDescriptor = 0;\n namePropDescriptor < sampleLines.length &&\n !sampleLines[namePropDescriptor].includes(\n \"DetermineComponentFrameRoot\"\n );\n\n )\n namePropDescriptor++;\n for (\n ;\n _RunInRootFrame$Deter < controlLines.length &&\n !controlLines[_RunInRootFrame$Deter].includes(\n \"DetermineComponentFrameRoot\"\n );\n\n )\n _RunInRootFrame$Deter++;\n if (\n namePropDescriptor === sampleLines.length ||\n _RunInRootFrame$Deter === controlLines.length\n )\n for (\n namePropDescriptor = sampleLines.length - 1,\n _RunInRootFrame$Deter = controlLines.length - 1;\n 1 <= namePropDescriptor &&\n 0 <= _RunInRootFrame$Deter &&\n sampleLines[namePropDescriptor] !==\n controlLines[_RunInRootFrame$Deter];\n\n )\n _RunInRootFrame$Deter--;\n for (\n ;\n 1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter;\n namePropDescriptor--, _RunInRootFrame$Deter--\n )\n if (\n sampleLines[namePropDescriptor] !==\n controlLines[_RunInRootFrame$Deter]\n ) {\n if (1 !== namePropDescriptor || 1 !== _RunInRootFrame$Deter) {\n do\n if (\n (namePropDescriptor--,\n _RunInRootFrame$Deter--,\n 0 > _RunInRootFrame$Deter ||\n sampleLines[namePropDescriptor] !==\n controlLines[_RunInRootFrame$Deter])\n ) {\n var _frame =\n \"\\n\" +\n sampleLines[namePropDescriptor].replace(\n \" at new \",\n \" at \"\n );\n fn.displayName &&\n _frame.includes(\"<anonymous>\") &&\n (_frame = _frame.replace(\"<anonymous>\", fn.displayName));\n \"function\" === typeof fn &&\n componentFrameCache.set(fn, _frame);\n return _frame;\n }\n while (1 <= namePropDescriptor && 0 <= _RunInRootFrame$Deter);\n }\n break;\n }\n }\n } finally {\n (reentry = !1),\n (ReactSharedInternals.H = previousDispatcher),\n reenableLogs(),\n (Error.prepareStackTrace = frame);\n }\n sampleLines = (sampleLines = fn ? fn.displayName || fn.name : \"\")\n ? describeBuiltInComponentFrame(sampleLines)\n : \"\";\n \"function\" === typeof fn && componentFrameCache.set(fn, sampleLines);\n return sampleLines;\n }\n function describeUnknownElementTypeFrameInDEV(type) {\n if (null == type) return \"\";\n if (\"function\" === typeof type) {\n var prototype = type.prototype;\n return describeNativeComponentFrame(\n type,\n !(!prototype || !prototype.isReactComponent)\n );\n }\n if (\"string\" === typeof type) return describeBuiltInComponentFrame(type);\n switch (type) {\n case REACT_SUSPENSE_TYPE:\n return describeBuiltInComponentFrame(\"Suspense\");\n case REACT_SUSPENSE_LIST_TYPE:\n return describeBuiltInComponentFrame(\"SuspenseList\");\n }\n if (\"object\" === typeof type)\n switch (type.$$typeof) {\n case REACT_FORWARD_REF_TYPE:\n return (type = describeNativeComponentFrame(type.render, !1)), type;\n case REACT_MEMO_TYPE:\n return describeUnknownElementTypeFrameInDEV(type.type);\n case REACT_LAZY_TYPE:\n prototype = type._payload;\n type = type._init;\n try {\n return describeUnknownElementTypeFrameInDEV(type(prototype));\n } catch (x) {}\n }\n return \"\";\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(type, key, self, source, owner, props) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self\n ) {\n if (\n \"string\" === typeof type ||\n \"function\" === typeof type ||\n type === REACT_FRAGMENT_TYPE ||\n type === REACT_PROFILER_TYPE ||\n type === REACT_STRICT_MODE_TYPE ||\n type === REACT_SUSPENSE_TYPE ||\n type === REACT_SUSPENSE_LIST_TYPE ||\n type === REACT_OFFSCREEN_TYPE ||\n (\"object\" === typeof type &&\n null !== type &&\n (type.$$typeof === REACT_LAZY_TYPE ||\n type.$$typeof === REACT_MEMO_TYPE ||\n type.$$typeof === REACT_CONTEXT_TYPE ||\n type.$$typeof === REACT_CONSUMER_TYPE ||\n type.$$typeof === REACT_FORWARD_REF_TYPE ||\n type.$$typeof === REACT_CLIENT_REFERENCE$1 ||\n void 0 !== type.getModuleId))\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren], type);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children, type);\n } else {\n children = \"\";\n if (\n void 0 === type ||\n (\"object\" === typeof type &&\n null !== type &&\n 0 === Object.keys(type).length)\n )\n children +=\n \" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.\";\n null === type\n ? (isStaticChildren = \"null\")\n : isArrayImpl(type)\n ? (isStaticChildren = \"array\")\n : void 0 !== type && type.$$typeof === REACT_ELEMENT_TYPE\n ? ((isStaticChildren =\n \"<\" +\n (getComponentNameFromType(type.type) || \"Unknown\") +\n \" />\"),\n (children =\n \" Did you accidentally export a JSX literal instead of a component?\"))\n : (isStaticChildren = typeof type);\n console.error(\n \"React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s\",\n isStaticChildren,\n children\n );\n }\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(type, children, self, source, getOwner(), maybeKey);\n }\n function validateChildKeys(node, parentType) {\n if (\n \"object\" === typeof node &&\n node &&\n node.$$typeof !== REACT_CLIENT_REFERENCE\n )\n if (isArrayImpl(node))\n for (var i = 0; i < node.length; i++) {\n var child = node[i];\n isValidElement(child) && validateExplicitKey(child, parentType);\n }\n else if (isValidElement(node))\n node._store && (node._store.validated = 1);\n else if (\n (null === node || \"object\" !== typeof node\n ? (i = null)\n : ((i =\n (MAYBE_ITERATOR_SYMBOL && node[MAYBE_ITERATOR_SYMBOL]) ||\n node[\"@@iterator\"]),\n (i = \"function\" === typeof i ? i : null)),\n \"function\" === typeof i &&\n i !== node.entries &&\n ((i = i.call(node)), i !== node))\n )\n for (; !(node = i.next()).done; )\n isValidElement(node.value) &&\n validateExplicitKey(node.value, parentType);\n }\n function isValidElement(object) {\n return (\n \"object\" === typeof object &&\n null !== object &&\n object.$$typeof === REACT_ELEMENT_TYPE\n );\n }\n function validateExplicitKey(element, parentType) {\n if (\n element._store &&\n !element._store.validated &&\n null == element.key &&\n ((element._store.validated = 1),\n (parentType = getCurrentComponentErrorInfo(parentType)),\n !ownerHasKeyUseWarning[parentType])\n ) {\n ownerHasKeyUseWarning[parentType] = !0;\n var childOwner = \"\";\n element &&\n null != element._owner &&\n element._owner !== getOwner() &&\n ((childOwner = null),\n \"number\" === typeof element._owner.tag\n ? (childOwner = getComponentNameFromType(element._owner.type))\n : \"string\" === typeof element._owner.name &&\n (childOwner = element._owner.name),\n (childOwner = \" It was passed a child from \" + childOwner + \".\"));\n var prevGetCurrentStack = ReactSharedInternals.getCurrentStack;\n ReactSharedInternals.getCurrentStack = function () {\n var stack = describeUnknownElementTypeFrameInDEV(element.type);\n prevGetCurrentStack && (stack += prevGetCurrentStack() || \"\");\n return stack;\n };\n console.error(\n 'Each child in a list should have a unique \"key\" prop.%s%s See https://react.dev/link/warning-keys for more information.',\n parentType,\n childOwner\n );\n ReactSharedInternals.getCurrentStack = prevGetCurrentStack;\n }\n }\n function getCurrentComponentErrorInfo(parentType) {\n var info = \"\",\n owner = getOwner();\n owner &&\n (owner = getComponentNameFromType(owner.type)) &&\n (info = \"\\n\\nCheck the render method of `\" + owner + \"`.\");\n info ||\n ((parentType = getComponentNameFromType(parentType)) &&\n (info =\n \"\\n\\nCheck the top-level render call using <\" + parentType + \">.\"));\n return info;\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_OFFSCREEN_TYPE = Symbol.for(\"react.offscreen\"),\n MAYBE_ITERATOR_SYMBOL = Symbol.iterator,\n REACT_CLIENT_REFERENCE$2 = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n assign = Object.assign,\n REACT_CLIENT_REFERENCE$1 = Symbol.for(\"react.client.reference\"),\n isArrayImpl = Array.isArray,\n disabledDepth = 0,\n prevLog,\n prevInfo,\n prevWarn,\n prevError,\n prevGroup,\n prevGroupCollapsed,\n prevGroupEnd;\n disabledLog.__reactDisabledLog = !0;\n var prefix,\n suffix,\n reentry = !1;\n var componentFrameCache = new (\n \"function\" === typeof WeakMap ? WeakMap : Map\n )();\n var REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var didWarnAboutKeySpread = {},\n ownerHasKeyUseWarning = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n return jsxDEVImpl(type, config, maybeKey, !1, source, self);\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n return jsxDEVImpl(type, config, maybeKey, !0, source, self);\n };\n })();\n"],"names":["getComponentNameFromType","type","REACT_CLIENT_REFERENCE$2","REACT_FRAGMENT_TYPE","REACT_PORTAL_TYPE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","disabledLog","disableLogs","disabledDepth","prevLog","prevInfo","prevWarn","prevError","prevGroup","prevGroupCollapsed","prevGroupEnd","props","reenableLogs","assign","describeBuiltInComponentFrame","name","prefix","x","match","suffix","describeNativeComponentFrame","fn","construct","reentry","frame","componentFrameCache","previousDispatcher","ReactSharedInternals","RunInRootFrame","Fake","control","x$0","x$1","sample","namePropDescriptor","_RunInRootFrame$Deter","sampleStack","controlStack","sampleLines","controlLines","_frame","describeUnknownElementTypeFrameInDEV","prototype","getOwner","dispatcher","hasValidKey","config","hasOwnProperty","getter","defineKeyPropWarningGetter","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","key","self","source","owner","REACT_ELEMENT_TYPE","jsxDEVImpl","maybeKey","isStaticChildren","REACT_OFFSCREEN_TYPE","REACT_CLIENT_REFERENCE$1","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","propName","node","parentType","REACT_CLIENT_REFERENCE","i","child","isValidElement","validateExplicitKey","MAYBE_ITERATOR_SYMBOL","object","element","getCurrentComponentErrorInfo","ownerHasKeyUseWarning","childOwner","prevGetCurrentStack","stack","info","React","require$$0","reactJsxRuntime_development"],"mappings":";;;;;;;;yCAWiB,QAAQ,IAAI,WAA7B,cACG,UAAY,CACX,SAASA,EAAyBC,EAAM,CACtC,GAAYA,GAAR,KAAc,OAAO,KACzB,GAAmB,OAAOA,GAAtB,WACF,OAAOA,EAAK,WAAaC,GACrB,KACAD,EAAK,aAAeA,EAAK,MAAQ,KACvC,GAAiB,OAAOA,GAApB,SAA0B,OAAOA,EACrC,OAAQA,EAAI,CACV,KAAKE,EACH,MAAO,WACT,KAAKC,GACH,MAAO,SACT,KAAKC,EACH,MAAO,WACT,KAAKC,EACH,MAAO,aACT,KAAKC,EACH,MAAO,WACT,KAAKC,EACH,MAAO,cACjB,CACM,GAAiB,OAAOP,GAApB,SACF,OACgB,OAAOA,EAAK,KAAzB,UACC,QAAQ,MACN,mHACD,EACHA,EAAK,SACf,CACU,KAAKQ,EACH,OAAQR,EAAK,aAAe,WAAa,YAC3C,KAAKS,EACH,OAAQT,EAAK,SAAS,aAAe,WAAa,YACpD,KAAKU,EACH,IAAIC,EAAYX,EAAK,OACrB,OAAAA,EAAOA,EAAK,YACZA,IACIA,EAAOW,EAAU,aAAeA,EAAU,MAAQ,GACnDX,EAAcA,IAAP,GAAc,cAAgBA,EAAO,IAAM,cAC9CA,EACT,KAAKY,EACH,OACGD,EAAYX,EAAK,aAAe,KACxBW,IAAT,KACIA,EACAZ,EAAyBC,EAAK,IAAI,GAAK,OAE/C,KAAKa,EACHF,EAAYX,EAAK,SACjBA,EAAOA,EAAK,MACZ,GAAI,CACF,OAAOD,EAAyBC,EAAKW,CAAS,CAAC,CAChD,MAAW,CAAA,CACxB,CACM,OAA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iB,EAAU,GAAIJ,EAAQD,CAAI,CAC3D,EACDkC,EAAY,UAAA,KAAG,SAAU/G,EAAMiE,EAAQiB,EAAUJ,EAAQD,EAAM,CAC7D,OAAOI,EAAWjF,EAAMiE,EAAQiB,EAAU,GAAIJ,EAAQD,CAAI,CAC3D,CACL,EAAM","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.cjs267.js","sources":["../node_modules/react/cjs/react-jsx-runtime.development.js"],"sourcesContent":["/**\n * @license React\n * react-jsx-runtime.development.js\n *\n * Copyright (c) Meta Platforms, Inc. and affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n\"use strict\";\n\"production\" !== process.env.NODE_ENV &&\n (function () {\n function getComponentNameFromType(type) {\n if (null == type) return null;\n if (\"function\" === typeof type)\n return type.$$typeof === REACT_CLIENT_REFERENCE\n ? null\n : type.displayName || type.name || null;\n if (\"string\" === typeof type) return type;\n switch (type) {\n case REACT_FRAGMENT_TYPE:\n return \"Fragment\";\n case REACT_PROFILER_TYPE:\n return \"Profiler\";\n case REACT_STRICT_MODE_TYPE:\n return \"StrictMode\";\n case REACT_SUSPENSE_TYPE:\n return \"Suspense\";\n case REACT_SUSPENSE_LIST_TYPE:\n return \"SuspenseList\";\n case REACT_ACTIVITY_TYPE:\n return \"Activity\";\n }\n if (\"object\" === typeof type)\n switch (\n (\"number\" === typeof type.tag &&\n console.error(\n \"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.\"\n ),\n type.$$typeof)\n ) {\n case REACT_PORTAL_TYPE:\n return \"Portal\";\n case REACT_CONTEXT_TYPE:\n return (type.displayName || \"Context\") + \".Provider\";\n case REACT_CONSUMER_TYPE:\n return (type._context.displayName || \"Context\") + \".Consumer\";\n case REACT_FORWARD_REF_TYPE:\n var innerType = type.render;\n type = type.displayName;\n type ||\n ((type = innerType.displayName || innerType.name || \"\"),\n (type = \"\" !== type ? \"ForwardRef(\" + type + \")\" : \"ForwardRef\"));\n return type;\n case REACT_MEMO_TYPE:\n return (\n (innerType = type.displayName || null),\n null !== innerType\n ? innerType\n : getComponentNameFromType(type.type) || \"Memo\"\n );\n case REACT_LAZY_TYPE:\n innerType = type._payload;\n type = type._init;\n try {\n return getComponentNameFromType(type(innerType));\n } catch (x) {}\n }\n return null;\n }\n function testStringCoercion(value) {\n return \"\" + value;\n }\n function checkKeyStringCoercion(value) {\n try {\n testStringCoercion(value);\n var JSCompiler_inline_result = !1;\n } catch (e) {\n JSCompiler_inline_result = !0;\n }\n if (JSCompiler_inline_result) {\n JSCompiler_inline_result = console;\n var JSCompiler_temp_const = JSCompiler_inline_result.error;\n var JSCompiler_inline_result$jscomp$0 =\n (\"function\" === typeof Symbol &&\n Symbol.toStringTag &&\n value[Symbol.toStringTag]) ||\n value.constructor.name ||\n \"Object\";\n JSCompiler_temp_const.call(\n JSCompiler_inline_result,\n \"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.\",\n JSCompiler_inline_result$jscomp$0\n );\n return testStringCoercion(value);\n }\n }\n function getTaskName(type) {\n if (type === REACT_FRAGMENT_TYPE) return \"<>\";\n if (\n \"object\" === typeof type &&\n null !== type &&\n type.$$typeof === REACT_LAZY_TYPE\n )\n return \"<...>\";\n try {\n var name = getComponentNameFromType(type);\n return name ? \"<\" + name + \">\" : \"<...>\";\n } catch (x) {\n return \"<...>\";\n }\n }\n function getOwner() {\n var dispatcher = ReactSharedInternals.A;\n return null === dispatcher ? null : dispatcher.getOwner();\n }\n function UnknownOwner() {\n return Error(\"react-stack-top-frame\");\n }\n function hasValidKey(config) {\n if (hasOwnProperty.call(config, \"key\")) {\n var getter = Object.getOwnPropertyDescriptor(config, \"key\").get;\n if (getter && getter.isReactWarning) return !1;\n }\n return void 0 !== config.key;\n }\n function defineKeyPropWarningGetter(props, displayName) {\n function warnAboutAccessingKey() {\n specialPropKeyWarningShown ||\n ((specialPropKeyWarningShown = !0),\n console.error(\n \"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)\",\n displayName\n ));\n }\n warnAboutAccessingKey.isReactWarning = !0;\n Object.defineProperty(props, \"key\", {\n get: warnAboutAccessingKey,\n configurable: !0\n });\n }\n function elementRefGetterWithDeprecationWarning() {\n var componentName = getComponentNameFromType(this.type);\n didWarnAboutElementRef[componentName] ||\n ((didWarnAboutElementRef[componentName] = !0),\n console.error(\n \"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.\"\n ));\n componentName = this.props.ref;\n return void 0 !== componentName ? componentName : null;\n }\n function ReactElement(\n type,\n key,\n self,\n source,\n owner,\n props,\n debugStack,\n debugTask\n ) {\n self = props.ref;\n type = {\n $$typeof: REACT_ELEMENT_TYPE,\n type: type,\n key: key,\n props: props,\n _owner: owner\n };\n null !== (void 0 !== self ? self : null)\n ? Object.defineProperty(type, \"ref\", {\n enumerable: !1,\n get: elementRefGetterWithDeprecationWarning\n })\n : Object.defineProperty(type, \"ref\", { enumerable: !1, value: null });\n type._store = {};\n Object.defineProperty(type._store, \"validated\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: 0\n });\n Object.defineProperty(type, \"_debugInfo\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: null\n });\n Object.defineProperty(type, \"_debugStack\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugStack\n });\n Object.defineProperty(type, \"_debugTask\", {\n configurable: !1,\n enumerable: !1,\n writable: !0,\n value: debugTask\n });\n Object.freeze && (Object.freeze(type.props), Object.freeze(type));\n return type;\n }\n function jsxDEVImpl(\n type,\n config,\n maybeKey,\n isStaticChildren,\n source,\n self,\n debugStack,\n debugTask\n ) {\n var children = config.children;\n if (void 0 !== children)\n if (isStaticChildren)\n if (isArrayImpl(children)) {\n for (\n isStaticChildren = 0;\n isStaticChildren < children.length;\n isStaticChildren++\n )\n validateChildKeys(children[isStaticChildren]);\n Object.freeze && Object.freeze(children);\n } else\n console.error(\n \"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.\"\n );\n else validateChildKeys(children);\n if (hasOwnProperty.call(config, \"key\")) {\n children = getComponentNameFromType(type);\n var keys = Object.keys(config).filter(function (k) {\n return \"key\" !== k;\n });\n isStaticChildren =\n 0 < keys.length\n ? \"{key: someKey, \" + keys.join(\": ..., \") + \": ...}\"\n : \"{key: someKey}\";\n didWarnAboutKeySpread[children + isStaticChildren] ||\n ((keys =\n 0 < keys.length ? \"{\" + keys.join(\": ..., \") + \": ...}\" : \"{}\"),\n console.error(\n 'A props object containing a \"key\" prop is being spread into JSX:\\n let props = %s;\\n <%s {...props} />\\nReact keys must be passed directly to JSX without using spread:\\n let props = %s;\\n <%s key={someKey} {...props} />',\n isStaticChildren,\n children,\n keys,\n children\n ),\n (didWarnAboutKeySpread[children + isStaticChildren] = !0));\n }\n children = null;\n void 0 !== maybeKey &&\n (checkKeyStringCoercion(maybeKey), (children = \"\" + maybeKey));\n hasValidKey(config) &&\n (checkKeyStringCoercion(config.key), (children = \"\" + config.key));\n if (\"key\" in config) {\n maybeKey = {};\n for (var propName in config)\n \"key\" !== propName && (maybeKey[propName] = config[propName]);\n } else maybeKey = config;\n children &&\n defineKeyPropWarningGetter(\n maybeKey,\n \"function\" === typeof type\n ? type.displayName || type.name || \"Unknown\"\n : type\n );\n return ReactElement(\n type,\n children,\n self,\n source,\n getOwner(),\n maybeKey,\n debugStack,\n debugTask\n );\n }\n function validateChildKeys(node) {\n \"object\" === typeof node &&\n null !== node &&\n node.$$typeof === REACT_ELEMENT_TYPE &&\n node._store &&\n (node._store.validated = 1);\n }\n var React = require(\"react\"),\n REACT_ELEMENT_TYPE = Symbol.for(\"react.transitional.element\"),\n REACT_PORTAL_TYPE = Symbol.for(\"react.portal\"),\n REACT_FRAGMENT_TYPE = Symbol.for(\"react.fragment\"),\n REACT_STRICT_MODE_TYPE = Symbol.for(\"react.strict_mode\"),\n REACT_PROFILER_TYPE = Symbol.for(\"react.profiler\");\n Symbol.for(\"react.provider\");\n var REACT_CONSUMER_TYPE = Symbol.for(\"react.consumer\"),\n REACT_CONTEXT_TYPE = Symbol.for(\"react.context\"),\n REACT_FORWARD_REF_TYPE = Symbol.for(\"react.forward_ref\"),\n REACT_SUSPENSE_TYPE = Symbol.for(\"react.suspense\"),\n REACT_SUSPENSE_LIST_TYPE = Symbol.for(\"react.suspense_list\"),\n REACT_MEMO_TYPE = Symbol.for(\"react.memo\"),\n REACT_LAZY_TYPE = Symbol.for(\"react.lazy\"),\n REACT_ACTIVITY_TYPE = Symbol.for(\"react.activity\"),\n REACT_CLIENT_REFERENCE = Symbol.for(\"react.client.reference\"),\n ReactSharedInternals =\n React.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,\n hasOwnProperty = Object.prototype.hasOwnProperty,\n isArrayImpl = Array.isArray,\n createTask = console.createTask\n ? console.createTask\n : function () {\n return null;\n };\n React = {\n \"react-stack-bottom-frame\": function (callStackForError) {\n return callStackForError();\n }\n };\n var specialPropKeyWarningShown;\n var didWarnAboutElementRef = {};\n var unknownOwnerDebugStack = React[\"react-stack-bottom-frame\"].bind(\n React,\n UnknownOwner\n )();\n var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));\n var didWarnAboutKeySpread = {};\n exports.Fragment = REACT_FRAGMENT_TYPE;\n exports.jsx = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !1,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n exports.jsxs = function (type, config, maybeKey, source, self) {\n var trackActualOwner =\n 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;\n return jsxDEVImpl(\n type,\n config,\n maybeKey,\n !0,\n source,\n self,\n trackActualOwner\n ? Error(\"react-stack-top-frame\")\n : unknownOwnerDebugStack,\n trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask\n );\n };\n })();\n"],"names":["getComponentNameFromType","type","REACT_CLIENT_REFERENCE","REACT_FRAGMENT_TYPE","REACT_PROFILER_TYPE","REACT_STRICT_MODE_TYPE","REACT_SUSPENSE_TYPE","REACT_SUSPENSE_LIST_TYPE","REACT_ACTIVITY_TYPE","REACT_PORTAL_TYPE","REACT_CONTEXT_TYPE","REACT_CONSUMER_TYPE","REACT_FORWARD_REF_TYPE","innerType","REACT_MEMO_TYPE","REACT_LAZY_TYPE","testStringCoercion","value","checkKeyStringCoercion","JSCompiler_inline_result","JSCompiler_temp_const","JSCompiler_inline_result$jscomp$0","getTaskName","name","getOwner","dispatcher","ReactSharedInternals","UnknownOwner","hasValidKey","config","hasOwnProperty","getter","defineKeyPropWarningGetter","props","displayName","warnAboutAccessingKey","specialPropKeyWarningShown","elementRefGetterWithDeprecationWarning","componentName","didWarnAboutElementRef","ReactElement","key","self","source","owner","debugStack","debugTask","REACT_ELEMENT_TYPE","jsxDEVImpl","maybeKey","isStaticChildren","children","isArrayImpl","validateChildKeys","keys","k","didWarnAboutKeySpread","propName","node","React","require$$0","createTask","callStackForError","unknownOwnerDebugStack","unknownOwnerDebugTask","reactJsxRuntime_development","trackActualOwner"],"mappings":";;;;;;;;qCAWiB,QAAQ,IAAI,WAA7B,cACG,UAAY,CACX,SAASA,EAAyBC,EAAM,CACtC,GAAYA,GAAR,KAAc,OAAO,KACzB,GAAmB,OAAOA,GAAtB,WACF,OAAOA,EAAK,WAAaC,EACrB,KACAD,EAAK,aAAeA,EAAK,MAAQ,KACvC,GAAiB,OAAOA,GAApB,SAA0B,OAAOA,EACrC,OAAQA,EAAI,CACV,KAAKE,EACH,MAAO,WACT,KAAKC,EACH,MAAO,WACT,KAAKC,EACH,MAAO,aACT,KAAKC,EACH,MAAO,WACT,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D,OAAOA,EAAmB,CAClC,CACK,EACD,IAAI1B,EACAG,EAAyB,CAAE,EAC3BwB,EAAyBJ,EAAM,0BAA0B,EAAE,KAC7DA,EACAhC,CACN,EAAO,EACCqC,EAAwBH,EAAWvC,EAAYK,CAAY,CAAC,EAC5D6B,EAAwB,CAAE,EAC9BS,EAAA,UAAA,SAAmB9D,EACnB8D,EAAW,UAAA,IAAG,SAAUhE,EAAM4B,EAAQoB,EAAUN,EAAQD,EAAM,CAC5D,IAAIwB,EACF,IAAMxC,EAAqB,6BAC7B,OAAOsB,EACL/C,EACA4B,EACAoB,EACA,GACAN,EACAD,EACAwB,EACI,MAAM,uBAAuB,EAC7BH,EACJG,EAAmBL,EAAWvC,EAAYrB,CAAI,CAAC,EAAI+D,CACpD,CACF,EACDC,EAAY,UAAA,KAAG,SAAUhE,EAAM4B,EAAQoB,EAAUN,EAAQD,EAAM,CAC7D,IAAIwB,EACF,IAAMxC,EAAqB,6BAC7B,OAAOsB,EACL/C,EACA4B,EACAoB,EACA,GACAN,EACAD,EACAwB,EACI,MAAM,uBAAuB,EAC7BH,EACJG,EAAmBL,EAAWvC,EAAYrB,CAAI,CAAC,EAAI+D,CACpD,CACF,CACL,EAAM","x_google_ignoreList":[0]}
|
package/dist/index.cjs27.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs27.js","sources":["../src/components/ui/CardMapStructure/index.tsx"],"sourcesContent":["import \"./CardMap.scss\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { AddressSchema } from \"@anoki/fse-common\";\nimport { Col } from \"@/components\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\n\ntype CardMapProps = {\n id: string;\n title: string;\n titleTag: HeadingLevel;\n href?: string;\n description?: string;\n isExternal?: boolean;\n showIcon?: boolean;\n asLink?: \"a\";\n className?: string;\n address?: AddressSchema;\n setSelectedCard?: (id: string) => void;\n};\nexport const CardMap = ({\n id,\n title,\n titleTag: TitleTag = \"h3\",\n href,\n description,\n isExternal = false,\n asLink = \"a\",\n className,\n address,\n setSelectedCard = () => {},\n}: CardMapProps) => {\n const LinkComponent = asLink;\n const [isActive, setIsActive] = useState(false);\n const dropdownRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n const handleClickOutside = (event: MouseEvent) => {\n if (\n dropdownRef.current &&\n !dropdownRef.current.contains(event.target as Node)\n ) {\n setIsActive(false);\n }\n };\n\n if (isActive) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n } else {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [isActive]);\n return (\n <Col\n as={\"div\"}\n justifyContent={\"center\"}\n ref={dropdownRef}\n br={\"x4\"}\n p={\"x24\"}\n bg={\"white\"}\n className={`${className} ${isActive ? \"ui-is-active\" : \"ui-card-search\"} shadow cursor-pointer text-slate-28`}\n onClick={() => {\n setIsActive(true);\n setSelectedCard(id);\n }}\n >\n <Col pb={\"x24\"}>\n <TitleTag className=\"flex-1\">\n <LinkComponent\n className={\"text-decoration-none fs-4 text-primary fw-semibold\"}\n href={href}\n target={isExternal ? \"_blank\" : undefined}\n rel={isExternal ? \"noreferrer noopener\" : undefined}\n >\n {title}\n </LinkComponent>\n </TitleTag>\n <p className=\"fs-6 fw-regular\">{description}</p>\n </Col>\n\n {address && address.streetName && (\n <Col as={\"footer\"} gap={\"x8\"} bg={\"white\"}>\n <h5 className={\"fw-semibold fs-6\"}>Indirizzo</h5>\n <p className={\"fw-regular\"}>{address.plainAddress}</p>\n </Col>\n )}\n </Col>\n );\n};\n"],"names":["CardMap","id","title","TitleTag","href","description","isExternal","asLink","className","address","setSelectedCard","LinkComponent","isActive","setIsActive","useState","dropdownRef","useRef","useEffect","handleClickOutside","event","jsxs","Col","jsx"],"mappings":"yMAoBaA,EAAU,CAAC,CACtB,GAAAC,EACA,MAAAC,EACA,SAAUC,EAAW,KACrB,KAAAC,EACA,YAAAC,EACA,W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A,IAAA,KAAA,CAAG,UAAW,mBAAoB,SAAS,YAAA,EAC3CA,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,aAAe,WAAQ,YAAa,CAAA,CAAA,CACpD,CAAA,CAAA,CAAA,CAEJ,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs27.js","sources":["../src/components/ui/CardMapStructure/index.tsx"],"sourcesContent":["import \"./CardMap.scss\";\r\nimport { useEffect, useRef, useState } from \"react\";\r\nimport { AddressSchema } from \"@anoki/fse-common\";\r\nimport { Col } from \"@/components\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\n\r\ntype CardMapProps = {\r\n id: string;\r\n title: string;\r\n titleTag: HeadingLevel;\r\n href?: string;\r\n description?: string;\r\n isExternal?: boolean;\r\n showIcon?: boolean;\r\n asLink?: \"a\";\r\n className?: string;\r\n address?: AddressSchema;\r\n setSelectedCard?: (id: string) => void;\r\n};\r\nexport const CardMap = ({\r\n id,\r\n title,\r\n titleTag: TitleTag = \"h3\",\r\n href,\r\n description,\r\n isExternal = false,\r\n asLink = \"a\",\r\n className,\r\n address,\r\n setSelectedCard = () => {},\r\n}: CardMapProps) => {\r\n const LinkComponent = asLink;\r\n const [isActive, setIsActive] = useState(false);\r\n const dropdownRef = useRef<HTMLDivElement>(null);\r\n\r\n useEffect(() => {\r\n const handleClickOutside = (event: MouseEvent) => {\r\n if (\r\n dropdownRef.current &&\r\n !dropdownRef.current.contains(event.target as Node)\r\n ) {\r\n setIsActive(false);\r\n }\r\n };\r\n\r\n if (isActive) {\r\n document.addEventListener(\"mousedown\", handleClickOutside);\r\n } else {\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n }\r\n\r\n return () => {\r\n document.removeEventListener(\"mousedown\", handleClickOutside);\r\n };\r\n }, [isActive]);\r\n return (\r\n <Col\r\n as={\"div\"}\r\n justifyContent={\"center\"}\r\n ref={dropdownRef}\r\n br={\"x4\"}\r\n p={\"x24\"}\r\n bg={\"white\"}\r\n className={`${className} ${isActive ? \"ui-is-active\" : \"ui-card-search\"} shadow cursor-pointer text-slate-28`}\r\n onClick={() => {\r\n setIsActive(true);\r\n setSelectedCard(id);\r\n }}\r\n >\r\n <Col pb={\"x24\"}>\r\n <TitleTag className=\"flex-1\">\r\n <LinkComponent\r\n className={\"text-decoration-none fs-4 text-primary fw-semibold\"}\r\n href={href}\r\n target={isExternal ? \"_blank\" : undefined}\r\n rel={isExternal ? \"noreferrer noopener\" : undefined}\r\n >\r\n {title}\r\n </LinkComponent>\r\n </TitleTag>\r\n <p className=\"fs-6 fw-regular\">{description}</p>\r\n </Col>\r\n\r\n {address && address.streetName && (\r\n <Col as={\"footer\"} gap={\"x8\"} bg={\"white\"}>\r\n <h5 className={\"fw-semibold fs-6\"}>Indirizzo</h5>\r\n <p className={\"fw-regular\"}>{address.plainAddress}</p>\r\n </Col>\r\n )}\r\n </Col>\r\n );\r\n};\r\n"],"names":["CardMap","id","title","TitleTag","href","description","isExternal","asLink","className","address","setSelectedCard","LinkComponent","isActive","setIsActive","useState","dropdownRef","useRef","useEffect","handleClickOutside","event","jsxs","Col","jsx"],"mappings":"yMAoBaA,EAAU,CAAC,CACtB,GAAAC,EACA,MAAAC,EACA,SAAUC,EAAW,KACrB,KAAAC,EACA,YAAAC,EACA,WAAAC,EAAa,GACb,OAAAC,EAAS,IACT,UAAAC,EACA,QAAAC,EACA,gBAAAC,EAAkB,IAAM,CAAA,CAC1B,IAAoB,CAClB,MAAMC,EAAgBJ,EAChB,CAACK,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EACxCC,EAAcC,SAAuB,IAAI,EAE/CC,OAAAA,EAAAA,UAAU,IAAM,CACR,MAAAC,EAAsBC,GAAsB,CAE9CJ,EAAY,SACZ,CAACA,EAAY,QAAQ,SAASI,EAAM,MAAc,GAElDN,EAAY,EAAK,CAErB,EAEA,OAAID,EACO,SAAA,iBAAiB,YAAaM,CAAkB,EAEhD,SAAA,oBAAoB,YAAaA,CAAkB,EAGvD,IAAM,CACF,SAAA,oBAAoB,YAAaA,CAAkB,CAC9D,CAAA,EACC,CAACN,CAAQ,CAAC,EAEXQ,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,MACJ,eAAgB,SAChB,IAAKN,EACL,GAAI,KACJ,EAAG,MACH,GAAI,QACJ,UAAW,GAAGP,CAAS,IAAII,EAAW,eAAiB,gBAAgB,uCACvE,QAAS,IAAM,CACbC,EAAY,EAAI,EAChBH,EAAgBT,CAAE,CACpB,EAEA,SAAA,CAACmB,EAAAA,kBAAAA,KAAAC,EAAAA,IAAA,CAAI,GAAI,MACP,SAAA,CAACC,EAAAA,kBAAAA,IAAAnB,EAAA,CAAS,UAAU,SAClB,SAAAmB,EAAA,kBAAA,IAACX,EAAA,CACC,UAAW,qDACX,KAAAP,EACA,OAAQE,EAAa,SAAW,OAChC,IAAKA,EAAa,sBAAwB,OAEzC,SAAAJ,CAAA,CAAA,EAEL,EACCoB,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,kBAAmB,SAAYjB,CAAA,CAAA,CAAA,EAC9C,EAECI,GAAWA,EAAQ,YACjBW,EAAA,kBAAA,KAAAC,EAAA,IAAA,CAAI,GAAI,SAAU,IAAK,KAAM,GAAI,QAChC,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAW,mBAAoB,SAAS,YAAA,EAC3CA,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,aAAe,WAAQ,YAAa,CAAA,CAAA,CACpD,CAAA,CAAA,CAAA,CAEJ,CAEJ"}
|
package/dist/index.cjs275.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),f=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),f=require("./index.cjs308.js");function S(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,n.get?n:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=S(b);function g({prop:e,defaultProp:o,onChange:t=()=>{}}){const[n,c]=v({defaultProp:o,onChange:t}),l=e!==void 0,i=l?e:n,u=f.useCallbackRef(t),d=s.useCallback(r=>{if(l){const a=typeof r=="function"?r(e):r;a!==e&&u(a)}else c(r)},[l,e,c,u]);return[i,d]}function v({defaultProp:e,onChange:o}){const t=s.useState(e),[n]=t,c=s.useRef(n),l=f.useCallbackRef(o);return s.useEffect(()=>{c.current!==n&&(l(n),c.current=n)},[n,c,l]),t}exports.useControllableState=g;
|
2
2
|
//# sourceMappingURL=index.cjs275.js.map
|
package/dist/index.cjs276.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),l=require("react-dom"),f=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),l=require("react-dom"),f=require("./index.cjs291.js"),d=require("./index.cjs154.js");function n(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const i in e)if(i!=="default"){const r=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(t,i,r.get?r:{enumerable:!0,get:()=>e[i]})}}return t.default=e,Object.freeze(t)}const p=n(u),m=n(l);var v=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],b=v.reduce((e,t)=>{const i=p.forwardRef((r,o)=>{const{asChild:c,...s}=r,a=c?f.Slot:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),d.jsxRuntimeExports.jsx(a,{...s,ref:o})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function y(e,t){e&&m.flushSync(()=>e.dispatchEvent(t))}exports.Primitive=b;exports.dispatchDiscreteCustomEvent=y;
|
2
2
|
//# sourceMappingURL=index.cjs276.js.map
|
package/dist/index.cjs277.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("react"),v=require("./index.cjs272.js"),Ve=require("./index.cjs301.js"),y=require("./index.cjs273.js"),Ye=require("./index.cjs274.js"),Xe=require("./index.cjs302.js"),We=require("./index.cjs290.js"),ze=require("./index.cjs293.js"),Ze=require("./index.cjs291.js"),T=require("./index.cjs303.js"),Je=require("./index.cjs292.js"),X=require("./index.cjs281.js"),A=require("./index.cjs276.js"),W=require("./index.cjs304.js"),Qe=require("./index.cjs296.js"),be=require("./index.cjs300.js"),et=require("./index.cjs295.js"),tt=require("./index.cjs294.js"),a=require("./index.cjs154.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},L="Menu",[N,ut,at]=Ve.createCollection(L),[j,it]=Ye.createContextScope(L,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(L),[dt,G]=j(L),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const M=()=>{f.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>f.current=!1;return document.addEventListener("keydown",M,{capture:!0}),()=>{document.removeEventListener("keydown",M,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=L;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:M,disableOutsideScroll:R,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=R?tt:r.Fragment,Ue=R?{as:Qe.Slot,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=bt(ne,E,te),D=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),D&&setTimeout(()=>D.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&yt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:M,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Le(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const D=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&D.reverse(),St(D)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,F(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Mt="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Mt;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,M=>o==null?void 0:o(M),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,M]=r.useState("");return r.useEffect(()=>{const R=p.current;R&&M((R.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,F(R=>{o?l.onItemLeave(R):(l.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,F(R=>l.onItemLeave(R))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Et="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(ke,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Et;var Oe="MenuRadioGroup",[Ct,ht]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(Ct,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var De="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=ht(De,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(ke,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=De;var pe="MenuItemIndicator",[ke,gt]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=gt(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var _t="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=_t;var Pt="MenuArrow",Re=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Re.displayName=Pt;var jt="MenuSub",[Vt,Ne]=j(jt),k="MenuSubTrigger",Me=r.forwardRef((e,n)=>{const t=S(k,e.__scopeMenu),o=G(k,e.__scopeMenu),u=Ne(k,e.__scopeMenu),s=ue(k,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Le(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,F(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,F(c=>{var M,R;f();const d=(M=t.content)==null?void 0:M.getBoundingClientRect();if(d){const P=(R=t.content)==null?void 0:R.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var M;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(M=t.content)==null||M.focus(),c.preventDefault())})})})});Me.displayName=k;var Fe="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Fe,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var M;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(M=m.trigger)==null||M.focus(),f.preventDefault())})})})})})});Ee.displayName=Fe;function Le(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function St(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function It(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function bt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=It(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function wt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function yt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return wt(t,n)}function F(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Tt=re,At=Z,Ot=ce,Dt=ae,kt=J,Nt=le,Ft=K,Lt=de,Gt=fe,Kt=me,Ht=xe,qt=ve,Ut=Re,$t=Me,Bt=Ee;exports.Anchor=At;exports.Arrow=Ut;exports.CheckboxItem=Lt;exports.Content=Dt;exports.Group=kt;exports.Item=Ft;exports.ItemIndicator=Ht;exports.Label=Nt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Re;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Me;exports.Portal=Ot;exports.RadioGroup=Gt;exports.RadioItem=Kt;exports.Root=Tt;exports.Separator=qt;exports.SubContent=Bt;exports.SubTrigger=$t;exports.createMenuScope=it;
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Be=require("react"),v=require("./index.cjs272.js"),Ve=require("./index.cjs309.js"),y=require("./index.cjs273.js"),Ye=require("./index.cjs274.js"),Xe=require("./index.cjs310.js"),We=require("./index.cjs285.js"),ze=require("./index.cjs288.js"),Ze=require("./index.cjs286.js"),T=require("./index.cjs311.js"),Je=require("./index.cjs287.js"),X=require("./index.cjs281.js"),A=require("./index.cjs276.js"),W=require("./index.cjs312.js"),Qe=require("./index.cjs291.js"),be=require("./index.cjs308.js"),et=require("./index.cjs290.js"),tt=require("./index.cjs289.js"),a=require("./index.cjs154.js");function nt(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const o=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return n.default=e,Object.freeze(n)}const r=nt(Be);var oe=["Enter"," "],ot=["ArrowDown","PageUp","Home"],we=["ArrowUp","PageDown","End"],rt=[...ot,...we],st={ltr:[...oe,"ArrowRight"],rtl:[...oe,"ArrowLeft"]},ct={ltr:["ArrowLeft"],rtl:["ArrowRight"]},L="Menu",[N,ut,at]=Ve.createCollection(L),[j,it]=Ye.createContextScope(L,[at,T.createPopperScope,W.createRovingFocusGroupScope]),z=T.createPopperScope(),ye=W.createRovingFocusGroupScope(),[lt,S]=j(L),[dt,G]=j(L),re=e=>{const{__scopeMenu:n,open:t=!1,children:o,dir:u,onOpenChange:s,modal:l=!0}=e,m=z(n),[p,x]=r.useState(null),f=r.useRef(!1),c=be.useCallbackRef(s),d=Xe.useDirection(u);return r.useEffect(()=>{const M=()=>{f.current=!0,document.addEventListener("pointerdown",R,{capture:!0,once:!0}),document.addEventListener("pointermove",R,{capture:!0,once:!0})},R=()=>f.current=!1;return document.addEventListener("keydown",M,{capture:!0}),()=>{document.removeEventListener("keydown",M,{capture:!0}),document.removeEventListener("pointerdown",R,{capture:!0}),document.removeEventListener("pointermove",R,{capture:!0})}},[]),a.jsxRuntimeExports.jsx(T.Root,{...m,children:a.jsxRuntimeExports.jsx(lt,{scope:n,open:t,onOpenChange:c,content:p,onContentChange:x,children:a.jsxRuntimeExports.jsx(dt,{scope:n,onClose:r.useCallback(()=>c(!1),[c]),isUsingKeyboardRef:f,dir:d,modal:l,children:o})})})};re.displayName=L;var ft="MenuAnchor",Z=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Anchor,{...u,...o,ref:n})});Z.displayName=ft;var se="MenuPortal",[mt,Te]=j(se,{forceMount:void 0}),ce=e=>{const{__scopeMenu:n,forceMount:t,children:o,container:u}=e,s=S(se,n);return a.jsxRuntimeExports.jsx(mt,{scope:n,forceMount:t,children:a.jsxRuntimeExports.jsx(X.Presence,{present:t||s.open,children:a.jsxRuntimeExports.jsx(Je.Portal,{asChild:!0,container:u,children:o})})})};ce.displayName=se;var C="MenuContent",[pt,ue]=j(C),ae=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:l.modal?a.jsxRuntimeExports.jsx(xt,{...u,ref:n}):a.jsxRuntimeExports.jsx(vt,{...u,ref:n})})})})}),xt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu),o=r.useRef(null),u=y.useComposedRefs(n,o);return r.useEffect(()=>{const s=o.current;if(s)return et.hideOthers(s)},[]),a.jsxRuntimeExports.jsx(ie,{...e,ref:u,trapFocus:t.open,disableOutsidePointerEvents:t.open,disableOutsideScroll:!0,onFocusOutside:v.composeEventHandlers(e.onFocusOutside,s=>s.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>t.onOpenChange(!1)})}),vt=r.forwardRef((e,n)=>{const t=S(C,e.__scopeMenu);return a.jsxRuntimeExports.jsx(ie,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>t.onOpenChange(!1)})}),ie=r.forwardRef((e,n)=>{const{__scopeMenu:t,loop:o=!1,trapFocus:u,onOpenAutoFocus:s,onCloseAutoFocus:l,disableOutsidePointerEvents:m,onEntryFocus:p,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:M,disableOutsideScroll:R,...P}=e,I=S(C,t),O=G(C,t),H=z(t),q=ye(t),he=ut(t),[Ge,ge]=r.useState(null),U=r.useRef(null),Ke=y.useComposedRefs(n,U,I.onContentChange),$=r.useRef(0),B=r.useRef(""),He=r.useRef(0),Q=r.useRef(null),_e=r.useRef("right"),ee=r.useRef(0),qe=R?tt:r.Fragment,Ue=R?{as:Qe.Slot,allowPinchZoom:!0}:void 0,$e=i=>{var w,je;const E=B.current+i,h=he().filter(g=>!g.disabled),_=document.activeElement,te=(w=h.find(g=>g.ref.current===_))==null?void 0:w.textValue,ne=h.map(g=>g.textValue),Pe=bt(ne,E,te),D=(je=h.find(g=>g.textValue===Pe))==null?void 0:je.ref.current;(function g(Se){B.current=Se,window.clearTimeout($.current),Se!==""&&($.current=window.setTimeout(()=>g(""),1e3))})(E),D&&setTimeout(()=>D.focus())};r.useEffect(()=>()=>window.clearTimeout($.current),[]),ze.useFocusGuards();const b=r.useCallback(i=>{var h,_;return _e.current===((h=Q.current)==null?void 0:h.side)&&yt(i,(_=Q.current)==null?void 0:_.area)},[]);return a.jsxRuntimeExports.jsx(pt,{scope:t,searchRef:B,onItemEnter:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),onItemLeave:r.useCallback(i=>{var E;b(i)||((E=U.current)==null||E.focus(),ge(null))},[b]),onTriggerLeave:r.useCallback(i=>{b(i)&&i.preventDefault()},[b]),pointerGraceTimerRef:He,onPointerGraceIntentChange:r.useCallback(i=>{Q.current=i},[]),children:a.jsxRuntimeExports.jsx(qe,{...Ue,children:a.jsxRuntimeExports.jsx(Ze.FocusScope,{asChild:!0,trapped:u,onMountAutoFocus:v.composeEventHandlers(s,i=>{var E;i.preventDefault(),(E=U.current)==null||E.focus({preventScroll:!0})}),onUnmountAutoFocus:l,children:a.jsxRuntimeExports.jsx(We.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:m,onEscapeKeyDown:x,onPointerDownOutside:f,onFocusOutside:c,onInteractOutside:d,onDismiss:M,children:a.jsxRuntimeExports.jsx(W.Root,{asChild:!0,...q,dir:O.dir,orientation:"vertical",loop:o,currentTabStopId:Ge,onCurrentTabStopIdChange:ge,onEntryFocus:v.composeEventHandlers(p,i=>{O.isUsingKeyboardRef.current||i.preventDefault()}),preventScrollOnEntryFocus:!0,children:a.jsxRuntimeExports.jsx(T.Content,{role:"menu","aria-orientation":"vertical","data-state":Le(I.open),"data-radix-menu-content":"",dir:O.dir,...H,...P,ref:Ke,style:{outline:"none",...P.style},onKeyDown:v.composeEventHandlers(P.onKeyDown,i=>{const h=i.target.closest("[data-radix-menu-content]")===i.currentTarget,_=i.ctrlKey||i.altKey||i.metaKey,te=i.key.length===1;h&&(i.key==="Tab"&&i.preventDefault(),!_&&te&&$e(i.key));const ne=U.current;if(i.target!==ne||!rt.includes(i.key))return;i.preventDefault();const D=he().filter(w=>!w.disabled).map(w=>w.ref.current);we.includes(i.key)&&D.reverse(),St(D)}),onBlur:v.composeEventHandlers(e.onBlur,i=>{i.currentTarget.contains(i.target)||(window.clearTimeout($.current),B.current="")}),onPointerMove:v.composeEventHandlers(e.onPointerMove,F(i=>{const E=i.target,h=ee.current!==i.clientX;if(i.currentTarget.contains(E)&&h){const _=i.clientX>ee.current?"right":"left";_e.current=_,ee.current=i.clientX}}))})})})})})})});ae.displayName=C;var Rt="MenuGroup",J=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"group",...o,ref:n})});J.displayName=Rt;var Mt="MenuLabel",le=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{...o,ref:n})});le.displayName=Mt;var V="MenuItem",Ie="menu.itemSelect",K=r.forwardRef((e,n)=>{const{disabled:t=!1,onSelect:o,...u}=e,s=r.useRef(null),l=G(V,e.__scopeMenu),m=ue(V,e.__scopeMenu),p=y.useComposedRefs(n,s),x=r.useRef(!1),f=()=>{const c=s.current;if(!t&&c){const d=new CustomEvent(Ie,{bubbles:!0,cancelable:!0});c.addEventListener(Ie,M=>o==null?void 0:o(M),{once:!0}),A.dispatchDiscreteCustomEvent(c,d),d.defaultPrevented?x.current=!1:l.onClose()}};return a.jsxRuntimeExports.jsx(Ae,{...u,ref:p,disabled:t,onClick:v.composeEventHandlers(e.onClick,f),onPointerDown:c=>{var d;(d=e.onPointerDown)==null||d.call(e,c),x.current=!0},onPointerUp:v.composeEventHandlers(e.onPointerUp,c=>{var d;x.current||(d=c.currentTarget)==null||d.click()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{const d=m.searchRef.current!=="";t||d&&c.key===" "||oe.includes(c.key)&&(c.currentTarget.click(),c.preventDefault())})})});K.displayName=V;var Ae=r.forwardRef((e,n)=>{const{__scopeMenu:t,disabled:o=!1,textValue:u,...s}=e,l=ue(V,t),m=ye(t),p=r.useRef(null),x=y.useComposedRefs(n,p),[f,c]=r.useState(!1),[d,M]=r.useState("");return r.useEffect(()=>{const R=p.current;R&&M((R.textContent??"").trim())},[s.children]),a.jsxRuntimeExports.jsx(N.ItemSlot,{scope:t,disabled:o,textValue:u??d,children:a.jsxRuntimeExports.jsx(W.Item,{asChild:!0,...m,focusable:!o,children:a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...s,ref:x,onPointerMove:v.composeEventHandlers(e.onPointerMove,F(R=>{o?l.onItemLeave(R):(l.onItemEnter(R),R.defaultPrevented||R.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,F(R=>l.onItemLeave(R))),onFocus:v.composeEventHandlers(e.onFocus,()=>c(!0)),onBlur:v.composeEventHandlers(e.onBlur,()=>c(!1))})})})}),Et="MenuCheckboxItem",de=r.forwardRef((e,n)=>{const{checked:t=!1,onCheckedChange:o,...u}=e;return a.jsxRuntimeExports.jsx(ke,{scope:e.__scopeMenu,checked:t,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemcheckbox","aria-checked":Y(t)?"mixed":t,...u,ref:n,"data-state":Ce(t),onSelect:v.composeEventHandlers(u.onSelect,()=>o==null?void 0:o(Y(t)?!0:!t),{checkForDefaultPrevented:!1})})})});de.displayName=Et;var Oe="MenuRadioGroup",[Ct,ht]=j(Oe,{value:void 0,onValueChange:()=>{}}),fe=r.forwardRef((e,n)=>{const{value:t,onValueChange:o,...u}=e,s=be.useCallbackRef(o);return a.jsxRuntimeExports.jsx(Ct,{scope:e.__scopeMenu,value:t,onValueChange:s,children:a.jsxRuntimeExports.jsx(J,{...u,ref:n})})});fe.displayName=Oe;var De="MenuRadioItem",me=r.forwardRef((e,n)=>{const{value:t,...o}=e,u=ht(De,e.__scopeMenu),s=t===u.value;return a.jsxRuntimeExports.jsx(ke,{scope:e.__scopeMenu,checked:s,children:a.jsxRuntimeExports.jsx(K,{role:"menuitemradio","aria-checked":s,...o,ref:n,"data-state":Ce(s),onSelect:v.composeEventHandlers(o.onSelect,()=>{var l;return(l=u.onValueChange)==null?void 0:l.call(u,t)},{checkForDefaultPrevented:!1})})})});me.displayName=De;var pe="MenuItemIndicator",[ke,gt]=j(pe,{checked:!1}),xe=r.forwardRef((e,n)=>{const{__scopeMenu:t,forceMount:o,...u}=e,s=gt(pe,t);return a.jsxRuntimeExports.jsx(X.Presence,{present:o||Y(s.checked)||s.checked===!0,children:a.jsxRuntimeExports.jsx(A.Primitive.span,{...u,ref:n,"data-state":Ce(s.checked)})})});xe.displayName=pe;var _t="MenuSeparator",ve=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e;return a.jsxRuntimeExports.jsx(A.Primitive.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ve.displayName=_t;var Pt="MenuArrow",Re=r.forwardRef((e,n)=>{const{__scopeMenu:t,...o}=e,u=z(t);return a.jsxRuntimeExports.jsx(T.Arrow,{...u,...o,ref:n})});Re.displayName=Pt;var jt="MenuSub",[Vt,Ne]=j(jt),k="MenuSubTrigger",Me=r.forwardRef((e,n)=>{const t=S(k,e.__scopeMenu),o=G(k,e.__scopeMenu),u=Ne(k,e.__scopeMenu),s=ue(k,e.__scopeMenu),l=r.useRef(null),{pointerGraceTimerRef:m,onPointerGraceIntentChange:p}=s,x={__scopeMenu:e.__scopeMenu},f=r.useCallback(()=>{l.current&&window.clearTimeout(l.current),l.current=null},[]);return r.useEffect(()=>f,[f]),r.useEffect(()=>{const c=m.current;return()=>{window.clearTimeout(c),p(null)}},[m,p]),a.jsxRuntimeExports.jsx(Z,{asChild:!0,...x,children:a.jsxRuntimeExports.jsx(Ae,{id:u.triggerId,"aria-haspopup":"menu","aria-expanded":t.open,"aria-controls":u.contentId,"data-state":Le(t.open),...e,ref:y.composeRefs(n,u.onTriggerChange),onClick:c=>{var d;(d=e.onClick)==null||d.call(e,c),!(e.disabled||c.defaultPrevented)&&(c.currentTarget.focus(),t.open||t.onOpenChange(!0))},onPointerMove:v.composeEventHandlers(e.onPointerMove,F(c=>{s.onItemEnter(c),!c.defaultPrevented&&!e.disabled&&!t.open&&!l.current&&(s.onPointerGraceIntentChange(null),l.current=window.setTimeout(()=>{t.onOpenChange(!0),f()},100))})),onPointerLeave:v.composeEventHandlers(e.onPointerLeave,F(c=>{var M,R;f();const d=(M=t.content)==null?void 0:M.getBoundingClientRect();if(d){const P=(R=t.content)==null?void 0:R.dataset.side,I=P==="right",O=I?-5:5,H=d[I?"left":"right"],q=d[I?"right":"left"];s.onPointerGraceIntentChange({area:[{x:c.clientX+O,y:c.clientY},{x:H,y:d.top},{x:q,y:d.top},{x:q,y:d.bottom},{x:H,y:d.bottom}],side:P}),window.clearTimeout(m.current),m.current=window.setTimeout(()=>s.onPointerGraceIntentChange(null),300)}else{if(s.onTriggerLeave(c),c.defaultPrevented)return;s.onPointerGraceIntentChange(null)}})),onKeyDown:v.composeEventHandlers(e.onKeyDown,c=>{var M;const d=s.searchRef.current!=="";e.disabled||d&&c.key===" "||st[o.dir].includes(c.key)&&(t.onOpenChange(!0),(M=t.content)==null||M.focus(),c.preventDefault())})})})});Me.displayName=k;var Fe="MenuSubContent",Ee=r.forwardRef((e,n)=>{const t=Te(C,e.__scopeMenu),{forceMount:o=t.forceMount,...u}=e,s=S(C,e.__scopeMenu),l=G(C,e.__scopeMenu),m=Ne(Fe,e.__scopeMenu),p=r.useRef(null),x=y.useComposedRefs(n,p);return a.jsxRuntimeExports.jsx(N.Provider,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(X.Presence,{present:o||s.open,children:a.jsxRuntimeExports.jsx(N.Slot,{scope:e.__scopeMenu,children:a.jsxRuntimeExports.jsx(ie,{id:m.contentId,"aria-labelledby":m.triggerId,...u,ref:x,align:"start",side:l.dir==="rtl"?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:f=>{var c;l.isUsingKeyboardRef.current&&((c=p.current)==null||c.focus()),f.preventDefault()},onCloseAutoFocus:f=>f.preventDefault(),onFocusOutside:v.composeEventHandlers(e.onFocusOutside,f=>{f.target!==m.trigger&&s.onOpenChange(!1)}),onEscapeKeyDown:v.composeEventHandlers(e.onEscapeKeyDown,f=>{l.onClose(),f.preventDefault()}),onKeyDown:v.composeEventHandlers(e.onKeyDown,f=>{var M;const c=f.currentTarget.contains(f.target),d=ct[l.dir].includes(f.key);c&&d&&(s.onOpenChange(!1),(M=m.trigger)==null||M.focus(),f.preventDefault())})})})})})});Ee.displayName=Fe;function Le(e){return e?"open":"closed"}function Y(e){return e==="indeterminate"}function Ce(e){return Y(e)?"indeterminate":e?"checked":"unchecked"}function St(e){const n=document.activeElement;for(const t of e)if(t===n||(t.focus(),document.activeElement!==n))return}function It(e,n){return e.map((t,o)=>e[(n+o)%e.length])}function bt(e,n,t){const u=n.length>1&&Array.from(n).every(x=>x===n[0])?n[0]:n,s=t?e.indexOf(t):-1;let l=It(e,Math.max(s,0));u.length===1&&(l=l.filter(x=>x!==t));const p=l.find(x=>x.toLowerCase().startsWith(u.toLowerCase()));return p!==t?p:void 0}function wt(e,n){const{x:t,y:o}=e;let u=!1;for(let s=0,l=n.length-1;s<n.length;l=s++){const m=n[s].x,p=n[s].y,x=n[l].x,f=n[l].y;p>o!=f>o&&t<(x-m)*(o-p)/(f-p)+m&&(u=!u)}return u}function yt(e,n){if(!n)return!1;const t={x:e.clientX,y:e.clientY};return wt(t,n)}function F(e){return n=>n.pointerType==="mouse"?e(n):void 0}var Tt=re,At=Z,Ot=ce,Dt=ae,kt=J,Nt=le,Ft=K,Lt=de,Gt=fe,Kt=me,Ht=xe,qt=ve,Ut=Re,$t=Me,Bt=Ee;exports.Anchor=At;exports.Arrow=Ut;exports.CheckboxItem=Lt;exports.Content=Dt;exports.Group=kt;exports.Item=Ft;exports.ItemIndicator=Ht;exports.Label=Nt;exports.Menu=re;exports.MenuAnchor=Z;exports.MenuArrow=Re;exports.MenuCheckboxItem=de;exports.MenuContent=ae;exports.MenuGroup=J;exports.MenuItem=K;exports.MenuItemIndicator=xe;exports.MenuLabel=le;exports.MenuPortal=ce;exports.MenuRadioGroup=fe;exports.MenuRadioItem=me;exports.MenuSeparator=ve;exports.MenuSubContent=Ee;exports.MenuSubTrigger=Me;exports.Portal=Ot;exports.RadioGroup=Gt;exports.RadioItem=Kt;exports.Root=Tt;exports.Separator=qt;exports.SubContent=Bt;exports.SubTrigger=$t;exports.createMenuScope=it;
|
2
2
|
//# sourceMappingURL=index.cjs277.js.map
|
package/dist/index.cjs278.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react"),c=require("./index.cjs313.js");function a(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const o=a(u);var s=o.useId||(()=>{}),i=0;function d(e){const[t,r]=o.useState(s());return c.useLayoutEffect(()=>{r(n=>n??String(i++))},[e]),e||(t?`radix-${t}`:"")}exports.useId=d;
|
2
2
|
//# sourceMappingURL=index.cjs278.js.map
|
package/dist/index.cjs28.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs28.js","sources":["../src/components/ui/CardMapDoctor/index.tsx"],"sourcesContent":["import \"./CardMapDoctor.scss\";\nimport { useRef, useState } from \"react\";\nimport {\n GeneralPractitionerResponse,\n OfficeResponse,\n} from \"@anoki/fse-common/dist/types/general-practitioner-service\";\nimport * as CheckboxRadix from \"@radix-ui/react-checkbox\";\nimport { useClickOutside } from \"@/hooks/useClickOutside.ts\";\nimport { Col, Row } from \"@/components\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\n\ntype CardMapDoctorProps = {\n titleTag: HeadingLevel;\n availableLabel: string;\n specialization?: string;\n href?: string;\n addressLabel?: string;\n linkLabel?: string;\n asLink?: \"a\";\n className?: string;\n doctor: DoctorMock;\n setSelectedCard?: (id: string) => void;\n keepSelectionOnNavigation?: boolean;\n};\n\nexport type DoctorMock = {\n offices: OfficeResponseMock[];\n} & GeneralPractitionerResponse;\n\nexport type OfficeResponseMock = {\n position: {\n coordinates: [number, number];\n };\n} & OfficeResponse;\n\n// TODO: Allineare type card con il be appena pronto\n// mancano specialization, position\nexport const CardMapDoctor = ({\n titleTag: TitleTag = \"h3\",\n availableLabel = \"Disponibile\",\n specialization = \"Medico di famiglia | Neurologia\",\n href = \"/\",\n addressLabel,\n linkLabel = \"Apri dettaglio\",\n asLink = \"a\",\n className,\n doctor,\n setSelectedCard = () => {},\n keepSelectionOnNavigation = false,\n}: CardMapDoctorProps) => {\n const LinkComponent = asLink;\n const [isActive, setIsActive] = useState(false);\n const dropdownRef = useRef<HTMLDivElement>(null);\n const address = doctor?.offices[0];\n useClickOutside(\n dropdownRef,\n isActive,\n () => setIsActive(false),\n () => setSelectedCard(\"\"),\n keepSelectionOnNavigation,\n );\n\n const linkContent = (\n <LinkComponent\n className={\"text-decoration-none fs-7 fw-bold text-primary\"}\n href={href}\n >\n {linkLabel?.toUpperCase()}\n </LinkComponent>\n );\n\n const CheckIcon = () => (\n <svg\n width=\"14\"\n height=\"14\"\n viewBox=\"0 0 12 12\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n aria-hidden=\"true\"\n >\n <path\n d=\"M10 3L4.5 8.5L2 6\"\n stroke=\"white\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n />\n </svg>\n );\n\n return (\n <Row\n br={\"x4\"}\n p={\"x24\"}\n gap={\"x16\"}\n bg={\"white\"}\n text={\"slate-20\"}\n ref={dropdownRef}\n className={`${className} ${isActive ? \"ui-is-active ui-card-search\" : \"ui-card-search\"} shadow cursor-pointer`}\n onClick={() => {\n setIsActive(true);\n setSelectedCard(doctor?.code);\n }}\n >\n <CheckboxRadix.Root\n id={doctor?.code}\n checked={isActive}\n // onCheckedChange={onChange}\n className={\"ui-checkbox-filter\"}\n // aria-label={labelText}\n >\n <CheckboxRadix.Indicator>\n <CheckIcon />\n </CheckboxRadix.Indicator>\n </CheckboxRadix.Root>\n <Col justifyContent={\"center\"} className={`w-full`}>\n <Col pb={\"x16\"}>\n <TitleTag className=\"flex-1 text-decoration-none fs-4 fw-semibold\">\n Dott. {doctor?.firstName} {doctor?.lastName}\n </TitleTag>\n <p className=\"fs-6 fw-regular text-slate-28\">{specialization}</p>\n <div\n className={\n \"ui-available-label mt-x4 px-x16 py-x4 bg-status-success text-white rounded fw-semibold fs-7\"\n }\n >\n {availableLabel.toUpperCase()}\n </div>\n </Col>\n <div className={\"text-slate-28 fs-6\"}>\n <div className={\"fw-bold\"}>{addressLabel}</div>\n <div className={\"w-full\"}>\n <p className={\"fw-regular\"}>\n {address?.address\n ? address.address.charAt(0).toUpperCase() +\n address.address.slice(1).toLowerCase()\n : \"\"}\n ,{\" \"}\n {address?.city\n ? address.city.charAt(0).toUpperCase() +\n address.city.slice(1).toLowerCase()\n : \"\"}\n </p>\n </div>\n <div className={\"pt-x8\"}>{linkContent}</div>\n </div>\n </Col>\n </Row>\n );\n};\n"],"names":["CardMapDoctor","TitleTag","availableLabel","specialization","href","addressLabel","linkLabel","asLink","className","doctor","setSelectedCard","keepSelectionOnNavigation","LinkComponent","isActive","setIsActive","useState","dropdownRef","useRef","address","useClickOutside","linkContent","jsx","CheckIcon","jsxs","Row","CheckboxRadix.Root","CheckboxRadix.Indicator","Col"],"mappings":"oSAsCaA,EAAgB,CAAC,CAC5B,SAAUC,EAAW,KACrB,eAAAC,EAAiB,cACjB,eAAAC,EAAiB,kCACjB,KAAAC,EAAO,IACP,aAAAC,EACA,UAAAC,EAAY,iBACZ,OAAAC,EAAS,IACT,UAAAC,EACA,OAAAC,EACA,gBAAAC,EAAkB,IAAM,CAAC,EACzB,0BAAAC,EAA4B,EAC9B,IAA0B,CACxB,MAAMC,EAAgBL,EAChB,CAACM,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EACxCC,EAAcC,SAAuB,IAAI,EACzCC,EAAUT,GAAA,YAAAA,EAAQ,QAAQ,GAChCU,EAAA,gBACEH,EACAH,EACA,IAAMC,EAAY,EAAK,EAC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AAAA,kBAAAA,KAAC,MAAI,CAAA,UAAW,qBACd,SAAA,CAACF,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAY,SAAahB,EAAA,0BACxC,MAAI,CAAA,UAAW,SACd,SAACkB,EAAA,kBAAA,KAAA,IAAA,CAAE,UAAW,aACX,SAAA,CAAAL,GAAA,MAAAA,EAAS,QACNA,EAAQ,QAAQ,OAAO,CAAC,EAAE,YAC1B,EAAAA,EAAQ,QAAQ,MAAM,CAAC,EAAE,YACzB,EAAA,GAAG,IACL,IACDA,GAAA,MAAAA,EAAS,KACNA,EAAQ,KAAK,OAAO,CAAC,EAAE,YAAY,EACnCA,EAAQ,KAAK,MAAM,CAAC,EAAE,cACtB,EAAA,CAAA,CACN,CACF,CAAA,EACCG,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,QAAU,SAAYD,CAAA,CAAA,CAAA,CACxC,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs28.js","sources":["../src/components/ui/CardMapDoctor/index.tsx"],"sourcesContent":["import \"./CardMapDoctor.scss\";\r\nimport { useRef, useState } from \"react\";\r\nimport {\r\n GeneralPractitionerResponse,\r\n OfficeResponse,\r\n} from \"@anoki/fse-common/dist/types/general-practitioner-service\";\r\nimport * as CheckboxRadix from \"@radix-ui/react-checkbox\";\r\nimport { useClickOutside } from \"@/hooks/useClickOutside.ts\";\r\nimport { Col, Row } from \"@/components\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\n\r\ntype CardMapDoctorProps = {\r\n titleTag: HeadingLevel;\r\n availableLabel: string;\r\n specialization?: string;\r\n href?: string;\r\n addressLabel?: string;\r\n linkLabel?: string;\r\n asLink?: \"a\";\r\n className?: string;\r\n doctor: DoctorMock;\r\n setSelectedCard?: (id: string) => void;\r\n keepSelectionOnNavigation?: boolean;\r\n};\r\n\r\nexport type DoctorMock = {\r\n offices: OfficeResponseMock[];\r\n} & GeneralPractitionerResponse;\r\n\r\nexport type OfficeResponseMock = {\r\n position: {\r\n coordinates: [number, number];\r\n };\r\n} & OfficeResponse;\r\n\r\n// TODO: Allineare type card con il be appena pronto\r\n// mancano specialization, position\r\nexport const CardMapDoctor = ({\r\n titleTag: TitleTag = \"h3\",\r\n availableLabel = \"Disponibile\",\r\n specialization = \"Medico di famiglia | Neurologia\",\r\n href = \"/\",\r\n addressLabel,\r\n linkLabel = \"Apri dettaglio\",\r\n asLink = \"a\",\r\n className,\r\n doctor,\r\n setSelectedCard = () => {},\r\n keepSelectionOnNavigation = false,\r\n}: CardMapDoctorProps) => {\r\n const LinkComponent = asLink;\r\n const [isActive, setIsActive] = useState(false);\r\n const dropdownRef = useRef<HTMLDivElement>(null);\r\n const address = doctor?.offices[0];\r\n useClickOutside(\r\n dropdownRef,\r\n isActive,\r\n () => setIsActive(false),\r\n () => setSelectedCard(\"\"),\r\n keepSelectionOnNavigation,\r\n );\r\n\r\n const linkContent = (\r\n <LinkComponent\r\n className={\"text-decoration-none fs-7 fw-bold text-primary\"}\r\n href={href}\r\n >\r\n {linkLabel?.toUpperCase()}\r\n </LinkComponent>\r\n );\r\n\r\n const CheckIcon = () => (\r\n <svg\r\n width=\"14\"\r\n height=\"14\"\r\n viewBox=\"0 0 12 12\"\r\n fill=\"none\"\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n aria-hidden=\"true\"\r\n >\r\n <path\r\n d=\"M10 3L4.5 8.5L2 6\"\r\n stroke=\"white\"\r\n strokeWidth=\"2\"\r\n strokeLinecap=\"round\"\r\n strokeLinejoin=\"round\"\r\n />\r\n </svg>\r\n );\r\n\r\n return (\r\n <Row\r\n br={\"x4\"}\r\n p={\"x24\"}\r\n gap={\"x16\"}\r\n bg={\"white\"}\r\n text={\"slate-20\"}\r\n ref={dropdownRef}\r\n className={`${className} ${isActive ? \"ui-is-active ui-card-search\" : \"ui-card-search\"} shadow cursor-pointer`}\r\n onClick={() => {\r\n setIsActive(true);\r\n setSelectedCard(doctor?.code);\r\n }}\r\n >\r\n <CheckboxRadix.Root\r\n id={doctor?.code}\r\n checked={isActive}\r\n // onCheckedChange={onChange}\r\n className={\"ui-checkbox-filter\"}\r\n // aria-label={labelText}\r\n >\r\n <CheckboxRadix.Indicator>\r\n <CheckIcon />\r\n </CheckboxRadix.Indicator>\r\n </CheckboxRadix.Root>\r\n <Col justifyContent={\"center\"} className={`w-full`}>\r\n <Col pb={\"x16\"}>\r\n <TitleTag className=\"flex-1 text-decoration-none fs-4 fw-semibold\">\r\n Dott. {doctor?.firstName} {doctor?.lastName}\r\n </TitleTag>\r\n <p className=\"fs-6 fw-regular text-slate-28\">{specialization}</p>\r\n <div\r\n className={\r\n \"ui-available-label mt-x4 px-x16 py-x4 bg-status-success text-white rounded fw-semibold fs-7\"\r\n }\r\n >\r\n {availableLabel.toUpperCase()}\r\n </div>\r\n </Col>\r\n <div className={\"text-slate-28 fs-6\"}>\r\n <div className={\"fw-bold\"}>{addressLabel}</div>\r\n <div className={\"w-full\"}>\r\n <p className={\"fw-regular\"}>\r\n {address?.address\r\n ? address.address.charAt(0).toUpperCase() +\r\n address.address.slice(1).toLowerCase()\r\n : \"\"}\r\n ,{\" \"}\r\n {address?.city\r\n ? address.city.charAt(0).toUpperCase() +\r\n address.city.slice(1).toLowerCase()\r\n : \"\"}\r\n </p>\r\n </div>\r\n <div className={\"pt-x8\"}>{linkContent}</div>\r\n </div>\r\n </Col>\r\n </Row>\r\n );\r\n};\r\n"],"names":["CardMapDoctor","TitleTag","availableLabel","specialization","href","addressLabel","linkLabel","asLink","className","doctor","setSelectedCard","keepSelectionOnNavigation","LinkComponent","isActive","setIsActive","useState","dropdownRef","useRef","address","useClickOutside","linkContent","jsx","CheckIcon","jsxs","Row","CheckboxRadix.Root","CheckboxRadix.Indicator","Col"],"mappings":"oSAsCaA,EAAgB,CAAC,CAC5B,SAAUC,EAAW,KACrB,eAAAC,EAAiB,cACjB,eAAAC,EAAiB,kCACjB,KAAAC,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AI,EAAAA,IAAA,CAAI,GAAI,MACP,SAAA,CAACJ,EAAAA,kBAAAA,KAAAtB,EAAA,CAAS,UAAU,+CAA+C,SAAA,CAAA,SAC1DQ,GAAA,YAAAA,EAAQ,UAAU,IAAEA,GAAA,YAAAA,EAAQ,QAAA,EACrC,EACCY,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,gCAAiC,SAAelB,EAAA,EAC7DkB,EAAA,kBAAA,IAAC,MAAA,CACC,UACE,8FAGD,WAAe,YAAY,CAAA,CAAA,CAC9B,EACF,EACAE,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAW,qBACd,SAAA,CAACF,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,UAAY,SAAahB,EAAA,0BACxC,MAAI,CAAA,UAAW,SACd,SAACkB,EAAA,kBAAA,KAAA,IAAA,CAAE,UAAW,aACX,SAAA,CAAAL,GAAA,MAAAA,EAAS,QACNA,EAAQ,QAAQ,OAAO,CAAC,EAAE,YAC1B,EAAAA,EAAQ,QAAQ,MAAM,CAAC,EAAE,YACzB,EAAA,GAAG,IACL,IACDA,GAAA,MAAAA,EAAS,KACNA,EAAQ,KAAK,OAAO,CAAC,EAAE,YAAY,EACnCA,EAAQ,KAAK,MAAM,CAAC,EAAE,cACtB,EAAA,CAAA,CACN,CACF,CAAA,EACCG,EAAA,kBAAA,IAAA,MAAA,CAAI,UAAW,QAAU,SAAYD,CAAA,CAAA,CAAA,CACxC,CAAA,CAAA,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
|
package/dist/index.cjs280.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),b=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),b=require("./index.cjs313.js");function d(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const i=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,i.get?i:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const S=d(a);function z(e){const[r,t]=S.useState(void 0);return b.useLayoutEffect(()=>{if(e){t({width:e.offsetWidth,height:e.offsetHeight});const i=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const u=o[0];let s,n;if("borderBoxSize"in u){const c=u.borderBoxSize,f=Array.isArray(c)?c[0]:c;s=f.inlineSize,n=f.blockSize}else s=e.offsetWidth,n=e.offsetHeight;t({width:s,height:n})});return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}else t(void 0)},[e]),r}exports.useSize=z;
|
2
2
|
//# sourceMappingURL=index.cjs280.js.map
|
package/dist/index.cjs281.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs273.js"),g=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const y=require("react"),P=require("./index.cjs273.js"),g=require("./index.cjs313.js");function E(n){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const t in n)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(n,t);Object.defineProperty(e,t,r.get?r:{enumerable:!0,get:()=>n[t]})}}return e.default=n,Object.freeze(e)}const a=E(y);function R(n,e){return a.useReducer((t,r)=>e[t][r]??t,n)}var O=n=>{const{present:e,children:t}=n,r=v(e),i=typeof t=="function"?t({present:r.isPresent}):a.Children.only(t),u=P.useComposedRefs(r.ref,S(i));return typeof t=="function"||r.isPresent?a.cloneElement(i,{ref:u}):null};O.displayName="Presence";function v(n){const[e,t]=a.useState(),r=a.useRef({}),i=a.useRef(n),u=a.useRef("none"),p=n?"mounted":"unmounted",[N,c]=R(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return a.useEffect(()=>{const o=l(r.current);u.current=N==="mounted"?o:"none"},[N]),g.useLayoutEffect(()=>{const o=r.current,d=i.current;if(d!==n){const f=u.current,s=l(o);n?c("MOUNT"):s==="none"||(o==null?void 0:o.display)==="none"?c("UNMOUNT"):c(d&&f!==s?"ANIMATION_OUT":"UNMOUNT"),i.current=n}},[n,c]),g.useLayoutEffect(()=>{if(e){let o;const d=e.ownerDocument.defaultView??window,m=s=>{const M=l(r.current).includes(s.animationName);if(s.target===e&&M&&(c("ANIMATION_END"),!i.current)){const T=e.style.animationFillMode;e.style.animationFillMode="forwards",o=d.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=T)})}},f=s=>{s.target===e&&(u.current=l(r.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",m),e.addEventListener("animationend",m),()=>{d.clearTimeout(o),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",m),e.removeEventListener("animationend",m)}}else c("ANIMATION_END")},[e,c]),{isPresent:["mounted","unmountSuspended"].includes(N),ref:a.useCallback(o=>{o&&(r.current=getComputedStyle(o)),t(o)},[])}}function l(n){return(n==null?void 0:n.animationName)||"none"}function S(n){var r,i;let e=(r=Object.getOwnPropertyDescriptor(n.props,"ref"))==null?void 0:r.get,t=e&&"isReactWarning"in e&&e.isReactWarning;return t?n.ref:(e=(i=Object.getOwnPropertyDescriptor(n,"ref"))==null?void 0:i.get,t=e&&"isReactWarning"in e&&e.isReactWarning,t?n.props.ref:n.props.ref||n.ref)}exports.Presence=O;
|
2
2
|
//# sourceMappingURL=index.cjs281.js.map
|