@anoki/fse-ui 1.0.415 → 1.0.416
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.cjs164.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.cjs179.js +1 -1
- package/dist/index.cjs18.js.map +1 -1
- package/dist/index.cjs182.js.map +1 -1
- package/dist/index.cjs183.js +1 -1
- package/dist/index.cjs183.js.map +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs190.js +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 +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 +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 +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.cjs228.js +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.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs275.js.map +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs276.js.map +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs277.js.map +1 -1
- package/dist/index.cjs278.js +1 -1
- package/dist/index.cjs278.js.map +1 -1
- package/dist/index.cjs279.js +1 -1
- package/dist/index.cjs279.js.map +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/index.cjs280.js +1 -1
- package/dist/index.cjs280.js.map +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs281.js.map +1 -1
- package/dist/{index.cjs303.js → index.cjs282.js} +1 -1
- package/dist/{index.cjs303.js.map → index.cjs282.js.map} +1 -1
- package/dist/{index.cjs301.js → index.cjs283.js} +2 -2
- package/dist/{index.cjs301.js.map → index.cjs283.js.map} +1 -1
- package/dist/index.cjs284.js +1 -1
- package/dist/index.cjs284.js.map +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs287.js.map +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs288.js.map +1 -1
- package/dist/index.cjs289.js +1 -1
- package/dist/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.cjs292.js +1 -1
- package/dist/index.cjs292.js.map +1 -1
- package/dist/index.cjs293.js +1 -1
- package/dist/index.cjs293.js.map +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs306.js.map +1 -1
- package/dist/{index.cjs271.js → index.cjs307.js} +1 -1
- package/dist/index.cjs307.js.map +1 -0
- package/dist/index.cjs308.js +2 -0
- package/dist/index.cjs308.js.map +1 -0
- package/dist/{index.cjs286.js → index.cjs309.js} +2 -2
- package/dist/{index.cjs286.js.map → index.cjs309.js.map} +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs310.js +2 -0
- package/dist/index.cjs310.js.map +1 -0
- package/dist/index.cjs311.js +2 -0
- package/dist/index.cjs311.js.map +1 -0
- package/dist/{index.cjs294.js → index.cjs312.js} +2 -2
- package/dist/{index.cjs294.js.map → index.cjs312.js.map} +1 -1
- package/dist/{index.cjs297.js → index.cjs313.js} +1 -1
- package/dist/{index.cjs297.js.map → index.cjs313.js.map} +1 -1
- package/dist/{index.cjs298.js → index.cjs314.js} +2 -2
- package/dist/{index.cjs298.js.map → index.cjs314.js.map} +1 -1
- package/dist/index.cjs315.js +1 -1
- package/dist/index.cjs315.js.map +1 -1
- package/dist/index.cjs316.js +1 -1
- package/dist/index.cjs316.js.map +1 -1
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs317.js.map +1 -1
- package/dist/index.cjs318.js +1 -4
- package/dist/index.cjs318.js.map +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs319.js.map +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs321.js.map +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/index.cjs323.js +2 -0
- package/dist/index.cjs323.js.map +1 -0
- package/dist/index.cjs324.js +5 -0
- package/dist/index.cjs324.js.map +1 -0
- package/dist/index.cjs325.js +2 -0
- package/dist/index.cjs325.js.map +1 -0
- package/dist/index.cjs326.js +2 -0
- package/dist/index.cjs326.js.map +1 -0
- package/dist/index.cjs327.js +2 -0
- package/dist/index.cjs327.js.map +1 -0
- package/dist/index.cjs328.js +2 -0
- package/dist/index.cjs328.js.map +1 -0
- package/dist/index.cjs329.js +38 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs33.js.map +1 -1
- package/dist/index.cjs330.js +1 -38
- 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.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 +5 -4
- 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 +19 -19
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es163.js.map +1 -1
- package/dist/index.es164.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.es179.js +7 -7
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es182.js.map +1 -1
- package/dist/index.es183.js +1 -1
- package/dist/index.es183.js.map +1 -1
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es190.js +8 -8
- 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 +14 -14
- 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 +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 +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 +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.es228.js +7 -7
- 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.es272.js +15 -2
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es275.js +5 -25
- package/dist/index.es275.js.map +1 -1
- package/dist/index.es276.js +23 -64
- package/dist/index.es276.js.map +1 -1
- package/dist/index.es277.js +65 -27
- package/dist/index.es277.js.map +1 -1
- package/dist/index.es278.js +29 -32
- package/dist/index.es278.js.map +1 -1
- package/dist/index.es279.js +31 -620
- package/dist/index.es279.js.map +1 -1
- package/dist/index.es28.js.map +1 -1
- package/dist/index.es280.js +621 -10
- package/dist/index.es280.js.map +1 -1
- package/dist/index.es281.js +11 -15
- package/dist/index.es281.js.map +1 -1
- package/dist/{index.es303.js → index.es282.js} +1 -1
- package/dist/{index.es303.js.map → index.es282.js.map} +1 -1
- package/dist/{index.es301.js → index.es283.js} +2 -2
- package/dist/{index.es301.js.map → index.es283.js.map} +1 -1
- package/dist/index.es284.js +68 -10
- package/dist/index.es284.js.map +1 -1
- package/dist/index.es287.js +124 -7
- package/dist/index.es287.js.map +1 -1
- package/dist/index.es288.js +126 -116
- package/dist/index.es288.js.map +1 -1
- package/dist/index.es289.js +13 -14
- package/dist/index.es289.js.map +1 -1
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es290.js +14 -134
- package/dist/index.es290.js.map +1 -1
- package/dist/index.es291.js +8 -217
- package/dist/index.es291.js.map +1 -1
- package/dist/index.es292.js +50 -14
- package/dist/index.es292.js.map +1 -1
- package/dist/index.es293.js +39 -66
- package/dist/index.es293.js.map +1 -1
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es306.js +2 -5
- package/dist/index.es306.js.map +1 -1
- package/dist/index.es307.js +5 -0
- package/dist/index.es307.js.map +1 -0
- package/dist/index.es308.js +14 -0
- package/dist/index.es308.js.map +1 -0
- package/dist/{index.es286.js → index.es309.js} +4 -4
- package/dist/{index.es286.js.map → index.es309.js.map} +1 -1
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es310.js +11 -0
- package/dist/index.es310.js.map +1 -0
- package/dist/index.es311.js +221 -0
- package/dist/index.es311.js.map +1 -0
- package/dist/{index.es294.js → index.es312.js} +10 -10
- package/dist/{index.es294.js.map → index.es312.js.map} +1 -1
- package/dist/{index.es297.js → index.es313.js} +1 -1
- package/dist/{index.es297.js.map → index.es313.js.map} +1 -1
- package/dist/{index.es298.js → index.es314.js} +2 -2
- package/dist/{index.es298.js.map → index.es314.js.map} +1 -1
- package/dist/index.es315.js +205 -5
- package/dist/index.es315.js.map +1 -1
- package/dist/index.es316.js +22 -3
- package/dist/index.es316.js.map +1 -1
- package/dist/index.es317.js +389 -20
- package/dist/index.es317.js.map +1 -1
- package/dist/index.es318.js +22 -107
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es319.js +28 -15
- package/dist/index.es319.js.map +1 -1
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es320.js +5 -523
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es321.js +5 -127
- package/dist/index.es321.js.map +1 -1
- package/dist/index.es322.js +3 -129
- package/dist/index.es322.js.map +1 -1
- package/dist/index.es323.js +27 -0
- package/dist/index.es323.js.map +1 -0
- package/dist/index.es324.js +113 -0
- package/dist/index.es324.js.map +1 -0
- package/dist/index.es325.js +19 -0
- package/dist/index.es325.js.map +1 -0
- package/dist/index.es326.js +526 -0
- package/dist/index.es326.js.map +1 -0
- package/dist/index.es327.js +130 -0
- package/dist/index.es327.js.map +1 -0
- package/dist/index.es328.js +132 -0
- package/dist/index.es328.js.map +1 -0
- package/dist/index.es329.js +69 -65
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es33.js.map +1 -1
- package/dist/index.es330.js +8 -68
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es331.js +14 -9
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es332.js +62 -14
- package/dist/index.es332.js.map +1 -1
- package/dist/index.es333.js +64 -61
- package/dist/index.es333.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/Login/Login.css +1 -1
- package/package.json +107 -107
- package/readme.md +42 -42
- package/dist/index.cjs271.js.map +0 -1
- package/dist/index.cjs274.js +0 -2
- package/dist/index.cjs274.js.map +0 -1
- package/dist/index.cjs285.js +0 -2
- package/dist/index.cjs285.js.map +0 -1
- 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.cjs299.js +0 -2
- package/dist/index.cjs299.js.map +0 -1
- package/dist/index.cjs300.js +0 -2
- package/dist/index.cjs300.js.map +0 -1
- package/dist/index.cjs302.js +0 -2
- package/dist/index.cjs302.js.map +0 -1
- package/dist/index.cjs304.js +0 -2
- package/dist/index.cjs304.js.map +0 -1
- package/dist/index.cjs305.js +0 -2
- package/dist/index.cjs305.js.map +0 -1
- package/dist/index.es271.js +0 -5
- package/dist/index.es271.js.map +0 -1
- package/dist/index.es274.js +0 -10
- package/dist/index.es274.js.map +0 -1
- package/dist/index.es285.js +0 -45
- package/dist/index.es285.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 -12
- package/dist/index.es296.js.map +0 -1
- package/dist/index.es299.js +0 -208
- package/dist/index.es299.js.map +0 -1
- package/dist/index.es300.js +0 -25
- package/dist/index.es300.js.map +0 -1
- package/dist/index.es302.js +0 -396
- package/dist/index.es302.js.map +0 -1
- package/dist/index.es304.js +0 -28
- package/dist/index.es304.js.map +0 -1
- package/dist/index.es305.js +0 -32
- package/dist/index.es305.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.cjs293.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs293.js","sources":["../node_modules/@radix-ui/react-
|
1
|
+
{"version":3,"file":"index.cjs293.js","sources":["../node_modules/@radix-ui/react-slot/dist/index.mjs"],"sourcesContent":["// packages/react/slot/src/slot.tsx\nimport * as React from \"react\";\nimport { composeRefs } from \"@radix-ui/react-compose-refs\";\nimport { Fragment as Fragment2, jsx } from \"react/jsx-runtime\";\nvar Slot = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n const childrenArray = React.Children.toArray(children);\n const slottable = childrenArray.find(isSlottable);\n if (slottable) {\n const newElement = slottable.props.children;\n const newChildren = childrenArray.map((child) => {\n if (child === slottable) {\n if (React.Children.count(newElement) > 1) return React.Children.only(null);\n return React.isValidElement(newElement) ? newElement.props.children : null;\n } else {\n return child;\n }\n });\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React.isValidElement(newElement) ? React.cloneElement(newElement, void 0, newChildren) : null });\n }\n return /* @__PURE__ */ jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });\n});\nSlot.displayName = \"Slot\";\nvar SlotClone = React.forwardRef((props, forwardedRef) => {\n const { children, ...slotProps } = props;\n if (React.isValidElement(children)) {\n const childrenRef = getElementRef(children);\n const props2 = mergeProps(slotProps, children.props);\n if (children.type !== React.Fragment) {\n props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;\n }\n return React.cloneElement(children, props2);\n }\n return React.Children.count(children) > 1 ? React.Children.only(null) : null;\n});\nSlotClone.displayName = \"SlotClone\";\nvar Slottable = ({ children }) => {\n return /* @__PURE__ */ jsx(Fragment2, { children });\n};\nfunction isSlottable(child) {\n return React.isValidElement(child) && child.type === Slottable;\n}\nfunction mergeProps(slotProps, childProps) {\n const overrideProps = { ...childProps };\n for (const propName in childProps) {\n const slotPropValue = slotProps[propName];\n const childPropValue = childProps[propName];\n const isHandler = /^on[A-Z]/.test(propName);\n if (isHandler) {\n if (slotPropValue && childPropValue) {\n overrideProps[propName] = (...args) => {\n childPropValue(...args);\n slotPropValue(...args);\n };\n } else if (slotPropValue) {\n overrideProps[propName] = slotPropValue;\n }\n } else if (propName === \"style\") {\n overrideProps[propName] = { ...slotPropValue, ...childPropValue };\n } else if (propName === \"className\") {\n overrideProps[propName] = [slotPropValue, childPropValue].filter(Boolean).join(\" \");\n }\n }\n return { ...slotProps, ...overrideProps };\n}\nfunction getElementRef(element) {\n let getter = Object.getOwnPropertyDescriptor(element.props, \"ref\")?.get;\n let mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.ref;\n }\n getter = Object.getOwnPropertyDescriptor(element, \"ref\")?.get;\n mayWarn = getter && \"isReactWarning\" in getter && getter.isReactWarning;\n if (mayWarn) {\n return element.props.ref;\n }\n return element.props.ref || element.ref;\n}\nvar Root = Slot;\nexport {\n Root,\n Slot,\n Slottable\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["Slot","React","props","forwardedRef","children","slotProps","childrenArray","slottable","isSlottable","newElement","newChildren","child","jsx","SlotClone","childrenRef","getElementRef","props2","mergeProps","composeRefs","Slottable","Fragment2","childProps","overrideProps","propName","slotPropValue","childPropValue","args","element","getter","_a","mayWarn","_b"],"mappings":"icAIG,IAACA,EAAOC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACnD,KAAM,CAAE,SAAAC,EAAU,GAAGC,CAAS,EAAKH,EAC7BI,EAAgBL,EAAM,SAAS,QAAQG,CAAQ,EAC/CG,EAAYD,EAAc,KAAKE,CAAW,EAChD,GAAID,EAAW,CACb,MAAME,EAAaF,EAAU,MAAM,SAC7BG,EAAcJ,EAAc,IAAKK,GACjCA,IAAUJ,EACRN,EAAM,SAAS,MAAMQ,CAAU,EAAI,EAAUR,EAAM,SAAS,KAAK,IAAI,EAClEA,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AAIG,IAAS,CACrCD,EAAe,GAAGC,CAAI,EACtBF,EAAc,GAAGE,CAAI,CACtB,EACQF,IACTF,EAAcC,CAAQ,EAAIC,GAEnBD,IAAa,QACtBD,EAAcC,CAAQ,EAAI,CAAE,GAAGC,EAAe,GAAGC,CAAgB,EACxDF,IAAa,cACtBD,EAAcC,CAAQ,EAAI,CAACC,EAAeC,CAAc,EAAE,OAAO,OAAO,EAAE,KAAK,GAAG,EAExF,CACE,MAAO,CAAE,GAAGpB,EAAW,GAAGiB,CAAe,CAC3C,CACA,SAASP,EAAcY,EAAS,SAC9B,IAAIC,GAASC,EAAA,OAAO,yBAAyBF,EAAQ,MAAO,KAAK,IAApD,YAAAE,EAAuD,IAChEC,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eAC7D,OAAIE,EACKH,EAAQ,KAEjBC,GAASG,EAAA,OAAO,yBAAyBJ,EAAS,KAAK,IAA9C,YAAAI,EAAiD,IAC1DD,EAAUF,GAAU,mBAAoBA,GAAUA,EAAO,eACrDE,EACKH,EAAQ,MAAM,IAEhBA,EAAQ,MAAM,KAAOA,EAAQ,IACtC","x_google_ignoreList":[0]}
|
package/dist/index.cjs30.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./CardDocument.scss\";\nimport { Button, Col, Loader, Row } from \"@/components\";\nimport { Divider } from \"@/components/ui/Divider\";\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\n\ntype CardDocumentProps = {\n eventNumber?: string;\n date?: string | number;\n documentType?: string;\n documentTitle: string;\n label?: string;\n subtitle?: string;\n action?: string;\n CTA?: string;\n iconView?: \"attachments\" | \"obscured\";\n favorite?: boolean;\n handleDownloadDocument?: () => void;\n hrefDocument?: string;\n isLoading?: boolean;\n openDocumentLabel?: string;\n releaseDateLabel?: string;\n eventLabel?: string;\n};\n\nexport const CardDocument = ({\n eventNumber,\n date = \"--/--/--\",\n documentType,\n documentTitle,\n label,\n subtitle,\n action,\n CTA,\n handleDownloadDocument,\n hrefDocument = \"#\",\n isLoading = false,\n openDocumentLabel = \"Apri documento\",\n releaseDateLabel = \"Emesso il\",\n eventLabel = \"Evento n.\",\n}: CardDocumentProps) => {\n const isDesktop = useIsDesktop();\n\n const renderDownloadAction = () => {\n if (!action) return null;\n return (\n <Row\n alignItems={\"center\"}\n className={clsx(\n !isLoading && \"cursor-pointer\",\n \"text-decoration-none text-primary\",\n )}\n onClick={isLoading ? undefined : handleDownloadDocument}\n >\n <p>{action}</p>\n <Loader loading={isLoading} className={\"ml-x8\"} />\n </Row>\n );\n };\n\n return (\n <div\n className={clsx(\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\n )}\n >\n <Row\n as={\"header\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n py={\"x8\"}\n px={\"x24\"}\n className={\"ui-document-header\"}\n >\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\n <Row>\n {releaseDateLabel} {date}\n </Row>\n </Row>\n <main className={\"p-x16\"}>\n <Col pb={\"x32\"} justifyContent={\"space-between\"}>\n <div>\n <Row pb={\"x8\"}>{documentType}</Row>\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\n <Row pt={\"x8\"}>\n {label && (\n <div\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\n style={{ width: \"max-content\" }}\n >\n {label}\n </div>\n )}\n </Row>\n </div>\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\n </Col>\n {!isDesktop ? (\n <Col as={\"footer\"} gap={\"x16\"}>\n {renderDownloadAction()}\n <Divider bg={\"border-divider\"} />\n <Button\n className=\"filter-button fs-7 fw-semibold w-full\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={\"a\"}\n href={hrefDocument}\n disabled\n >\n {openDocumentLabel}\n </Button>\n </Col>\n ) : (\n <Row\n as={\"footer\"}\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n >\n {renderDownloadAction()}\n {CTA && (\n <Button\n className=\"filter-button fs-7 text-primary fw-semibold\"\n variant={\"secondary\"}\n size=\"3\"\n asLink={\"a\"}\n href={hrefDocument}\n >\n {CTA}\n </Button>\n )}\n </Row>\n )}\n </main>\n </div>\n );\n};\n"],"names":["CardDocument","eventNumber","date","documentType","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Loader","Col","Button","Divider"],"mappings":"4WAyBaA,EAAe,CAAC,CAC3B,YAAAC,EACA,KAAAC,EAAO,WACP,aAAAC,EACA,cAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,IAAAC,EACA,uBAAAC,EACA,aAAAC,EAAe,IACf,UAAAC,EAAY,GACZ,kBAAAC,EAAoB,iBACpB,iBAAAC,EAAmB,YACnB,WAAAC,EAAa,WACf,IAAyB,CACvB,MAAMC,EAAYC,EAAAA,aAAa,EAEzBC,EAAuB,IACtBV,EAEHW,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,WAAY,SACZ,UAAWC,EAAA,KACT,CAACT,GAAa,iBACd,mCACF,EACA,QAASA,EAAY,OAAYF,EAEjC,SAAA,CAAAY,EAAAA,kBAAAA,IAAC,KAAG,SAAOd,CAAA,CAAA,EACVc,EAAA,kBAAA,IAAAC,EAAA,OAAA,CAAO,QAASX,EAAW,UAAW,OAAS,CAAA,CAAA,CAAA,CAClD,EAZkB,KAiBpB,OAAAO,EAAA,kBAAA,KAAC,MAAA,CACC,UAAWE,EAAA,KACT,8DACF,EAEA,SAAA,CAAAF,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,SACJ,eAAgB,gBAChB,WAAY,SACZ,GAAI,KACJ,GAAI,MACJ,UAAW,qBAEX,SAAA,CAAAE,EAAAA,kBA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Q,IACR,KAAMd,EACN,SAAQ,GAEP,SAAAE,CAAA,CAAA,CACH,CAAA,CACF,CAmBA,CAEJ,CAAA,CAAA,CAAA,CACF,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs30.js","sources":["../src/components/ui/CardDocument/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport \"./CardDocument.scss\";\r\nimport { Button, Col, Loader, Row } from \"@/components\";\r\nimport { Divider } from \"@/components/ui/Divider\";\r\nimport { useIsDesktop } from \"@/hooks/useIsDesktop.ts\";\r\n\r\ntype CardDocumentProps = {\r\n eventNumber?: string;\r\n date?: string | number;\r\n documentType?: string;\r\n documentTitle: string;\r\n label?: string;\r\n subtitle?: string;\r\n action?: string;\r\n CTA?: string;\r\n iconView?: \"attachments\" | \"obscured\";\r\n favorite?: boolean;\r\n handleDownloadDocument?: () => void;\r\n hrefDocument?: string;\r\n isLoading?: boolean;\r\n openDocumentLabel?: string;\r\n releaseDateLabel?: string;\r\n eventLabel?: string;\r\n};\r\n\r\nexport const CardDocument = ({\r\n eventNumber,\r\n date = \"--/--/--\",\r\n documentType,\r\n documentTitle,\r\n label,\r\n subtitle,\r\n action,\r\n CTA,\r\n handleDownloadDocument,\r\n hrefDocument = \"#\",\r\n isLoading = false,\r\n openDocumentLabel = \"Apri documento\",\r\n releaseDateLabel = \"Emesso il\",\r\n eventLabel = \"Evento n.\",\r\n}: CardDocumentProps) => {\r\n const isDesktop = useIsDesktop();\r\n\r\n const renderDownloadAction = () => {\r\n if (!action) return null;\r\n return (\r\n <Row\r\n alignItems={\"center\"}\r\n className={clsx(\r\n !isLoading && \"cursor-pointer\",\r\n \"text-decoration-none text-primary\",\r\n )}\r\n onClick={isLoading ? undefined : handleDownloadDocument}\r\n >\r\n <p>{action}</p>\r\n <Loader loading={isLoading} className={\"ml-x8\"} />\r\n </Row>\r\n );\r\n };\r\n\r\n return (\r\n <div\r\n className={clsx(\r\n \"ui-card-document shadow br-x4 fw-semibold text-slate-28 fs-7\",\r\n )}\r\n >\r\n <Row\r\n as={\"header\"}\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n py={\"x8\"}\r\n px={\"x24\"}\r\n className={\"ui-document-header\"}\r\n >\r\n <Row>{eventNumber ? `${eventLabel} ${eventNumber}` : \"\"}</Row>\r\n <Row>\r\n {releaseDateLabel} {date}\r\n </Row>\r\n </Row>\r\n <main className={\"p-x16\"}>\r\n <Col pb={\"x32\"} justifyContent={\"space-between\"}>\r\n <div>\r\n <Row pb={\"x8\"}>{documentType}</Row>\r\n <h4 className={\"fs-5 text-slate-20\"}>{documentTitle}</h4>\r\n <Row pt={\"x8\"}>\r\n {label && (\r\n <div\r\n className={\"bg-secondary text-white rounded py-x4 px-x16\"}\r\n style={{ width: \"max-content\" }}\r\n >\r\n {label}\r\n </div>\r\n )}\r\n </Row>\r\n </div>\r\n {subtitle && <p className={\"fw-regular fs-6 pt-x8\"}>{subtitle}</p>}\r\n </Col>\r\n {!isDesktop ? (\r\n <Col as={\"footer\"} gap={\"x16\"}>\r\n {renderDownloadAction()}\r\n <Divider bg={\"border-divider\"} />\r\n <Button\r\n className=\"filter-button fs-7 fw-semibold w-full\"\r\n variant={\"secondary\"}\r\n size=\"3\"\r\n asLink={\"a\"}\r\n href={hrefDocument}\r\n disabled\r\n >\r\n {openDocumentLabel}\r\n </Button>\r\n </Col>\r\n ) : (\r\n <Row\r\n as={\"footer\"}\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n >\r\n {renderDownloadAction()}\r\n {CTA && (\r\n <Button\r\n className=\"filter-button fs-7 text-primary fw-semibold\"\r\n variant={\"secondary\"}\r\n size=\"3\"\r\n asLink={\"a\"}\r\n href={hrefDocument}\r\n >\r\n {CTA}\r\n </Button>\r\n )}\r\n </Row>\r\n )}\r\n </main>\r\n </div>\r\n );\r\n};\r\n"],"names":["CardDocument","eventNumber","date","documentType","documentTitle","label","subtitle","action","CTA","handleDownloadDocument","hrefDocument","isLoading","openDocumentLabel","releaseDateLabel","eventLabel","isDesktop","useIsDesktop","renderDownloadAction","jsxs","Row","clsx","jsx","Loader","Col","Button","Divider"],"mappings":"4WAyBaA,EAAe,CAAC,CAC3B,YAAAC,EACA,KAAAC,EAAO,WACP,aAAAC,EACA,cAAAC,EACA,MAAAC,EACA,SAAAC,EACA,OAAAC,EACA,IAAAC,EACA,uBAAAC,EACA,aAAAC,EAAe,IACf,UAAAC,EAAY,GACZ,kBAAAC,EAAoB,iBACpB,iBAAAC,EAAmB,YACnB,WAAAC,EAAa,WACf,IAAyB,CACvB,MAAMC,EAAYC,EAAAA,aAAa,EAEzBC,EAAuB,IACtBV,EAEHW,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,WAAY,SACZ,UAAWC,EAAA,KACT,CAACT,GAAa,iBACd,mCACF,EACA,QAASA,EAAY,OAAYF,EAEjC,SAAA,CAAAY,EAAAA,kBAAAA,IAAC,KAAG,SAAOd,CAAA,CAAA,EACVc,EAAA,kBAAA,IAAAC,EAAA,OAAA,CAAO,QAASX,EAAW,UAAW,OAAS,CAAA,CAAA,CAAA,CAClD,EAZkB,KAiBpB,OAAAO,EAAA,kBAAA,KAAC,MAAA,CACC,UAAWE,EAAA,KACT,8DACF,EAEA,SAAA,CAAAF,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,SACJ,eAAgB,gBAChB,WAAY,SACZ,GAAI,KACJ,GAAI,MACJ,UAAW,qBAEX,SAAA,CAAAE,EAAAA,kBAAAA,IAACF,OAAK,SAAclB,EAAA,GAAGa,CAAU,IAAIb,CAAW,GAAK,EAAG,CAAA,2BACvDkB,EAAAA,IACE,CAAA,SAAA,CAAAN,EAAiB,IAAEX,CAAA,CACtB,CAAA,CAAA,CAAA,CACF,EACAgB,EAAAA,kBAAAA,KAAC,OAAK,CAAA,UAAW,QACf,SAAA,CAAAA,EAAA,kBAAA,KAACK,EAAI,IAAA,CAAA,GAAI,MAAO,eAAgB,gBAC9B,SAAA,CAAAL,yBAAC,MACC,CAAA,SAAA,CAACG,EAAA,kBAAA,IAAAF,EAAA,IAAA,CAAI,GAAI,KAAO,SAAahB,EAAA,EAC5BkB,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAW,qBAAuB,SAAcjB,EAAA,EACnDiB,EAAA,kBAAA,IAAAF,EAAA,IAAA,CAAI,GAAI,KACN,SACCd,GAAAgB,EAAA,kBAAA,IAAC,MAAA,CACC,UAAW,+CACX,MAAO,CAAE,MAAO,aAAc,EAE7B,SAAAhB,CAAA,CAAA,CAGP,CAAA,CAAA,EACF,EACCC,GAAYe,EAAA,kBAAA,IAAC,IAAE,CAAA,UAAW,wBAA0B,SAASf,CAAA,CAAA,CAAA,EAChE,EACES,EAgBAG,EAAA,kBAAA,KAACC,EAAA,IAAA,CACC,GAAI,SACJ,eAAgB,gBAChB,WAAY,SAEX,SAAA,CAAqBF,EAAA,EACrBT,GACCa,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAU,8CACV,QAAS,YACT,KAAK,IACL,OAAQ,IACR,KAAMd,EAEL,SAAAF,CAAA,CAAA,CACH,CAAA,CAAA,EA9BJU,EAAA,kBAAA,KAACK,OAAI,GAAI,SAAU,IAAK,MACrB,SAAA,CAAqBN,EAAA,EACtBI,EAAAA,kBAAAA,IAACI,EAAQ,QAAA,CAAA,GAAI,gBAAkB,CAAA,EAC/BJ,EAAA,kBAAA,IAACG,EAAA,OAAA,CACC,UAAU,yCACV,QAAS,YACT,KAAK,IACL,OAAQ,IACR,KAAMd,EACN,SAAQ,GAEP,SAAAE,CAAA,CAAA,CACH,CAAA,CACF,CAmBA,CAEJ,CAAA,CAAA,CAAA,CACF,CAEJ"}
|
package/dist/index.cjs306.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
2
2
|
//# sourceMappingURL=index.cjs306.js.map
|
package/dist/index.cjs306.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs306.js","sources":[
|
1
|
+
{"version":3,"file":"index.cjs306.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var e={};exports.__exports=e;
|
2
|
-
//# sourceMappingURL=index.
|
2
|
+
//# sourceMappingURL=index.cjs307.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.cjs307.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");function o(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 u=o(c);function s(e){const t=u.useRef(e);return u.useEffect(()=>{t.current=e}),u.useMemo(()=>(...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}exports.useCallbackRef=s;
|
2
|
+
//# sourceMappingURL=index.cjs308.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.cjs308.js","sources":["../node_modules/@radix-ui/react-use-callback-ref/dist/index.mjs"],"sourcesContent":["// packages/react/use-callback-ref/src/useCallbackRef.tsx\nimport * as React from \"react\";\nfunction useCallbackRef(callback) {\n const callbackRef = React.useRef(callback);\n React.useEffect(() => {\n callbackRef.current = callback;\n });\n return React.useMemo(() => (...args) => callbackRef.current?.(...args), []);\n}\nexport {\n useCallbackRef\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useCallbackRef","callback","callbackRef","React","args","_a"],"mappings":"mYAEA,SAASA,EAAeC,EAAU,CAChC,MAAMC,EAAcC,EAAM,OAAOF,CAAQ,EACzCE,OAAAA,EAAM,UAAU,IAAM,CACpBD,EAAY,QAAUD,CAC1B,CAAG,EACME,EAAM,QAAQ,IAAM,IAAIC,WAAS,OAAAC,EAAAH,EAAY,UAAZ,YAAAG,EAAA,KAAAH,EAAsB,GAAGE,IAAO,EAAE,CAC5E","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),y=require("./index.
|
2
|
-
//# sourceMappingURL=index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react"),y=require("./index.cjs277.js"),M=require("./index.cjs276.js"),I=require("./index.cjs293.js"),f=require("./index.cjs154.js");function O(l){const u=l+"CollectionProvider",[E,A]=y.createContextScope(u),[N,d]=E(u,{collectionRef:{current:null},itemMap:new Map}),a=n=>{const{scope:e,children:s}=n,t=r.useRef(null),o=r.useRef(new Map).current;return f.jsxRuntimeExports.jsx(N,{scope:e,itemMap:o,collectionRef:t,children:s})};a.displayName=u;const m=l+"CollectionSlot",p=r.forwardRef((n,e)=>{const{scope:s,children:t}=n,o=d(m,s),c=M.useComposedRefs(e,o.collectionRef);return f.jsxRuntimeExports.jsx(I.Slot,{ref:c,children:t})});p.displayName=m;const C=l+"CollectionItemSlot",x="data-radix-collection-item",R=r.forwardRef((n,e)=>{const{scope:s,children:t,...o}=n,c=r.useRef(null),S=M.useComposedRefs(e,c),i=d(C,s);return r.useEffect(()=>(i.itemMap.set(c,{ref:c,...o}),()=>void i.itemMap.delete(c))),f.jsxRuntimeExports.jsx(I.Slot,{[x]:"",ref:S,children:t})});R.displayName=C;function T(n){const e=d(l+"CollectionConsumer",n);return r.useCallback(()=>{const t=e.collectionRef.current;if(!t)return[];const o=Array.from(t.querySelectorAll(`[${x}]`));return Array.from(e.itemMap.values()).sort((i,j)=>o.indexOf(i.ref.current)-o.indexOf(j.ref.current))},[e.collectionRef,e.itemMap])}return[{Provider:a,Slot:p,ItemSlot:R},T,A]}exports.createCollection=O;
|
2
|
+
//# sourceMappingURL=index.cjs309.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.cjs309.js","sources":["../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/collection/src/collection.tsx\nimport React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { jsx } from \"react/jsx-runtime\";\nfunction createCollection(name) {\n const PROVIDER_NAME = name + \"CollectionProvider\";\n const [createCollectionContext, createCollectionScope] = createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(\n PROVIDER_NAME,\n { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }\n );\n const CollectionProvider = (props) => {\n const { scope, children } = props;\n const ref = React.useRef(null);\n const itemMap = React.useRef(/* @__PURE__ */ new Map()).current;\n return /* @__PURE__ */ jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });\n };\n CollectionProvider.displayName = PROVIDER_NAME;\n const COLLECTION_SLOT_NAME = name + \"CollectionSlot\";\n const CollectionSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = useComposedRefs(forwardedRef, context.collectionRef);\n return /* @__PURE__ */ jsx(Slot, { ref: composedRefs, children });\n }\n );\n CollectionSlot.displayName = COLLECTION_SLOT_NAME;\n const ITEM_SLOT_NAME = name + \"CollectionItemSlot\";\n const ITEM_DATA_ATTR = \"data-radix-collection-item\";\n const CollectionItemSlot = React.forwardRef(\n (props, forwardedRef) => {\n const { scope, children, ...itemData } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n React.useEffect(() => {\n context.itemMap.set(ref, { ref, ...itemData });\n return () => void context.itemMap.delete(ref);\n });\n return /* @__PURE__ */ jsx(Slot, { ...{ [ITEM_DATA_ATTR]: \"\" }, ref: composedRefs, children });\n }\n );\n CollectionItemSlot.displayName = ITEM_SLOT_NAME;\n function useCollection(scope) {\n const context = useCollectionContext(name + \"CollectionConsumer\", scope);\n const getItems = React.useCallback(() => {\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort(\n (a, b) => orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [context.collectionRef, context.itemMap]);\n return getItems;\n }\n return [\n { Provider: CollectionProvider, Slot: CollectionSlot, ItemSlot: CollectionItemSlot },\n useCollection,\n createCollectionScope\n ];\n}\nexport {\n createCollection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["createCollection","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","React","itemMap","jsx","COLLECTION_SLOT_NAME","CollectionSlot","forwardedRef","context","composedRefs","useComposedRefs","Slot","ITEM_SLOT_NAME","ITEM_DATA_ATTR","CollectionItemSlot","itemData","useCollection","collectionNode","orderedNodes","a","b"],"mappings":"qOAQA,SAASA,EAAiBC,EAAM,CAC9B,MAAMC,EAAgBD,EAAO,qBACvB,CAACE,EAAyBC,CAAqB,EAAIC,EAAAA,mBAAmBH,CAAa,EACnF,CAACI,EAAwBC,CAAoB,EAAIJ,EACrDD,EACA,CAAE,cAAe,CAAE,QAAS,IAAI,EAAI,QAAyB,IAAI,GAAK,CACvE,EACKM,EAAsBC,GAAU,CACpC,KAAM,CAAE,MAAAC,EAAO,SAAAC,CAAQ,EAAKF,EACtBG,EAAMC,EAAM,OAAO,IAAI,EACvBC,EAAUD,EAAM,OAAuB,IAAI,GA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e,MAAM,KAAKD,EAAe,iBAAiB,IAAIJ,CAAc,GAAG,CAAC,EAKtF,OAJc,MAAM,KAAKL,EAAQ,QAAQ,QAAQ,EACtB,KACzB,CAACW,EAAGC,IAAMF,EAAa,QAAQC,EAAE,IAAI,OAAO,EAAID,EAAa,QAAQE,EAAE,IAAI,OAAO,CACnF,CAEF,EAAE,CAACZ,EAAQ,cAAeA,EAAQ,OAAO,CAAC,CAE/C,CACE,MAAO,CACL,CAAE,SAAUX,EAAoB,KAAMS,EAAgB,SAAUQ,CAAoB,EACpFE,EACAvB,CACD,CACH","x_google_ignoreList":[0]}
|
package/dist/index.cjs31.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/CardOpeningHours/index.tsx"],"sourcesContent":["import \"./CardOpeningHours.scss\";\nimport clsx from \"clsx\";\nimport { OpeningHours } from \"@anoki/fse-common\";\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\nimport { DateTime } from \"luxon\";\nimport { Col, Row } from \"@/components\";\n\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\ntype WeekDaysMap = Record<keyof OpeningHours, string>;\ntype TimeSlot = { from: string; to: string };\n\ntype CardOpeningHoursProps = {\n title: string;\n titleTag: HeadingLevel;\n openingHours: OpeningHours;\n weekDaysMap: WeekDaysMap;\n openLabel?: string;\n todayLabel?: string;\n closeLabel?: string;\n open24Label?: string;\n opensSoonLabel?: string;\n opensAtLabel?: string;\n opensTomorrowLabel?: string;\n opensOnLabel?: string;\n atLabel?: string;\n closesAtLabel?: string;\n};\n\nexport const CardOpeningHours = ({\n title = \"Orari di apertura\",\n titleTag: TitleTag = \"h3\",\n openingHours,\n weekDaysMap,\n openLabel = \"Aperto\",\n todayLabel = \"Oggi\",\n closeLabel = \"Chiuso\",\n open24Label = \"24 ore su 24\",\n opensSoonLabel = \"Apre tra poco\",\n opensAtLabel = \"Apre alle\",\n opensTomorrowLabel = \"Apre domani\",\n opensOnLabel = \"Apre\",\n atLabel = \"alle\",\n closesAtLabel = \"Chiude alle\",\n}: CardOpeningHoursProps) => {\n const [activeDay, setActiveDay] = useState<number | null>(null);\n const [dayLabel, setDayLabel] = useState(\"\");\n const [openingHoursText, setOpeningHoursText] = useState(\"\");\n const [openingHoursText2, setOpeningHoursText2] = useState(\"\");\n const [isOpen, setIsOpen] = useState(false);\n const [isOpeningSoon, setIsOpeningSoon] = useState(false);\n const [additionalInfo, setAdditionalInfo] = useState(\"\");\n\n const weekDays = Object.values(weekDaysMap);\n const weekKeys = Object.keys(weekDaysMap) as (keyof OpeningHours)[];\n\n const formatCurrentTime = () => {\n return DateTime.now().toFormat(\"HH:mm\");\n };\n\n const parseTimeToMinutes = (timeStr: string): number => {\n const [hours, minutes] = timeStr.split(\":\").map(Number);\n return hours * 60 + minutes;\n };\n\n const isSlot24Hours = useCallback(\n (slot: TimeSlot) => slot.from === \"00:00\" && slot.to === \"00:00\",\n [],\n );\n\n const is24HoursDay = useCallback(\n (slots: TimeSlot[]) => slots.some(isSlot24Hours),\n [isSlot24Hours],\n );\n\n const isCurrentlyOpen = (slots: TimeSlot[], currentTime: string) => {\n for (const { from, to } of slots) {\n if (currentTime >= from && currentTime <= to) {\n return { open: true, closingTime: to };\n }\n }\n return { open: false, closingTime: \"\" };\n };\n\n const getNextOpeningTime = (slots: TimeSlot[], currentTime: string) => {\n for (const { from } of slots) {\n if (from > currentTime) {\n return from;\n }\n }\n return \"\";\n };\n\n const checkIsOpeningSoon = useCallback(\n (openingTime: string, currentTime: string) => {\n if (!openingTime) return false;\n\n const openMinutes = parseTimeToMinutes(openingTime);\n const currentMinutes = parseTimeToMinutes(currentTime);\n const diffMinutes = openMinutes - currentMinutes;\n\n return diffMinutes > 0 && diffMinutes <= 60;\n },\n [],\n );\n\n const getNextOpenDay = useCallback(\n (currentDayIndex: number) => {\n for (let i = 1; i <= 7; i++) {\n const nextIndex = (currentDayIndex + i) % 7;\n const nextDayKey = weekKeys[nextIndex];\n const nextDaySlots = openingHours[nextDayKey];\n\n if (nextDaySlots && nextDaySlots.length > 0) {\n return {\n dayName: weekDays[nextIndex].toLowerCase(),\n isTomorrow: i === 1,\n };\n }\n }\n return null;\n },\n [weekKeys, openingHours, weekDays],\n );\n\n const generateOpeningHoursText = useMemo(() => {\n return (hours: TimeSlot[]) => {\n if (hours.length === 0) {\n return closeLabel;\n }\n\n if (is24HoursDay(hours)) {\n return `${openLabel} ${open24Label}`;\n }\n\n return hours.map(({ from, to }) => `${from} - ${to}`).join(\" | \");\n };\n }, [closeLabel, is24HoursDay, open24Label, openLabel]);\n\n useEffect(() => {\n const now = DateTime.now();\n const todayIndex = now.weekday - 1;\n setActiveDay(todayIndex);\n setDayLabel(weekDays[todayIndex] || \"\");\n\n const todayKey = weekKeys[todayIndex];\n const todaySlots = openingHours[todayKey];\n\n if (!todaySlots) {\n return;\n }\n\n const currentTime = formatCurrentTime();\n\n if (is24HoursDay(todaySlots)) {\n setOpeningHoursText(openLabel);\n setAdditionalInfo(` | ${open24Label}`);\n setIsOpen(true);\n setIsOpeningSoon(false);\n setOpeningHoursText2(`${openLabel} ${open24Label}`);\n return;\n }\n\n const { open, closingTime } = isCurrentlyOpen(todaySlots, currentTime);\n\n if (open) {\n setOpeningHoursText(openLabel);\n setAdditionalInfo(\n closingTime ? ` | ${closesAtLabel} ${closingTime}` : \"\",\n );\n setIsOpen(true);\n setIsOpeningSoon(false);\n } else {\n const nextOpeningTime = getNextOpeningTime(todaySlots, currentTime);\n setIsOpen(false);\n\n if (nextOpeningTime) {\n if (checkIsOpeningSoon(nextOpeningTime, currentTime)) {\n setOpeningHoursText(opensSoonLabel);\n setAdditionalInfo(` | ${atLabel} ${nextOpeningTime}`);\n setIsOpeningSoon(true);\n } else {\n setOpeningHoursText(closeLabel);\n setAdditionalInfo(` | ${opensAtLabel} ${nextOpeningTime}`);\n setIsOpeningSoon(false);\n }\n } else {\n setOpeningHoursText(closeLabel);\n setIsOpeningSoon(false);\n const nextDay = getNextOpenDay(todayIndex);\n\n if (nextDay) {\n setAdditionalInfo(\n nextDay.isTomorrow\n ? ` | ${opensTomorrowLabel}`\n : ` | ${opensOnLabel} ${nextDay.dayName}`,\n );\n } else {\n setAdditionalInfo(\"\");\n }\n }\n }\n\n setOpeningHoursText2(generateOpeningHoursText(todaySlots));\n }, [\n atLabel,\n checkIsOpeningSoon,\n closeLabel,\n closesAtLabel,\n generateOpeningHoursText,\n getNextOpenDay,\n is24HoursDay,\n open24Label,\n openLabel,\n openingHours,\n opensAtLabel,\n opensOnLabel,\n opensSoonLabel,\n opensTomorrowLabel,\n weekDays,\n weekKeys,\n ]);\n\n return (\n <Col\n fs={\"6\"}\n fw={\"semibold\"}\n className=\"ui-card-opening rounded shadow text-slate-28\"\n >\n <Col as={\"header\"} className=\"ui-card-header\">\n <TitleTag className=\"text-slate-20 fw-semibold fs-4\">{title}</TitleTag>\n <Row\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n style={{ backgroundColor: \"#F7F2FC\" }}\n py={\"x16\"}\n px={\"x24\"}\n fw={\"bold\"}\n fs={\"6\"}\n className=\"rounded\"\n >\n <p className=\"text-slate-28\">\n {todayLabel}, {dayLabel}\n </p>\n <p>\n <span\n className={\n isOpen\n ? \"text-success\"\n : isOpeningSoon\n ? \"text-warning\"\n : \"text-error\"\n }\n >\n {openingHoursText}\n </span>\n <span className=\"fw-regular text-grey-black\">{additionalInfo}</span>\n </p>\n </Row>\n </Col>\n <Col as={\"main\"} pt={\"x32\"} gap={\"x24\"}>\n <Row justifyContent={\"space-around\"} className=\"ui-weekdays-container\">\n {weekDays.map((day, index) => (\n <Row\n justifyContent={\"center\"}\n alignItems={\"center\"}\n key={index}\n className={clsx(\n activeDay === index ? \"active-day text-primary\" : \"\",\n \"flex-1\",\n )}\n >\n {day.charAt(0).toUpperCase()}\n </Row>\n ))}\n </Row>\n <Row\n justifyContent={\"space-between\"}\n alignItems={\"center\"}\n fw={\"regular\"}\n >\n <p>{dayLabel}</p>\n <p>{openingHoursText2}</p>\n </Row>\n </Col>\n </Col>\n );\n};\n"],"names":["CardOpeningHours","title","TitleTag","openingHours","weekDaysMap","openLabel","todayLabel","closeLabel","open24Label","opensSoonLabel","opensAtLabel","opensTomorrowLabel","opensOnLabel","atLabel","closesAtLabel","activeDay","setActiveDay","useState","dayLabel","setDayLabel","openingHoursText","setOpeningHoursText","openingHoursText2","setOpeningHoursText2","isOpen","setIsOpen","isOpeningSoon","setIsOpeningSoon","additionalInfo","setAdditionalInfo","weekDays","weekKeys","formatCurrentTime","DateTime","parseTimeToMinutes","timeStr","hours","minutes","isSlot24Hours","useCallback","slot","is24HoursDay","slots","isCurrentlyOpen","currentTime","from","to","getNextOpeningTime","checkIsOpeningSoon","openingTime","openMinutes","currentMinutes","diffMinutes","getNextOpenDay","currentDayIndex","i","nextIndex","nextDayKey","nextDaySlots","generateOpeningHoursText","useMemo","useEffect","todayIndex","todayKey","todaySlots","open","closingTime","nextOpeningTime","nextDay","jsxs","Col","jsx","Row","day","index","clsx"],"mappings":"qUA4BaA,GAAmB,CAAC,CAC/B,MAAAC,EAAQ,oBACR,SAAUC,EAAW,KACrB,aAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,SACZ,WAAAC,EAAa,OACb,WAAAC,EAAa,SACb,YAAAC,EAAc,eACd,eAAAC,EAAiB,gBACjB,aAAAC,EAAe,YACf,mBAAAC,EAAqB,cACrB,aAAAC,EAAe,OACf,QAAAC,EAAU,OACV,cAAAC,EAAgB,aAClB,IAA6B,CAC3B,KAAM,CAACC,EAAWC,CAAY,EAAIC,EAAAA,SAAwB,IAAI,EACxD,CAACC,EAAUC,CAAW,EAAIF,EAAAA,SAAS,EAAE,EACrC,CAACG,EAAkBC,CAAmB,EAAIJ,EAAAA,SAAS,EAAE,EACrD,CAACK,EAAmBC,CAAoB,EAAIN,EAAAA,SAAS,EAAE,EACvD,CAACO,EAAQC,CAAS,EAAIR,EAAAA,SAAS,EAAK,EACpC,CAACS,EAAeC,C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AA,IAAA,OAAA,CAAK,UAAU,6BAA8B,SAAe3C,CAAA,CAAA,CAAA,CAC/D,CAAA,CAAA,CAAA,CAAA,CACF,EACF,2BACC0C,EAAAA,IAAI,CAAA,GAAI,OAAQ,GAAI,MAAO,IAAK,MAC/B,SAAA,CAACC,EAAAA,kBAAAA,IAAAC,EAAAA,IAAA,CAAI,eAAgB,eAAgB,UAAU,wBAC5C,SAAS1C,EAAA,IAAI,CAAC2C,EAAKC,IAClBH,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,eAAgB,SAChB,WAAY,SAEZ,UAAWG,EAAA,KACT5D,IAAc2D,EAAQ,0BAA4B,GAClD,QACF,EAEC,SAAID,EAAA,OAAO,CAAC,EAAE,YAAY,CAAA,EANtBC,CAQR,CAAA,EACH,EACAL,EAAA,kBAAA,KAACG,EAAA,IAAA,CACC,eAAgB,gBAChB,WAAY,SACZ,GAAI,UAEJ,SAAA,CAAAD,EAAAA,kBAAAA,IAAC,KAAG,SAASrD,CAAA,CAAA,EACbqD,EAAAA,kBAAAA,IAAC,KAAG,SAAkBjD,CAAA,CAAA,CAAA,CAAA,CAAA,CACxB,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs31.js","sources":["../src/components/ui/CardOpeningHours/index.tsx"],"sourcesContent":["import \"./CardOpeningHours.scss\";\r\nimport clsx from \"clsx\";\r\nimport { OpeningHours } from \"@anoki/fse-common\";\r\nimport { useCallback, useEffect, useMemo, useState } from \"react\";\r\nimport { DateTime } from \"luxon\";\r\nimport { Col, Row } from \"@/components\";\r\n\r\ntype HeadingLevel = \"h2\" | \"h3\" | \"h4\";\r\ntype WeekDaysMap = Record<keyof OpeningHours, string>;\r\ntype TimeSlot = { from: string; to: string };\r\n\r\ntype CardOpeningHoursProps = {\r\n title: string;\r\n titleTag: HeadingLevel;\r\n openingHours: OpeningHours;\r\n weekDaysMap: WeekDaysMap;\r\n openLabel?: string;\r\n todayLabel?: string;\r\n closeLabel?: string;\r\n open24Label?: string;\r\n opensSoonLabel?: string;\r\n opensAtLabel?: string;\r\n opensTomorrowLabel?: string;\r\n opensOnLabel?: string;\r\n atLabel?: string;\r\n closesAtLabel?: string;\r\n};\r\n\r\nexport const CardOpeningHours = ({\r\n title = \"Orari di apertura\",\r\n titleTag: TitleTag = \"h3\",\r\n openingHours,\r\n weekDaysMap,\r\n openLabel = \"Aperto\",\r\n todayLabel = \"Oggi\",\r\n closeLabel = \"Chiuso\",\r\n open24Label = \"24 ore su 24\",\r\n opensSoonLabel = \"Apre tra poco\",\r\n opensAtLabel = \"Apre alle\",\r\n opensTomorrowLabel = \"Apre domani\",\r\n opensOnLabel = \"Apre\",\r\n atLabel = \"alle\",\r\n closesAtLabel = \"Chiude alle\",\r\n}: CardOpeningHoursProps) => {\r\n const [activeDay, setActiveDay] = useState<number | null>(null);\r\n const [dayLabel, setDayLabel] = useState(\"\");\r\n const [openingHoursText, setOpeningHoursText] = useState(\"\");\r\n const [openingHoursText2, setOpeningHoursText2] = useState(\"\");\r\n const [isOpen, setIsOpen] = useState(false);\r\n const [isOpeningSoon, setIsOpeningSoon] = useState(false);\r\n const [additionalInfo, setAdditionalInfo] = useState(\"\");\r\n\r\n const weekDays = Object.values(weekDaysMap);\r\n const weekKeys = Object.keys(weekDaysMap) as (keyof OpeningHours)[];\r\n\r\n const formatCurrentTime = () => {\r\n return DateTime.now().toFormat(\"HH:mm\");\r\n };\r\n\r\n const parseTimeToMinutes = (timeStr: string): number => {\r\n const [hours, minutes] = timeStr.split(\":\").map(Number);\r\n return hours * 60 + minutes;\r\n };\r\n\r\n const isSlot24Hours = useCallback(\r\n (slot: TimeSlot) => slot.from === \"00:00\" && slot.to === \"00:00\",\r\n [],\r\n );\r\n\r\n const is24HoursDay = useCallback(\r\n (slots: TimeSlot[]) => slots.some(isSlot24Hours),\r\n [isSlot24Hours],\r\n );\r\n\r\n const isCurrentlyOpen = (slots: TimeSlot[], currentTime: string) => {\r\n for (const { from, to } of slots) {\r\n if (currentTime >= from && currentTime <= to) {\r\n return { open: true, closingTime: to };\r\n }\r\n }\r\n return { open: false, closingTime: \"\" };\r\n };\r\n\r\n const getNextOpeningTime = (slots: TimeSlot[], currentTime: string) => {\r\n for (const { from } of slots) {\r\n if (from > currentTime) {\r\n return from;\r\n }\r\n }\r\n return \"\";\r\n };\r\n\r\n const checkIsOpeningSoon = useCallback(\r\n (openingTime: string, currentTime: string) => {\r\n if (!openingTime) return false;\r\n\r\n const openMinutes = parseTimeToMinutes(openingTime);\r\n const currentMinutes = parseTimeToMinutes(currentTime);\r\n const diffMinutes = openMinutes - currentMinutes;\r\n\r\n return diffMinutes > 0 && diffMinutes <= 60;\r\n },\r\n [],\r\n );\r\n\r\n const getNextOpenDay = useCallback(\r\n (currentDayIndex: number) => {\r\n for (let i = 1; i <= 7; i++) {\r\n const nextIndex = (currentDayIndex + i) % 7;\r\n const nextDayKey = weekKeys[nextIndex];\r\n const nextDaySlots = openingHours[nextDayKey];\r\n\r\n if (nextDaySlots && nextDaySlots.length > 0) {\r\n return {\r\n dayName: weekDays[nextIndex].toLowerCase(),\r\n isTomorrow: i === 1,\r\n };\r\n }\r\n }\r\n return null;\r\n },\r\n [weekKeys, openingHours, weekDays],\r\n );\r\n\r\n const generateOpeningHoursText = useMemo(() => {\r\n return (hours: TimeSlot[]) => {\r\n if (hours.length === 0) {\r\n return closeLabel;\r\n }\r\n\r\n if (is24HoursDay(hours)) {\r\n return `${openLabel} ${open24Label}`;\r\n }\r\n\r\n return hours.map(({ from, to }) => `${from} - ${to}`).join(\" | \");\r\n };\r\n }, [closeLabel, is24HoursDay, open24Label, openLabel]);\r\n\r\n useEffect(() => {\r\n const now = DateTime.now();\r\n const todayIndex = now.weekday - 1;\r\n setActiveDay(todayIndex);\r\n setDayLabel(weekDays[todayIndex] || \"\");\r\n\r\n const todayKey = weekKeys[todayIndex];\r\n const todaySlots = openingHours[todayKey];\r\n\r\n if (!todaySlots) {\r\n return;\r\n }\r\n\r\n const currentTime = formatCurrentTime();\r\n\r\n if (is24HoursDay(todaySlots)) {\r\n setOpeningHoursText(openLabel);\r\n setAdditionalInfo(` | ${open24Label}`);\r\n setIsOpen(true);\r\n setIsOpeningSoon(false);\r\n setOpeningHoursText2(`${openLabel} ${open24Label}`);\r\n return;\r\n }\r\n\r\n const { open, closingTime } = isCurrentlyOpen(todaySlots, currentTime);\r\n\r\n if (open) {\r\n setOpeningHoursText(openLabel);\r\n setAdditionalInfo(\r\n closingTime ? ` | ${closesAtLabel} ${closingTime}` : \"\",\r\n );\r\n setIsOpen(true);\r\n setIsOpeningSoon(false);\r\n } else {\r\n const nextOpeningTime = getNextOpeningTime(todaySlots, currentTime);\r\n setIsOpen(false);\r\n\r\n if (nextOpeningTime) {\r\n if (checkIsOpeningSoon(nextOpeningTime, currentTime)) {\r\n setOpeningHoursText(opensSoonLabel);\r\n setAdditionalInfo(` | ${atLabel} ${nextOpeningTime}`);\r\n setIsOpeningSoon(true);\r\n } else {\r\n setOpeningHoursText(closeLabel);\r\n setAdditionalInfo(` | ${opensAtLabel} ${nextOpeningTime}`);\r\n setIsOpeningSoon(false);\r\n }\r\n } else {\r\n setOpeningHoursText(closeLabel);\r\n setIsOpeningSoon(false);\r\n const nextDay = getNextOpenDay(todayIndex);\r\n\r\n if (nextDay) {\r\n setAdditionalInfo(\r\n nextDay.isTomorrow\r\n ? ` | ${opensTomorrowLabel}`\r\n : ` | ${opensOnLabel} ${nextDay.dayName}`,\r\n );\r\n } else {\r\n setAdditionalInfo(\"\");\r\n }\r\n }\r\n }\r\n\r\n setOpeningHoursText2(generateOpeningHoursText(todaySlots));\r\n }, [\r\n atLabel,\r\n checkIsOpeningSoon,\r\n closeLabel,\r\n closesAtLabel,\r\n generateOpeningHoursText,\r\n getNextOpenDay,\r\n is24HoursDay,\r\n open24Label,\r\n openLabel,\r\n openingHours,\r\n opensAtLabel,\r\n opensOnLabel,\r\n opensSoonLabel,\r\n opensTomorrowLabel,\r\n weekDays,\r\n weekKeys,\r\n ]);\r\n\r\n return (\r\n <Col\r\n fs={\"6\"}\r\n fw={\"semibold\"}\r\n className=\"ui-card-opening rounded shadow text-slate-28\"\r\n >\r\n <Col as={\"header\"} className=\"ui-card-header\">\r\n <TitleTag className=\"text-slate-20 fw-semibold fs-4\">{title}</TitleTag>\r\n <Row\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n style={{ backgroundColor: \"#F7F2FC\" }}\r\n py={\"x16\"}\r\n px={\"x24\"}\r\n fw={\"bold\"}\r\n fs={\"6\"}\r\n className=\"rounded\"\r\n >\r\n <p className=\"text-slate-28\">\r\n {todayLabel}, {dayLabel}\r\n </p>\r\n <p>\r\n <span\r\n className={\r\n isOpen\r\n ? \"text-success\"\r\n : isOpeningSoon\r\n ? \"text-warning\"\r\n : \"text-error\"\r\n }\r\n >\r\n {openingHoursText}\r\n </span>\r\n <span className=\"fw-regular text-grey-black\">{additionalInfo}</span>\r\n </p>\r\n </Row>\r\n </Col>\r\n <Col as={\"main\"} pt={\"x32\"} gap={\"x24\"}>\r\n <Row justifyContent={\"space-around\"} className=\"ui-weekdays-container\">\r\n {weekDays.map((day, index) => (\r\n <Row\r\n justifyContent={\"center\"}\r\n alignItems={\"center\"}\r\n key={index}\r\n className={clsx(\r\n activeDay === index ? \"active-day text-primary\" : \"\",\r\n \"flex-1\",\r\n )}\r\n >\r\n {day.charAt(0).toUpperCase()}\r\n </Row>\r\n ))}\r\n </Row>\r\n <Row\r\n justifyContent={\"space-between\"}\r\n alignItems={\"center\"}\r\n fw={\"regular\"}\r\n >\r\n <p>{dayLabel}</p>\r\n <p>{openingHoursText2}</p>\r\n </Row>\r\n </Col>\r\n </Col>\r\n );\r\n};\r\n"],"names":["CardOpeningHours","title","TitleTag","openingHours","weekDaysMap","openLabel","todayLabel","closeLabel","open24Label","opensSoonLabel","opensAtLabel","opensTomorrowLabel","opensOnLabel","atLabel","closesAtLabel","activeDay","setActiveDay","useState","dayLabel","setDayLabel","openingHoursText","setOpeningHoursText","openingHoursText2","setOpeningHoursText2","isOpen","setIsOpen","isOpeningSoon","setIsOpeningSoon","additionalInfo","setAdditionalInfo","weekDays","weekKeys","formatCurrentTime","DateTime","parseTimeToMinutes","timeStr","hours","minutes","isSlot24Hours","useCallback","slot","is24HoursDay","slots","isCurrentlyOpen","currentTime","from","to","getNextOpeningTime","checkIsOpeningSoon","openingTime","openMinutes","currentMinutes","diffMinutes","getNextOpenDay","currentDayIndex","i","nextIndex","nextDayKey","nextDaySlots","generateOpeningHoursText","useMemo","useEffect","todayIndex","todayKey","todaySlots","open","closingTime","nextOpeningTime","nextDay","jsxs","Col","jsx","Row","day","index","clsx"],"mappings":"qUA4BaA,GAAmB,CAAC,CAC/B,MAAAC,EAAQ,oBACR,SAAUC,EAAW,KACrB,aAAAC,EACA,YAAAC,EACA,UAAAC,EAAY,SACZ,WAAAC,EAAa,OACb,WAAAC,EAAa,SACb,YAAAC,EAAc,eACd,eAAAC,EAAiB,gBACjB,aAAAC,EAAe,YACf,mBAAAC,EAAqB,cACrB,aAAAC,EAAe,OACf,QAAAC,EAAU,OACV,cAAAC,EAAgB,aAClB,IAA6B,CAC3B,KAAM,CAACC,EAAWC,CAAY,EAAIC,EAAAA,SAAwB,IAAI,EACxD,CAACC,EAAUC,CAAW,EAAIF,EAAAA,SAAS,EAAE,EACrC,CAACG,EAAkBC,CAAmB,EAAIJ,EAAAA,SAAS,EAAE,EACrD,CAACK,EAAmBC,CAAoB,EAAIN,EAAAA,SAAS,EAAE,EACvD,CAACO,EAAQC,CAAS,EAAIR,EAAAA,SAAS,EAAK,EACpC,CAACS,EAAeC,CAAgB,EAAIV,EAAAA,SAAS,EAAK,EAClD,CAACW,EAAgBC,CAAiB,EAAIZ,EAAAA,SAAS,EAAE,EAEjDa,EAAW,OAAO,OAAO1B,CAAW,EACpC2B,EAAW,OAAO,KAAK3B,CAAW,EAElC4B,EAAoB,IACjBC,UAAS,MAAM,SAAS,OAAO,EAGlCC,EAAsBC,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I,eAAgB,eAAgB,UAAU,wBAC5C,SAAS1C,EAAA,IAAI,CAAC2C,EAAKC,IAClBH,EAAA,kBAAA,IAACC,EAAA,IAAA,CACC,eAAgB,SAChB,WAAY,SAEZ,UAAWG,EAAA,KACT5D,IAAc2D,EAAQ,0BAA4B,GAClD,QACF,EAEC,SAAID,EAAA,OAAO,CAAC,EAAE,YAAY,CAAA,EANtBC,CAQR,CAAA,EACH,EACAL,EAAA,kBAAA,KAACG,EAAA,IAAA,CACC,eAAgB,gBAChB,WAAY,SACZ,GAAI,UAEJ,SAAA,CAAAD,EAAAA,kBAAAA,IAAC,KAAG,SAASrD,CAAA,CAAA,EACbqD,EAAAA,kBAAAA,IAAC,KAAG,SAAkBjD,CAAA,CAAA,CAAA,CAAA,CAAA,CACxB,CACF,CAAA,CAAA,CAAA,CACF,CAEJ"}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react");require("./index.cjs154.js");function i(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=i(c);var u=o.createContext(void 0);function a(e){const t=o.useContext(u);return e||t||"ltr"}exports.useDirection=a;
|
2
|
+
//# sourceMappingURL=index.cjs310.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.cjs310.js","sources":["../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["// packages/react/direction/src/Direction.tsx\nimport * as React from \"react\";\nimport { jsx } from \"react/jsx-runtime\";\nvar DirectionContext = React.createContext(void 0);\nvar DirectionProvider = (props) => {\n const { dir, children } = props;\n return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });\n};\nfunction useDirection(localDir) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || \"ltr\";\n}\nvar Provider = DirectionProvider;\nexport {\n DirectionProvider,\n Provider,\n useDirection\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["DirectionContext","React","useDirection","localDir","globalDir"],"mappings":"gaAGA,IAAIA,EAAmBC,EAAM,cAAc,MAAM,EAKjD,SAASC,EAAaC,EAAU,CAC9B,MAAMC,EAAYH,EAAM,WAAWD,CAAgB,EACnD,OAAOG,GAAYC,GAAa,KAClC","x_google_ignoreList":[0]}
|
@@ -0,0 +1,2 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Pe=require("react"),l=require("./index.cjs315.js"),ye=require("./index.cjs316.js"),Z=require("./index.cjs276.js"),Ae=require("./index.cjs277.js"),G=require("./index.cjs279.js"),ve=require("./index.cjs308.js"),L=require("./index.cjs313.js"),Ce=require("./index.cjs283.js"),u=require("./index.cjs154.js"),be=require("./index.cjs317.js");function Re(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const s=Re(Pe);var _="Popper",[J,Oe]=Ae.createContextScope(_),[Se,K]=J(_),$=e=>{const{__scopePopper:o,children:t}=e,[r,a]=s.useState(null);return u.jsxRuntimeExports.jsx(Se,{scope:o,anchor:r,onAnchorChange:a,children:t})};$.displayName=_;var Q="PopperAnchor",N=s.forwardRef((e,o)=>{const{__scopePopper:t,virtualRef:r,...a}=e,n=K(Q,t),i=s.useRef(null),w=Z.useComposedRefs(o,i);return s.useEffect(()=>{n.onAnchorChange((r==null?void 0:r.current)||i.current)}),r?null:u.jsxRuntimeExports.jsx(G.Primitive.div,{...a,ref:w})});N.displayName=Q;var q="PopperContent",[je,Ee]=J(q),H=s.forwardRef((e,o)=>{var T,X,k,F,z,B;const{__scopePopper:t,side:r="bottom",sideOffset:a=0,align:n="center",alignOffset:i=0,arrowPadding:w=0,avoidCollisions:c=!0,collisionBoundary:p=[],collisionPadding:P=0,sticky:x="partial",hideWhenDetached:A=!1,updatePositionStrategy:v="optimized",onPlaced:f,...d}=e,C=K(q,t),[m,b]=s.useState(null),te=Z.useComposedRefs(o,y=>b(y)),[E,re]=s.useState(null),h=Ce.useSize(E),oe=(h==null?void 0:h.width)??0,M=(h==null?void 0:h.height)??0,ne=r+(n!=="center"?"-"+n:""),ie=typeof P=="number"?P:{top:0,right:0,bottom:0,left:0,...P},W=Array.isArray(p)?p:[p],ae=W.length>0,R={padding:ie,boundary:W.filter($e),altBoundary:ae},{refs:se,floatingStyles:I,placement:ce,isPositioned:O,middlewareData:g}=l.useFloating({strategy:"fixed",placement:ne,whileElementsMounted:(...y)=>be.autoUpdate(...y,{animationFrame:v==="always"}),elements:{reference:C.anchor},middleware:[l.offset({mainAxis:a+M,alignmentAxis:i}),c&&l.shift({mainAxis:!0,crossAxis:!1,limiter:x==="partial"?l.limitShift():void 0,...R}),c&&l.flip({...R}),l.size({...R,apply:({elements:y,rects:U,availableWidth:me,availableHeight:he})=>{const{width:ge,height:we}=U.reference,j=y.floating.style;j.setProperty("--radix-popper-available-width",`${me}px`),j.setProperty("--radix-popper-available-height",`${he}px`),j.setProperty("--radix-popper-anchor-width",`${ge}px`),j.setProperty("--radix-popper-anchor-height",`${we}px`)}}),E&&l.arrow({element:E,padding:w}),Ne({arrowWidth:oe,arrowHeight:M}),A&&l.hide({strategy:"referenceHidden",...R})]}),[Y,pe]=ee(ce),S=ve.useCallbackRef(f);L.useLayoutEffect(()=>{O&&(S==null||S())},[O,S]);const de=(T=g.arrow)==null?void 0:T.x,le=(X=g.arrow)==null?void 0:X.y,fe=((k=g.arrow)==null?void 0:k.centerOffset)!==0,[ue,xe]=s.useState();return L.useLayoutEffect(()=>{m&&xe(window.getComputedStyle(m).zIndex)},[m]),u.jsxRuntimeExports.jsx("div",{ref:se.setFloating,"data-radix-popper-content-wrapper":"",style:{...I,transform:O?I.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:ue,"--radix-popper-transform-origin":[(F=g.transformOrigin)==null?void 0:F.x,(z=g.transformOrigin)==null?void 0:z.y].join(" "),...((B=g.hide)==null?void 0:B.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:u.jsxRuntimeExports.jsx(je,{scope:t,placedSide:Y,onArrowChange:re,arrowX:de,arrowY:le,shouldHideArrow:fe,children:u.jsxRuntimeExports.jsx(G.Primitive.div,{"data-side":Y,"data-align":pe,...d,ref:te,style:{...d.style,animation:O?void 0:"none"}})})})});H.displayName=q;var V="PopperArrow",_e={top:"bottom",right:"left",bottom:"top",left:"right"},D=s.forwardRef(function(o,t){const{__scopePopper:r,...a}=o,n=Ee(V,r),i=_e[n.placedSide];return u.jsxRuntimeExports.jsx("span",{ref:n.onArrowChange,style:{position:"absolute",left:n.arrowX,top:n.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[n.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[n.placedSide],visibility:n.shouldHideArrow?"hidden":void 0},children:u.jsxRuntimeExports.jsx(ye.Root,{...a,ref:t,style:{...a.style,display:"block"}})})});D.displayName=V;function $e(e){return e!==null}var Ne=e=>({name:"transformOrigin",options:e,fn(o){var C,m,b;const{placement:t,rects:r,middlewareData:a}=o,i=((C=a.arrow)==null?void 0:C.centerOffset)!==0,w=i?0:e.arrowWidth,c=i?0:e.arrowHeight,[p,P]=ee(t),x={start:"0%",center:"50%",end:"100%"}[P],A=(((m=a.arrow)==null?void 0:m.x)??0)+w/2,v=(((b=a.arrow)==null?void 0:b.y)??0)+c/2;let f="",d="";return p==="bottom"?(f=i?x:`${A}px`,d=`${-c}px`):p==="top"?(f=i?x:`${A}px`,d=`${r.floating.height+c}px`):p==="right"?(f=`${-c}px`,d=i?x:`${v}px`):p==="left"&&(f=`${r.floating.width+c}px`,d=i?x:`${v}px`),{data:{x:f,y:d}}}});function ee(e){const[o,t="center"]=e.split("-");return[o,t]}var qe=$,He=N,De=H,Me=D;exports.Anchor=He;exports.Arrow=Me;exports.Content=De;exports.Popper=$;exports.PopperAnchor=N;exports.PopperArrow=D;exports.PopperContent=H;exports.Root=qe;exports.createPopperScope=Oe;
|
2
|
+
//# sourceMappingURL=index.cjs311.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.cjs311.js","sources":["../node_modules/@radix-ui/react-popper/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/popper/src/popper.tsx\nimport * as React from \"react\";\nimport {\n useFloating,\n autoUpdate,\n offset,\n shift,\n limitShift,\n hide,\n arrow as floatingUIarrow,\n flip,\n size\n} from \"@floating-ui/react-dom\";\nimport * as ArrowPrimitive from \"@radix-ui/react-arrow\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useLayoutEffect } from \"@radix-ui/react-use-layout-effect\";\nimport { useSize } from \"@radix-ui/react-use-size\";\nimport { jsx } from \"react/jsx-runtime\";\nvar SIDE_OPTIONS = [\"top\", \"right\", \"bottom\", \"left\"];\nvar ALIGN_OPTIONS = [\"start\", \"center\", \"end\"];\nvar POPPER_NAME = \"Popper\";\nvar [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);\nvar [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);\nvar Popper = (props) => {\n const { __scopePopper, children } = props;\n const [anchor, setAnchor] = React.useState(null);\n return /* @__PURE__ */ jsx(PopperProvider, { scope: __scopePopper, anchor, onAnchorChange: setAnchor, children });\n};\nPopper.displayName = POPPER_NAME;\nvar ANCHOR_NAME = \"PopperAnchor\";\nvar PopperAnchor = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopePopper, virtualRef, ...anchorProps } = props;\n const context = usePopperContext(ANCHOR_NAME, __scopePopper);\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n React.useEffect(() => {\n context.onAnchorChange(virtualRef?.current || ref.current);\n });\n return virtualRef ? null : /* @__PURE__ */ jsx(Primitive.div, { ...anchorProps, ref: composedRefs });\n }\n);\nPopperAnchor.displayName = ANCHOR_NAME;\nvar CONTENT_NAME = \"PopperContent\";\nvar [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);\nvar PopperContent = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopePopper,\n side = \"bottom\",\n sideOffset = 0,\n align = \"center\",\n alignOffset = 0,\n arrowPadding = 0,\n avoidCollisions = true,\n collisionBoundary = [],\n collisionPadding: collisionPaddingProp = 0,\n sticky = \"partial\",\n hideWhenDetached = false,\n updatePositionStrategy = \"optimized\",\n onPlaced,\n ...contentProps\n } = props;\n const context = usePopperContext(CONTENT_NAME, __scopePopper);\n const [content, setContent] = React.useState(null);\n const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));\n const [arrow, setArrow] = React.useState(null);\n const arrowSize = useSize(arrow);\n const arrowWidth = arrowSize?.width ?? 0;\n const arrowHeight = arrowSize?.height ?? 0;\n const desiredPlacement = side + (align !== \"center\" ? \"-\" + align : \"\");\n const collisionPadding = typeof collisionPaddingProp === \"number\" ? collisionPaddingProp : { top: 0, right: 0, bottom: 0, left: 0, ...collisionPaddingProp };\n const boundary = Array.isArray(collisionBoundary) ? collisionBoundary : [collisionBoundary];\n const hasExplicitBoundaries = boundary.length > 0;\n const detectOverflowOptions = {\n padding: collisionPadding,\n boundary: boundary.filter(isNotNull),\n // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries\n altBoundary: hasExplicitBoundaries\n };\n const { refs, floatingStyles, placement, isPositioned, middlewareData } = useFloating({\n // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues\n strategy: \"fixed\",\n placement: desiredPlacement,\n whileElementsMounted: (...args) => {\n const cleanup = autoUpdate(...args, {\n animationFrame: updatePositionStrategy === \"always\"\n });\n return cleanup;\n },\n elements: {\n reference: context.anchor\n },\n middleware: [\n offset({ mainAxis: sideOffset + arrowHeight, alignmentAxis: alignOffset }),\n avoidCollisions && shift({\n mainAxis: true,\n crossAxis: false,\n limiter: sticky === \"partial\" ? limitShift() : void 0,\n ...detectOverflowOptions\n }),\n avoidCollisions && flip({ ...detectOverflowOptions }),\n size({\n ...detectOverflowOptions,\n apply: ({ elements, rects, availableWidth, availableHeight }) => {\n const { width: anchorWidth, height: anchorHeight } = rects.reference;\n const contentStyle = elements.floating.style;\n contentStyle.setProperty(\"--radix-popper-available-width\", `${availableWidth}px`);\n contentStyle.setProperty(\"--radix-popper-available-height\", `${availableHeight}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-width\", `${anchorWidth}px`);\n contentStyle.setProperty(\"--radix-popper-anchor-height\", `${anchorHeight}px`);\n }\n }),\n arrow && floatingUIarrow({ element: arrow, padding: arrowPadding }),\n transformOrigin({ arrowWidth, arrowHeight }),\n hideWhenDetached && hide({ strategy: \"referenceHidden\", ...detectOverflowOptions })\n ]\n });\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const handlePlaced = useCallbackRef(onPlaced);\n useLayoutEffect(() => {\n if (isPositioned) {\n handlePlaced?.();\n }\n }, [isPositioned, handlePlaced]);\n const arrowX = middlewareData.arrow?.x;\n const arrowY = middlewareData.arrow?.y;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const [contentZIndex, setContentZIndex] = React.useState();\n useLayoutEffect(() => {\n if (content) setContentZIndex(window.getComputedStyle(content).zIndex);\n }, [content]);\n return /* @__PURE__ */ jsx(\n \"div\",\n {\n ref: refs.setFloating,\n \"data-radix-popper-content-wrapper\": \"\",\n style: {\n ...floatingStyles,\n transform: isPositioned ? floatingStyles.transform : \"translate(0, -200%)\",\n // keep off the page when measuring\n minWidth: \"max-content\",\n zIndex: contentZIndex,\n [\"--radix-popper-transform-origin\"]: [\n middlewareData.transformOrigin?.x,\n middlewareData.transformOrigin?.y\n ].join(\" \"),\n // hide the content if using the hide middleware and should be hidden\n // set visibility to hidden and disable pointer events so the UI behaves\n // as if the PopperContent isn't there at all\n ...middlewareData.hide?.referenceHidden && {\n visibility: \"hidden\",\n pointerEvents: \"none\"\n }\n },\n dir: props.dir,\n children: /* @__PURE__ */ jsx(\n PopperContentProvider,\n {\n scope: __scopePopper,\n placedSide,\n onArrowChange: setArrow,\n arrowX,\n arrowY,\n shouldHideArrow: cannotCenterArrow,\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n \"data-side\": placedSide,\n \"data-align\": placedAlign,\n ...contentProps,\n ref: composedRefs,\n style: {\n ...contentProps.style,\n // if the PopperContent hasn't been placed yet (not all measurements done)\n // we prevent animations so that users's animation don't kick in too early referring wrong sides\n animation: !isPositioned ? \"none\" : void 0\n }\n }\n )\n }\n )\n }\n );\n }\n);\nPopperContent.displayName = CONTENT_NAME;\nvar ARROW_NAME = \"PopperArrow\";\nvar OPPOSITE_SIDE = {\n top: \"bottom\",\n right: \"left\",\n bottom: \"top\",\n left: \"right\"\n};\nvar PopperArrow = React.forwardRef(function PopperArrow2(props, forwardedRef) {\n const { __scopePopper, ...arrowProps } = props;\n const contentContext = useContentContext(ARROW_NAME, __scopePopper);\n const baseSide = OPPOSITE_SIDE[contentContext.placedSide];\n return (\n // we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)\n // doesn't report size as we'd expect on SVG elements.\n // it reports their bounding box which is effectively the largest path inside the SVG.\n /* @__PURE__ */ jsx(\n \"span\",\n {\n ref: contentContext.onArrowChange,\n style: {\n position: \"absolute\",\n left: contentContext.arrowX,\n top: contentContext.arrowY,\n [baseSide]: 0,\n transformOrigin: {\n top: \"\",\n right: \"0 0\",\n bottom: \"center 0\",\n left: \"100% 0\"\n }[contentContext.placedSide],\n transform: {\n top: \"translateY(100%)\",\n right: \"translateY(50%) rotate(90deg) translateX(-50%)\",\n bottom: `rotate(180deg)`,\n left: \"translateY(50%) rotate(-90deg) translateX(50%)\"\n }[contentContext.placedSide],\n visibility: contentContext.shouldHideArrow ? \"hidden\" : void 0\n },\n children: /* @__PURE__ */ jsx(\n ArrowPrimitive.Root,\n {\n ...arrowProps,\n ref: forwardedRef,\n style: {\n ...arrowProps.style,\n // ensures the element can be measured correctly (mostly for if SVG)\n display: \"block\"\n }\n }\n )\n }\n )\n );\n});\nPopperArrow.displayName = ARROW_NAME;\nfunction isNotNull(value) {\n return value !== null;\n}\nvar transformOrigin = (options) => ({\n name: \"transformOrigin\",\n options,\n fn(data) {\n const { placement, rects, middlewareData } = data;\n const cannotCenterArrow = middlewareData.arrow?.centerOffset !== 0;\n const isArrowHidden = cannotCenterArrow;\n const arrowWidth = isArrowHidden ? 0 : options.arrowWidth;\n const arrowHeight = isArrowHidden ? 0 : options.arrowHeight;\n const [placedSide, placedAlign] = getSideAndAlignFromPlacement(placement);\n const noArrowAlign = { start: \"0%\", center: \"50%\", end: \"100%\" }[placedAlign];\n const arrowXCenter = (middlewareData.arrow?.x ?? 0) + arrowWidth / 2;\n const arrowYCenter = (middlewareData.arrow?.y ?? 0) + arrowHeight / 2;\n let x = \"\";\n let y = \"\";\n if (placedSide === \"bottom\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${-arrowHeight}px`;\n } else if (placedSide === \"top\") {\n x = isArrowHidden ? noArrowAlign : `${arrowXCenter}px`;\n y = `${rects.floating.height + arrowHeight}px`;\n } else if (placedSide === \"right\") {\n x = `${-arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n } else if (placedSide === \"left\") {\n x = `${rects.floating.width + arrowHeight}px`;\n y = isArrowHidden ? noArrowAlign : `${arrowYCenter}px`;\n }\n return { data: { x, y } };\n }\n});\nfunction getSideAndAlignFromPlacement(placement) {\n const [side, align = \"center\"] = placement.split(\"-\");\n return [side, align];\n}\nvar Root2 = Popper;\nvar Anchor = PopperAnchor;\nvar Content = PopperContent;\nvar Arrow = PopperArrow;\nexport {\n ALIGN_OPTIONS,\n Anchor,\n Arrow,\n Content,\n Popper,\n PopperAnchor,\n PopperArrow,\n PopperContent,\n Root2 as Root,\n SIDE_OPTIONS,\n createPopperScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["POPPER_NAME","createPopperContext","createPopperScope","createContextScope","PopperProvider","usePopperContext","Popper","props","__scopePopper","children","anchor","setAnchor","React","jsx","ANCHOR_NAME","PopperAnchor","forwardedRef","virtualRef","anchorProps","context","ref","composedRefs","useComposedRefs","Primitive","CONTENT_NAME","PopperContentProvider","useContentContext","PopperContent","side","sideOffset","align","alignOffset","arrowPadding","avoidCollisions","collisionBoundary","collisionPaddingProp","sticky","hideWhenDetached","updatePositionStrategy","onPlaced","contentProps","content","setContent","node","arrow","setArrow","arrowSize","useSize","arrowWidth","arrowHeight","desiredPlacement","collisionPadding","boundary","hasExplicitBoundaries","detectOverflowOptions","isNotNull","refs","floatingStyles","placement","isPositioned","middlewareData","useFloating","args","autoUpdate","offset","shift","limitShift","flip","size","elements","rects","availableWidth","availableHeight","anchorWidth","anchorHeight","contentStyle","floatingUIarrow","transformOrigin","hide","placedSide","placedAlign","getSideAndAlignFromPlacement","handlePlaced","useCallbackRef","useLayoutEffect","arrowX","_a","arrowY","_b","cannotCenterArrow","_c","contentZIndex","setContentZIndex","_d","_e","_f","ARROW_NAME","OPPOSITE_SIDE","PopperArrow","arrowProps","contentContext","baseSide","ArrowPrimitive.Root","value","options","data","isArrowHidden","noArrowAlign","arrowXCenter","arrowYCenter","x","y","Root2","Anchor","Content","Arrow"],"mappings":"ksBAyBA,IAAIA,EAAc,SACd,CAACC,EAAqBC,EAAiB,EAAIC,GAAAA,mBAAmBH,CAAW,EACzE,CAACI,GAAgBC,CAAgB,EAAIJ,EAAoBD,CAAW,EACpEM,EAAUC,GAAU,CACtB,KAAM,CA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,CACG,IAACkF,GAAQ1G,EACR2G,GAASlG,EACTmG,GAAUvF,EACVwF,GAAQjB","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),m=require("./index.
|
2
|
-
//# sourceMappingURL=index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),m=require("./index.cjs275.js"),B=require("./index.cjs309.js"),Y=require("./index.cjs276.js"),z=require("./index.cjs277.js"),V=require("./index.cjs281.js"),D=require("./index.cjs279.js"),J=require("./index.cjs308.js"),Q=require("./index.cjs278.js"),W=require("./index.cjs310.js"),f=require("./index.cjs154.js");function X(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const t=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(o,r,t.get?t:{enumerable:!0,get:()=>e[r]})}}return o.default=e,Object.freeze(o)}const c=X(H);var _="rovingFocusGroup.onEntryFocus",Z={bubbles:!1,cancelable:!0},g="RovingFocusGroup",[j,G,ee]=B.createCollection(g),[te,oe]=z.createContextScope(g,[ee]),[re,ne]=te(g),A=c.forwardRef((e,o)=>f.jsxRuntimeExports.jsx(j.Provider,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(j.Slot,{scope:e.__scopeRovingFocusGroup,children:f.jsxRuntimeExports.jsx(se,{...e,ref:o})})}));A.displayName=g;var se=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,orientation:t,loop:R=!1,dir:I,currentTabStopId:x,defaultCurrentTabStopId:F,onCurrentTabStopIdChange:p,onEntryFocus:u,preventScrollOnEntryFocus:E=!1,...S}=e,v=c.useRef(null),b=Y.useComposedRefs(o,v),n=W.useDirection(I),[l=null,w]=Q.useControllableState({prop:x,defaultProp:F,onChange:p}),[i,a]=c.useState(!1),T=J.useCallbackRef(u),M=G(r),C=c.useRef(!1),[K,O]=c.useState(0);return c.useEffect(()=>{const s=v.current;if(s)return s.addEventListener(_,T),()=>s.removeEventListener(_,T)},[T]),f.jsxRuntimeExports.jsx(re,{scope:r,orientation:t,dir:n,loop:R,currentTabStopId:l,onItemFocus:c.useCallback(s=>w(s),[w]),onItemShiftTab:c.useCallback(()=>a(!0),[]),onFocusableItemAdd:c.useCallback(()=>O(s=>s+1),[]),onFocusableItemRemove:c.useCallback(()=>O(s=>s-1),[]),children:f.jsxRuntimeExports.jsx(D.Primitive.div,{tabIndex:i||K===0?-1:0,"data-orientation":t,...S,ref:b,style:{outline:"none",...e.style},onMouseDown:m.composeEventHandlers(e.onMouseDown,()=>{C.current=!0}),onFocus:m.composeEventHandlers(e.onFocus,s=>{const k=!C.current;if(s.target===s.currentTarget&&k&&!i){const P=new CustomEvent(_,Z);if(s.currentTarget.dispatchEvent(P),!P.defaultPrevented){const y=M().filter(d=>d.focusable),L=y.find(d=>d.active),U=y.find(d=>d.id===l),$=[L,U,...y].filter(Boolean).map(d=>d.ref.current);q($,E)}}C.current=!1}),onBlur:m.composeEventHandlers(e.onBlur,()=>a(!1))})})}),N="RovingFocusGroupItem",h=c.forwardRef((e,o)=>{const{__scopeRovingFocusGroup:r,focusable:t=!0,active:R=!1,tabStopId:I,...x}=e,F=V.useId(),p=I||F,u=ne(N,r),E=u.currentTabStopId===p,S=G(r),{onFocusableItemAdd:v,onFocusableItemRemove:b}=u;return c.useEffect(()=>{if(t)return v(),()=>b()},[t,v,b]),f.jsxRuntimeExports.jsx(j.ItemSlot,{scope:r,id:p,focusable:t,active:R,children:f.jsxRuntimeExports.jsx(D.Primitive.span,{tabIndex:E?0:-1,"data-orientation":u.orientation,...x,ref:o,onMouseDown:m.composeEventHandlers(e.onMouseDown,n=>{t?u.onItemFocus(p):n.preventDefault()}),onFocus:m.composeEventHandlers(e.onFocus,()=>u.onItemFocus(p)),onKeyDown:m.composeEventHandlers(e.onKeyDown,n=>{if(n.key==="Tab"&&n.shiftKey){u.onItemShiftTab();return}if(n.target!==n.currentTarget)return;const l=ie(n,u.orientation,u.dir);if(l!==void 0){if(n.metaKey||n.ctrlKey||n.altKey||n.shiftKey)return;n.preventDefault();let i=S().filter(a=>a.focusable).map(a=>a.ref.current);if(l==="last")i.reverse();else if(l==="prev"||l==="next"){l==="prev"&&i.reverse();const a=i.indexOf(n.currentTarget);i=u.loop?ae(i,a+1):i.slice(a+1)}setTimeout(()=>q(i))}})})})});h.displayName=N;var ce={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function ue(e,o){return o!=="rtl"?e:e==="ArrowLeft"?"ArrowRight":e==="ArrowRight"?"ArrowLeft":e}function ie(e,o,r){const t=ue(e.key,r);if(!(o==="vertical"&&["ArrowLeft","ArrowRight"].includes(t))&&!(o==="horizontal"&&["ArrowUp","ArrowDown"].includes(t)))return ce[t]}function q(e,o=!1){const r=document.activeElement;for(const t of e)if(t===r||(t.focus({preventScroll:o}),document.activeElement!==r))return}function ae(e,o){return e.map((r,t)=>e[(o+t)%e.length])}var le=A,de=h;exports.Item=de;exports.Root=le;exports.RovingFocusGroup=A;exports.RovingFocusGroupItem=h;exports.createRovingFocusGroupScope=oe;
|
2
|
+
//# sourceMappingURL=index.cjs312.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs294.js","sources":["../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/roving-focus/src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":"yrBAcA,IAAIA,EAAc,gCACdC,EAAgB,CAAE,QAAS,GAAO,WAAY,EAAM,EACpDC,EAAa,mBACb,CAACC,EAAYC,EAAeC,EAAqB,EAAIC,EAAAA,iBAAiBJ,CAAU,EAChF,CAACK,GAA+BC,EAA2B,EAAIC,EAAkB,mBACnFP,EACA,CAACG,EAAqB,CACxB,EACI,CAACK,GAAqBC,EAAqB,EAAIJ,GAA8BL,CAAU,EACvFU,EAAmBC,EAAM,WAC3B,CAACC,EAAOC,IACiBC,wBAAIb,EAAW,SAAU,CAAE,MAAOW,EAAM,wBAAyB,SAA0BE,wBAAIb,EAAW,KAAM,CAAE,MAAOW,EAAM,wBAAyB,SAA0BE,EAAAA,kBAAAA,IAAIC,GAAsB,CAAE,GAAGH,EAAO,IAAKC,EAAc,CAAC,CAAE,CAAC,CAAE,CAE5Q,EACAH,EAAiB,YAAcV,EAC/B,IAAIe,GAAuBJ,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACnE,KAAM,CACJ,wBAAAG,EACA,YAAAC,EACA,KAAAC,EAAO,GACP,IAAAC,EACA,iBAAkBC,EAClB,wBAAAC,EACA,yBAAAC,EACA,aAAAC,EACA,0BAAAC,EAA4B,GAC5B,GAAGC,CACP,EAAMb,EACEc,EAAMf,EAAM,OAAO,IAAI,EACvBgB,EAAeC,EAA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,CAC5B,UAAW,OACX,QAAS,OACT,WAAY,OACZ,UAAW,OACX,OAAQ,QACR,KAAM,QACN,SAAU,OACV,IAAK,MACP,EACA,SAASC,GAAqBC,EAAKvD,EAAK,CACtC,OAAIA,IAAQ,MAAcuD,EACnBA,IAAQ,YAAc,aAAeA,IAAQ,aAAe,YAAcA,CACnF,CACA,SAASL,GAAetB,EAAO9B,EAAaE,EAAK,CAC/C,MAAMuD,EAAMD,GAAqB1B,EAAM,IAAK5B,CAAG,EAC/C,GAAI,EAAAF,IAAgB,YAAc,CAAC,YAAa,YAAY,EAAE,SAASyD,CAAG,IACtE,EAAAzD,IAAgB,cAAgB,CAAC,UAAW,WAAW,EAAE,SAASyD,CAAG,GACzE,OAAOF,GAAwBE,CAAG,CACpC,CACA,SAASnB,EAAWoB,EAAYC,EAAgB,GAAO,CACrD,MAAMC,EAA6B,SAAS,cAC5C,UAAWC,KAAaH,EAGtB,GAFIG,IAAcD,IAClBC,EAAU,MAAM,CAAE,cAAAF,EAAe,EAC7B,SAAS,gBAAkBC,GAA4B,MAE/D,CACA,SAASN,GAAUQ,EAAOC,EAAY,CACpC,OAAOD,EAAM,IAAI,CAACE,EAAGC,IAAUH,GAAOC,EAAaE,GAASH,EAAM,MAAM,CAAC,CAC3E,CACG,IAACI,GAAOzE,EACP0E,GAAO3B","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.cjs312.js","sources":["../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/roving-focus/src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":"yrBAcA,IAAIA,EAAc,gCACdC,EAAgB,CAAE,QAAS,GAAO,WAAY,EAAM,EACpDC,EAAa,mBACb,CAACC,EAAYC,EAAeC,EAAqB,EAAIC,EAAAA,iBAAiBJ,CAAU,EAChF,CAACK,GAA+BC,EAA2B,EAAIC,EAAkB,mBACnFP,EACA,CAACG,EAAqB,CACxB,EACI,CAACK,GAAqBC,EAAqB,EAAIJ,GAA8BL,CAAU,EACvFU,EAAmBC,EAAM,WAC3B,CAACC,EAAOC,IACiBC,wBAAIb,EAAW,SAAU,CAAE,MAAOW,EAAM,wBAAyB,SAA0BE,wBAAIb,EAAW,KAAM,CAAE,MAAOW,EAAM,wBAAyB,SAA0BE,EAAAA,kBAAAA,IAAIC,GAAsB,CAAE,GAAGH,EAAO,IAAKC,EAAc,CAAC,CAAE,CAAC,CAAE,CAE5Q,EACAH,EAAiB,YAAcV,EAC/B,IAAIe,GAAuBJ,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACnE,KAAM,CACJ,wBAAAG,EACA,YAAAC,EACA,KAAAC,EAAO,GACP,IAAAC,EACA,iBAAkBC,EAClB,wBAAAC,EACA,yBAAAC,EACA,aAAAC,EACA,0BAAAC,EAA4B,GAC5B,GAAGC,CACP,EAAMb,EACEc,EAAMf,EAAM,OAAO,IAAI,EACvBgB,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IgB,GAA0B,CAC5B,UAAW,OACX,QAAS,OACT,WAAY,OACZ,UAAW,OACX,OAAQ,QACR,KAAM,QACN,SAAU,OACV,IAAK,MACP,EACA,SAASC,GAAqBC,EAAKvD,EAAK,CACtC,OAAIA,IAAQ,MAAcuD,EACnBA,IAAQ,YAAc,aAAeA,IAAQ,aAAe,YAAcA,CACnF,CACA,SAASL,GAAetB,EAAO9B,EAAaE,EAAK,CAC/C,MAAMuD,EAAMD,GAAqB1B,EAAM,IAAK5B,CAAG,EAC/C,GAAI,EAAAF,IAAgB,YAAc,CAAC,YAAa,YAAY,EAAE,SAASyD,CAAG,IACtE,EAAAzD,IAAgB,cAAgB,CAAC,UAAW,WAAW,EAAE,SAASyD,CAAG,GACzE,OAAOF,GAAwBE,CAAG,CACpC,CACA,SAASnB,EAAWoB,EAAYC,EAAgB,GAAO,CACrD,MAAMC,EAA6B,SAAS,cAC5C,UAAWC,KAAaH,EAGtB,GAFIG,IAAcD,IAClBC,EAAU,MAAM,CAAE,cAAAF,EAAe,EAC7B,SAAS,gBAAkBC,GAA4B,MAE/D,CACA,SAASN,GAAUQ,EAAOC,EAAY,CACpC,OAAOD,EAAM,IAAI,CAACE,EAAGC,IAAUH,GAAOC,EAAaE,GAASH,EAAM,MAAM,CAAC,CAC3E,CACG,IAACI,GAAOzE,EACP0E,GAAO3B","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react");function a(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const c=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,c.get?c:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const n=a(r);var u=globalThis!=null&&globalThis.document?n.useLayoutEffect:()=>{};exports.useLayoutEffect=u;
|
2
|
-
//# sourceMappingURL=index.
|
2
|
+
//# sourceMappingURL=index.cjs313.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.cjs313.js","sources":["../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/useLayoutEffect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = Boolean(globalThis?.document) ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":"mYAEG,IAACA,EAA2B,6BAAY,SAAYC,EAAM,gBAAkB,IAAM,CACrF","x_google_ignoreList":[0]}
|
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("./index.
|
2
|
-
//# sourceMappingURL=index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react"),a=require("./index.cjs308.js");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const u=s(o);function i(e,t=globalThis==null?void 0:globalThis.document){const n=a.useCallbackRef(e);u.useEffect(()=>{const r=c=>{c.key==="Escape"&&n(c)};return t.addEventListener("keydown",r,{capture:!0}),()=>t.removeEventListener("keydown",r,{capture:!0})},[n,t])}exports.useEscapeKeydown=i;
|
2
|
+
//# sourceMappingURL=index.cjs314.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.
|
1
|
+
{"version":3,"file":"index.cjs314.js","sources":["../node_modules/@radix-ui/react-use-escape-keydown/dist/index.mjs"],"sourcesContent":["// packages/react/use-escape-keydown/src/useEscapeKeydown.tsx\nimport * as React from \"react\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nfunction useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis?.document) {\n const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);\n React.useEffect(() => {\n const handleKeyDown = (event) => {\n if (event.key === \"Escape\") {\n onEscapeKeyDown(event);\n }\n };\n ownerDocument.addEventListener(\"keydown\", handleKeyDown, { capture: true });\n return () => ownerDocument.removeEventListener(\"keydown\", handleKeyDown, { capture: true });\n }, [onEscapeKeyDown, ownerDocument]);\n}\nexport {\n useEscapeKeydown\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useEscapeKeydown","onEscapeKeyDownProp","ownerDocument","onEscapeKeyDown","useCallbackRef","React","handleKeyDown","event"],"mappings":"kaAGA,SAASA,EAAiBC,EAAqBC,EAAgB,mCAAY,SAAU,CACnF,MAAMC,EAAkBC,EAAc,eAACH,CAAmB,EAC1DI,EAAM,UAAU,IAAM,CACpB,MAAMC,EAAiBC,GAAU,CAC3BA,EAAM,MAAQ,UAChBJ,EAAgBI,CAAK,CAExB,EACD,OAAAL,EAAc,iBAAiB,UAAWI,EAAe,CAAE,QAAS,GAAM,EACnE,IAAMJ,EAAc,oBAAoB,UAAWI,EAAe,CAAE,QAAS,GAAM,CAC9F,EAAK,CAACH,EAAiBD,CAAa,CAAC,CACrC","x_google_ignoreList":[0]}
|
package/dist/index.cjs315.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r="
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs317.js"),j=require("react"),H=require("react-dom");function U(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const o=U(j),I=U(H);var R=typeof document<"u"?j.useLayoutEffect:j.useEffect;function P(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e=="function"&&e.toString()===t.toString())return!0;let n,r,s;if(e&&t&&typeof e=="object"){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!P(e[r],t[r]))return!1;return!0}if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,s[r]))return!1;for(r=n;r--!==0;){const g=s[r];if(!(g==="_owner"&&e.$$typeof)&&!P(e[g],t[g]))return!1}return!0}return e!==e&&t!==t}function $(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function L(e,t){const n=$(e);return Math.round(t*n)/n}function D(e){const t=o.useRef(e);return R(()=>{t.current=e}),t}function J(e){e===void 0&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:s,elements:{reference:g,floating:A}={},transform:k=!0,whileElementsMounted:E,open:S}=e,[u,b]=o.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[M,T]=o.useState(r);P(M,r)||T(r);const[B,N]=o.useState(null),[V,W]=o.useState(null),F=o.useCallback(f=>{f!==d.current&&(d.current=f,N(f))},[]),q=o.useCallback(f=>{f!==m.current&&(m.current=f,W(f))},[]),c=g||B,l=A||V,d=o.useRef(null),m=o.useRef(null),w=o.useRef(u),G=E!=null,O=D(E),_=D(s),v=D(S),y=o.useCallback(()=>{if(!d.current||!m.current)return;const f={placement:t,strategy:n,middleware:M};_.current&&(f.platform=_.current),i.computePosition(d.current,m.current,f).then(h=>{const p={...h,isPositioned:v.current!==!1};x.current&&!P(w.current,p)&&(w.current=p,I.flushSync(()=>{b(p)}))})},[M,t,n,_,v]);R(()=>{S===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,b(f=>({...f,isPositioned:!1})))},[S]);const x=o.useRef(!1);R(()=>(x.current=!0,()=>{x.current=!1}),[]),R(()=>{if(c&&(d.current=c),l&&(m.current=l),c&&l){if(O.current)return O.current(c,l,y);y()}},[c,l,y,O,G]);const z=o.useMemo(()=>({reference:d,floating:m,setReference:F,setFloating:q}),[F,q]),a=o.useMemo(()=>({reference:c,floating:l}),[c,l]),C=o.useMemo(()=>{const f={position:n,left:0,top:0};if(!a.floating)return f;const h=L(a.floating,u.x),p=L(a.floating,u.y);return k?{...f,transform:"translate("+h+"px, "+p+"px)",...$(a.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:h,top:p}},[n,k,a.floating,u.x,u.y]);return o.useMemo(()=>({...u,update:y,refs:z,elements:a,floatingStyles:C}),[u,y,z,a,C])}const K=e=>{function t(n){return{}.hasOwnProperty.call(n,"current")}return{name:"arrow",options:e,fn(n){const{element:r,padding:s}=typeof e=="function"?e(n):e;return r&&t(r)?r.current!=null?i.arrow({element:r.current,padding:s}).fn(n):{}:r?i.arrow({element:r,padding:s}).fn(n):{}}}},Q=(e,t)=>({...i.offset(e),options:[e,t]}),X=(e,t)=>({...i.shift(e),options:[e,t]}),Y=(e,t)=>({...i.limitShift(e),options:[e,t]}),Z=(e,t)=>({...i.flip(e),options:[e,t]}),ee=(e,t)=>({...i.size(e),options:[e,t]}),te=(e,t)=>({...i.hide(e),options:[e,t]}),ne=(e,t)=>({...K(e),options:[e,t]});exports.autoUpdate=i.autoUpdate;exports.computePosition=i.computePosition;exports.platform=i.platform;exports.arrow=ne;exports.flip=Z;exports.hide=te;exports.limitShift=Y;exports.offset=Q;exports.shift=X;exports.size=ee;exports.useFloating=J;
|
2
2
|
//# sourceMappingURL=index.cjs315.js.map
|
package/dist/index.cjs315.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs315.js","sources":["../node_modules/react-remove-scroll-bar/dist/es2015/constants.js"],"sourcesContent":["export var zeroRightClassName = 'right-scroll-bar-position';\nexport var fullWidthClassName = 'width-before-scroll-bar';\nexport var noScrollbarsClassName = 'with-scroll-bars-hidden';\n/**\n * Name of a CSS variable containing the amount of \"hidden\" scrollbar\n * ! might be undefined ! use will fallback!\n */\nexport var removedBarSizeVariable = '--removed-body-scroll-bar-size';\n"],"names":["zeroRightClassName","fullWidthClassName","noScrollbarsClassName","removedBarSizeVariable"],"mappings":"gFAAU,IAACA,EAAqB,4BACrBC,EAAqB,0BACrBC,EAAwB,0BAKxBC,EAAyB","x_google_ignoreList":[0]}
|
1
|
+
{"version":3,"file":"index.cjs315.js","sources":["../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, offset as offset$1, shift as shift$1, limitShift as limitShift$1, flip as flip$1, size as size$1, autoPlacement as autoPlacement$1, hide as hide$1, inline as inline$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect, useEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar index = typeof document !== 'undefined' ? useLayoutEffect : useEffect;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => ({\n ...offset$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => ({\n ...shift$1(options),\n options: [options, deps]\n});\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => ({\n ...limitShift$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => ({\n ...flip$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => ({\n ...size$1(options),\n options: [options, deps]\n});\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => ({\n ...autoPlacement$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => ({\n ...hide$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => ({\n ...inline$1(options),\n options: [options, deps]\n});\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => ({\n ...arrow$1(options),\n options: [options, deps]\n});\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["index","useLayoutEffect","useEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","arrow$1","isRef","state","padding","arrow$2","offset","deps","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1","arrow"],"mappings":"gcAMA,IAAIA,EAAQ,OAAO,SAAa,IAAcC,EAAe,gBAAGC,EAAS,UAIzE,SAASC,EAAUC,EAAGC,EAAG,CACvB,GAAID,IAAMC,EACR,MAAO,GAET,GAAI,OAAOD,GAAM,OAAOC,EACtB,MAAO,GAET,GAAI,OAAOD,GAAM,YAAcA,EAAE,aAAeC,EAAE,WAChD,MAAO,GAET,IAAIC,EACAC,EACAC,EACJ,GAAIJ,GAAKC,GAAK,OAAOD,GAAM,SAAU,CACnC,GAAI,MAAM,QAAQA,CAAC,EAAG,CAEpB,GADAE,EAAS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M,EAAO,CAACtD,EAASgD,KAAU,CAC/B,GAAGO,EAAAA,KAAOvD,CAAO,EACjB,QAAS,CAACA,EAASgD,CAAI,CACzB,GAQMQ,GAAO,CAACxD,EAASgD,KAAU,CAC/B,GAAGS,EAAAA,KAAOzD,CAAO,EACjB,QAAS,CAACA,EAASgD,CAAI,CACzB,GAkBMU,GAAO,CAAC1D,EAASgD,KAAU,CAC/B,GAAGW,EAAAA,KAAO3D,CAAO,EACjB,QAAS,CAACA,EAASgD,CAAI,CACzB,GAkBMY,GAAQ,CAAC5D,EAASgD,KAAU,CAChC,GAAGN,EAAQ1C,CAAO,EAClB,QAAS,CAACA,EAASgD,CAAI,CACzB","x_google_ignoreList":[0]}
|
package/dist/index.cjs316.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react"),u=require("./index.cjs279.js"),i=require("./index.cjs154.js");function l(e){const r=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(r,t,o.get?o:{enumerable:!0,get:()=>e[t]})}}return r.default=e,Object.freeze(r)}const d=l(c);var f="Arrow",n=d.forwardRef((e,r)=>{const{children:t,width:o=10,height:s=5,...a}=e;return i.jsxRuntimeExports.jsx(u.Primitive.svg,{...a,ref:r,width:o,height:s,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?t:i.jsxRuntimeExports.jsx("polygon",{points:"0,0 30,0 15,10"})})});n.displayName=f;var p=n;exports.Arrow=n;exports.Root=p;
|
2
2
|
//# sourceMappingURL=index.cjs316.js.map
|
package/dist/index.cjs316.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs316.js","sources":["../node_modules/react-
|
1
|
+
{"version":3,"file":"index.cjs316.js","sources":["../node_modules/@radix-ui/react-arrow/dist/index.mjs"],"sourcesContent":["// packages/react/arrow/src/arrow.tsx\nimport * as React from \"react\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { jsx } from \"react/jsx-runtime\";\nvar NAME = \"Arrow\";\nvar Arrow = React.forwardRef((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return /* @__PURE__ */ jsx(\n Primitive.svg,\n {\n ...arrowProps,\n ref: forwardedRef,\n width,\n height,\n viewBox: \"0 0 30 10\",\n preserveAspectRatio: \"none\",\n children: props.asChild ? children : /* @__PURE__ */ jsx(\"polygon\", { points: \"0,0 30,0 15,10\" })\n }\n );\n});\nArrow.displayName = NAME;\nvar Root = Arrow;\nexport {\n Arrow,\n Root\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["NAME","Arrow","React","props","forwardedRef","children","width","height","arrowProps","jsx","Primitive","Root"],"mappings":"icAIA,IAAIA,EAAO,QACPC,EAAQC,EAAM,WAAW,CAACC,EAAOC,IAAiB,CACpD,KAAM,CAAE,SAAAC,EAAU,MAAAC,EAAQ,GAAI,OAAAC,EAAS,EAAG,GAAGC,CAAU,EAAKL,EAC5D,OAAuBM,EAAG,kBAAA,IACxBC,EAAAA,UAAU,IACV,CACE,GAAGF,EACH,IAAKJ,EACL,MAAAE,EACA,OAAAC,EACA,QAAS,YACT,oBAAqB,OACrB,SAAUJ,EAAM,QAAUE,EAA2BI,EAAG,kBAAA,IAAC,UAAW,CAAE,OAAQ,gBAAkB,CAAA,CACtG,CACG,CACH,CAAC,EACDR,EAAM,YAAcD,EACjB,IAACW,EAAOV","x_google_ignoreList":[0]}
|