@anoki/fse-ui 1.0.377 → 1.0.379
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 +1 -1
- package/dist/index.cjs10.js.map +1 -1
- package/dist/index.cjs100.js +1 -1
- package/dist/index.cjs100.js.map +1 -1
- package/dist/index.cjs101.js +1 -1
- package/dist/index.cjs101.js.map +1 -1
- package/dist/index.cjs102.js +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 +1 -1
- package/dist/index.cjs105.js.map +1 -1
- package/dist/index.cjs106.js +1 -1
- package/dist/index.cjs106.js.map +1 -1
- package/dist/index.cjs107.js +1 -1
- package/dist/index.cjs107.js.map +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs108.js.map +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs109.js.map +1 -1
- package/dist/index.cjs11.js.map +1 -1
- package/dist/index.cjs110.js +1 -1
- package/dist/index.cjs110.js.map +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs111.js.map +1 -1
- package/dist/index.cjs112.js +1 -1
- package/dist/index.cjs112.js.map +1 -1
- package/dist/index.cjs113.js +1 -1
- package/dist/index.cjs113.js.map +1 -1
- package/dist/index.cjs114.js +1 -1
- package/dist/index.cjs114.js.map +1 -1
- package/dist/index.cjs115.js +1 -1
- package/dist/index.cjs115.js.map +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs116.js.map +1 -1
- package/dist/index.cjs117.js.map +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs118.js.map +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs119.js.map +1 -1
- package/dist/index.cjs12.js.map +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs120.js.map +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs121.js.map +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs122.js.map +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs123.js.map +1 -1
- package/dist/index.cjs124.js +1 -1
- package/dist/index.cjs124.js.map +1 -1
- package/dist/index.cjs125.js +1 -1
- package/dist/index.cjs125.js.map +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs126.js.map +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs130.js +1 -1
- package/dist/index.cjs130.js.map +1 -1
- package/dist/index.cjs139.js +1 -1
- package/dist/index.cjs139.js.map +1 -1
- package/dist/index.cjs14.js.map +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs143.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.cjs154.js +2 -0
- package/dist/index.cjs154.js.map +1 -0
- package/dist/index.cjs156.js.map +1 -1
- package/dist/index.cjs159.js.map +1 -1
- package/dist/index.cjs16.js.map +1 -1
- package/dist/index.cjs163.js +1 -1
- package/dist/index.cjs163.js.map +1 -1
- package/dist/index.cjs166.js.map +1 -1
- package/dist/index.cjs169.js +1 -1
- package/dist/index.cjs17.js.map +1 -1
- package/dist/index.cjs172.js +1 -1
- package/dist/index.cjs172.js.map +1 -1
- package/dist/index.cjs173.js.map +1 -1
- package/dist/index.cjs174.js.map +1 -1
- package/dist/index.cjs18.js.map +1 -1
- package/dist/index.cjs180.js +1 -1
- package/dist/index.cjs181.js.map +1 -1
- package/dist/index.cjs184.js.map +1 -1
- package/dist/index.cjs189.js +1 -1
- package/dist/index.cjs189.js.map +1 -1
- package/dist/index.cjs19.js.map +1 -1
- package/dist/index.cjs191.js +1 -1
- package/dist/index.cjs192.js.map +1 -1
- package/dist/index.cjs193.js.map +1 -1
- package/dist/index.cjs194.js.map +1 -1
- package/dist/index.cjs195.js.map +1 -1
- package/dist/index.cjs197.js.map +1 -1
- package/dist/index.cjs198.js +1 -1
- package/dist/index.cjs198.js.map +1 -1
- package/dist/index.cjs199.js +1 -1
- package/dist/index.cjs199.js.map +1 -1
- package/dist/index.cjs20.js.map +1 -1
- package/dist/index.cjs202.js.map +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs203.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.cjs210.js +1 -1
- package/dist/index.cjs210.js.map +1 -1
- package/dist/index.cjs212.js.map +1 -1
- package/dist/index.cjs213.js.map +1 -1
- package/dist/index.cjs214.js.map +1 -1
- package/dist/index.cjs216.js +1 -1
- package/dist/index.cjs216.js.map +1 -1
- package/dist/index.cjs217.js +1 -1
- package/dist/index.cjs217.js.map +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs22.js.map +1 -1
- package/dist/index.cjs23.js.map +1 -1
- package/dist/index.cjs24.js.map +1 -1
- package/dist/index.cjs246.js +1 -1
- package/dist/index.cjs247.js +3 -12
- package/dist/index.cjs247.js.map +1 -1
- package/dist/index.cjs25.js +1 -1
- package/dist/index.cjs25.js.map +1 -1
- package/dist/index.cjs251.js +2 -0
- package/dist/index.cjs251.js.map +1 -0
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs252.js.map +1 -1
- package/dist/index.cjs253.js +1 -1
- package/dist/index.cjs253.js.map +1 -1
- package/dist/index.cjs254.js +1 -1
- package/dist/index.cjs254.js.map +1 -1
- package/dist/index.cjs255.js +1 -1
- package/dist/index.cjs255.js.map +1 -1
- package/dist/index.cjs256.js +1 -1
- package/dist/index.cjs256.js.map +1 -1
- package/dist/index.cjs257.js +1 -1
- package/dist/index.cjs257.js.map +1 -1
- package/dist/index.cjs259.js.map +1 -1
- package/dist/index.cjs26.js.map +1 -1
- package/dist/index.cjs263.js +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs268.js +2 -0
- package/dist/index.cjs268.js.map +1 -0
- package/dist/{index.cjs276.js → index.cjs269.js} +2 -2
- package/dist/{index.cjs276.js.map → index.cjs269.js.map} +1 -1
- package/dist/index.cjs27.js.map +1 -1
- package/dist/index.cjs270.js +1 -1
- package/dist/index.cjs270.js.map +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs271.js.map +1 -1
- package/dist/index.cjs272.js +1 -1
- package/dist/index.cjs272.js.map +1 -1
- package/dist/index.cjs273.js +1 -1
- package/dist/index.cjs273.js.map +1 -1
- package/dist/index.cjs274.js +1 -1
- package/dist/index.cjs274.js.map +1 -1
- package/dist/index.cjs28.js.map +1 -1
- package/dist/{index.cjs265.js → index.cjs286.js} +1 -1
- package/dist/index.cjs286.js.map +1 -0
- package/dist/{index.cjs266.js → index.cjs287.js} +1 -1
- package/dist/index.cjs287.js.map +1 -0
- package/dist/index.cjs288.js +2 -0
- package/dist/index.cjs288.js.map +1 -0
- package/dist/index.cjs289.js +2 -0
- package/dist/index.cjs289.js.map +1 -0
- package/dist/index.cjs29.js.map +1 -1
- package/dist/index.cjs290.js +2 -0
- package/dist/index.cjs290.js.map +1 -0
- package/dist/{index.cjs277.js → index.cjs291.js} +2 -2
- package/dist/{index.cjs277.js.map → index.cjs291.js.map} +1 -1
- package/dist/{index.cjs279.js → index.cjs292.js} +2 -2
- package/dist/{index.cjs279.js.map → index.cjs292.js.map} +1 -1
- package/dist/{index.cjs282.js → index.cjs293.js} +1 -1
- package/dist/{index.cjs282.js.map → index.cjs293.js.map} +1 -1
- package/dist/index.cjs294.js +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs30.js.map +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs304.js +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs306.js.map +1 -1
- package/dist/index.cjs307.js +38 -1
- package/dist/index.cjs307.js.map +1 -1
- package/dist/index.cjs308.js +1 -1
- package/dist/index.cjs308.js.map +1 -1
- package/dist/index.cjs309.js +1 -1
- package/dist/index.cjs309.js.map +1 -1
- package/dist/index.cjs31.js.map +1 -1
- package/dist/index.cjs310.js +1 -38
- package/dist/index.cjs310.js.map +1 -1
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs311.js.map +1 -1
- package/dist/index.cjs312.js +1 -1
- package/dist/index.cjs312.js.map +1 -1
- package/dist/index.cjs313.js +1 -1
- package/dist/index.cjs313.js.map +1 -1
- package/dist/index.cjs32.js.map +1 -1
- package/dist/index.cjs33.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 +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 +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 +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.cjs77.js.map +1 -1
- package/dist/index.cjs78.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs8.js.map +1 -1
- package/dist/index.cjs80.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs81.js.map +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs82.js.map +1 -1
- package/dist/index.cjs83.js +1 -1
- package/dist/index.cjs83.js.map +1 -1
- package/dist/index.cjs84.js +1 -1
- package/dist/index.cjs84.js.map +1 -1
- package/dist/index.cjs85.js +1 -1
- package/dist/index.cjs85.js.map +1 -1
- package/dist/index.cjs86.js +1 -1
- package/dist/index.cjs86.js.map +1 -1
- package/dist/index.cjs87.js +1 -1
- package/dist/index.cjs87.js.map +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs88.js.map +1 -1
- package/dist/index.cjs89.js +1 -1
- package/dist/index.cjs89.js.map +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs9.js.map +1 -1
- package/dist/index.cjs90.js +1 -1
- package/dist/index.cjs90.js.map +1 -1
- package/dist/index.cjs91.js +1 -1
- package/dist/index.cjs91.js.map +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs92.js.map +1 -1
- package/dist/index.cjs93.js +1 -1
- package/dist/index.cjs93.js.map +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs94.js.map +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.cjs95.js.map +1 -1
- package/dist/index.cjs96.js +1 -1
- package/dist/index.cjs96.js.map +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.cjs97.js.map +1 -1
- package/dist/index.cjs98.js +1 -1
- package/dist/index.cjs98.js.map +1 -1
- package/dist/index.cjs99.js +1 -1
- package/dist/index.cjs99.js.map +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/index.es10.js +2 -2
- package/dist/index.es10.js.map +1 -1
- package/dist/index.es100.js +1 -1
- package/dist/index.es100.js.map +1 -1
- package/dist/index.es101.js +1 -1
- package/dist/index.es101.js.map +1 -1
- package/dist/index.es102.js +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 +1 -1
- package/dist/index.es105.js.map +1 -1
- package/dist/index.es106.js +1 -1
- package/dist/index.es106.js.map +1 -1
- package/dist/index.es107.js +1 -1
- package/dist/index.es107.js.map +1 -1
- package/dist/index.es108.js +1 -1
- package/dist/index.es108.js.map +1 -1
- package/dist/index.es109.js +1 -1
- package/dist/index.es109.js.map +1 -1
- package/dist/index.es11.js.map +1 -1
- package/dist/index.es110.js +1 -1
- package/dist/index.es110.js.map +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es111.js.map +1 -1
- package/dist/index.es112.js +1 -1
- package/dist/index.es112.js.map +1 -1
- package/dist/index.es113.js +1 -1
- package/dist/index.es113.js.map +1 -1
- package/dist/index.es114.js +1 -1
- package/dist/index.es114.js.map +1 -1
- package/dist/index.es115.js +1 -1
- package/dist/index.es115.js.map +1 -1
- package/dist/index.es116.js +1 -1
- package/dist/index.es116.js.map +1 -1
- package/dist/index.es117.js.map +1 -1
- package/dist/index.es118.js +1 -1
- package/dist/index.es118.js.map +1 -1
- package/dist/index.es119.js +1 -1
- package/dist/index.es119.js.map +1 -1
- package/dist/index.es12.js.map +1 -1
- package/dist/index.es120.js +1 -1
- package/dist/index.es120.js.map +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es121.js.map +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es122.js.map +1 -1
- package/dist/index.es123.js +1 -1
- package/dist/index.es123.js.map +1 -1
- package/dist/index.es124.js +1 -1
- package/dist/index.es124.js.map +1 -1
- package/dist/index.es125.js +76 -71
- package/dist/index.es125.js.map +1 -1
- package/dist/index.es126.js +11 -1
- package/dist/index.es126.js.map +1 -1
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es130.js +63 -58
- package/dist/index.es130.js.map +1 -1
- package/dist/index.es139.js +29 -26
- package/dist/index.es139.js.map +1 -1
- package/dist/index.es14.js.map +1 -1
- package/dist/index.es143.js +18 -15
- package/dist/index.es143.js.map +1 -1
- package/dist/index.es15.js.map +1 -1
- package/dist/index.es153.js +2 -27
- package/dist/index.es153.js.map +1 -1
- package/dist/index.es154.js +30 -0
- package/dist/index.es154.js.map +1 -0
- package/dist/index.es156.js.map +1 -1
- package/dist/index.es159.js.map +1 -1
- package/dist/index.es16.js.map +1 -1
- package/dist/index.es163.js +1 -1
- package/dist/index.es163.js.map +1 -1
- package/dist/index.es166.js.map +1 -1
- package/dist/index.es169.js +7 -7
- package/dist/index.es17.js.map +1 -1
- package/dist/index.es172.js +1 -1
- package/dist/index.es172.js.map +1 -1
- package/dist/index.es173.js.map +1 -1
- package/dist/index.es174.js.map +1 -1
- package/dist/index.es18.js.map +1 -1
- package/dist/index.es180.js +5 -5
- package/dist/index.es181.js.map +1 -1
- package/dist/index.es184.js.map +1 -1
- package/dist/index.es189.js +1 -1
- package/dist/index.es189.js.map +1 -1
- package/dist/index.es19.js.map +1 -1
- package/dist/index.es191.js +13 -13
- package/dist/index.es192.js.map +1 -1
- package/dist/index.es193.js.map +1 -1
- package/dist/index.es194.js.map +1 -1
- package/dist/index.es195.js.map +1 -1
- package/dist/index.es197.js.map +1 -1
- package/dist/index.es198.js +1 -1
- package/dist/index.es198.js.map +1 -1
- package/dist/index.es199.js +1 -1
- package/dist/index.es199.js.map +1 -1
- package/dist/index.es20.js.map +1 -1
- package/dist/index.es202.js.map +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es203.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.es210.js +1 -1
- package/dist/index.es210.js.map +1 -1
- package/dist/index.es212.js.map +1 -1
- package/dist/index.es213.js.map +1 -1
- package/dist/index.es214.js.map +1 -1
- package/dist/index.es216.js +1 -1
- package/dist/index.es216.js.map +1 -1
- package/dist/index.es217.js +1 -1
- package/dist/index.es217.js.map +1 -1
- package/dist/index.es218.js +5 -5
- package/dist/index.es22.js +1 -1
- package/dist/index.es22.js.map +1 -1
- package/dist/index.es23.js.map +1 -1
- package/dist/index.es24.js.map +1 -1
- package/dist/index.es246.js +1 -1
- package/dist/index.es247.js +146 -307
- package/dist/index.es247.js.map +1 -1
- package/dist/index.es25.js +1 -1
- package/dist/index.es25.js.map +1 -1
- package/dist/index.es251.js +10 -0
- package/dist/index.es251.js.map +1 -0
- package/dist/index.es252.js +25 -5
- package/dist/index.es252.js.map +1 -1
- package/dist/index.es253.js +64 -23
- package/dist/index.es253.js.map +1 -1
- package/dist/index.es254.js +27 -65
- package/dist/index.es254.js.map +1 -1
- package/dist/index.es255.js +32 -29
- package/dist/index.es255.js.map +1 -1
- package/dist/index.es256.js +620 -31
- package/dist/index.es256.js.map +1 -1
- package/dist/index.es257.js +10 -621
- package/dist/index.es257.js.map +1 -1
- package/dist/index.es259.js.map +1 -1
- package/dist/index.es26.js.map +1 -1
- package/dist/index.es263.js +1 -1
- package/dist/index.es264.js +2 -2
- package/dist/index.es268.js +128 -0
- package/dist/index.es268.js.map +1 -0
- package/dist/{index.es276.js → index.es269.js} +4 -4
- package/dist/{index.es276.js.map → index.es269.js.map} +1 -1
- package/dist/index.es27.js.map +1 -1
- package/dist/index.es270.js +13 -10
- package/dist/index.es270.js.map +1 -1
- package/dist/index.es271.js +13 -40
- package/dist/index.es271.js.map +1 -1
- package/dist/index.es272.js +9 -46
- package/dist/index.es272.js.map +1 -1
- package/dist/index.es273.js +50 -8
- package/dist/index.es273.js.map +1 -1
- package/dist/index.es274.js +37 -120
- package/dist/index.es274.js.map +1 -1
- package/dist/index.es28.js.map +1 -1
- package/dist/{index.es265.js → index.es286.js} +1 -1
- package/dist/index.es286.js.map +1 -0
- package/dist/{index.es266.js → index.es287.js} +1 -1
- package/dist/index.es287.js.map +1 -0
- package/dist/index.es288.js +14 -0
- package/dist/index.es288.js.map +1 -0
- package/dist/index.es289.js +49 -0
- package/dist/index.es289.js.map +1 -0
- package/dist/index.es29.js.map +1 -1
- package/dist/index.es290.js +11 -0
- package/dist/index.es290.js.map +1 -0
- package/dist/{index.es277.js → index.es291.js} +6 -6
- package/dist/{index.es277.js.map → index.es291.js.map} +1 -1
- package/dist/{index.es279.js → index.es292.js} +10 -10
- package/dist/{index.es279.js.map → index.es292.js.map} +1 -1
- package/dist/{index.es282.js → index.es293.js} +1 -1
- package/dist/{index.es282.js.map → index.es293.js.map} +1 -1
- package/dist/index.es294.js +1 -1
- package/dist/index.es296.js +1 -1
- package/dist/index.es297.js +3 -3
- package/dist/index.es30.js.map +1 -1
- package/dist/index.es302.js +1 -1
- package/dist/index.es304.js +4 -4
- package/dist/index.es306.js +54 -512
- package/dist/index.es306.js.map +1 -1
- package/dist/index.es307.js +68 -126
- package/dist/index.es307.js.map +1 -1
- package/dist/index.es308.js +8 -128
- package/dist/index.es308.js.map +1 -1
- package/dist/index.es309.js +13 -64
- package/dist/index.es309.js.map +1 -1
- package/dist/index.es31.js.map +1 -1
- package/dist/index.es310.js +61 -68
- package/dist/index.es310.js.map +1 -1
- package/dist/index.es311.js +521 -7
- package/dist/index.es311.js.map +1 -1
- package/dist/index.es312.js +126 -13
- package/dist/index.es312.js.map +1 -1
- package/dist/index.es313.js +127 -60
- package/dist/index.es313.js.map +1 -1
- package/dist/index.es32.js.map +1 -1
- package/dist/index.es33.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 +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 +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 +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.es77.js.map +1 -1
- package/dist/index.es78.js.map +1 -1
- package/dist/index.es8.js +1 -1
- package/dist/index.es8.js.map +1 -1
- package/dist/index.es80.js.map +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es81.js.map +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es82.js.map +1 -1
- package/dist/index.es83.js +1 -1
- package/dist/index.es83.js.map +1 -1
- package/dist/index.es84.js +1 -1
- package/dist/index.es84.js.map +1 -1
- package/dist/index.es85.js +1 -1
- package/dist/index.es85.js.map +1 -1
- package/dist/index.es86.js +1 -1
- package/dist/index.es86.js.map +1 -1
- package/dist/index.es87.js +1 -1
- package/dist/index.es87.js.map +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es88.js.map +1 -1
- package/dist/index.es89.js +1 -1
- package/dist/index.es89.js.map +1 -1
- package/dist/index.es9.js +2 -2
- package/dist/index.es9.js.map +1 -1
- package/dist/index.es90.js +1 -1
- package/dist/index.es90.js.map +1 -1
- package/dist/index.es91.js +1 -1
- package/dist/index.es91.js.map +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es92.js.map +1 -1
- package/dist/index.es93.js +1 -1
- package/dist/index.es93.js.map +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es94.js.map +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/index.es95.js.map +1 -1
- package/dist/index.es96.js +1 -1
- package/dist/index.es96.js.map +1 -1
- package/dist/index.es97.js +1 -1
- package/dist/index.es97.js.map +1 -1
- package/dist/index.es98.js +1 -1
- package/dist/index.es98.js.map +1 -1
- package/dist/index.es99.js +1 -1
- package/dist/index.es99.js.map +1 -1
- package/dist/sections/HomeServices/HomeServices.css +1 -1
- package/dist/sections/Services/Services.css +1 -1
- package/package.json +107 -107
- package/readme.md +42 -42
- package/dist/index.cjs155.js +0 -2
- package/dist/index.cjs155.js.map +0 -1
- package/dist/index.cjs258.js +0 -2
- package/dist/index.cjs258.js.map +0 -1
- package/dist/index.cjs265.js.map +0 -1
- package/dist/index.cjs266.js.map +0 -1
- package/dist/index.cjs275.js +0 -2
- package/dist/index.cjs275.js.map +0 -1
- package/dist/index.cjs278.js +0 -2
- package/dist/index.cjs278.js.map +0 -1
- package/dist/index.cjs280.js +0 -2
- package/dist/index.cjs280.js.map +0 -1
- package/dist/index.cjs281.js +0 -2
- package/dist/index.cjs281.js.map +0 -1
- package/dist/index.es155.js +0 -5
- package/dist/index.es155.js.map +0 -1
- package/dist/index.es258.js +0 -14
- package/dist/index.es258.js.map +0 -1
- package/dist/index.es265.js.map +0 -1
- package/dist/index.es266.js.map +0 -1
- package/dist/index.es275.js +0 -18
- package/dist/index.es275.js.map +0 -1
- package/dist/index.es278.js +0 -17
- package/dist/index.es278.js.map +0 -1
- package/dist/index.es280.js +0 -53
- package/dist/index.es280.js.map +0 -1
- package/dist/index.es281.js +0 -12
- package/dist/index.es281.js.map +0 -1
- /package/dist/components/ui/{ConsentModal/ConsentModalContent/ConsentModalContent.css → DoctorConfirmModal/DoctorConfirmModalContent/DoctorConfirmModalContent.css} +0 -0
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorConfirmModal/DoctorConfirmModalFooter/DoctorConfirmModalFooter.css} +0 -0
package/dist/index.cjs65.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs65.js","sources":["../src/components/ui/Table/index.tsx"],"sourcesContent":["import * as React from \"react\";\nimport clsx from \"clsx\";\nimport \"./Table.scss\";\nimport { Download, Info, TriangleDown, TriangleUp } from \"@/icons\";\nimport { ActionIconText } from \"../ActionIconText\";\nimport { CommonIconsType } from \"@/types/icons\";\nimport { InfoPopupProps } from \"../InfoPopup\";\n\n// per le celle che vanno renderizzate su due righe\nexport interface DoubleLineData {\n firstLine: string;\n secondLine: string;\n}\n\n//per le celle che renderizzano un link o un bottone\nexport interface ActionData {\n label: string;\n ariaLabel: string;\n type: \"link\" | \"button\";\n link?: string;\n action?: () => void;\n}\n\nexport interface ColumnConfig {\n label: string;\n ariaLabel: string;\n sortable: boolean;\n action?: () => void;\n iconAction?: () => void;\n popupInfo?: InfoPopupProps;\n icon?: React.ReactNode | CommonIconsType;\n iconPosition?: \"left\" | \"right\";\n key?: string;\n type?: \"string\" | \"date\" | \"number\";\n}\n\nexport interface TableRowData {\n [key: string]: string | DoubleLineData | ActionData;\n}\n\nexport interface TableHeaderProps\n extends React.HTMLAttributes<HTMLTableSectionElement> {\n className?: string;\n children?: React.ReactNode;\n}\n\nexport interface TableBodyProps\n extends React.HTMLAttributes<HTMLTableSectionElement> {\n className?: string;\n children?: React.ReactNode;\n}\n\nexport interface TableRowProps\n extends React.HTMLAttributes<HTMLTableRowElement> {\n className?: string;\n children?: React.ReactNode;\n}\n\nexport interface TableHeadProps\n extends React.ThHTMLAttributes<HTMLTableCellElement> {\n className?: string;\n children?: React.ReactNode;\n}\n\nexport interface TableCellBaseProps\n extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, \"content\"> {\n type?: \"double-line\" | \"action\";\n}\n\nexport interface TableCellProps extends TableCellBaseProps {\n content: string | DoubleLineData | ActionData;\n}\n\nexport interface PaginationProps {\n currentPage: number;\n totalResults: number;\n resultsPerPage: number;\n setCurrentPage: (page: number) => void;\n onPageChange?: (page: number) => void;\n className?: string;\n}\n\nexport interface TableProps\n extends React.TableHTMLAttributes<HTMLTableElement> {\n className?: string;\n columns: ColumnConfig[];\n data: TableRowData[];\n pagination?: boolean;\n initialCurrentPage?: number;\n resultsPerPage?: number;\n defaultSortDirection?: \"asc\" | \"desc\";\n}\n\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\n (\n {\n className,\n columns,\n data,\n pagination,\n initialCurrentPage = 1,\n resultsPerPage = 10,\n defaultSortDirection = \"desc\",\n ...props\n },\n ref,\n ) => {\n const [sortConfig, setSortConfig] = React.useState<{\n key: string;\n direction: \"asc\" | \"desc\";\n }>({\n key: columns[0].key || columns[0].label,\n direction: defaultSortDirection,\n });\n const [currentPage, setCurrentPage] = React.useState(initialCurrentPage);\n\n const sortedData = React.useMemo(() => {\n return [...data].sort((a, b) => {\n const aValue = a[sortConfig.key];\n const bValue = b[sortConfig.key];\n const column = columns.find(\n (col) => (col.key || col.label) === sortConfig.key,\n );\n\n if (typeof aValue === \"string\" && typeof bValue === \"string\") {\n if (column?.type === \"date\") {\n // Convert Italian date format (DD/MM/YYYY - HH:mm) to Date object\n const parseDate = (dateStr: string) => {\n const [datePart, timePart] = dateStr.split(\" - \");\n const [day, month, year] = datePart.split(\"/\").map(Number);\n const [hours, minutes] = timePart.split(\":\").map(Number);\n return new Date(year, month - 1, day, hours, minutes);\n };\n\n const dateA = parseDate(aValue);\n const dateB = parseDate(bValue);\n return sortConfig.direction === \"asc\"\n ? dateA.getTime() - dateB.getTime()\n : dateB.getTime() - dateA.getTime();\n }\n\n if (column?.type === \"number\") {\n const numA = parseFloat(aValue);\n const numB = parseFloat(bValue);\n return sortConfig.direction === \"asc\" ? numA - numB : numB - numA;\n }\n\n return sortConfig.direction === \"asc\"\n ? aValue.localeCompare(bValue)\n : bValue.localeCompare(aValue);\n }\n\n if (isDoubleLineData(aValue) && isDoubleLineData(bValue)) {\n return sortConfig.direction === \"asc\"\n ? aValue.firstLine.localeCompare(bValue.firstLine)\n : bValue.firstLine.localeCompare(aValue.firstLine);\n }\n\n return 0;\n });\n }, [data, sortConfig, columns]);\n\n const handleSort = (columnKey: string) => {\n setSortConfig((currentSort) => ({\n key: columnKey,\n direction:\n currentSort.key === columnKey && currentSort.direction === \"asc\"\n ? \"desc\"\n : \"asc\",\n }));\n };\n\n const startIndex = pagination ? (currentPage - 1) * resultsPerPage : 0;\n const endIndex = pagination\n ? Math.min(startIndex + resultsPerPage, sortedData.length)\n : sortedData.length;\n const currentPageData = sortedData.slice(startIndex, endIndex);\n\n return (\n <div className=\"position-relative w-full\">\n <table\n ref={ref}\n className={clsx(\"table\", className)}\n role=\"table\"\n {...props}\n >\n <TableHeader className=\"table__header\">\n <TableRow>\n {columns.map((column, index) => (\n <TableHead\n key={`${column.label}-${index}`}\n config={column}\n sortConfig={sortConfig}\n onSort={() =>\n column.sortable && handleSort(column.key || column.label)\n }\n />\n ))}\n </TableRow>\n </TableHeader>\n <TableBody className=\"table__body\">\n {currentPageData.map((row, rowIndex) => (\n <TableRow key={rowIndex} className=\"table__row\">\n {Object.entries(row).map(([key, value], cellIndex) => {\n if (!value) return null;\n\n if (key === \"actionData\" && isActionData(value)) {\n return (\n <TableCell\n key={`${key}-${cellIndex}`}\n content={value}\n type=\"action\"\n />\n );\n }\n if (isDoubleLineData(value)) {\n return (\n <TableCell\n key={`${key}-${cellIndex}`}\n content={value}\n type=\"double-line\"\n />\n );\n }\n if (typeof value === \"string\") {\n return (\n <TableCell key={`${key}-${cellIndex}`} content={value} />\n );\n }\n return null;\n })}\n </TableRow>\n ))}\n </TableBody>\n </table>\n {pagination && (\n <Pagination\n currentPage={currentPage}\n totalResults={sortedData.length}\n resultsPerPage={resultsPerPage}\n setCurrentPage={setCurrentPage}\n />\n )}\n </div>\n );\n },\n);\nTable.displayName = \"Table\";\n\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>(\n ({ className, children, ...props }, ref) => (\n <thead\n ref={ref}\n className={clsx(\"[&_tr]:border-b-0\", className)}\n {...props}\n >\n {children}\n </thead>\n ),\n);\nTableHeader.displayName = \"TableHeader\";\n\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\n ({ className, children, ...props }, ref) => (\n <tbody\n ref={ref}\n className={clsx(\"[&_tr:last-child]:border-0\", className)}\n {...props}\n >\n {children}\n </tbody>\n ),\n);\nTableBody.displayName = \"TableBody\";\n\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(\n ({ className, children, ...props }, ref) => (\n <tr\n ref={ref}\n className={clsx(\n \"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted\",\n className,\n )}\n {...props}\n >\n {children}\n </tr>\n ),\n);\nTableRow.displayName = \"TableRow\";\n\nconst TableHead = React.forwardRef<\n HTMLTableCellElement,\n TableHeadProps & {\n config: ColumnConfig;\n sortConfig: { key: string; direction: \"asc\" | \"desc\" };\n onSort?: () => void;\n }\n>(({ className, config, sortConfig, onSort, ...props }, ref) => {\n const isSorted = sortConfig.key === (config.key || config.label);\n const sortDirection = isSorted ? sortConfig.direction : null;\n\n const getAriaSortValue = (): \"ascending\" | \"descending\" => {\n return sortDirection === \"asc\" ? \"ascending\" : \"descending\";\n };\n\n const renderIcon = (icon: React.ReactNode | CommonIconsType) => {\n switch (icon) {\n case \"info\":\n return <Info />;\n case \"download\":\n return <Download />;\n default:\n return icon;\n }\n };\n\n return (\n <th\n ref={ref}\n className={clsx(\n \"table__cell table__cell--header\",\n {\n \"table__cell--sortable\": config.sortable,\n \"table__cell--action\": config.action,\n },\n className,\n )}\n onClick={config.sortable ? onSort : config.action}\n aria-label={config.ariaLabel}\n aria-sort={isSorted ? getAriaSortValue() : undefined}\n {...props}\n >\n <div className=\"table__cell--header--content\">\n <div>\n <ActionIconText\n icon={renderIcon(config.icon)}\n textLabel={config.label}\n iconPosition={config.iconPosition}\n handleIconAction={() => {\n config.iconAction;\n }}\n popupInfo={config.popupInfo}\n />\n </div>\n {config.sortable && (\n <span className=\"sort-indicator\">\n <TriangleUp\n filled={isSorted && sortDirection === \"desc\"}\n className={clsx(\"sort-indicator__triangle\", {\n active: isSorted && sortDirection === \"desc\",\n })}\n />\n <TriangleDown\n filled={isSorted && sortDirection === \"asc\"}\n className={clsx(\"sort-indicator__triangle\", {\n active: isSorted && sortDirection === \"asc\",\n })}\n />\n </span>\n )}\n </div>\n </th>\n );\n});\nTableHead.displayName = \"TableHead\";\n\nconst DoubleLineContent: React.FC<{ data: DoubleLineData }> = ({ data }) => (\n <>\n <div className=\"table__cell--firstLine\">{data.firstLine}</div>\n <div className=\"table__cell--secondLine\">{data.secondLine}</div>\n </>\n);\n\nconst ActionContent: React.FC<{ data: ActionData }> = ({ data }) => {\n if (data.type === \"link\" && data.link) {\n return (\n <a href={data.link} aria-label={data.ariaLabel}>\n {data.label}\n </a>\n );\n }\n return (\n <button onClick={data.action} aria-label={data.ariaLabel}>\n {data.label}\n </button>\n );\n};\n\n// check if we are rendering a double line data\nconst isDoubleLineData = (\n content: TableCellProps[\"content\"],\n): content is DoubleLineData => {\n return (\n typeof content === \"object\" &&\n content !== null &&\n \"firstLine\" in content &&\n \"secondLine\" in content\n );\n};\n\n// check if we are rendering an action data\nconst isActionData = (\n content: TableCellProps[\"content\"],\n): content is ActionData => {\n return (\n typeof content === \"object\" &&\n content !== null &&\n \"label\" in content &&\n \"type\" in content\n );\n};\n\nconst TableCellContent: React.FC<{ content: TableCellProps[\"content\"] }> = ({\n content,\n}) => {\n if (typeof content === \"string\") {\n return <>{content}</>;\n }\n if (isDoubleLineData(content)) {\n return <DoubleLineContent data={content} />;\n }\n if (isActionData(content)) {\n return <ActionContent data={content} />;\n }\n return null;\n};\n\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>(\n ({ className, content, type, ...props }, ref) => (\n <td\n ref={ref}\n className={clsx(\n \"table__cell\",\n {\n \"table__cell--double-line\": type === \"double-line\",\n \"table__cell--action\": type === \"action\",\n },\n className,\n )}\n {...props}\n >\n <TableCellContent content={content} />\n </td>\n ),\n);\nTableCell.displayName = \"TableCell\";\n\nconst Pagination: React.FC<PaginationProps> = ({\n currentPage = 1,\n totalResults,\n resultsPerPage,\n setCurrentPage,\n className,\n}) => {\n const totalPages = Math.ceil(totalResults / resultsPerPage);\n\n return (\n <div className={clsx(\"pagination\", className)}>\n <div className=\"pagination__info\">\n Stai visualizzando{\" \"}\n <span className=\"pagination__info__resultsPerPage\">\n {resultsPerPage}\n </span>{\" \"}\n di {totalResults} risultati\n </div>\n <div className=\"pagination__nav\">\n <button\n className={clsx(\n \"pagination__button\",\n currentPage === 1 && \"pagination__button--disabled\",\n )}\n onClick={() => setCurrentPage(currentPage - 1)}\n disabled={currentPage === 1}\n aria-label=\"Previous page\"\n >\n <svg className=\"pagination__button-arrow\" viewBox=\"0 0 24 24\">\n <path d=\"M15 18l-6-6 6-6\" />\n </svg>\n </button>\n {Array.from({ length: totalPages }, (_, i) => i + 1).map((page) => (\n <button\n key={page}\n className={clsx(\n \"pagination__button\",\n currentPage === page && \"pagination__button--active\",\n )}\n onClick={() => setCurrentPage(page)}\n >\n {page}\n </button>\n ))}\n <button\n className={clsx(\n \"pagination__button\",\n currentPage === totalPages && \"pagination__button--disabled\",\n )}\n onClick={() => setCurrentPage(currentPage + 1)}\n disabled={currentPage === totalPages}\n aria-label=\"Next page\"\n >\n <svg className=\"pagination__button-arrow\" viewBox=\"0 0 24 24\">\n <path d=\"M9 6l6 6-6 6\" />\n </svg>\n </button>\n </div>\n </div>\n );\n};\n\nexport {\n Table,\n TableHeader,\n TableBody,\n TableHead,\n TableRow,\n TableCell,\n Pagination,\n};\n"],"names":["Table","React","className","columns","data","pagination","initialCurrentPage","resultsPerPage","defaultSortDirection","props","ref","sortConfig","setSortConfig","currentPage","setCurrentPage","sortedData","a","b","aValue","bValue","column","col","parseDate","dateStr","datePart","timePart","day","month","year","hours","minutes","dateA","dateB","numA","numB","isDoubleLineData","handleSort","columnKey","currentSort","startIndex","endIndex","currentPageData","jsxs","clsx","jsx","TableHeader","TableRow","index","TableHead","TableBody","row","rowIndex","key","value","cellIndex","isActionData","TableCell","Pagination","children","config","onSort","isSorted","sortDirection","getAriaSortValue","renderIcon","icon","Info","Download","ActionIconText","TriangleUp","TriangleDown","DoubleLineContent","Fragment","ActionContent","content","TableCellContent","type","totalResults","totalPages","_","i","page"],"mappings":"8nBA6FMA,EAAQC,EAAM,WAClB,CACE,CACE,UAAAC,EACA,QAAAC,EACA,KAAAC,EACA,WAAAC,EACA,mBAAAC,EAAqB,EACrB,eAAAC,EAAiB,GACjB,qBAAAC,EAAuB,OACvB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AAC,SAAA,CAEC,UAAWD,EAAA,KACT,qBACA9B,IAAgBoE,GAAQ,4BAC1B,EACA,QAAS,IAAMnE,EAAemE,CAAI,EAEjC,SAAAA,CAAA,EAPIA,CAAA,CASR,EACDrC,EAAA,kBAAA,IAAC,SAAA,CACC,UAAWD,EAAA,KACT,qBACA9B,IAAgBiE,GAAc,8BAChC,EACA,QAAS,IAAMhE,EAAeD,EAAc,CAAC,EAC7C,SAAUA,IAAgBiE,EAC1B,aAAW,YAEX,SAAAlC,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,2BAA2B,QAAQ,YAChD,SAACA,EAAA,kBAAA,IAAA,OAAA,CAAK,EAAE,cAAe,CAAA,CACzB,CAAA,CAAA,CAAA,CACF,CACF,CAAA,CAAA,EACF,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs65.js","sources":["../src/components/ui/Table/index.tsx"],"sourcesContent":["import * as React from \"react\";\r\nimport clsx from \"clsx\";\r\nimport \"./Table.scss\";\r\nimport { Download, Info, TriangleDown, TriangleUp } from \"@/icons\";\r\nimport { ActionIconText } from \"../ActionIconText\";\r\nimport { CommonIconsType } from \"@/types/icons\";\r\nimport { InfoPopupProps } from \"../InfoPopup\";\r\n\r\n// per le celle che vanno renderizzate su due righe\r\nexport interface DoubleLineData {\r\n firstLine: string;\r\n secondLine: string;\r\n}\r\n\r\n//per le celle che renderizzano un link o un bottone\r\nexport interface ActionData {\r\n label: string;\r\n ariaLabel: string;\r\n type: \"link\" | \"button\";\r\n link?: string;\r\n action?: () => void;\r\n}\r\n\r\nexport interface ColumnConfig {\r\n label: string;\r\n ariaLabel: string;\r\n sortable: boolean;\r\n action?: () => void;\r\n iconAction?: () => void;\r\n popupInfo?: InfoPopupProps;\r\n icon?: React.ReactNode | CommonIconsType;\r\n iconPosition?: \"left\" | \"right\";\r\n key?: string;\r\n type?: \"string\" | \"date\" | \"number\";\r\n}\r\n\r\nexport interface TableRowData {\r\n [key: string]: string | DoubleLineData | ActionData;\r\n}\r\n\r\nexport interface TableHeaderProps\r\n extends React.HTMLAttributes<HTMLTableSectionElement> {\r\n className?: string;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport interface TableBodyProps\r\n extends React.HTMLAttributes<HTMLTableSectionElement> {\r\n className?: string;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport interface TableRowProps\r\n extends React.HTMLAttributes<HTMLTableRowElement> {\r\n className?: string;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport interface TableHeadProps\r\n extends React.ThHTMLAttributes<HTMLTableCellElement> {\r\n className?: string;\r\n children?: React.ReactNode;\r\n}\r\n\r\nexport interface TableCellBaseProps\r\n extends Omit<React.TdHTMLAttributes<HTMLTableCellElement>, \"content\"> {\r\n type?: \"double-line\" | \"action\";\r\n}\r\n\r\nexport interface TableCellProps extends TableCellBaseProps {\r\n content: string | DoubleLineData | ActionData;\r\n}\r\n\r\nexport interface PaginationProps {\r\n currentPage: number;\r\n totalResults: number;\r\n resultsPerPage: number;\r\n setCurrentPage: (page: number) => void;\r\n onPageChange?: (page: number) => void;\r\n className?: string;\r\n}\r\n\r\nexport interface TableProps\r\n extends React.TableHTMLAttributes<HTMLTableElement> {\r\n className?: string;\r\n columns: ColumnConfig[];\r\n data: TableRowData[];\r\n pagination?: boolean;\r\n initialCurrentPage?: number;\r\n resultsPerPage?: number;\r\n defaultSortDirection?: \"asc\" | \"desc\";\r\n}\r\n\r\nconst Table = React.forwardRef<HTMLTableElement, TableProps>(\r\n (\r\n {\r\n className,\r\n columns,\r\n data,\r\n pagination,\r\n initialCurrentPage = 1,\r\n resultsPerPage = 10,\r\n defaultSortDirection = \"desc\",\r\n ...props\r\n },\r\n ref,\r\n ) => {\r\n const [sortConfig, setSortConfig] = React.useState<{\r\n key: string;\r\n direction: \"asc\" | \"desc\";\r\n }>({\r\n key: columns[0].key || columns[0].label,\r\n direction: defaultSortDirection,\r\n });\r\n const [currentPage, setCurrentPage] = React.useState(initialCurrentPage);\r\n\r\n const sortedData = React.useMemo(() => {\r\n return [...data].sort((a, b) => {\r\n const aValue = a[sortConfig.key];\r\n const bValue = b[sortConfig.key];\r\n const column = columns.find(\r\n (col) => (col.key || col.label) === sortConfig.key,\r\n );\r\n\r\n if (typeof aValue === \"string\" && typeof bValue === \"string\") {\r\n if (column?.type === \"date\") {\r\n // Convert Italian date format (DD/MM/YYYY - HH:mm) to Date object\r\n const parseDate = (dateStr: string) => {\r\n const [datePart, timePart] = dateStr.split(\" - \");\r\n const [day, month, year] = datePart.split(\"/\").map(Number);\r\n const [hours, minutes] = timePart.split(\":\").map(Number);\r\n return new Date(year, month - 1, day, hours, minutes);\r\n };\r\n\r\n const dateA = parseDate(aValue);\r\n const dateB = parseDate(bValue);\r\n return sortConfig.direction === \"asc\"\r\n ? dateA.getTime() - dateB.getTime()\r\n : dateB.getTime() - dateA.getTime();\r\n }\r\n\r\n if (column?.type === \"number\") {\r\n const numA = parseFloat(aValue);\r\n const numB = parseFloat(bValue);\r\n return sortConfig.direction === \"asc\" ? numA - numB : numB - numA;\r\n }\r\n\r\n return sortConfig.direction === \"asc\"\r\n ? aValue.localeCompare(bValue)\r\n : bValue.localeCompare(aValue);\r\n }\r\n\r\n if (isDoubleLineData(aValue) && isDoubleLineData(bValue)) {\r\n return sortConfig.direction === \"asc\"\r\n ? aValue.firstLine.localeCompare(bValue.firstLine)\r\n : bValue.firstLine.localeCompare(aValue.firstLine);\r\n }\r\n\r\n return 0;\r\n });\r\n }, [data, sortConfig, columns]);\r\n\r\n const handleSort = (columnKey: string) => {\r\n setSortConfig((currentSort) => ({\r\n key: columnKey,\r\n direction:\r\n currentSort.key === columnKey && currentSort.direction === \"asc\"\r\n ? \"desc\"\r\n : \"asc\",\r\n }));\r\n };\r\n\r\n const startIndex = pagination ? (currentPage - 1) * resultsPerPage : 0;\r\n const endIndex = pagination\r\n ? Math.min(startIndex + resultsPerPage, sortedData.length)\r\n : sortedData.length;\r\n const currentPageData = sortedData.slice(startIndex, endIndex);\r\n\r\n return (\r\n <div className=\"position-relative w-full\">\r\n <table\r\n ref={ref}\r\n className={clsx(\"table\", className)}\r\n role=\"table\"\r\n {...props}\r\n >\r\n <TableHeader className=\"table__header\">\r\n <TableRow>\r\n {columns.map((column, index) => (\r\n <TableHead\r\n key={`${column.label}-${index}`}\r\n config={column}\r\n sortConfig={sortConfig}\r\n onSort={() =>\r\n column.sortable && handleSort(column.key || column.label)\r\n }\r\n />\r\n ))}\r\n </TableRow>\r\n </TableHeader>\r\n <TableBody className=\"table__body\">\r\n {currentPageData.map((row, rowIndex) => (\r\n <TableRow key={rowIndex} className=\"table__row\">\r\n {Object.entries(row).map(([key, value], cellIndex) => {\r\n if (!value) return null;\r\n\r\n if (key === \"actionData\" && isActionData(value)) {\r\n return (\r\n <TableCell\r\n key={`${key}-${cellIndex}`}\r\n content={value}\r\n type=\"action\"\r\n />\r\n );\r\n }\r\n if (isDoubleLineData(value)) {\r\n return (\r\n <TableCell\r\n key={`${key}-${cellIndex}`}\r\n content={value}\r\n type=\"double-line\"\r\n />\r\n );\r\n }\r\n if (typeof value === \"string\") {\r\n return (\r\n <TableCell key={`${key}-${cellIndex}`} content={value} />\r\n );\r\n }\r\n return null;\r\n })}\r\n </TableRow>\r\n ))}\r\n </TableBody>\r\n </table>\r\n {pagination && (\r\n <Pagination\r\n currentPage={currentPage}\r\n totalResults={sortedData.length}\r\n resultsPerPage={resultsPerPage}\r\n setCurrentPage={setCurrentPage}\r\n />\r\n )}\r\n </div>\r\n );\r\n },\r\n);\r\nTable.displayName = \"Table\";\r\n\r\nconst TableHeader = React.forwardRef<HTMLTableSectionElement, TableHeaderProps>(\r\n ({ className, children, ...props }, ref) => (\r\n <thead\r\n ref={ref}\r\n className={clsx(\"[&_tr]:border-b-0\", className)}\r\n {...props}\r\n >\r\n {children}\r\n </thead>\r\n ),\r\n);\r\nTableHeader.displayName = \"TableHeader\";\r\n\r\nconst TableBody = React.forwardRef<HTMLTableSectionElement, TableBodyProps>(\r\n ({ className, children, ...props }, ref) => (\r\n <tbody\r\n ref={ref}\r\n className={clsx(\"[&_tr:last-child]:border-0\", className)}\r\n {...props}\r\n >\r\n {children}\r\n </tbody>\r\n ),\r\n);\r\nTableBody.displayName = \"TableBody\";\r\n\r\nconst TableRow = React.forwardRef<HTMLTableRowElement, TableRowProps>(\r\n ({ className, children, ...props }, ref) => (\r\n <tr\r\n ref={ref}\r\n className={clsx(\r\n \"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted\",\r\n className,\r\n )}\r\n {...props}\r\n >\r\n {children}\r\n </tr>\r\n ),\r\n);\r\nTableRow.displayName = \"TableRow\";\r\n\r\nconst TableHead = React.forwardRef<\r\n HTMLTableCellElement,\r\n TableHeadProps & {\r\n config: ColumnConfig;\r\n sortConfig: { key: string; direction: \"asc\" | \"desc\" };\r\n onSort?: () => void;\r\n }\r\n>(({ className, config, sortConfig, onSort, ...props }, ref) => {\r\n const isSorted = sortConfig.key === (config.key || config.label);\r\n const sortDirection = isSorted ? sortConfig.direction : null;\r\n\r\n const getAriaSortValue = (): \"ascending\" | \"descending\" => {\r\n return sortDirection === \"asc\" ? \"ascending\" : \"descending\";\r\n };\r\n\r\n const renderIcon = (icon: React.ReactNode | CommonIconsType) => {\r\n switch (icon) {\r\n case \"info\":\r\n return <Info />;\r\n case \"download\":\r\n return <Download />;\r\n default:\r\n return icon;\r\n }\r\n };\r\n\r\n return (\r\n <th\r\n ref={ref}\r\n className={clsx(\r\n \"table__cell table__cell--header\",\r\n {\r\n \"table__cell--sortable\": config.sortable,\r\n \"table__cell--action\": config.action,\r\n },\r\n className,\r\n )}\r\n onClick={config.sortable ? onSort : config.action}\r\n aria-label={config.ariaLabel}\r\n aria-sort={isSorted ? getAriaSortValue() : undefined}\r\n {...props}\r\n >\r\n <div className=\"table__cell--header--content\">\r\n <div>\r\n <ActionIconText\r\n icon={renderIcon(config.icon)}\r\n textLabel={config.label}\r\n iconPosition={config.iconPosition}\r\n handleIconAction={() => {\r\n config.iconAction;\r\n }}\r\n popupInfo={config.popupInfo}\r\n />\r\n </div>\r\n {config.sortable && (\r\n <span className=\"sort-indicator\">\r\n <TriangleUp\r\n filled={isSorted && sortDirection === \"desc\"}\r\n className={clsx(\"sort-indicator__triangle\", {\r\n active: isSorted && sortDirection === \"desc\",\r\n })}\r\n />\r\n <TriangleDown\r\n filled={isSorted && sortDirection === \"asc\"}\r\n className={clsx(\"sort-indicator__triangle\", {\r\n active: isSorted && sortDirection === \"asc\",\r\n })}\r\n />\r\n </span>\r\n )}\r\n </div>\r\n </th>\r\n );\r\n});\r\nTableHead.displayName = \"TableHead\";\r\n\r\nconst DoubleLineContent: React.FC<{ data: DoubleLineData }> = ({ data }) => (\r\n <>\r\n <div className=\"table__cell--firstLine\">{data.firstLine}</div>\r\n <div className=\"table__cell--secondLine\">{data.secondLine}</div>\r\n </>\r\n);\r\n\r\nconst ActionContent: React.FC<{ data: ActionData }> = ({ data }) => {\r\n if (data.type === \"link\" && data.link) {\r\n return (\r\n <a href={data.link} aria-label={data.ariaLabel}>\r\n {data.label}\r\n </a>\r\n );\r\n }\r\n return (\r\n <button onClick={data.action} aria-label={data.ariaLabel}>\r\n {data.label}\r\n </button>\r\n );\r\n};\r\n\r\n// check if we are rendering a double line data\r\nconst isDoubleLineData = (\r\n content: TableCellProps[\"content\"],\r\n): content is DoubleLineData => {\r\n return (\r\n typeof content === \"object\" &&\r\n content !== null &&\r\n \"firstLine\" in content &&\r\n \"secondLine\" in content\r\n );\r\n};\r\n\r\n// check if we are rendering an action data\r\nconst isActionData = (\r\n content: TableCellProps[\"content\"],\r\n): content is ActionData => {\r\n return (\r\n typeof content === \"object\" &&\r\n content !== null &&\r\n \"label\" in content &&\r\n \"type\" in content\r\n );\r\n};\r\n\r\nconst TableCellContent: React.FC<{ content: TableCellProps[\"content\"] }> = ({\r\n content,\r\n}) => {\r\n if (typeof content === \"string\") {\r\n return <>{content}</>;\r\n }\r\n if (isDoubleLineData(content)) {\r\n return <DoubleLineContent data={content} />;\r\n }\r\n if (isActionData(content)) {\r\n return <ActionContent data={content} />;\r\n }\r\n return null;\r\n};\r\n\r\nconst TableCell = React.forwardRef<HTMLTableCellElement, TableCellProps>(\r\n ({ className, content, type, ...props }, ref) => (\r\n <td\r\n ref={ref}\r\n className={clsx(\r\n \"table__cell\",\r\n {\r\n \"table__cell--double-line\": type === \"double-line\",\r\n \"table__cell--action\": type === \"action\",\r\n },\r\n className,\r\n )}\r\n {...props}\r\n >\r\n <TableCellContent content={content} />\r\n </td>\r\n ),\r\n);\r\nTableCell.displayName = \"TableCell\";\r\n\r\nconst Pagination: React.FC<PaginationProps> = ({\r\n currentPage = 1,\r\n totalResults,\r\n resultsPerPage,\r\n setCurrentPage,\r\n className,\r\n}) => {\r\n const totalPages = Math.ceil(totalResults / resultsPerPage);\r\n\r\n return (\r\n <div className={clsx(\"pagination\", className)}>\r\n <div className=\"pagination__info\">\r\n Stai visualizzando{\" \"}\r\n <span className=\"pagination__info__resultsPerPage\">\r\n {resultsPerPage}\r\n </span>{\" \"}\r\n di {totalResults} risultati\r\n </div>\r\n <div className=\"pagination__nav\">\r\n <button\r\n className={clsx(\r\n \"pagination__button\",\r\n currentPage === 1 && \"pagination__button--disabled\",\r\n )}\r\n onClick={() => setCurrentPage(currentPage - 1)}\r\n disabled={currentPage === 1}\r\n aria-label=\"Previous page\"\r\n >\r\n <svg className=\"pagination__button-arrow\" viewBox=\"0 0 24 24\">\r\n <path d=\"M15 18l-6-6 6-6\" />\r\n </svg>\r\n </button>\r\n {Array.from({ length: totalPages }, (_, i) => i + 1).map((page) => (\r\n <button\r\n key={page}\r\n className={clsx(\r\n \"pagination__button\",\r\n currentPage === page && \"pagination__button--active\",\r\n )}\r\n onClick={() => setCurrentPage(page)}\r\n >\r\n {page}\r\n </button>\r\n ))}\r\n <button\r\n className={clsx(\r\n \"pagination__button\",\r\n currentPage === totalPages && \"pagination__button--disabled\",\r\n )}\r\n onClick={() => setCurrentPage(currentPage + 1)}\r\n disabled={currentPage === totalPages}\r\n aria-label=\"Next page\"\r\n >\r\n <svg className=\"pagination__button-arrow\" viewBox=\"0 0 24 24\">\r\n <path d=\"M9 6l6 6-6 6\" />\r\n </svg>\r\n </button>\r\n </div>\r\n </div>\r\n );\r\n};\r\n\r\nexport {\r\n Table,\r\n TableHeader,\r\n TableBody,\r\n TableHead,\r\n TableRow,\r\n TableCell,\r\n Pagination,\r\n};\r\n"],"names":["Table","React","className","columns","data","pagination","initialCurrentPage","resultsPerPage","defaultSortDirection","props","ref","sortConfig","setSortConfig","currentPage","setCurrentPage","sortedData","a","b","aValue","bValue","column","col","parseDate","dateStr","datePart","timePart","day","month","year","hours","minutes","dateA","dateB","numA","numB","isDoubleLineData","handleSort","columnKey","currentSort","startIndex","endIndex","currentPageData","jsxs","clsx","jsx","TableHeader","TableRow","index","TableHead","TableBody","row","rowIndex","key","value","cellIndex","isActionData","TableCell","Pagination","children","config","onSort","isSorted","sortDirection","getAriaSortValue","renderIcon","icon","Info","Download","ActionIconText","TriangleUp","TriangleDown","DoubleLineContent","Fragment","ActionContent","content","TableCellContent","type","totalResults","totalPages","_","i","page"],"mappings":"8nBA6FMA,EAAQC,EAAM,WAClB,CACE,CACE,UAAAC,EACA,QAAAC,EACA,KAAAC,EACA,WAAAC,EACA,mBAAAC,EAAqB,EACrB,eAAAC,EAAiB,GACjB,qBAAAC,EAAuB,OACvB,GAAGC,GAELC,IACG,CACH,KAAM,CAACC,EAAYC,CAAa,EAAIX,EAAM,SAGvC,CACD,IAAKE,EAAQ,CAAC,EAAE,KAAOA,EAAQ,CAAC,EAAE,MAClC,UAAWK,CAAA,CACZ,EACK,CAACK,EAAaC,CAAc,EAAIb,EAAM,SAASK,CAAkB,EAEjES,EAAad,EAAM,QAAQ,IACxB,CAAC,GAAGG,CAAI,EAAE,KAAK,CAACY,EAAGC,IAAM,CACxB,MAAAC,EAASF,EAAEL,EAAW,GAAG,EACzBQ,EAASF,EAAEN,EAAW,GAAG,EACzBS,EAASjB,EAAQ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AACA,EAAA,kBAAA,IAAA,OAAA,CAAK,EAAE,cAAe,CAAA,CACzB,CAAA,CAAA,CAAA,CACF,CACF,CAAA,CAAA,EACF,CAEJ"}
|
package/dist/index.cjs66.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs66.js","sources":["../src/components/ui/InfoPopup/index.tsx"],"sourcesContent":["import { useEffect, useRef, PropsWithChildren } from \"react\";\nimport clsx from \"clsx\";\nimport \"./InfoPopup.scss\";\nimport { Close } from \"@/icons\";\n\nexport type InfoPopupProps = PropsWithChildren<{\n title: string;\n description: string | React.ReactNode;\n isOpen: boolean;\n onClickCloseBtn?: () => void;\n className?: string;\n}>;\n\nexport const InfoPopup = ({\n title = \"Info\",\n description,\n isOpen = false,\n onClickCloseBtn,\n className = \"\",\n}: InfoPopupProps) => {\n const dialogRef = useRef<HTMLDivElement>(null);\n const previousActiveElement = useRef<HTMLElement | null>(null);\n\n useEffect(() => {\n const handleEscape = (event: KeyboardEvent) => {\n if (event.key === \"Escape\" && isOpen) {\n onClickCloseBtn?.();\n }\n };\n\n if (isOpen) {\n previousActiveElement.current = document.activeElement as HTMLElement;\n dialogRef.current?.focus();\n document.addEventListener(\"keydown\", handleEscape);\n } else if (previousActiveElement.current) {\n previousActiveElement.current.focus();\n }\n\n return () => {\n document.removeEventListener(\"keydown\", handleEscape);\n };\n }, [isOpen, onClickCloseBtn]);\n\n if (!isOpen) return null;\n\n return (\n <div\n className={clsx(\"popupContainer\", isOpen ? \"open\" : \"close\", className)}\n onClick={(e) => {\n e.stopPropagation();\n }}\n >\n <div\n ref={dialogRef}\n role=\"dialog\"\n aria-modal=\"true\"\n aria-labelledby=\"dialog-title\"\n aria-describedby=\"dialog-description\"\n className={clsx(\"dialog\")}\n tabIndex={-1}\n >\n <div className=\"header\">\n <h3 id=\"dialog-title\" className=\"title\">\n {title}\n </h3>\n <button\n onClick={(e) => {\n e.stopPropagation();\n onClickCloseBtn?.();\n }}\n className=\"closeButton\"\n aria-label=\"Close dialog\"\n >\n <Close className=\"closeIcon\" />\n </button>\n </div>\n {description && (\n <div id=\"dialog-description\" className=\"content\">\n {description}\n </div>\n )}\n </div>\n </div>\n );\n};\n"],"names":["InfoPopup","title","description","isOpen","onClickCloseBtn","className","dialogRef","useRef","previousActiveElement","useEffect","handleEscape","event","_a","jsx","clsx","e","jsxs","Close"],"mappings":"wOAaaA,EAAY,CAAC,CACxB,MAAAC,EAAQ,OACR,YAAAC,EACA,OAAAC,EAAS,GACT,gBAAAC,EACA,UAAAC,EAAY,EACd,IAAsB,CACd,MAAAC,EAAYC,SAAuB,IAAI,EACvCC,EAAwBD,SAA2B,IAAI,EAsBzD,OApBJE,EAAAA,UAAU,IAAM,OACR,MAAAC,EAAgBC,GAAyB,CACzCA,EAAM,MAAQ,UAAYR,IACVC,GAAA,MAAAA,IAEtB,EAEA,OAAID,GACFK,EAAsB,QAAU,SAAS,eACzCI,EAAAN,EAAU,UAAV,MAAAM,EAAmB,QACV,SAAA,iBAAiB,UAAWF,CAAY,GACxCF,EAAsB,SAC/BA,EAAsB,QAAQ,MAAM,EAG/B,IAAM,CACF,SAAA,oBAAoB,UAAWE,CAAY,CACtD,CAAA,EACC,CAACP,EAAQC,CAAe,CAAC,EAEvBD,EAGHU,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWC,EAAK,KAAA,iBAAkBX,EAAS,OAAS,QAASE,CAAS,EACtE,QAAUU,GAAM,CACdA,EAAE,gBAAgB,CACpB,EAEA,SAAAC,EAAA,kBAAA,KAAC,MAAA,CACC,IAAKV,EACL,KAAK,SACL,aAAW,OACX,kBAAgB,eAChB,mBAAiB,qBACjB,UAAWQ,OAAK,QAAQ,EACxB,SAAU,GAEV,SAAA,CAACE,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,SACb,SAAA,CAAAH,wBAAC,KAAG,CAAA,GAAG,eAAe,UAAU,QAC7B,SACHZ,EAAA,EACAY,EAAA,kBAAA,IAAC,SAAA,CACC,QAAUE,GAAM,CACdA,EAAE,gBAAgB,EACAX,GAAA,MAAAA,GACpB,EACA,UAAU,cACV,aAAW,eAEX,SAAAS,EAAAA,kBAAAA,IAACI,EAAAA,MAAM,CAAA,UAAU,WAAY,CAAA,CAAA,CAAA,CAC/B,EACF,EACCf,GACEW,EAAAA,kBAAAA,IAAA,MAAA,CAAI,GAAG,qBAAqB,UAAU,UACpC,SACHX,CAAA,CAAA,CAAA,CAAA,CAAA,CAEJ,CACF,EAvCkB,IAyCtB"}
|
1
|
+
{"version":3,"file":"index.cjs66.js","sources":["../src/components/ui/InfoPopup/index.tsx"],"sourcesContent":["import { useEffect, useRef, PropsWithChildren } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport \"./InfoPopup.scss\";\r\nimport { Close } from \"@/icons\";\r\n\r\nexport type InfoPopupProps = PropsWithChildren<{\r\n title: string;\r\n description: string | React.ReactNode;\r\n isOpen: boolean;\r\n onClickCloseBtn?: () => void;\r\n className?: string;\r\n}>;\r\n\r\nexport const InfoPopup = ({\r\n title = \"Info\",\r\n description,\r\n isOpen = false,\r\n onClickCloseBtn,\r\n className = \"\",\r\n}: InfoPopupProps) => {\r\n const dialogRef = useRef<HTMLDivElement>(null);\r\n const previousActiveElement = useRef<HTMLElement | null>(null);\r\n\r\n useEffect(() => {\r\n const handleEscape = (event: KeyboardEvent) => {\r\n if (event.key === \"Escape\" && isOpen) {\r\n onClickCloseBtn?.();\r\n }\r\n };\r\n\r\n if (isOpen) {\r\n previousActiveElement.current = document.activeElement as HTMLElement;\r\n dialogRef.current?.focus();\r\n document.addEventListener(\"keydown\", handleEscape);\r\n } else if (previousActiveElement.current) {\r\n previousActiveElement.current.focus();\r\n }\r\n\r\n return () => {\r\n document.removeEventListener(\"keydown\", handleEscape);\r\n };\r\n }, [isOpen, onClickCloseBtn]);\r\n\r\n if (!isOpen) return null;\r\n\r\n return (\r\n <div\r\n className={clsx(\"popupContainer\", isOpen ? \"open\" : \"close\", className)}\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n }}\r\n >\r\n <div\r\n ref={dialogRef}\r\n role=\"dialog\"\r\n aria-modal=\"true\"\r\n aria-labelledby=\"dialog-title\"\r\n aria-describedby=\"dialog-description\"\r\n className={clsx(\"dialog\")}\r\n tabIndex={-1}\r\n >\r\n <div className=\"header\">\r\n <h3 id=\"dialog-title\" className=\"title\">\r\n {title}\r\n </h3>\r\n <button\r\n onClick={(e) => {\r\n e.stopPropagation();\r\n onClickCloseBtn?.();\r\n }}\r\n className=\"closeButton\"\r\n aria-label=\"Close dialog\"\r\n >\r\n <Close className=\"closeIcon\" />\r\n </button>\r\n </div>\r\n {description && (\r\n <div id=\"dialog-description\" className=\"content\">\r\n {description}\r\n </div>\r\n )}\r\n </div>\r\n </div>\r\n );\r\n};\r\n"],"names":["InfoPopup","title","description","isOpen","onClickCloseBtn","className","dialogRef","useRef","previousActiveElement","useEffect","handleEscape","event","_a","jsx","clsx","e","jsxs","Close"],"mappings":"wOAaaA,EAAY,CAAC,CACxB,MAAAC,EAAQ,OACR,YAAAC,EACA,OAAAC,EAAS,GACT,gBAAAC,EACA,UAAAC,EAAY,EACd,IAAsB,CACd,MAAAC,EAAYC,SAAuB,IAAI,EACvCC,EAAwBD,SAA2B,IAAI,EAsBzD,OApBJE,EAAAA,UAAU,IAAM,OACR,MAAAC,EAAgBC,GAAyB,CACzCA,EAAM,MAAQ,UAAYR,IACVC,GAAA,MAAAA,IAEtB,EAEA,OAAID,GACFK,EAAsB,QAAU,SAAS,eACzCI,EAAAN,EAAU,UAAV,MAAAM,EAAmB,QACV,SAAA,iBAAiB,UAAWF,CAAY,GACxCF,EAAsB,SAC/BA,EAAsB,QAAQ,MAAM,EAG/B,IAAM,CACF,SAAA,oBAAoB,UAAWE,CAAY,CACtD,CAAA,EACC,CAACP,EAAQC,CAAe,CAAC,EAEvBD,EAGHU,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWC,EAAK,KAAA,iBAAkBX,EAAS,OAAS,QAASE,CAAS,EACtE,QAAUU,GAAM,CACdA,EAAE,gBAAgB,CACpB,EAEA,SAAAC,EAAA,kBAAA,KAAC,MAAA,CACC,IAAKV,EACL,KAAK,SACL,aAAW,OACX,kBAAgB,eAChB,mBAAiB,qBACjB,UAAWQ,OAAK,QAAQ,EACxB,SAAU,GAEV,SAAA,CAACE,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,SACb,SAAA,CAAAH,wBAAC,KAAG,CAAA,GAAG,eAAe,UAAU,QAC7B,SACHZ,EAAA,EACAY,EAAA,kBAAA,IAAC,SAAA,CACC,QAAUE,GAAM,CACdA,EAAE,gBAAgB,EACAX,GAAA,MAAAA,GACpB,EACA,UAAU,cACV,aAAW,eAEX,SAAAS,EAAAA,kBAAAA,IAACI,EAAAA,MAAM,CAAA,UAAU,WAAY,CAAA,CAAA,CAAA,CAC/B,EACF,EACCf,GACEW,EAAAA,kBAAAA,IAAA,MAAA,CAAI,GAAG,qBAAqB,UAAU,UACpC,SACHX,CAAA,CAAA,CAAA,CAAA,CAAA,CAEJ,CACF,EAvCkB,IAyCtB"}
|
package/dist/index.cjs67.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs67.js","sources":["../src/components/ui/CardNotification/index.tsx"],"sourcesContent":["import \"./CardNotification.scss\";\nimport { useMemo } from \"react\";\nimport { Actions, Calendar } from \"@/icons\";\nimport { Button, Row } from \"@/components\";\n\ntype Variant = \"primary\" | \"secondary\";\n\ntype NotificationIcon = \"calendar\" | \"actions\";\n\ntype CardNotificationProps = {\n type: string;\n date: string;\n icon: NotificationIcon;\n showBadge?: boolean;\n title: string;\n text: string;\n variant?: Variant;\n onClickEdit?: () => void;\n onClickManage?: () => void;\n onClickGoToDetails?: () => void;\n showExpired?: boolean;\n buttonMaxWidth?: boolean;\n onClickRightManage?: () => void;\n};\n\nexport const CardNotification = ({\n type,\n onClickEdit,\n onClickRightManage,\n showExpired = false,\n buttonMaxWidth,\n onClickGoToDetails,\n icon = \"calendar\",\n variant = \"primary\",\n onClickManage,\n date,\n title,\n showBadge = false,\n text,\n}: CardNotificationProps) => {\n const isSecondary = variant === \"secondary\";\n\n const iconToRender = useMemo(() => {\n if (icon === \"calendar\") {\n return <Calendar width={24} height={26} color=\"slate-28\" />;\n }\n if (icon === \"actions\") {\n return <Actions width={24} height={26} color=\"slate-28\" />;\n }\n }, [icon]);\n\n const cardClasses = ` ${\n isSecondary\n ? \"bg-lightblue-a03 ui-card-notifications-secondary\"\n : \"bg-white\"\n } shadow br-x4 `;\n\n const iconContainer = ` ui-card-notifications-icon base-row ${\n isSecondary ? \"bg-white\" : \"bg-lightblue-a03\"\n } `;\n\n const manageButtonClasses = ` ${\n buttonMaxWidth ? \"w-full\" : \"ui-card-notifications-button\"\n } `;\n\n return (\n <div className={cardClasses}>\n <Row px={\"x24\"} py={\"x8\"} justifyContent={\"space-between\"}>\n <p className={\"fs-7 fw-semibold\"}> {type}</p>\n <p className={\"fs-7 fw-semibold\"}>{date}</p>\n </Row>\n <div className={\"ui-card-notifications-divider \"} />\n <Row pt={\"x16\"} px={\"x24\"} pb={\"x24\"} gap={\"x16\"}>\n <div className={iconContainer}>\n {showBadge && (\n <div className={\"ui-card-notifications-badge-container\"}>\n <div className={\"ui-card-notifications-badge\"} />\n </div>\n )}\n {iconToRender}\n </div>\n <div className={\"w-full\"}>\n <div className={\"mb-x24\"}>\n <p className={\"my-x8 fs-5 fw-semibold\"}>{title}</p>\n {showExpired && (\n <Row mb={\"x8\"}>\n <div\n className={\n \"py-x4 px-x16 bg-status-error text-white rounded fw-semibold fs-7\"\n }\n >\n SCADUTO\n </div>\n </Row>\n )}\n <p>{text}</p>\n </div>\n\n {onClickManage && (\n <div className={\"base-row justify-content-center\"}>\n <Button className={manageButtonClasses} onClick={onClickManage}>\n Gestisci\n </Button>\n </div>\n )}\n\n <Row justifyContent={\"flex-end\"} className={\"w-full gap-x16\"}>\n {onClickRightManage && (\n <div className={\"base-row justify-content-center\"}>\n <Button onClick={onClickRightManage}>Gestisci</Button>\n </div>\n )}\n\n {!!onClickEdit && (\n <Button\n onClick={onClickEdit}\n bg=\"transparent\"\n textColor=\"primary\"\n >\n Modifica\n </Button>\n )}\n {!!onClickGoToDetails && (\n <Button onClick={onClickGoToDetails} variant={\"secondary\"}>\n Più dettagli\n </Button>\n )}\n </Row>\n </div>\n </Row>\n </div>\n );\n};\n"],"names":["CardNotification","type","onClickEdit","onClickRightManage","showExpired","buttonMaxWidth","onClickGoToDetails","icon","variant","onClickManage","date","title","showBadge","text","isSecondary","iconToRender","useMemo","Calendar","Actions","cardClasses","iconContainer","manageButtonClasses","jsxs","Row","jsx","Button"],"mappings":"mSAyBaA,EAAmB,CAAC,CAC/B,KAAAC,EACA,YAAAC,EACA,mBAAAC,EACA,YAAAC,EAAc,GACd,eAAAC,EACA,mBAAAC,EACA,KAAAC,EAAO,WACP,QAAAC,EAAU,UACV,cAAAC,EACA,KAAAC,EACA,MAAAC,EACA,UAAAC,EAAY,GACZ,KAAAC,CACF,IAA6B,CAC3B,MAAMC,EAAcN,IAAY,YAE1BO,EAAeC,EAAAA,QAAQ,IAAM,CACjC,GAAIT,IAAS,WACX,+BAAQU,WAAS,CAAA,MAAO,GAAI,OAAQ,GAAI,MAAM,WAAW,EAE3D,GAAIV,IAAS,UACX,+BAAQW,UAAQ,CAAA,MAAO,GAAI,OAAQ,GAAI,MAAM,WAAW,CAC1D,EACC,CAACX,CAAI,CAAC,EAEHY,EAAc,IAClBL,EACI,mDACA,UACN,kBAEMM,EAAgB,0CACpBN,EAAc,WAAa,kBAC7B,MAEMO,EAAsB,IAC1BhB,EAAiB,SAAW,8BAC9B,KAGE,OAAAiB,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAWH,EACd,SAAA,CAAAG,yBAACC,EAAAA,KAAI,GAAI,MAAO,GAAI,KAAM,eAAgB,gBACxC,SAAA,CAACD,EAAAA,kBAAAA,KAAA,IAAA,CAAE,UAAW,mBAAoB,SAAA,CAAA,IAAErB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ACH,UAAU,UACX,SAAA,UAAA,CAED,EAED,CAAC,CAACI,GACDkB,wBAACC,EAAAA,QAAO,QAASnB,EAAoB,QAAS,YAAa,SAE3D,cAAA,CAAA,CAAA,CAEJ,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EACF,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs67.js","sources":["../src/components/ui/CardNotification/index.tsx"],"sourcesContent":["import \"./CardNotification.scss\";\r\nimport { useMemo } from \"react\";\r\nimport { Actions, Calendar } from \"@/icons\";\r\nimport { Button, Row } from \"@/components\";\r\n\r\ntype Variant = \"primary\" | \"secondary\";\r\n\r\ntype NotificationIcon = \"calendar\" | \"actions\";\r\n\r\ntype CardNotificationProps = {\r\n type: string;\r\n date: string;\r\n icon: NotificationIcon;\r\n showBadge?: boolean;\r\n title: string;\r\n text: string;\r\n variant?: Variant;\r\n onClickEdit?: () => void;\r\n onClickManage?: () => void;\r\n onClickGoToDetails?: () => void;\r\n showExpired?: boolean;\r\n buttonMaxWidth?: boolean;\r\n onClickRightManage?: () => void;\r\n};\r\n\r\nexport const CardNotification = ({\r\n type,\r\n onClickEdit,\r\n onClickRightManage,\r\n showExpired = false,\r\n buttonMaxWidth,\r\n onClickGoToDetails,\r\n icon = \"calendar\",\r\n variant = \"primary\",\r\n onClickManage,\r\n date,\r\n title,\r\n showBadge = false,\r\n text,\r\n}: CardNotificationProps) => {\r\n const isSecondary = variant === \"secondary\";\r\n\r\n const iconToRender = useMemo(() => {\r\n if (icon === \"calendar\") {\r\n return <Calendar width={24} height={26} color=\"slate-28\" />;\r\n }\r\n if (icon === \"actions\") {\r\n return <Actions width={24} height={26} color=\"slate-28\" />;\r\n }\r\n }, [icon]);\r\n\r\n const cardClasses = ` ${\r\n isSecondary\r\n ? \"bg-lightblue-a03 ui-card-notifications-secondary\"\r\n : \"bg-white\"\r\n } shadow br-x4 `;\r\n\r\n const iconContainer = ` ui-card-notifications-icon base-row ${\r\n isSecondary ? \"bg-white\" : \"bg-lightblue-a03\"\r\n } `;\r\n\r\n const manageButtonClasses = ` ${\r\n buttonMaxWidth ? \"w-full\" : \"ui-card-notifications-button\"\r\n } `;\r\n\r\n return (\r\n <div className={cardClasses}>\r\n <Row px={\"x24\"} py={\"x8\"} justifyContent={\"space-between\"}>\r\n <p className={\"fs-7 fw-semibold\"}> {type}</p>\r\n <p className={\"fs-7 fw-semibold\"}>{date}</p>\r\n </Row>\r\n <div className={\"ui-card-notifications-divider \"} />\r\n <Row pt={\"x16\"} px={\"x24\"} pb={\"x24\"} gap={\"x16\"}>\r\n <div className={iconContainer}>\r\n {showBadge && (\r\n <div className={\"ui-card-notifications-badge-container\"}>\r\n <div className={\"ui-card-notifications-badge\"} />\r\n </div>\r\n )}\r\n {iconToRender}\r\n </div>\r\n <div className={\"w-full\"}>\r\n <div className={\"mb-x24\"}>\r\n <p className={\"my-x8 fs-5 fw-semibold\"}>{title}</p>\r\n {showExpired && (\r\n <Row mb={\"x8\"}>\r\n <div\r\n className={\r\n \"py-x4 px-x16 bg-status-error text-white rounded fw-semibold fs-7\"\r\n }\r\n >\r\n SCADUTO\r\n </div>\r\n </Row>\r\n )}\r\n <p>{text}</p>\r\n </div>\r\n\r\n {onClickManage && (\r\n <div className={\"base-row justify-content-center\"}>\r\n <Button className={manageButtonClasses} onClick={onClickManage}>\r\n Gestisci\r\n </Button>\r\n </div>\r\n )}\r\n\r\n <Row justifyContent={\"flex-end\"} className={\"w-full gap-x16\"}>\r\n {onClickRightManage && (\r\n <div className={\"base-row justify-content-center\"}>\r\n <Button onClick={onClickRightManage}>Gestisci</Button>\r\n </div>\r\n )}\r\n\r\n {!!onClickEdit && (\r\n <Button\r\n onClick={onClickEdit}\r\n bg=\"transparent\"\r\n textColor=\"primary\"\r\n >\r\n Modifica\r\n </Button>\r\n )}\r\n {!!onClickGoToDetails && (\r\n <Button onClick={onClickGoToDetails} variant={\"secondary\"}>\r\n Più dettagli\r\n </Button>\r\n )}\r\n </Row>\r\n </div>\r\n </Row>\r\n </div>\r\n );\r\n};\r\n"],"names":["CardNotification","type","onClickEdit","onClickRightManage","showExpired","buttonMaxWidth","onClickGoToDetails","icon","variant","onClickManage","date","title","showBadge","text","isSecondary","iconToRender","useMemo","Calendar","Actions","cardClasses","iconContainer","manageButtonClasses","jsxs","Row","jsx","Button"],"mappings":"mSAyBaA,EAAmB,CAAC,CAC/B,KAAAC,EACA,YAAAC,EACA,mBAAAC,EACA,YAAAC,EAAc,GACd,eAAAC,EACA,mBAAAC,EACA,KAAAC,EAAO,WACP,QAAAC,EAAU,UACV,cAAAC,EACA,KAAAC,EACA,MAAAC,EACA,UAAAC,EAAY,GACZ,KAAAC,CACF,IAA6B,CAC3B,MAAMC,EAAcN,IAAY,YAE1BO,EAAeC,EAAAA,QAAQ,IAAM,CACjC,GAAIT,IAAS,WACX,+BAAQU,WAAS,CAAA,MAAO,GAAI,OAAQ,GAAI,MAAM,WAAW,EAE3D,GAAIV,IAAS,UACX,+BAAQW,UAAQ,CAAA,MAAO,GAAI,OAAQ,GAAI,MAAM,WAAW,CAC1D,EACC,CAACX,CAAI,CAAC,EAEHY,EAAc,IAClBL,EACI,mDACA,UACN,kBAEMM,EAAgB,0CACpBN,EAAc,WAAa,kBAC7B,MAEMO,EAAsB,IAC1BhB,EAAiB,SAAW,8BAC9B,KAGE,OAAAiB,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAWH,EACd,SAAA,CAAAG,yBAACC,EAAAA,KAAI,GAAI,MAAO,GAAI,KAAM,eAAgB,gBACxC,SAAA,CAACD,EAAAA,kBAAAA,KAAA,IAAA,CAAE,UAAW,mBAAoB,SAAA,CAAA,IAAErB,CAAA,EAAK,EACxCuB,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAW,mBAAqB,SAAKd,CAAA,CAAA,CAAA,EAC1C,EACAc,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAW,gCAAkC,CAAA,EAClDF,EAAAA,kBAAAA,KAACC,OAAI,GAAI,MA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index.cjs68.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs68.js","sources":["../src/components/ui/DatePicker/index.tsx"],"sourcesContent":["// src/components/ui/Button/index.tsx\nimport { DateTime } from \"luxon\";\nimport \"./DatePicker.scss\";\nimport clsx from \"clsx\";\nimport { useEffect, useRef } from \"react\";\n\ntype DatePickerProps = {\n label: string;\n value?: Date | null;\n maxValue?: Date;\n minValue?: Date;\n className?: string;\n disabled?: boolean;\n onClick?: () => void;\n onChange: (date: Date) => void;\n error?: string;\n required?: boolean;\n id?: string;\n};\n\nexport const DatePicker = ({\n label,\n value,\n maxValue,\n minValue,\n className,\n disabled,\n onClick,\n onChange,\n error,\n required = false,\n id,\n}: DatePickerProps) => {\n const inputRef = useRef<HTMLInputElement>(null);\n const inputId =\n id || `datepicker-${label.toLowerCase().replace(/\\s+/g, \"-\")}`;\n\n useEffect(() => {\n if (error && inputRef.current) {\n inputRef.current.setAttribute(\"aria-invalid\", \"true\");\n inputRef.current.setAttribute(\"aria-describedby\", `${inputId}-error`);\n } else if (inputRef.current) {\n inputRef.current.setAttribute(\"aria-invalid\", \"false\");\n inputRef.current.removeAttribute(\"aria-describedby\");\n }\n }, [error, inputId]);\n\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\n if (e.key === \"Enter\" && !disabled) {\n onClick?.();\n }\n };\n\n const formattedValue = value\n ? DateTime.fromJSDate(value).toFormat(\"yyyy-MM-dd\")\n : \"\";\n\n return (\n <div\n className={clsx(\"datepicker-container\", className)}\n role=\"group\"\n aria-labelledby={`${inputId}-label`}\n aria-describedby={error ? `${inputId}-error` : undefined}\n >\n <label\n id={`${inputId}-label`}\n htmlFor={inputId}\n className=\"datepicker-label fs-7\"\n >\n {label}\n {required && (\n <span className=\"text-error ml-1\" aria-hidden=\"true\">\n *\n </span>\n )}\n </label>\n <input\n ref={inputRef}\n id={inputId}\n type=\"date\"\n className=\"datepicker-input fs-6\"\n disabled={disabled}\n value={formattedValue}\n max={\n maxValue\n ? DateTime.fromJSDate(maxValue).toFormat(\"yyyy-MM-dd\")\n : undefined\n }\n min={\n minValue\n ? DateTime.fromJSDate(minValue).toFormat(\"yyyy-MM-dd\")\n : undefined\n }\n onClick={() => onClick?.()}\n onChange={(e) => {\n const newDate = new Date(e.target.value);\n if (!isNaN(newDate.getTime())) {\n onChange(newDate);\n }\n }}\n onKeyDown={handleKeyDown}\n aria-required={required}\n aria-disabled={disabled}\n aria-label={label}\n aria-invalid={!!error}\n aria-describedby={error ? `${inputId}-error` : undefined}\n />\n {error && (\n <div\n id={`${inputId}-error`}\n className=\"datepicker-error\"\n role=\"alert\"\n aria-live=\"polite\"\n >\n {error}\n </div>\n )}\n </div>\n );\n};\n"],"names":["DatePicker","label","value","maxValue","minValue","className","disabled","onClick","onChange","error","required","id","inputRef","useRef","inputId","useEffect","handleKeyDown","e","formattedValue","DateTime","jsxs","clsx","jsx","newDate"],"mappings":"oQAoBaA,EAAa,CAAC,CACzB,MAAAC,EACA,MAAAC,EACA,SAAAC,EACA,SAAAC,EACA,UAAAC,EACA,SAAAC,EACA,QAAAC,EACA,SAAAC,EACA,MAAAC,EACA,SAAAC,EAAW,GACX,GAAAC,CACF,IAAuB,CACf,MAAAC,EAAWC,SAAyB,IAAI,EACxCC,EACJH,GAAM,cAAcV,EAAM,YAAc,EAAA,QAAQ,OAAQ,GAAG,CAAC,GAE9Dc,EAAAA,UAAU,IAAM,CACVN,GAASG,EAAS,SACXA,EAAA,QAAQ,aAAa,eAAgB,MAAM,EACpDA,EAAS,QAAQ,aAAa,mBAAoB,GAAGE,CAAO,QAAQ,GAC3DF,EAAS,UACTA,EAAA,QAAQ,aAAa,eAAgB,OAAO,EAC5CA,EAAA,QAAQ,gBAAgB,kBAAkB,EACrD,EACC,CAACH,EAAOK,CAAO,CAAC,EAEb,MAAAE,EAAiBC,GAA6C,CAC9DA,EAAE,MAAQ,SAAW,CAACX,IACdC,GAAA,MAAAA,IAEd,EAEMW,EAAiBhB,EACnBiB,UAAS,WAAWjB,CAAK,EAAE,SAAS,YAAY,EAChD,GAGF,OAAAkB,EAAA,kBAAA,KAAC,MAAA,CACC,UAAWC,EAAAA,KAAK,uBAAwBhB,CAAS,EACjD,KAAK,QACL,kBAAiB,GAAGS,CAAO,SAC3B,mBAAkBL,EAAQ,GAAGK,CAAO,SAAW,OAE/C,SAAA,CAAAM,EAAA,kBAAA,KAAC,QAAA,CACC,GAAI,GAAGN,CAAO,SACd,QAASA,EACT,UAAU,wBAET,SAAA,CAAAb,EACAS,GACEY,EAAAA,kBAAAA,IAAA,OAAA,CAAK,UAAU,kBAAkB,cAAY,OAAO,SAErD,GAAA,CAAA,CAAA,CAAA,CAEJ,EACAA,EAAA,kBAAA,IAAC,QAAA,CACC,IAAKV,EACL,GAAIE,EACJ,KAAK,OACL,UAAU,wBACV,SAAAR,EACA,MAAOY,EACP,IACEf,EACIgB,EAAAA,QAAS,WAAWhB,CAAQ,EAAE,SAAS,YAAY,EACnD,OAEN,IACEC,EACIe,EAAAA,QAAS,WAAWf,CAAQ,EAAE,SAAS,YAAY,EACnD,OAEN,QAAS,IAAMG,GAAA,YAAAA,IACf,SAAWU,GAAM,CACf,MAAMM,EAAU,IAAI,KAAKN,EAAE,OAAO,KAAK,EAClC,MAAMM,EAAQ,QAAS,CAAA,GAC1Bf,EAASe,CAAO,CAEpB,EACA,UAAWP,EACX,gBAAeN,EACf,gBAAeJ,EACf,aAAYL,EACZ,eAAc,CAAC,CAACQ,EAChB,mBAAkBA,EAAQ,GAAGK,CAAO,SAAW,MAAA,CACjD,EACCL,GACCa,EAAA,kBAAA,IAAC,MAAA,CACC,GAAI,GAAGR,CAAO,SACd,UAAU,mBACV,KAAK,QACL,YAAU,SAET,SAAAL,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs68.js","sources":["../src/components/ui/DatePicker/index.tsx"],"sourcesContent":["// src/components/ui/Button/index.tsx\r\nimport { DateTime } from \"luxon\";\r\nimport \"./DatePicker.scss\";\r\nimport clsx from \"clsx\";\r\nimport { useEffect, useRef } from \"react\";\r\n\r\ntype DatePickerProps = {\r\n label: string;\r\n value?: Date | null;\r\n maxValue?: Date;\r\n minValue?: Date;\r\n className?: string;\r\n disabled?: boolean;\r\n onClick?: () => void;\r\n onChange: (date: Date) => void;\r\n error?: string;\r\n required?: boolean;\r\n id?: string;\r\n};\r\n\r\nexport const DatePicker = ({\r\n label,\r\n value,\r\n maxValue,\r\n minValue,\r\n className,\r\n disabled,\r\n onClick,\r\n onChange,\r\n error,\r\n required = false,\r\n id,\r\n}: DatePickerProps) => {\r\n const inputRef = useRef<HTMLInputElement>(null);\r\n const inputId =\r\n id || `datepicker-${label.toLowerCase().replace(/\\s+/g, \"-\")}`;\r\n\r\n useEffect(() => {\r\n if (error && inputRef.current) {\r\n inputRef.current.setAttribute(\"aria-invalid\", \"true\");\r\n inputRef.current.setAttribute(\"aria-describedby\", `${inputId}-error`);\r\n } else if (inputRef.current) {\r\n inputRef.current.setAttribute(\"aria-invalid\", \"false\");\r\n inputRef.current.removeAttribute(\"aria-describedby\");\r\n }\r\n }, [error, inputId]);\r\n\r\n const handleKeyDown = (e: React.KeyboardEvent<HTMLInputElement>) => {\r\n if (e.key === \"Enter\" && !disabled) {\r\n onClick?.();\r\n }\r\n };\r\n\r\n const formattedValue = value\r\n ? DateTime.fromJSDate(value).toFormat(\"yyyy-MM-dd\")\r\n : \"\";\r\n\r\n return (\r\n <div\r\n className={clsx(\"datepicker-container\", className)}\r\n role=\"group\"\r\n aria-labelledby={`${inputId}-label`}\r\n aria-describedby={error ? `${inputId}-error` : undefined}\r\n >\r\n <label\r\n id={`${inputId}-label`}\r\n htmlFor={inputId}\r\n className=\"datepicker-label fs-7\"\r\n >\r\n {label}\r\n {required && (\r\n <span className=\"text-error ml-1\" aria-hidden=\"true\">\r\n *\r\n </span>\r\n )}\r\n </label>\r\n <input\r\n ref={inputRef}\r\n id={inputId}\r\n type=\"date\"\r\n className=\"datepicker-input fs-6\"\r\n disabled={disabled}\r\n value={formattedValue}\r\n max={\r\n maxValue\r\n ? DateTime.fromJSDate(maxValue).toFormat(\"yyyy-MM-dd\")\r\n : undefined\r\n }\r\n min={\r\n minValue\r\n ? DateTime.fromJSDate(minValue).toFormat(\"yyyy-MM-dd\")\r\n : undefined\r\n }\r\n onClick={() => onClick?.()}\r\n onChange={(e) => {\r\n const newDate = new Date(e.target.value);\r\n if (!isNaN(newDate.getTime())) {\r\n onChange(newDate);\r\n }\r\n }}\r\n onKeyDown={handleKeyDown}\r\n aria-required={required}\r\n aria-disabled={disabled}\r\n aria-label={label}\r\n aria-invalid={!!error}\r\n aria-describedby={error ? `${inputId}-error` : undefined}\r\n />\r\n {error && (\r\n <div\r\n id={`${inputId}-error`}\r\n className=\"datepicker-error\"\r\n role=\"alert\"\r\n aria-live=\"polite\"\r\n >\r\n {error}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n};\r\n"],"names":["DatePicker","label","value","maxValue","minValue","className","disabled","onClick","onChange","error","required","id","inputRef","useRef","inputId","useEffect","handleKeyDown","e","formattedValue","DateTime","jsxs","clsx","jsx","newDate"],"mappings":"oQAoBaA,EAAa,CAAC,CACzB,MAAAC,EACA,MAAAC,EACA,SAAAC,EACA,SAAAC,EACA,UAAAC,EACA,SAAAC,EACA,QAAAC,EACA,SAAAC,EACA,MAAAC,EACA,SAAAC,EAAW,GACX,GAAAC,CACF,IAAuB,CACf,MAAAC,EAAWC,SAAyB,IAAI,EACxCC,EACJH,GAAM,cAAcV,EAAM,YAAc,EAAA,QAAQ,OAAQ,GAAG,CAAC,GAE9Dc,EAAAA,UAAU,IAAM,CACVN,GAASG,EAAS,SACXA,EAAA,QAAQ,aAAa,eAAgB,MAAM,EACpDA,EAAS,QAAQ,aAAa,mBAAoB,GAAGE,CAAO,QAAQ,GAC3DF,EAAS,UACTA,EAAA,QAAQ,aAAa,eAAgB,OAAO,EAC5CA,EAAA,QAAQ,gBA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L,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
|
package/dist/index.cjs69.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs69.js","sources":["../src/components/ui/DatePickerRange/index.tsx"],"sourcesContent":["// src/components/ui/Button/index.tsx\nimport clsx from \"clsx\";\nimport { useEffect, useRef } from \"react\";\nimport { DatePicker } from \"../DatePicker\";\nimport { Row } from \"@/components\";\n\ntype DatePickerRangeProps = {\n label?: string;\n startDateLabel?: string;\n endDateLabel?: string;\n startDate?: Date;\n endDate?: Date;\n className?: string;\n disabled?: boolean;\n required?: boolean;\n error?: string;\n onStartDateChange: (date: Date) => void;\n onEndDateChange: (date: Date) => void;\n onStartDateClick?: () => void;\n onEndDateClick?: () => void;\n};\n\nexport const DatePickerRange = ({\n label,\n startDateLabel = \"Start Date\",\n endDateLabel = \"End Date\",\n startDate,\n endDate,\n className,\n disabled = false,\n required = false,\n error,\n onStartDateChange,\n onEndDateChange,\n onStartDateClick,\n onEndDateClick,\n}: DatePickerRangeProps) => {\n const containerRef = useRef<HTMLDivElement>(null);\n // we need to generate a unique id for the container and manage errors\n const containerId = label\n ? `datepicker-range-${label.toLowerCase().replace(/\\s+/g, \"-\")}`\n : \"datepicker-range\";\n\n useEffect(() => {\n if (error && containerRef.current) {\n containerRef.current.setAttribute(\"aria-invalid\", \"true\");\n containerRef.current.setAttribute(\n \"aria-describedby\",\n `${containerId}-error`,\n );\n } else if (containerRef.current) {\n containerRef.current.setAttribute(\"aria-invalid\", \"false\");\n containerRef.current.removeAttribute(\"aria-describedby\");\n }\n }, [error, containerId]);\n\n const handleStartDateChange = (date: Date) => {\n // Ensure end date is not before start date\n if (endDate && date > endDate) {\n onStartDateChange(date);\n onEndDateChange(date);\n } else {\n onStartDateChange(date);\n }\n };\n\n const handleEndDateChange = (date: Date) => {\n // Ensure start date is not after end date\n if (startDate && date < startDate) {\n onStartDateChange(date);\n onEndDateChange(date);\n } else {\n onEndDateChange(date);\n }\n };\n\n return (\n <div\n ref={containerRef}\n className={clsx(\"base-col gap-x8\", className)}\n role=\"group\"\n aria-labelledby={label ? `${containerId}-label` : undefined}\n aria-describedby={error ? `${containerId}-error` : undefined}\n >\n {label && (\n <label id={`${containerId}-label`} className=\"text-sm text-dark\">\n {label}\n {required && (\n <span className=\"text-error ml-1\" aria-hidden=\"true\">\n *\n </span>\n )}\n </label>\n )}\n\n <Row gap={\"x16\"} role=\"group\">\n <DatePicker\n label={startDateLabel}\n value={startDate}\n maxValue={endDate}\n disabled={disabled}\n required={required}\n onChange={handleStartDateChange}\n onClick={onStartDateClick}\n className=\"flex-1\"\n />\n\n <DatePicker\n label={endDateLabel}\n value={endDate}\n minValue={startDate}\n disabled={disabled}\n required={required}\n onChange={handleEndDateChange}\n onClick={onEndDateClick}\n className=\"flex-1\"\n />\n </Row>\n\n {error && (\n <div\n id={`${containerId}-error`}\n className=\"text-sm text-error\"\n role=\"alert\"\n aria-live=\"polite\"\n >\n {error}\n </div>\n )}\n </div>\n );\n};\n"],"names":["DatePickerRange","label","startDateLabel","endDateLabel","startDate","endDate","className","disabled","required","error","onStartDateChange","onEndDateChange","onStartDateClick","onEndDateClick","containerRef","useRef","containerId","useEffect","handleStartDateChange","date","handleEndDateChange","jsxs","clsx","jsx","Row","DatePicker"],"mappings":"kOAsBaA,EAAkB,CAAC,CAC9B,MAAAC,EACA,eAAAC,EAAiB,aACjB,aAAAC,EAAe,WACf,UAAAC,EACA,QAAAC,EACA,UAAAC,EACA,SAAAC,EAAW,GACX,SAAAC,EAAW,GACX,MAAAC,EACA,kBAAAC,EACA,gBAAAC,EACA,iBAAAC,EACA,eAAAC,CACF,IAA4B,CACpB,MAAAC,EAAeC,SAAuB,IAAI,EAE1CC,EAAcf,EAChB,oBAAoBA,EAAM,cAAc,QAAQ,OAAQ,GAAG,CAAC,GAC5D,mBAEJgB,EAAAA,UAAU,IAAM,CACVR,GAASK,EAAa,SACXA,EAAA,QAAQ,aAAa,eAAgB,MAA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AU,qBACV,KAAK,QACL,YAAU,SAET,SAAAP,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs69.js","sources":["../src/components/ui/DatePickerRange/index.tsx"],"sourcesContent":["// src/components/ui/Button/index.tsx\r\nimport clsx from \"clsx\";\r\nimport { useEffect, useRef } from \"react\";\r\nimport { DatePicker } from \"../DatePicker\";\r\nimport { Row } from \"@/components\";\r\n\r\ntype DatePickerRangeProps = {\r\n label?: string;\r\n startDateLabel?: string;\r\n endDateLabel?: string;\r\n startDate?: Date;\r\n endDate?: Date;\r\n className?: string;\r\n disabled?: boolean;\r\n required?: boolean;\r\n error?: string;\r\n onStartDateChange: (date: Date) => void;\r\n onEndDateChange: (date: Date) => void;\r\n onStartDateClick?: () => void;\r\n onEndDateClick?: () => void;\r\n};\r\n\r\nexport const DatePickerRange = ({\r\n label,\r\n startDateLabel = \"Start Date\",\r\n endDateLabel = \"End Date\",\r\n startDate,\r\n endDate,\r\n className,\r\n disabled = false,\r\n required = false,\r\n error,\r\n onStartDateChange,\r\n onEndDateChange,\r\n onStartDateClick,\r\n onEndDateClick,\r\n}: DatePickerRangeProps) => {\r\n const containerRef = useRef<HTMLDivElement>(null);\r\n // we need to generate a unique id for the container and manage errors\r\n const containerId = label\r\n ? `datepicker-range-${label.toLowerCase().replace(/\\s+/g, \"-\")}`\r\n : \"datepicker-range\";\r\n\r\n useEffect(() => {\r\n if (error && containerRef.current) {\r\n containerRef.current.setAttribute(\"aria-invalid\", \"true\");\r\n containerRef.current.setAttribute(\r\n \"aria-describedby\",\r\n `${containerId}-error`,\r\n );\r\n } else if (containerRef.current) {\r\n containerRef.current.setAttribute(\"aria-invalid\", \"false\");\r\n containerRef.current.removeAttribute(\"aria-describedby\");\r\n }\r\n }, [error, containerId]);\r\n\r\n const handleStartDateChange = (date: Date) => {\r\n // Ensure end date is not before start date\r\n if (endDate && date > endDate) {\r\n onStartDateChange(date);\r\n onEndDateChange(date);\r\n } else {\r\n onStartDateChange(date);\r\n }\r\n };\r\n\r\n const handleEndDateChange = (date: Date) => {\r\n // Ensure start date is not after end date\r\n if (startDate && date < startDate) {\r\n onStartDateChange(date);\r\n onEndDateChange(date);\r\n } else {\r\n onEndDateChange(date);\r\n }\r\n };\r\n\r\n return (\r\n <div\r\n ref={containerRef}\r\n className={clsx(\"base-col gap-x8\", className)}\r\n role=\"group\"\r\n aria-labelledby={label ? `${containerId}-label` : undefined}\r\n aria-describedby={error ? `${containerId}-error` : undefined}\r\n >\r\n {label && (\r\n <label id={`${containerId}-label`} className=\"text-sm text-dark\">\r\n {label}\r\n {required && (\r\n <span className=\"text-error ml-1\" aria-hidden=\"true\">\r\n *\r\n </span>\r\n )}\r\n </label>\r\n )}\r\n\r\n <Row gap={\"x16\"} role=\"group\">\r\n <DatePicker\r\n label={startDateLabel}\r\n value={startDate}\r\n maxValue={endDate}\r\n disabled={disabled}\r\n required={required}\r\n onChange={handleStartDateChange}\r\n onClick={onStartDateClick}\r\n className=\"flex-1\"\r\n />\r\n\r\n <DatePicker\r\n label={endDateLabel}\r\n value={endDate}\r\n minValue={startDate}\r\n disabled={disabled}\r\n required={required}\r\n onChange={handleEndDateChange}\r\n onClick={onEndDateClick}\r\n className=\"flex-1\"\r\n />\r\n </Row>\r\n\r\n {error && (\r\n <div\r\n id={`${containerId}-error`}\r\n className=\"text-sm text-error\"\r\n role=\"alert\"\r\n aria-live=\"polite\"\r\n >\r\n {error}\r\n </div>\r\n )}\r\n </div>\r\n );\r\n};\r\n"],"names":["DatePickerRange","label","startDateLabel","endDateLabel","startDate","endDate","className","disabled","required","error","onStartDateChange","onEndDateChange","onStartDateClick","onEndDateClick","containerRef","useRef","containerId","useEffect","handleStartDateChange","date","handleEndDateChange","jsxs","clsx","jsx","Row","DatePicker"],"mappings":"kOAsBaA,EAAkB,CAAC,CAC9B,MAAAC,EACA,eAAAC,EAAiB,aACjB,aAAAC,EAAe,WACf,UAAAC,EACA,QAAAC,EACA,UAAA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ACP,SAAUC,EACV,SAAAE,EACA,SAAAC,EACA,SAAUU,EACV,QAASN,EACT,UAAU,QAAA,CACZ,EAEAW,EAAA,kBAAA,IAACE,EAAA,WAAA,CACC,MAAOtB,EACP,MAAOE,EACP,SAAUD,EACV,SAAAG,EACA,SAAAC,EACA,SAAUY,EACV,QAASP,EACT,UAAU,QAAA,CAAA,CACZ,EACF,EAECJ,GACCc,EAAA,kBAAA,IAAC,MAAA,CACC,GAAI,GAAGP,CAAW,SAClB,UAAU,qBACV,KAAK,QACL,YAAU,SAET,SAAAP,CAAA,CAAA,CACH,CAAA,CAEJ,CAEJ"}
|
package/dist/index.cjs7.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs144.js"),o=require("react"),a=require("./index.cjs146.js"),u=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index.cjs144.js"),o=require("react"),a=require("./index.cjs146.js"),u=require("./index.cjs154.js"),l=({as:e,className:n,style:t,...s})=>{const r=e||"div",c=o.useMemo(()=>[...u.createSpacingClasses(s)].join(" "),[s]);return i.jsxRuntimeExports.jsx(r,{className:a.clsx("base-grid",n,c),style:{...t},...s})};exports.GridContainer=l;
|
2
2
|
//# sourceMappingURL=index.cjs7.js.map
|
package/dist/index.cjs7.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs7.js","sources":["../src/components/ui/GridContainer/index.tsx"],"sourcesContent":["import { ElementType, ComponentPropsWithoutRef, useMemo } from \"react\";\nimport clsx from \"clsx\";\nimport { createSpacingClasses, SpacingProps } from \"@theme/spacing.ts\";\n\ntype PolymorphicProps<E extends ElementType> = {\n as?: E;\n} & SpacingProps &\n Omit<ComponentPropsWithoutRef<E>, keyof SpacingProps>;\n\nexport const GridContainer = <E extends ElementType = \"div\">({\n as,\n className,\n style,\n ...rest\n}: PolymorphicProps<E>) => {\n const Component = as || \"div\";\n\n const classNames = useMemo(() => {\n const spacingClasses = createSpacingClasses(rest);\n return [...spacingClasses].join(\" \");\n }, [rest]);\n\n return (\n <Component\n className={clsx(\"base-grid\", className, classNames)}\n style={{\n ...style,\n }}\n {...rest}\n />\n );\n};\n"],"names":["GridContainer","as","className","style","rest","Component","classNames","useMemo","createSpacingClasses","jsx","clsx"],"mappings":"sMASaA,EAAgB,CAAgC,CAC3D,GAAAC,EACA,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,IAA2B,CACzB,MAAMC,EAAYJ,GAAM,MAElBK,EAAaC,EAAAA,QAAQ,IAElB,CAAC,GADeC,uBAAqBJ,CAAI,CACvB,EAAE,KAAK,GAAG,EAClC,CAACA,CAAI,CAAC,EAGP,OAAAK,EAAA,kBAAA,IAACJ,EAAA,CACC,UAAWK,EAAA,KAAK,YAAaR,EAAWI,CAAU,EAClD,MAAO,CACL,GAAGH,CACL,EACC,GAAGC,CAAA,CACN,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs7.js","sources":["../src/components/ui/GridContainer/index.tsx"],"sourcesContent":["import { ElementType, ComponentPropsWithoutRef, useMemo } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { createSpacingClasses, SpacingProps } from \"@theme/spacing.ts\";\r\n\r\ntype PolymorphicProps<E extends ElementType> = {\r\n as?: E;\r\n} & SpacingProps &\r\n Omit<ComponentPropsWithoutRef<E>, keyof SpacingProps>;\r\n\r\nexport const GridContainer = <E extends ElementType = \"div\">({\r\n as,\r\n className,\r\n style,\r\n ...rest\r\n}: PolymorphicProps<E>) => {\r\n const Component = as || \"div\";\r\n\r\n const classNames = useMemo(() => {\r\n const spacingClasses = createSpacingClasses(rest);\r\n return [...spacingClasses].join(\" \");\r\n }, [rest]);\r\n\r\n return (\r\n <Component\r\n className={clsx(\"base-grid\", className, classNames)}\r\n style={{\r\n ...style,\r\n }}\r\n {...rest}\r\n />\r\n );\r\n};\r\n"],"names":["GridContainer","as","className","style","rest","Component","classNames","useMemo","createSpacingClasses","jsx","clsx"],"mappings":"sMASaA,EAAgB,CAAgC,CAC3D,GAAAC,EACA,UAAAC,EACA,MAAAC,EACA,GAAGC,CACL,IAA2B,CACzB,MAAMC,EAAYJ,GAAM,MAElBK,EAAaC,EAAAA,QAAQ,IAElB,CAAC,GADeC,uBAAqBJ,CAAI,CACvB,EAAE,KAAK,GAAG,EAClC,CAACA,CAAI,CAAC,EAGP,OAAAK,EAAA,kBAAA,IAACJ,EAAA,CACC,UAAWK,EAAA,KAAK,YAAaR,EAAWI,CAAU,EAClD,MAAO,CACL,GAAGH,CACL,EACC,GAAGC,CAAA,CACN,CAEJ"}
|
package/dist/index.cjs70.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs70.js","sources":["../src/components/ui/NotificationsSettingsHeader/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { Info } from \"@/icons\";\nimport { ActionIconText } from \"../ActionIconText\";\nimport \"./NotificationsSettingsHeader.scss\";\n\ntype TableHeaderProps = {\n className?: string;\n};\n\nexport const NotificationsSettingsHeader = ({\n className,\n ...props\n}: TableHeaderProps) => {\n const fixedColumns = [\n {\n label: \"Categoria notifica\",\n noIcon: true,\n isFlex: true,\n },\n {\n label: \"SMS\",\n fixedWidth: true,\n popupInfo: {\n title: \"SMS\",\n description: \"SMS come metodo di notifica\",\n isOpen: false,\n onClickCloseBtn: () => {},\n },\n },\n {\n label: \"Email\",\n fixedWidth: true,\n popupInfo: {\n title: \"Email\",\n description: \"Email come metodo di notifica\",\n isOpen: false,\n onClickCloseBtn: () => {},\n },\n },\n ];\n\n return (\n <div>\n <thead className={clsx(className)} {...props}>\n <tr className=\"w-full flex\">\n {fixedColumns.map((column, index) => {\n return (\n <th\n key={`${column.label}-${index}`}\n className={clsx(\n \"table-header-divider-cell w-full\",\n column.isFlex ? \"flex-1\" : \"flex-none\",\n )}\n >\n <div\n className={clsx(\n \"table__cell--header--content\",\n column.fixedWidth ? \"table-header-fixed-width \" : \"\",\n )}\n >\n <div>\n <ActionIconText\n classNameText={\"text-grey-black \"}\n noIcon={column.noIcon}\n icon={<Info />}\n textLabel={column.label}\n iconPosition={\"right\"}\n popupInfo={column.popupInfo}\n />\n </div>\n </div>\n </th>\n );\n })}\n </tr>\n </thead>\n <div className={\"table-header-divider\"} />\n </div>\n );\n};\n\nexport default NotificationsSettingsHeader;\n"],"names":["NotificationsSettingsHeader","className","props","fixedColumns","jsx","clsx","column","index","ActionIconText","Info"],"mappings":"gRASaA,EAA8B,CAAC,CAC1C,UAAAC,EACA,GAAGC,CACL,IAAwB,CACtB,MAAMC,EAAe,CACnB,CACE,MAAO,qBACP,OAAQ,GACR,OAAQ,EACV,EACA,CACE,MAAO,MACP,WAAY,GACZ,UAAW,CACT,MAAO,MACP,YAAa,8BACb,OAAQ,GACR,gBAAiB,IAAM,CAAA,CAAC,CAE5B,EACA,CACE,MAAO,QACP,WAAY,GACZ,UAAW,CACT,MAAO,QACP,YAAa,gCACb,OAAQ,GACR,gBAAiB,IAAM,CAAA,CAAC,CAC1B,CAEJ,EAEA,gCACG,MACC,CAAA,SAAA,CAAAC,wBAAC,QAAM,CAAA,UAAWC,EAAAA,KAAKJ,CAAS,EAAI,GAAGC,EACrC,SAACE,EAAAA,kBAAAA,IAAA,KAAA,CAAG,UAAU,cACX,SAAAD,EAAa,IAAI,CAACG,EAAQC,IAEvBH,EAAA,kBAAA,IAAC,KAAA,CAEC,UAAWC,EAAA,KACT,qCACAC,EAAO,OAAS,SAAW,WAC7B,EAEA,SAAAF,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWC,EAAA,KACT,+BACAC,EAAO,WAAa,4BAA8B,EACpD,EAEA,iCAAC,MACC,CAAA,SAAAF,EAAA,kBAAA,IAACI,EAAA,eAAA,CACC,cAAe,mBACf,OAAQF,EAAO,OACf,6BAAOG,EAAK,KAAA,EAAA,EACZ,UAAWH,EAAO,MAClB,aAAc,QACd,UAAWA,EAAO,SAAA,CAAA,CAEtB,CAAA,CAAA,CAAA,CACF,EAtBK,GAAGA,EAAO,KAAK,IAAIC,CAAK,EAuB/B,CAEH,EACH,CACF,CAAA,EACAH,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAW,sBAAwB,CAAA,CAAA,EAC1C,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs70.js","sources":["../src/components/ui/NotificationsSettingsHeader/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport { Info } from \"@/icons\";\r\nimport { ActionIconText } from \"../ActionIconText\";\r\nimport \"./NotificationsSettingsHeader.scss\";\r\n\r\ntype TableHeaderProps = {\r\n className?: string;\r\n};\r\n\r\nexport const NotificationsSettingsHeader = ({\r\n className,\r\n ...props\r\n}: TableHeaderProps) => {\r\n const fixedColumns = [\r\n {\r\n label: \"Categoria notifica\",\r\n noIcon: true,\r\n isFlex: true,\r\n },\r\n {\r\n label: \"SMS\",\r\n fixedWidth: true,\r\n popupInfo: {\r\n title: \"SMS\",\r\n description: \"SMS come metodo di notifica\",\r\n isOpen: false,\r\n onClickCloseBtn: () => {},\r\n },\r\n },\r\n {\r\n label: \"Email\",\r\n fixedWidth: true,\r\n popupInfo: {\r\n title: \"Email\",\r\n description: \"Email come metodo di notifica\",\r\n isOpen: false,\r\n onClickCloseBtn: () => {},\r\n },\r\n },\r\n ];\r\n\r\n return (\r\n <div>\r\n <thead className={clsx(className)} {...props}>\r\n <tr className=\"w-full flex\">\r\n {fixedColumns.map((column, index) => {\r\n return (\r\n <th\r\n key={`${column.label}-${index}`}\r\n className={clsx(\r\n \"table-header-divider-cell w-full\",\r\n column.isFlex ? \"flex-1\" : \"flex-none\",\r\n )}\r\n >\r\n <div\r\n className={clsx(\r\n \"table__cell--header--content\",\r\n column.fixedWidth ? \"table-header-fixed-width \" : \"\",\r\n )}\r\n >\r\n <div>\r\n <ActionIconText\r\n classNameText={\"text-grey-black \"}\r\n noIcon={column.noIcon}\r\n icon={<Info />}\r\n textLabel={column.label}\r\n iconPosition={\"right\"}\r\n popupInfo={column.popupInfo}\r\n />\r\n </div>\r\n </div>\r\n </th>\r\n );\r\n })}\r\n </tr>\r\n </thead>\r\n <div className={\"table-header-divider\"} />\r\n </div>\r\n );\r\n};\r\n\r\nexport default NotificationsSettingsHeader;\r\n"],"names":["NotificationsSettingsHeader","className","props","fixedColumns","jsx","clsx","column","index","ActionIconText","Info"],"mappings":"gRASaA,EAA8B,CAAC,CAC1C,UAAAC,EACA,GAAGC,CACL,IAAwB,CACtB,MAAMC,EAAe,CACnB,CACE,MAAO,qBACP,OAAQ,GACR,OAAQ,EACV,EACA,CACE,MAAO,MACP,WAAY,GACZ,UAAW,CACT,MAAO,MACP,YAAa,8BACb,OAAQ,GACR,gBAAiB,IAAM,CAAA,CAAC,CAE5B,EACA,CACE,MAAO,QACP,WAAY,GACZ,UAAW,CACT,MAAO,QACP,YAAa,gCACb,OAAQ,GACR,gBAAiB,IAAM,CAAA,CAAC,CAC1B,CAEJ,EAEA,gCACG,MACC,CAAA,SAAA,CAAAC,wBAAC,QAAM,CAAA,UAAWC,EAAAA,KAAKJ,CAAS,EAAI,GAAGC,EACrC,SAACE,EAAAA,kBAAAA,IAAA,KAAA,CAAG,UAAU,cACX,SAAAD,EAAa,IAAI,CAACG,EAAQC,IAEvBH,EAAA,kBAAA,IAAC,KAAA,CAEC,UAAWC,EAAA,KACT,qCACAC,EAAO,OAAS,SAAW,WAC7B,EAEA,SAAAF,EAAA,kBAAA,IAAC,MAAA,CACC,UAAWC,EAAA,KACT,+BACAC,EAAO,WAAa,4BAA8B,EACpD,EAEA,iCAAC,MACC,CAAA,SAAAF,EAAA,kBAAA,IAACI,EAAA,eAAA,CACC,cAAe,mBACf,OAAQF,EAAO,OACf,6BAAOG,EAAK,KAAA,EAAA,EACZ,UAAWH,EAAO,MAClB,aAAc,QACd,UAAWA,EAAO,SAAA,CAAA,CAEtB,CAAA,CAAA,CAAA,CACF,EAtBK,GAAGA,EAAO,KAAK,IAAIC,CAAK,EAuB/B,CAEH,EACH,CACF,CAAA,EACAH,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAW,sBAAwB,CAAA,CAAA,EAC1C,CAEJ"}
|
package/dist/index.cjs71.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs71.js","sources":["../src/components/ui/InfoModal/index.tsx"],"sourcesContent":["\"use client\";\n\nimport * as Dialog from \"@radix-ui/react-dialog\";\nimport { Row } from \"@/components\";\nimport { Actions, Close } from \"@/icons\";\nimport \"./InfoModal.scss\";\n\ntype InfoModalProps = {\n open: boolean;\n setOpen: (open: boolean) => void;\n id?: string;\n title: string;\n text: string;\n};\n\nconst InfoModal = ({ open, setOpen, id = \"\", title, text }: InfoModalProps) => {\n return (\n <Dialog.Root open={open} onOpenChange={setOpen}>\n <Dialog.Portal>\n <Dialog.Content className=\"shadow br-x4 ui-info-modal-body\" id={id}>\n <div className=\"bg-lightblue-a03 ui-info-modal-container shadow br-x4\">\n <Row p={\"x20\"} gap=\"x16\">\n <div className=\"ui-info-modal-icon base-row bg-lightblue-a03\">\n <div className=\"ui-info-modal-badge-container\">\n <div className=\"ui-info-modal-badge\" />\n </div>\n <Row\n className=\"ui-info-modal-action-container\"\n alignItems=\"center\"\n justifyContent=\"center\"\n >\n <Actions width={24} height={26} color=\"slate-28\" />\n </Row>\n </div>\n <div className=\"w-full\">\n <p className=\"my-x8 fs-5 fw-semibold\">{title}</p>\n <p>{text}</p>\n </div>\n <Close\n className={\"cursor-pointer\"}\n onClick={() => setOpen(false)}\n width={32}\n height={32}\n color=\"slate-28\"\n />\n </Row>\n </div>\n </Dialog.Content>\n </Dialog.Portal>\n </Dialog.Root>\n );\n};\n\nexport { InfoModal };\n"],"names":["InfoModal","open","setOpen","id","title","text","jsx","Dialog.Root","Dialog.Portal","Dialog.Content","jsxs","Row","Actions","Close"],"mappings":"iRAeMA,EAAY,CAAC,CAAE,KAAAC,EAAM,QAAAC,EAAS,GAAAC,EAAK,GAAI,MAAAC,EAAO,KAAAC,KAEhDC,EAAA,kBAAA,IAACC,EAAO,KAAP,CAAY,KAAAN,EAAY,aAAcC,EACrC,SAACI,EAAAA,kBAAAA,IAAAE,EAAAA,OAAA,CACC,SAACF,EAAA,kBAAA,IAAAG,EAAA,QAAA,CAAe,UAAU,kCAAkC,GAAAN,EAC1D,SAAAG,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,wDACb,SAAAI,EAAA,kBAAA,KAACC,EAAI,IAAA,CAAA,EAAG,MAAO,IAAI,MACjB,SAAA,CAACD,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,+CACb,SAAA,CAAAJ,EAAAA,kBAAAA,IAAC,OAAI,UAAU,gCACb,iCAAC,MAAI,CAAA,UAAU,sBAAsB,CACvC,CAAA,EACAA,EAAA,kBAAA,IAACK,EAAA,IAAA,CACC,UAAU,iCACV,WAAW,SACX,eAAe,SAEf,iCAACC,EAAQ,QAAA,CAAA,MAAO,GAAI,OAAQ,GAAI,MAAM,UAAW,CAAA,CAAA,CAAA,CACnD,EACF,EACAF,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,SACb,SAAA,CAACJ,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,yBAA0B,SAAMF,EAAA,EAC7CE,EAAAA,kBAAAA,IAAC,KAAG,SAAKD,CAAA,CAAA,CAAA,EACX,EACAC,EAAA,kBAAA,IAACO,EAAA,MAAA,CACC,UAAW,iBACX,QAAS,IAAMX,EAAQ,EAAK,EAC5B,MAAO,GACP,OAAQ,GACR,MAAM,UAAA,CAAA,CAEV,CAAA,CAAA,CACF,CAAA,EACF,CAAA,CACF,CACF,CAAA"}
|
1
|
+
{"version":3,"file":"index.cjs71.js","sources":["../src/components/ui/InfoModal/index.tsx"],"sourcesContent":["\"use client\";\r\n\r\nimport * as Dialog from \"@radix-ui/react-dialog\";\r\nimport { Row } from \"@/components\";\r\nimport { Actions, Close } from \"@/icons\";\r\nimport \"./InfoModal.scss\";\r\n\r\ntype InfoModalProps = {\r\n open: boolean;\r\n setOpen: (open: boolean) => void;\r\n id?: string;\r\n title: string;\r\n text: string;\r\n};\r\n\r\nconst InfoModal = ({ open, setOpen, id = \"\", title, text }: InfoModalProps) => {\r\n return (\r\n <Dialog.Root open={open} onOpenChange={setOpen}>\r\n <Dialog.Portal>\r\n <Dialog.Content className=\"shadow br-x4 ui-info-modal-body\" id={id}>\r\n <div className=\"bg-lightblue-a03 ui-info-modal-container shadow br-x4\">\r\n <Row p={\"x20\"} gap=\"x16\">\r\n <div className=\"ui-info-modal-icon base-row bg-lightblue-a03\">\r\n <div className=\"ui-info-modal-badge-container\">\r\n <div className=\"ui-info-modal-badge\" />\r\n </div>\r\n <Row\r\n className=\"ui-info-modal-action-container\"\r\n alignItems=\"center\"\r\n justifyContent=\"center\"\r\n >\r\n <Actions width={24} height={26} color=\"slate-28\" />\r\n </Row>\r\n </div>\r\n <div className=\"w-full\">\r\n <p className=\"my-x8 fs-5 fw-semibold\">{title}</p>\r\n <p>{text}</p>\r\n </div>\r\n <Close\r\n className={\"cursor-pointer\"}\r\n onClick={() => setOpen(false)}\r\n width={32}\r\n height={32}\r\n color=\"slate-28\"\r\n />\r\n </Row>\r\n </div>\r\n </Dialog.Content>\r\n </Dialog.Portal>\r\n </Dialog.Root>\r\n );\r\n};\r\n\r\nexport { InfoModal };\r\n"],"names":["InfoModal","open","setOpen","id","title","text","jsx","Dialog.Root","Dialog.Portal","Dialog.Content","jsxs","Row","Actions","Close"],"mappings":"iRAeMA,EAAY,CAAC,CAAE,KAAAC,EAAM,QAAAC,EAAS,GAAAC,EAAK,GAAI,MAAAC,EAAO,KAAAC,KAEhDC,EAAA,kBAAA,IAACC,EAAO,KAAP,CAAY,KAAAN,EAAY,aAAcC,EACrC,SAACI,EAAAA,kBAAAA,IAAAE,EAAAA,OAAA,CACC,SAACF,EAAA,kBAAA,IAAAG,EAAA,QAAA,CAAe,UAAU,kCAAkC,GAAAN,EAC1D,SAAAG,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,wDACb,SAAAI,EAAA,kBAAA,KAACC,EAAI,IAAA,CAAA,EAAG,MAAO,IAAI,MACjB,SAAA,CAACD,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,+CACb,SAAA,CAAAJ,EAAAA,kBAAAA,IAAC,OAAI,UAAU,gCACb,iCAAC,MAAI,CAAA,UAAU,sBAAsB,CACvC,CAAA,EACAA,EAAA,kBAAA,IAACK,EAAA,IAAA,CACC,UAAU,iCACV,WAAW,SACX,eAAe,SAEf,iCAACC,EAAQ,QAAA,CAAA,MAAO,GAAI,OAAQ,GAAI,MAAM,UAAW,CAAA,CAAA,CAAA,CACnD,EACF,EACAF,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,SACb,SAAA,CAACJ,EAAA,kBAAA,IAAA,IAAA,CAAE,UAAU,yBAA0B,SAAMF,EAAA,EAC7CE,EAAAA,kBAAAA,IAAC,KAAG,SAAKD,CAAA,CAAA,CAAA,EACX,EACAC,EAAA,kBAAA,IAACO,EAAA,MAAA,CACC,UAAW,iBACX,QAAS,IAAMX,EAAQ,EAAK,EAC5B,MAAO,GACP,OAAQ,GACR,MAAM,UAAA,CAAA,CAEV,CAAA,CAAA,CACF,CAAA,EACF,CAAA,CACF,CACF,CAAA"}
|
package/dist/index.cjs72.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs72.js","sources":["../src/components/ui/DoctorSkeleton/index.tsx"],"sourcesContent":["import \"./DoctorSkeleton.scss\";\n\nexport const DoctorSkeleton = () => {\n return (\n <div className=\"doctor-skeleton-container\">\n {/* Doctor header with title and buttons */}\n <div className=\"doctor-skeleton-header-row\">\n <div className=\"doctor-skeleton-doctor-name pulse\"></div>\n <div className=\"doctor-skeleton-actions\">\n <div className=\"doctor-skeleton-action-storico pulse\"></div>\n <div className=\"doctor-skeleton-action-scegli pulse\"></div>\n <div className=\"doctor-skeleton-action-cambia pulse\"></div>\n </div>\n </div>\n\n {/* Divider */}\n <div className=\"doctor-skeleton-divider\"></div>\n\n {/* Info fields in 3-column layout */}\n <div className=\"doctor-skeleton-info-grid\">\n {/* Column 1: Anno di nascita */}\n <div className=\"doctor-skeleton-info-column\">\n <div className=\"doctor-skeleton-info-label pulse\"></div>\n <div className=\"doctor-skeleton-info-value pulse\"></div>\n </div>\n\n {/* Column 2: Distretto */}\n <div className=\"doctor-skeleton-info-column\">\n <div className=\"doctor-skeleton-info-label pulse\"></div>\n <div className=\"doctor-skeleton-info-value-long pulse\"></div>\n </div>\n\n {/* Column 3: Specializzazione */}\n <div className=\"doctor-skeleton-info-column\">\n <div className=\"doctor-skeleton-info-label pulse\"></div>\n <div className=\"doctor-skeleton-info-value pulse\"></div>\n </div>\n </div>\n\n {/* Selection date in separate row */}\n <div className=\"doctor-skeleton-selection-date\">\n <div className=\"doctor-skeleton-info-label pulse\"></div>\n <div className=\"doctor-skeleton-info-value pulse\"></div>\n </div>\n\n {/* Tabs */}\n <div className=\"doctor-skeleton-tabs-container\">\n <div className=\"doctor-skeleton-tab-active pulse\"></div>\n <div className=\"doctor-skeleton-tab-divider\"></div>\n </div>\n\n {/* Office address */}\n <div className=\"doctor-skeleton-office\">\n <div className=\"doctor-skeleton-office-title pulse\"></div>\n\n {/* Contact info and schedule in two columns */}\n <div className=\"doctor-skeleton-office-grid\">\n {/* Left column - Contact info */}\n <div className=\"doctor-skeleton-contact-column\">\n <div className=\"doctor-skeleton-contact-item\">\n <div className=\"doctor-skeleton-contact-label pulse\"></div>\n <div className=\"doctor-skeleton-contact-value pulse\"></div>\n </div>\n <div className=\"doctor-skeleton-contact-item\">\n <div className=\"doctor-skeleton-contact-label pulse\"></div>\n <div className=\"doctor-skeleton-contact-value pulse\"></div>\n </div>\n </div>\n\n {/* Right column - Schedule */}\n <div className=\"doctor-skeleton-schedule-column\">\n <div className=\"doctor-skeleton-schedule-title pulse\"></div>\n <div className=\"doctor-skeleton-schedule-grid\">\n {/* Row 1 */}\n <div className=\"doctor-skeleton-schedule-day\">\n <div className=\"doctor-skeleton-day-label pulse\"></div>\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\n </div>\n <div className=\"doctor-skeleton-schedule-day\">\n <div className=\"doctor-skeleton-day-label pulse\"></div>\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\n </div>\n\n {/* Row 2 */}\n <div className=\"doctor-skeleton-schedule-day\">\n <div className=\"doctor-skeleton-day-label pulse\"></div>\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\n </div>\n <div className=\"doctor-skeleton-schedule-day\">\n <div className=\"doctor-skeleton-day-label pulse\"></div>\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\n </div>\n\n {/* Row 3 */}\n <div className=\"doctor-skeleton-schedule-day\">\n <div className=\"doctor-skeleton-day-label pulse\"></div>\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n"],"names":["DoctorSkeleton","jsxs","jsx"],"mappings":"kJAEO,MAAMA,EAAiB,IAE1BC,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAU,4BAEb,SAAA,CAACA,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,6BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,mCAAoC,CAAA,EACnDD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,0BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,sCAAuC,CAAA,EACtDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,qCAAsC,CAAA,EACrDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,qCAAsC,CAAA,CAAA,CACvD,CAAA,CAAA,EACF,EAGAA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,yBAA0B,CAAA,EAGzCD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,4BAEb,SAAA,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AAI,UAAU,iCAAkC,CAAA,EACjDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,iCAAkC,CAAA,CAAA,EACnD,EAGAD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,+BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,iCAAkC,CAAA,EACjDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,iCAAkC,CAAA,CAAA,CACnD,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EACF"}
|
1
|
+
{"version":3,"file":"index.cjs72.js","sources":["../src/components/ui/DoctorSkeleton/index.tsx"],"sourcesContent":["import \"./DoctorSkeleton.scss\";\r\n\r\nexport const DoctorSkeleton = () => {\r\n return (\r\n <div className=\"doctor-skeleton-container\">\r\n {/* Doctor header with title and buttons */}\r\n <div className=\"doctor-skeleton-header-row\">\r\n <div className=\"doctor-skeleton-doctor-name pulse\"></div>\r\n <div className=\"doctor-skeleton-actions\">\r\n <div className=\"doctor-skeleton-action-storico pulse\"></div>\r\n <div className=\"doctor-skeleton-action-scegli pulse\"></div>\r\n <div className=\"doctor-skeleton-action-cambia pulse\"></div>\r\n </div>\r\n </div>\r\n\r\n {/* Divider */}\r\n <div className=\"doctor-skeleton-divider\"></div>\r\n\r\n {/* Info fields in 3-column layout */}\r\n <div className=\"doctor-skeleton-info-grid\">\r\n {/* Column 1: Anno di nascita */}\r\n <div className=\"doctor-skeleton-info-column\">\r\n <div className=\"doctor-skeleton-info-label pulse\"></div>\r\n <div className=\"doctor-skeleton-info-value pulse\"></div>\r\n </div>\r\n\r\n {/* Column 2: Distretto */}\r\n <div className=\"doctor-skeleton-info-column\">\r\n <div className=\"doctor-skeleton-info-label pulse\"></div>\r\n <div className=\"doctor-skeleton-info-value-long pulse\"></div>\r\n </div>\r\n\r\n {/* Column 3: Specializzazione */}\r\n <div className=\"doctor-skeleton-info-column\">\r\n <div className=\"doctor-skeleton-info-label pulse\"></div>\r\n <div className=\"doctor-skeleton-info-value pulse\"></div>\r\n </div>\r\n </div>\r\n\r\n {/* Selection date in separate row */}\r\n <div className=\"doctor-skeleton-selection-date\">\r\n <div className=\"doctor-skeleton-info-label pulse\"></div>\r\n <div className=\"doctor-skeleton-info-value pulse\"></div>\r\n </div>\r\n\r\n {/* Tabs */}\r\n <div className=\"doctor-skeleton-tabs-container\">\r\n <div className=\"doctor-skeleton-tab-active pulse\"></div>\r\n <div className=\"doctor-skeleton-tab-divider\"></div>\r\n </div>\r\n\r\n {/* Office address */}\r\n <div className=\"doctor-skeleton-office\">\r\n <div className=\"doctor-skeleton-office-title pulse\"></div>\r\n\r\n {/* Contact info and schedule in two columns */}\r\n <div className=\"doctor-skeleton-office-grid\">\r\n {/* Left column - Contact info */}\r\n <div className=\"doctor-skeleton-contact-column\">\r\n <div className=\"doctor-skeleton-contact-item\">\r\n <div className=\"doctor-skeleton-contact-label pulse\"></div>\r\n <div className=\"doctor-skeleton-contact-value pulse\"></div>\r\n </div>\r\n <div className=\"doctor-skeleton-contact-item\">\r\n <div className=\"doctor-skeleton-contact-label pulse\"></div>\r\n <div className=\"doctor-skeleton-contact-value pulse\"></div>\r\n </div>\r\n </div>\r\n\r\n {/* Right column - Schedule */}\r\n <div className=\"doctor-skeleton-schedule-column\">\r\n <div className=\"doctor-skeleton-schedule-title pulse\"></div>\r\n <div className=\"doctor-skeleton-schedule-grid\">\r\n {/* Row 1 */}\r\n <div className=\"doctor-skeleton-schedule-day\">\r\n <div className=\"doctor-skeleton-day-label pulse\"></div>\r\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\r\n </div>\r\n <div className=\"doctor-skeleton-schedule-day\">\r\n <div className=\"doctor-skeleton-day-label pulse\"></div>\r\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\r\n </div>\r\n\r\n {/* Row 2 */}\r\n <div className=\"doctor-skeleton-schedule-day\">\r\n <div className=\"doctor-skeleton-day-label pulse\"></div>\r\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\r\n </div>\r\n <div className=\"doctor-skeleton-schedule-day\">\r\n <div className=\"doctor-skeleton-day-label pulse\"></div>\r\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\r\n </div>\r\n\r\n {/* Row 3 */}\r\n <div className=\"doctor-skeleton-schedule-day\">\r\n <div className=\"doctor-skeleton-day-label pulse\"></div>\r\n <div className=\"doctor-skeleton-day-hours pulse\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n"],"names":["DoctorSkeleton","jsxs","jsx"],"mappings":"kJAEO,MAAMA,EAAiB,IAE1BC,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAU,4BAEb,SAAA,CAACA,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,6BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,mCAAoC,CAAA,EACnDD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,0BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,sCAAuC,CAAA,EACtDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,qCAAsC,CAAA,EACrDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,qCAAsC,CAAA,CAAA,CACvD,CAAA,CAAA,EACF,EAGAA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,yBAA0B,CAAA,EAGzCD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,4BAEb,SAAA,CAACA,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,8BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,kCAAmC,CAAA,EAClDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,kCAAmC,CAAA,CAAA,EACpD,EAGAD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,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A,IAAC,MAAI,CAAA,UAAU,iCAAkC,CAAA,CAAA,CACnD,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,CACF,CAAA,CAAA,EACF"}
|
package/dist/index.cjs73.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs73.js","sources":["../src/components/ui/InfoCardSkeleton/index.tsx"],"sourcesContent":["import \"./InfoCardSkeleton.scss\";\n\nexport const InfoCardSkeleton = () => {\n return (\n <div className=\"data-banner-skeleton\">\n <div className=\"data-banner-skeleton-content\">\n <div className=\"data-banner-skeleton-text pulse\"></div>\n <div className=\"data-banner-skeleton-link pulse\"></div>\n </div>\n </div>\n );\n};\n"],"names":["InfoCardSkeleton","jsxs","jsx"],"mappings":"kJAEO,MAAMA,EAAmB,4BAE3B,MAAI,CAAA,UAAU,uBACb,SAACC,EAAA,kBAAA,KAAA,MAAA,CAAI,UAAU,+BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,iCAAkC,CAAA,EACjDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,iCAAkC,CAAA,CAAA,CAAA,CACnD,CACF,CAAA"}
|
1
|
+
{"version":3,"file":"index.cjs73.js","sources":["../src/components/ui/InfoCardSkeleton/index.tsx"],"sourcesContent":["import \"./InfoCardSkeleton.scss\";\r\n\r\nexport const InfoCardSkeleton = () => {\r\n return (\r\n <div className=\"data-banner-skeleton\">\r\n <div className=\"data-banner-skeleton-content\">\r\n <div className=\"data-banner-skeleton-text pulse\"></div>\r\n <div className=\"data-banner-skeleton-link pulse\"></div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n"],"names":["InfoCardSkeleton","jsxs","jsx"],"mappings":"kJAEO,MAAMA,EAAmB,4BAE3B,MAAI,CAAA,UAAU,uBACb,SAACC,EAAA,kBAAA,KAAA,MAAA,CAAI,UAAU,+BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,iCAAkC,CAAA,EACjDA,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,iCAAkC,CAAA,CAAA,CAAA,CACnD,CACF,CAAA"}
|
package/dist/index.cjs74.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs74.js","sources":["../src/components/ui/TableSkeleton/index.tsx"],"sourcesContent":["import \"./TableSkeleton.scss\";\n\nexport const TableSkeleton = () => {\n return (\n <div className=\"family-doctor-skeleton\">\n {/* Section title */}\n <div className=\"family-doctor-skeleton-title pulse\"></div>\n\n {/* Card content */}\n <div className=\"family-doctor-skeleton-card\">\n {/* Avatar and doctor info */}\n <div className=\"family-doctor-skeleton-header\">\n <div className=\"family-doctor-skeleton-avatar pulse\"></div>\n <div className=\"family-doctor-skeleton-info\">\n <div className=\"family-doctor-skeleton-name pulse\"></div>\n <div className=\"family-doctor-skeleton-dash pulse\"></div>\n </div>\n </div>\n\n {/* Two-column layout for contact and schedule */}\n <div className=\"family-doctor-skeleton-content\">\n {/* Left column - Contact info */}\n <div className=\"family-doctor-skeleton-left-column\">\n {/* Phone */}\n <div className=\"family-doctor-skeleton-field\">\n <div className=\"family-doctor-skeleton-label pulse\"></div>\n <div className=\"family-doctor-skeleton-value pulse\"></div>\n </div>\n\n {/* Email */}\n <div className=\"family-doctor-skeleton-field\">\n <div className=\"family-doctor-skeleton-label pulse\"></div>\n <div className=\"family-doctor-skeleton-dash-value pulse\"></div>\n </div>\n\n {/* Address */}\n <div className=\"family-doctor-skeleton-field\">\n <div className=\"family-doctor-skeleton-label pulse\"></div>\n <div className=\"family-doctor-skeleton-value pulse\"></div>\n </div>\n\n {/* Change doctor button */}\n <div className=\"family-doctor-skeleton-button pulse\"></div>\n </div>\n\n {/* Right column - Schedule */}\n <div className=\"family-doctor-skeleton-right-column\">\n <div className=\"family-doctor-skeleton-schedule-title pulse\"></div>\n <div className=\"family-doctor-skeleton-schedule\">\n {/* Row 1: Monday and Thursday */}\n <div className=\"family-doctor-skeleton-schedule-column\">\n <div className=\"family-doctor-skeleton-day\">\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\n </div>\n\n <div className=\"family-doctor-skeleton-day\">\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\n </div>\n </div>\n\n {/* Row 2: Tuesday and Friday */}\n <div className=\"family-doctor-skeleton-schedule-column\">\n <div className=\"family-doctor-skeleton-day\">\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\n </div>\n\n <div className=\"family-doctor-skeleton-day\">\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\n </div>\n </div>\n\n {/* Row 3: Wednesday */}\n <div className=\"family-doctor-skeleton-schedule-column\">\n <div className=\"family-doctor-skeleton-day\">\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n </div>\n );\n};\n"],"names":["TableSkeleton","jsxs","jsx"],"mappings":"kJAEO,MAAMA,EAAgB,IAEzBC,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAU,yBAEb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,oCAAqC,CAAA,EAGpDD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,8BAEb,SAAA,CAACA,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,gCACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,qCAAsC,CAAA,EACrDD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,8BACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,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sources":["../src/components/ui/TableSkeleton/index.tsx"],"sourcesContent":["import \"./TableSkeleton.scss\";\r\n\r\nexport const TableSkeleton = () => {\r\n return (\r\n <div className=\"family-doctor-skeleton\">\r\n {/* Section title */}\r\n <div className=\"family-doctor-skeleton-title pulse\"></div>\r\n\r\n {/* Card content */}\r\n <div className=\"family-doctor-skeleton-card\">\r\n {/* Avatar and doctor info */}\r\n <div className=\"family-doctor-skeleton-header\">\r\n <div className=\"family-doctor-skeleton-avatar pulse\"></div>\r\n <div className=\"family-doctor-skeleton-info\">\r\n <div className=\"family-doctor-skeleton-name pulse\"></div>\r\n <div className=\"family-doctor-skeleton-dash pulse\"></div>\r\n </div>\r\n </div>\r\n\r\n {/* Two-column layout for contact and schedule */}\r\n <div className=\"family-doctor-skeleton-content\">\r\n {/* Left column - Contact info */}\r\n <div className=\"family-doctor-skeleton-left-column\">\r\n {/* Phone */}\r\n <div className=\"family-doctor-skeleton-field\">\r\n <div className=\"family-doctor-skeleton-label pulse\"></div>\r\n <div className=\"family-doctor-skeleton-value pulse\"></div>\r\n </div>\r\n\r\n {/* Email */}\r\n <div className=\"family-doctor-skeleton-field\">\r\n <div className=\"family-doctor-skeleton-label pulse\"></div>\r\n <div className=\"family-doctor-skeleton-dash-value pulse\"></div>\r\n </div>\r\n\r\n {/* Address */}\r\n <div className=\"family-doctor-skeleton-field\">\r\n <div className=\"family-doctor-skeleton-label pulse\"></div>\r\n <div className=\"family-doctor-skeleton-value pulse\"></div>\r\n </div>\r\n\r\n {/* Change doctor button */}\r\n <div className=\"family-doctor-skeleton-button pulse\"></div>\r\n </div>\r\n\r\n {/* Right column - Schedule */}\r\n <div className=\"family-doctor-skeleton-right-column\">\r\n <div className=\"family-doctor-skeleton-schedule-title pulse\"></div>\r\n <div className=\"family-doctor-skeleton-schedule\">\r\n {/* Row 1: Monday and Thursday */}\r\n <div className=\"family-doctor-skeleton-schedule-column\">\r\n <div className=\"family-doctor-skeleton-day\">\r\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\r\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\r\n </div>\r\n\r\n <div className=\"family-doctor-skeleton-day\">\r\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\r\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\r\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\r\n </div>\r\n </div>\r\n\r\n {/* Row 2: Tuesday and Friday */}\r\n <div className=\"family-doctor-skeleton-schedule-column\">\r\n <div className=\"family-doctor-skeleton-day\">\r\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\r\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\r\n </div>\r\n\r\n <div className=\"family-doctor-skeleton-day\">\r\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\r\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\r\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\r\n </div>\r\n </div>\r\n\r\n {/* Row 3: Wednesday */}\r\n <div className=\"family-doctor-skeleton-schedule-column\">\r\n <div className=\"family-doctor-skeleton-day\">\r\n <div className=\"family-doctor-skeleton-day-name pulse\"></div>\r\n <div className=\"family-doctor-skeleton-hours pulse\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n );\r\n};\r\n"],"names":["TableSkeleton","jsxs","jsx"],"mappings":"kJAEO,MAAMA,EAAgB,IAEzBC,EAAA,kBAAA,KAAC,MAAI,CAAA,UAAU,yBAEb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,oCAAqC,CAAA,EAGpDD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,8BAEb,SAAA,CAACA,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,gCACb,SAAA,CAACC,EAAAA,kBAAAA,IAAA,MAAA,CAAI,UAAU,qCAAsC,CAAA,EACrDD,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,8BACb,SAAA,CAACC,E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js75.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs75.js","sources":["../src/sections/Login/index.tsx"],"sourcesContent":["import { Section } from \"@/components/ui/Section\";\nimport { Col, EntryButton } from \"@/components\";\nimport \"./Login.scss\";\nimport { Config } from \"@/utils/config.ts\";\n\nexport type LoginProps = {\n title: React.ReactNode;\n description?: React.ReactNode;\n loginTitle: string;\n loginDescription: React.ReactNode;\n buttonLabel: string;\n buttonAriaLabel: string;\n buttonHref: string;\n asImage?: \"img\";\n region?: Config[\"REGION\"];\n authSrc?: string;\n};\n\nexport const Login = ({\n title,\n description,\n loginTitle,\n loginDescription,\n buttonLabel,\n buttonAriaLabel,\n buttonHref,\n asImage = \"img\",\n region = \"marche\",\n authSrc = \"\",\n}: LoginProps) => {\n const ImageComponent = asImage;\n return (\n <Section className=\"base-col ui-login-section\">\n <Col className=\"ui-login-content\">\n <Section.Title fs=\"1\" className=\"md-fs-0 ui-login-title\" mdFs=\"0\">\n {title}\n </Section.Title>\n {description && (\n <Section.Description className=\"ui-login-description\">\n {description}\n </Section.Description>\n )}\n </Col>\n <div className=\"bg-white shadow br-x4 ui-login-body \">\n <Col gap={\"x16\"}>\n <h3 className=\"text-slate-20 fw-semibold fs-5 md-fs-4\">\n {loginTitle}\n </h3>\n <Section.Description>{loginDescription}</Section.Description>\n <EntryButton\n showIcon={region === \"marche\"}\n ariaLabel={buttonAriaLabel}\n href={buttonHref}\n >\n {buttonLabel}\n </EntryButton>\n </Col>\n\n <div className=\"ui-login-body-img h-full\">\n <ImageComponent\n src={authSrc}\n alt=\"\"\n aria-hidden=\"true\"\n width={246}\n height={746}\n />\n </div>\n </div>\n </Section>\n );\n};\n"],"names":["Login","title","description","loginTitle","loginDescription","buttonLabel","buttonAriaLabel","buttonHref","asImage","region","authSrc","ImageComponent","jsxs","Section","Col","jsx","EntryButton"],"mappings":"kPAkBaA,EAAQ,CAAC,CACpB,MAAAC,EACA,YAAAC,EACA,WAAAC,EACA,iBAAAC,EACA,YAAAC,EACA,gBAAAC,EACA,WAAAC,EACA,QAAAC,EAAU,MACV,OAAAC,EAAS,SACT,QAAAC,EAAU,EACZ,IAAkB,CAChB,MAAMC,EAAiBH,EAErB,OAAAI,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,4BACjB,SAAA,CAACD,EAAAA,kBAAAA,KAAAE,EAAAA,IAAA,CAAI,UAAU,mBACb,SAAA,CAACC,EAAAA,kBAAAA,IAAAF,EAAA,QAAQ,MAAR,CAAc,GAAG,IAAI,UAAU,yBAAyB,KAAK,IAC3D,SACHZ,CAAA,CAAA,EACCC,GACEa,EAAAA,kBAAAA,IAAAF,EAAAA,QAAQ,YAAR,CAAoB,UAAU,uBAC5B,SACHX,CAAA,CAAA,CAAA,EAEJ,EACAU,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,uCACb,SAAA,CAACA,EAAAA,kBAAAA,KAAAE,EAAAA,IAAA,CAAI,IAAK,MACR,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,yCACX,SACHZ,EAAA,EACCY,EAAAA,kBAAAA,IAAAF,EAAAA,QAAQ,YAAR,CAAqB,SAAiBT,CAAA,CAAA,EACvCW,EAAA,kBAAA,IAACC,EAAA,YAAA,CACC,SAAUP,IAAW,SACrB,UAAWH,EACX,KAAMC,EAEL,SAAAF,CAAA,CAAA,CACH,EACF,EAEAU,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,2BACb,SAAAA,EAAA,kBAAA,IAACJ,EAAA,CACC,IAAKD,EACL,IAAI,GACJ,cAAY,OACZ,MAAO,IACP,OAAQ,GAAA,CAAA,CAEZ,CAAA,CAAA,CACF,CAAA,CAAA,EACF,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs75.js","sources":["../src/sections/Login/index.tsx"],"sourcesContent":["import { Section } from \"@/components/ui/Section\";\r\nimport { Col, EntryButton } from \"@/components\";\r\nimport \"./Login.scss\";\r\nimport { Config } from \"@/utils/config.ts\";\r\n\r\nexport type LoginProps = {\r\n title: React.ReactNode;\r\n description?: React.ReactNode;\r\n loginTitle: string;\r\n loginDescription: React.ReactNode;\r\n buttonLabel: string;\r\n buttonAriaLabel: string;\r\n buttonHref: string;\r\n asImage?: \"img\";\r\n region?: Config[\"REGION\"];\r\n authSrc?: string;\r\n};\r\n\r\nexport const Login = ({\r\n title,\r\n description,\r\n loginTitle,\r\n loginDescription,\r\n buttonLabel,\r\n buttonAriaLabel,\r\n buttonHref,\r\n asImage = \"img\",\r\n region = \"marche\",\r\n authSrc = \"\",\r\n}: LoginProps) => {\r\n const ImageComponent = asImage;\r\n return (\r\n <Section className=\"base-col ui-login-section\">\r\n <Col className=\"ui-login-content\">\r\n <Section.Title fs=\"1\" className=\"md-fs-0 ui-login-title\" mdFs=\"0\">\r\n {title}\r\n </Section.Title>\r\n {description && (\r\n <Section.Description className=\"ui-login-description\">\r\n {description}\r\n </Section.Description>\r\n )}\r\n </Col>\r\n <div className=\"bg-white shadow br-x4 ui-login-body \">\r\n <Col gap={\"x16\"}>\r\n <h3 className=\"text-slate-20 fw-semibold fs-5 md-fs-4\">\r\n {loginTitle}\r\n </h3>\r\n <Section.Description>{loginDescription}</Section.Description>\r\n <EntryButton\r\n showIcon={region === \"marche\"}\r\n ariaLabel={buttonAriaLabel}\r\n href={buttonHref}\r\n >\r\n {buttonLabel}\r\n </EntryButton>\r\n </Col>\r\n\r\n <div className=\"ui-login-body-img h-full\">\r\n <ImageComponent\r\n src={authSrc}\r\n alt=\"\"\r\n aria-hidden=\"true\"\r\n width={246}\r\n height={746}\r\n />\r\n </div>\r\n </div>\r\n </Section>\r\n );\r\n};\r\n"],"names":["Login","title","description","loginTitle","loginDescription","buttonLabel","buttonAriaLabel","buttonHref","asImage","region","authSrc","ImageComponent","jsxs","Section","Col","jsx","EntryButton"],"mappings":"kPAkBaA,EAAQ,CAAC,CACpB,MAAAC,EACA,YAAAC,EACA,WAAAC,EACA,iBAAAC,EACA,YAAAC,EACA,gBAAAC,EACA,WAAAC,EACA,QAAAC,EAAU,MACV,OAAAC,EAAS,SACT,QAAAC,EAAU,EACZ,IAAkB,CAChB,MAAMC,EAAiBH,EAErB,OAAAI,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,4BACjB,SAAA,CAACD,EAAAA,kBAAAA,KAAAE,EAAAA,IAAA,CAAI,UAAU,mBACb,SAAA,CAACC,EAAAA,kBAAAA,IAAAF,EAAA,QAAQ,MAAR,CAAc,GAAG,IAAI,UAAU,yBAAyB,KAAK,IAC3D,SACHZ,CAAA,CAAA,EACCC,GACEa,EAAAA,kBAAAA,IAAAF,EAAAA,QAAQ,YAAR,CAAoB,UAAU,uBAC5B,SACHX,CAAA,CAAA,CAAA,EAEJ,EACAU,EAAAA,kBAAAA,KAAC,MAAI,CAAA,UAAU,uCACb,SAAA,CAACA,EAAAA,kBAAAA,KAAAE,EAAAA,IAAA,CAAI,IAAK,MACR,SAAA,CAACC,EAAA,kBAAA,IAAA,KAAA,CAAG,UAAU,yCACX,SACHZ,EAAA,EACCY,EAAAA,kBAAAA,IAAAF,EAAAA,QAAQ,YAAR,CAAqB,SAAiBT,CAAA,CAAA,EACvCW,EAAA,kBAAA,IAACC,EAAA,YAAA,CACC,SAAUP,IAAW,SACrB,UAAWH,EACX,KAAMC,EAEL,SAAAF,CAAA,CAAA,CACH,EACF,EAEAU,EAAAA,kBAAAA,IAAC,MAAI,CAAA,UAAU,2BACb,SAAAA,EAAA,kBAAA,IAACJ,EAAA,CACC,IAAKD,EACL,IAAI,GACJ,cAAY,OACZ,MAAO,IACP,OAAQ,GAAA,CAAA,CAEZ,CAAA,CAAA,CACF,CAAA,CAAA,EACF,CAEJ"}
|
package/dist/index.cjs77.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs77.js","sources":["../src/sections/WhatDoYouNeed/index.tsx"],"sourcesContent":["import { Button, Col, Section } from \"@/components\";\nimport { SectionLink } from \"@anoki/fse-common\";\nimport \"./WhatDoYouNeed.scss\";\nimport { ComponentType, PropsWithChildren, ReactNode } from \"react\";\n\ntype WhatDoYouNeedProps = PropsWithChildren<{\n title: ReactNode;\n description?: ReactNode;\n links: EnhancedSectionLink[];\n asLink?: \"a\" | ComponentType<any>;\n}>;\n\ntype EnhancedSectionLink = SectionLink & {\n isNewTab?: boolean;\n};\n\nexport const WhatDoYouNeed = ({\n title,\n description,\n links,\n asLink = \"a\",\n}: WhatDoYouNeedProps) => {\n return (\n <Section className=\"base-col ui-what-do-you-need-section\">\n <Col className=\"ui-what-do-you-need-content\">\n <Section.Title fs=\"2\">{title}</Section.Title>\n {description && (\n <Section.Description>{description}</Section.Description>\n )}\n </Col>\n <ul\n role=\"list\"\n aria-label={`Lista di ${title}`}\n className=\"list-style-none ui-what-do-you-need-links\"\n >\n {links?.map(({ link, title, isNewTab }, index) => (\n <li key={link}>\n <Button\n asLink={asLink}\n href={link}\n size=\"2\"\n variant={index > 0 ? \"secondary\" : \"primary\"}\n // textColor={index > 0 ? \"primary\" : undefined}\n // bg={index > 0 ? \"white\" : undefined}\n // className={index > 0 ? \"br-color-primary\" : undefined}\n target={isNewTab ? \"_blank\" : undefined}\n rel={isNewTab ? \"noopener noreferrer\" : undefined}\n >\n {title}\n </Button>\n </li>\n ))}\n </ul>\n </Section>\n );\n};\n"],"names":["WhatDoYouNeed","title","description","links","asLink","jsxs","Section","Col","jsx","link","isNewTab","index","Button"],"mappings":"kPAgBaA,EAAgB,CAAC,CAC5B,MAAAC,EACA,YAAAC,EACA,MAAAC,EACA,OAAAC,EAAS,GACX,IAEIC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,uCACjB,SAAA,CAACD,EAAAA,kBAAAA,KAAAE,EAAAA,IAAA,CAAI,UAAU,8BACb,SAAA,CAAAC,EAAA,kBAAA,IAACF,EAAQ,QAAA,MAAR,CAAc,GAAG,IAAK,SAAML,EAAA,EAC5BC,GACCM,EAAA,kBAAA,IAACF,EAAQ,QAAA,YAAR,CAAqB,SAAYJ,CAAA,CAAA,CAAA,EAEtC,EACAM,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,YAAYP,CAAK,GAC7B,UAAU,4CAET,SAAAE,GAAA,YAAAA,EAAO,IAAI,CAAC,CAAE,KAAAM,EAAM,MAAAR,EAAO,SAAAS,CAAS,EAAGC,IACtCH,EAAAA,kBAAAA,IAAC,KACC,CAAA,SAAAA,EAAA,kBAAA,IAACI,EAAA,OAAA,CACC,OAAAR,EACA,KAAMK,EACN,KAAK,IACL,QAASE,EAAQ,EAAI,YAAc,UAInC,OAAQD,EAAW,SAAW,OAC9B,IAAKA,EAAW,sBAAwB,OAEvC,SAAAT,CAAA,CACH,CAAA,EAbOQ,CAcT,EACD,CAAA,CACH,EACF"}
|
1
|
+
{"version":3,"file":"index.cjs77.js","sources":["../src/sections/WhatDoYouNeed/index.tsx"],"sourcesContent":["import { Button, Col, Section } from \"@/components\";\r\nimport { SectionLink } from \"@anoki/fse-common\";\r\nimport \"./WhatDoYouNeed.scss\";\r\nimport { ComponentType, PropsWithChildren, ReactNode } from \"react\";\r\n\r\ntype WhatDoYouNeedProps = PropsWithChildren<{\r\n title: ReactNode;\r\n description?: ReactNode;\r\n links: EnhancedSectionLink[];\r\n asLink?: \"a\" | ComponentType<any>;\r\n}>;\r\n\r\ntype EnhancedSectionLink = SectionLink & {\r\n isNewTab?: boolean;\r\n};\r\n\r\nexport const WhatDoYouNeed = ({\r\n title,\r\n description,\r\n links,\r\n asLink = \"a\",\r\n}: WhatDoYouNeedProps) => {\r\n return (\r\n <Section className=\"base-col ui-what-do-you-need-section\">\r\n <Col className=\"ui-what-do-you-need-content\">\r\n <Section.Title fs=\"2\">{title}</Section.Title>\r\n {description && (\r\n <Section.Description>{description}</Section.Description>\r\n )}\r\n </Col>\r\n <ul\r\n role=\"list\"\r\n aria-label={`Lista di ${title}`}\r\n className=\"list-style-none ui-what-do-you-need-links\"\r\n >\r\n {links?.map(({ link, title, isNewTab }, index) => (\r\n <li key={link}>\r\n <Button\r\n asLink={asLink}\r\n href={link}\r\n size=\"2\"\r\n variant={index > 0 ? \"secondary\" : \"primary\"}\r\n // textColor={index > 0 ? \"primary\" : undefined}\r\n // bg={index > 0 ? \"white\" : undefined}\r\n // className={index > 0 ? \"br-color-primary\" : undefined}\r\n target={isNewTab ? \"_blank\" : undefined}\r\n rel={isNewTab ? \"noopener noreferrer\" : undefined}\r\n >\r\n {title}\r\n </Button>\r\n </li>\r\n ))}\r\n </ul>\r\n </Section>\r\n );\r\n};\r\n"],"names":["WhatDoYouNeed","title","description","links","asLink","jsxs","Section","Col","jsx","link","isNewTab","index","Button"],"mappings":"kPAgBaA,EAAgB,CAAC,CAC5B,MAAAC,EACA,YAAAC,EACA,MAAAC,EACA,OAAAC,EAAS,GACX,IAEIC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,uCACjB,SAAA,CAACD,EAAAA,kBAAAA,KAAAE,EAAAA,IAAA,CAAI,UAAU,8BACb,SAAA,CAAAC,EAAA,kBAAA,IAACF,EAAQ,QAAA,MAAR,CAAc,GAAG,IAAK,SAAML,EAAA,EAC5BC,GACCM,EAAA,kBAAA,IAACF,EAAQ,QAAA,YAAR,CAAqB,SAAYJ,CAAA,CAAA,CAAA,EAEtC,EACAM,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,YAAYP,CAAK,GAC7B,UAAU,4CAET,SAAAE,GAAA,YAAAA,EAAO,IAAI,CAAC,CAAE,KAAAM,EAAM,MAAAR,EAAO,SAAAS,CAAS,EAAGC,IACtCH,EAAAA,kBAAAA,IAAC,KACC,CAAA,SAAAA,EAAA,kBAAA,IAACI,EAAA,OAAA,CACC,OAAAR,EACA,KAAMK,EACN,KAAK,IACL,QAASE,EAAQ,EAAI,YAAc,UAInC,OAAQD,EAAW,SAAW,OAC9B,IAAKA,EAAW,sBAAwB,OAEvC,SAAAT,CAAA,CACH,CAAA,EAbOQ,CAcT,EACD,CAAA,CACH,EACF"}
|
package/dist/index.cjs78.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs78.js","sources":["../src/sections/RichText/index.tsx"],"sourcesContent":["import { Col, Section } from \"@/components\";\nimport { SectionLink } from \"@anoki/fse-common\";\nimport { PropsWithChildren, ReactNode, ComponentType } from \"react\";\nimport \"./RichText.scss\";\n\ntype RichTextProps = PropsWithChildren<{\n title: ReactNode;\n description?: ReactNode;\n links?: SectionLink[];\n asLink?: \"a\" | ComponentType<any>;\n}>;\n\nexport const RichText = ({ title, description, children }: RichTextProps) => {\n return (\n <Section className=\"base-col ui-rich-text-section\">\n <Col className=\"ui-rich-text-content\">\n <Section.Title fs=\"2\">{title}</Section.Title>\n {description && (\n <Section.Description>{description}</Section.Description>\n )}\n </Col>\n {children}\n </Section>\n );\n};\n"],"names":["RichText","title","description","children","jsxs","Section","Col","jsx"],"mappings":"oNAYaA,EAAW,CAAC,CAAE,MAAAC,EAAO,YAAAC,EAAa,SAAAC,KAE3CC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,gCACjB,SAAA,CAACD,EAAAA,kBAAAA,KAAAE,EAAAA,IAAA,CAAI,UAAU,uBACb,SAAA,CAAAC,EAAA,kBAAA,IAACF,EAAQ,QAAA,MAAR,CAAc,GAAG,IAAK,SAAMJ,EAAA,EAC5BC,GACCK,EAAA,kBAAA,IAACF,EAAQ,QAAA,YAAR,CAAqB,SAAYH,CAAA,CAAA,CAAA,EAEtC,EACCC,CAAA,EACH"}
|
1
|
+
{"version":3,"file":"index.cjs78.js","sources":["../src/sections/RichText/index.tsx"],"sourcesContent":["import { Col, Section } from \"@/components\";\r\nimport { SectionLink } from \"@anoki/fse-common\";\r\nimport { PropsWithChildren, ReactNode, ComponentType } from \"react\";\r\nimport \"./RichText.scss\";\r\n\r\ntype RichTextProps = PropsWithChildren<{\r\n title: ReactNode;\r\n description?: ReactNode;\r\n links?: SectionLink[];\r\n asLink?: \"a\" | ComponentType<any>;\r\n}>;\r\n\r\nexport const RichText = ({ title, description, children }: RichTextProps) => {\r\n return (\r\n <Section className=\"base-col ui-rich-text-section\">\r\n <Col className=\"ui-rich-text-content\">\r\n <Section.Title fs=\"2\">{title}</Section.Title>\r\n {description && (\r\n <Section.Description>{description}</Section.Description>\r\n )}\r\n </Col>\r\n {children}\r\n </Section>\r\n );\r\n};\r\n"],"names":["RichText","title","description","children","jsxs","Section","Col","jsx"],"mappings":"oNAYaA,EAAW,CAAC,CAAE,MAAAC,EAAO,YAAAC,EAAa,SAAAC,KAE3CC,EAAA,kBAAA,KAACC,EAAQ,QAAA,CAAA,UAAU,gCACjB,SAAA,CAACD,EAAAA,kBAAAA,KAAAE,EAAAA,IAAA,CAAI,UAAU,uBACb,SAAA,CAAAC,EAAA,kBAAA,IAACF,EAAQ,QAAA,MAAR,CAAc,GAAG,IAAK,SAAMJ,EAAA,EAC5BC,GACCK,EAAA,kBAAA,IAACF,EAAQ,QAAA,YAAR,CAAqB,SAAYH,CAAA,CAAA,CAAA,EAEtC,EACCC,CAAA,EACH"}
|
package/dist/index.cjs8.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index.cjs144.js"),s=require("react"),x=require("./index.cjs146.js"),C=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("./index.cjs144.js"),s=require("react"),x=require("./index.cjs146.js"),C=require("./index.cjs154.js"),j=({as:a,className:l,style:u,md:t,sm:e,xs:c,...o})=>{const m=a||"div",n=s.useMemo(()=>`col-grid-md-${t??"3"}`,[t]),r=s.useMemo(()=>e?`col-grid-sm-${e??"6"}`:"",[e]),i=s.useMemo(()=>`col-grid-${c??"12"}`,[c]),d=s.useMemo(()=>{const g=C.createSpacingClasses(o);return[i,r,n,...g].join(" ")},[n,o,r,i]);return p.jsxRuntimeExports.jsx(m,{className:x.clsx(l,d),style:{...u},...o})};exports.GridItem=j;
|
2
2
|
//# sourceMappingURL=index.cjs8.js.map
|
package/dist/index.cjs8.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs8.js","sources":["../src/components/ui/GridItem/index.tsx"],"sourcesContent":["import { ElementType, ComponentPropsWithoutRef, useMemo } from \"react\";\nimport clsx from \"clsx\";\nimport { createSpacingClasses, SpacingProps } from \"@theme/spacing.ts\";\n\ntype BreakpointSpace =\n | 1\n | 2\n | 3\n | 4\n | 5\n | 6\n | 7\n | 8\n | 9\n | 10\n | 11\n | 12\n | \"1\"\n | \"2\"\n | \"3\"\n | \"4\"\n | \"5\"\n | \"6\"\n | \"7\"\n | \"8\"\n | \"9\"\n | \"10\"\n | \"11\"\n | \"12\";\n\ntype PolymorphicProps<E extends ElementType> = {\n as?: E;\n md?: BreakpointSpace;\n sm?: BreakpointSpace;\n xs?: BreakpointSpace;\n} & SpacingProps &\n Omit<ComponentPropsWithoutRef<E>, keyof SpacingProps>;\n\nexport const GridItem = <E extends ElementType = \"div\">({\n as,\n className,\n style,\n md,\n sm,\n xs,\n ...rest\n}: PolymorphicProps<E>) => {\n const Component = as || \"div\";\n\n const mdClass = useMemo(() => `col-grid-md-${md ?? \"3\"}`, [md]);\n const smClass = useMemo(() => (sm ? `col-grid-sm-${sm ?? \"6\"}` : \"\"), [sm]);\n const xsClass = useMemo(() => `col-grid-${xs ?? \"12\"}`, [xs]);\n\n const classNames = useMemo(() => {\n const spacingClasses = createSpacingClasses(rest);\n return [xsClass, smClass, mdClass, ...spacingClasses].join(\" \");\n }, [mdClass, rest, smClass, xsClass]);\n\n return (\n <Component\n className={clsx(className, classNames)}\n style={{\n ...style,\n }}\n {...rest}\n />\n );\n};\n"],"names":["GridItem","as","className","style","md","sm","xs","rest","Component","mdClass","useMemo","smClass","xsClass","classNames","spacingClasses","createSpacingClasses","jsx","clsx"],"mappings":"sMAsCaA,EAAW,CAAgC,CACtD,GAAAC,EACA,UAAAC,EACA,MAAAC,EACA,GAAAC,EACA,GAAAC,EACA,GAAAC,EACA,GAAGC,CACL,IAA2B,CACzB,MAAMC,EAAYP,GAAM,MAElBQ,EAAUC,UAAQ,IAAM,eAAeN,GAAM,GAAG,GAAI,CAACA,CAAE,CAAC,EACxDO,EAAUD,EAAAA,QAAQ,IAAOL,EAAK,eAAeA,GAAM,GAAG,GAAK,GAAK,CAACA,CAAE,CAAC,EACpEO,EAAUF,UAAQ,IAAM,YAAYJ,GAAM,IAAI,GAAI,CAACA,CAAE,CAAC,EAEtDO,EAAaH,EAAAA,QAAQ,IAAM,CACzB,MAAAI,EAAiBC,uBAAqBR,CAAI,EACzC,MAAA,CAACK,EAASD,EAASF,EAAS,GAAGK,CAAc,EAAE,KAAK,GAAG,GAC7D,CAACL,EAASF,EAAMI,EAASC,CAAO,CAAC,EAGlC,OAAAI,EAAA,kBAAA,IAACR,EAAA,CACC,UAAWS,EAAAA,KAAKf,EAAWW,CAAU,EACrC,MAAO,CACL,GAAGV,CACL,EACC,GAAGI,CAAA,CACN,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs8.js","sources":["../src/components/ui/GridItem/index.tsx"],"sourcesContent":["import { ElementType, ComponentPropsWithoutRef, useMemo } from \"react\";\r\nimport clsx from \"clsx\";\r\nimport { createSpacingClasses, SpacingProps } from \"@theme/spacing.ts\";\r\n\r\ntype BreakpointSpace =\r\n | 1\r\n | 2\r\n | 3\r\n | 4\r\n | 5\r\n | 6\r\n | 7\r\n | 8\r\n | 9\r\n | 10\r\n | 11\r\n | 12\r\n | \"1\"\r\n | \"2\"\r\n | \"3\"\r\n | \"4\"\r\n | \"5\"\r\n | \"6\"\r\n | \"7\"\r\n | \"8\"\r\n | \"9\"\r\n | \"10\"\r\n | \"11\"\r\n | \"12\";\r\n\r\ntype PolymorphicProps<E extends ElementType> = {\r\n as?: E;\r\n md?: BreakpointSpace;\r\n sm?: BreakpointSpace;\r\n xs?: BreakpointSpace;\r\n} & SpacingProps &\r\n Omit<ComponentPropsWithoutRef<E>, keyof SpacingProps>;\r\n\r\nexport const GridItem = <E extends ElementType = \"div\">({\r\n as,\r\n className,\r\n style,\r\n md,\r\n sm,\r\n xs,\r\n ...rest\r\n}: PolymorphicProps<E>) => {\r\n const Component = as || \"div\";\r\n\r\n const mdClass = useMemo(() => `col-grid-md-${md ?? \"3\"}`, [md]);\r\n const smClass = useMemo(() => (sm ? `col-grid-sm-${sm ?? \"6\"}` : \"\"), [sm]);\r\n const xsClass = useMemo(() => `col-grid-${xs ?? \"12\"}`, [xs]);\r\n\r\n const classNames = useMemo(() => {\r\n const spacingClasses = createSpacingClasses(rest);\r\n return [xsClass, smClass, mdClass, ...spacingClasses].join(\" \");\r\n }, [mdClass, rest, smClass, xsClass]);\r\n\r\n return (\r\n <Component\r\n className={clsx(className, classNames)}\r\n style={{\r\n ...style,\r\n }}\r\n {...rest}\r\n />\r\n );\r\n};\r\n"],"names":["GridItem","as","className","style","md","sm","xs","rest","Component","mdClass","useMemo","smClass","xsClass","classNames","spacingClasses","createSpacingClasses","jsx","clsx"],"mappings":"sMAsCaA,EAAW,CAAgC,CACtD,GAAAC,EACA,UAAAC,EACA,MAAAC,EACA,GAAAC,EACA,GAAAC,EACA,GAAAC,EACA,GAAGC,CACL,IAA2B,CACzB,MAAMC,EAAYP,GAAM,MAElBQ,EAAUC,UAAQ,IAAM,eAAeN,GAAM,GAAG,GAAI,CAACA,CAAE,CAAC,EACxDO,EAAUD,EAAAA,QAAQ,IAAOL,EAAK,eAAeA,GAAM,GAAG,GAAK,GAAK,CAACA,CAAE,CAAC,EACpEO,EAAUF,UAAQ,IAAM,YAAYJ,GAAM,IAAI,GAAI,CAACA,CAAE,CAAC,EAEtDO,EAAaH,EAAAA,QAAQ,IAAM,CACzB,MAAAI,EAAiBC,uBAAqBR,CAAI,EACzC,MAAA,CAACK,EAASD,EAASF,EAAS,GAAGK,CAAc,EAAE,KAAK,GAAG,GAC7D,CAACL,EAASF,EAAMI,EAASC,CAAO,CAAC,EAGlC,OAAAI,EAAA,kBAAA,IAACR,EAAA,CACC,UAAWS,EAAAA,KAAKf,EAAWW,CAAU,EACrC,MAAO,CACL,GAAGV,CACL,EACC,GAAGI,CAAA,CACN,CAEJ"}
|
package/dist/index.cjs80.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs80.js","sources":["../src/sections/SuggestedServices/index.tsx"],"sourcesContent":["import { Section } from \"@/components/ui/Section\";\nimport { ArrowLink, CardService, Col } from \"@/components\";\nimport clsx from \"clsx\";\nimport \"./SuggestedServices.scss\";\nimport { ComponentType, ReactNode } from \"react\";\n\nexport type SuggestedServicesProps = {\n title: ReactNode;\n description?: ReactNode;\n goToLabel?: string;\n href?: string;\n asLink?: \"a\" | ComponentType<any>;\n items: any[];\n className?: string;\n};\n\nexport const SuggestedServices = ({\n title,\n description,\n goToLabel,\n href,\n asLink = \"a\",\n items,\n className,\n}: SuggestedServicesProps) => {\n return (\n <Section\n className={clsx(\"base-col ui-suggested-services-section\", className)}\n >\n <Col className=\"ui-suggested-services-sectirron-content\">\n <div className=\"ui-suggested-services-section-title\">\n <Section.Description color={\"slate-14\"} className={\"fw-regular fs-3\"}>\n {title}\n </Section.Description>\n {goToLabel && href && (\n <ArrowLink href={href} asLink={asLink} fs=\"7\">\n {goToLabel.toUpperCase()}\n </ArrowLink>\n )}\n </div>\n {description && (\n <Section.Description>{description}</Section.Description>\n )}\n </Col>\n <ul\n role=\"list\"\n aria-label={`Lista di ${title}`}\n className={`list-style-none ui-suggested-services-layout`}\n >\n {items?.map((item, index) => {\n return (\n <li key={item._id}>\n <CardService\n key={item._id}\n title={item?.name}\n href={item?.link || item?.externalLink}\n iconType={\n index === 1 ? \"icon2\" : index === 2 ? \"icon3\" : \"icon1\"\n }\n titleTag={\"h3\"}\n asLink={asLink}\n />\n </li>\n );\n })}\n </ul>\n </Section>\n );\n};\n"],"names":["SuggestedServices","title","description","goToLabel","href","asLink","items","className","jsxs","Section","clsx","Col","jsx","ArrowLink","item","index","CardService"],"mappings":"+SAgBaA,EAAoB,CAAC,CAChC,MAAAC,EACA,YAAAC,EACA,UAAAC,EACA,KAAAC,EACA,OAAAC,EAAS,IACT,MAAAC,EACA,UAAAC,CACF,IAEIC,EAAA,kBAAA,KAACC,EAAA,QAAA,CACC,UAAWC,EAAAA,KAAK,yCAA0CH,CAAS,EAEnE,SAAA,CAACC,EAAAA,kBAAAA,KAAAG,EAAAA,IAAA,CAAI,UAAU,0CACb,SAAA,CAACH,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,sCACb,SAAA,CAAAI,wBAACH,EAAAA,QAAQ,YAAR,CAAoB,MAAO,WAAY,UAAW,kBAChD,SACHR,EAAA,EACCE,GAAaC,GACZQ,wBAACC,EAAAA,UAAU,CAAA,KAAAT,EAAY,OAAAC,EAAgB,GAAG,IACvC,SAAUF,EAAA,YAAA,CACb,CAAA,CAAA,EAEJ,EACCD,GACCU,EAAA,kBAAA,IAACH,EAAQ,QAAA,YAAR,CAAqB,SAAYP,CAAA,CAAA,CAAA,EAEtC,EACAU,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,YAAYX,CAAK,GAC7B,UAAW,+CAEV,SAAOK,GAAA,YAAAA,EAAA,IAAI,CAACQ,EAAMC,4BAEd,KACC,CAAA,SAAAH,EAAA,kBAAA,IAACI,EAAA,YAAA,CAEC,MAAOF,GAAA,YAAAA,EAAM,KACb,MAAMA,GAAA,YAAAA,EAAM,QAAQA,GAAA,YAAAA,EAAM,cAC1B,SACEC,IAAU,EAAI,QAAUA,IAAU,EAAI,QAAU,QAElD,SAAU,KACV,OAAAV,CAAA,EAPKS,EAAK,GAAA,CAQZ,EAVOA,EAAK,GAWd,EAEH,CAAA,CACH,CAAA,CACF"}
|
1
|
+
{"version":3,"file":"index.cjs80.js","sources":["../src/sections/SuggestedServices/index.tsx"],"sourcesContent":["import { Section } from \"@/components/ui/Section\";\r\nimport { ArrowLink, CardService, Col } from \"@/components\";\r\nimport clsx from \"clsx\";\r\nimport \"./SuggestedServices.scss\";\r\nimport { ComponentType, ReactNode } from \"react\";\r\n\r\nexport type SuggestedServicesProps = {\r\n title: ReactNode;\r\n description?: ReactNode;\r\n goToLabel?: string;\r\n href?: string;\r\n asLink?: \"a\" | ComponentType<any>;\r\n items: any[];\r\n className?: string;\r\n};\r\n\r\nexport const SuggestedServices = ({\r\n title,\r\n description,\r\n goToLabel,\r\n href,\r\n asLink = \"a\",\r\n items,\r\n className,\r\n}: SuggestedServicesProps) => {\r\n return (\r\n <Section\r\n className={clsx(\"base-col ui-suggested-services-section\", className)}\r\n >\r\n <Col className=\"ui-suggested-services-sectirron-content\">\r\n <div className=\"ui-suggested-services-section-title\">\r\n <Section.Description color={\"slate-14\"} className={\"fw-regular fs-3\"}>\r\n {title}\r\n </Section.Description>\r\n {goToLabel && href && (\r\n <ArrowLink href={href} asLink={asLink} fs=\"7\">\r\n {goToLabel.toUpperCase()}\r\n </ArrowLink>\r\n )}\r\n </div>\r\n {description && (\r\n <Section.Description>{description}</Section.Description>\r\n )}\r\n </Col>\r\n <ul\r\n role=\"list\"\r\n aria-label={`Lista di ${title}`}\r\n className={`list-style-none ui-suggested-services-layout`}\r\n >\r\n {items?.map((item, index) => {\r\n return (\r\n <li key={item._id}>\r\n <CardService\r\n key={item._id}\r\n title={item?.name}\r\n href={item?.link || item?.externalLink}\r\n iconType={\r\n index === 1 ? \"icon2\" : index === 2 ? \"icon3\" : \"icon1\"\r\n }\r\n titleTag={\"h3\"}\r\n asLink={asLink}\r\n />\r\n </li>\r\n );\r\n })}\r\n </ul>\r\n </Section>\r\n );\r\n};\r\n"],"names":["SuggestedServices","title","description","goToLabel","href","asLink","items","className","jsxs","Section","clsx","Col","jsx","ArrowLink","item","index","CardService"],"mappings":"+SAgBaA,EAAoB,CAAC,CAChC,MAAAC,EACA,YAAAC,EACA,UAAAC,EACA,KAAAC,EACA,OAAAC,EAAS,IACT,MAAAC,EACA,UAAAC,CACF,IAEIC,EAAA,kBAAA,KAACC,EAAA,QAAA,CACC,UAAWC,EAAAA,KAAK,yCAA0CH,CAAS,EAEnE,SAAA,CAACC,EAAAA,kBAAAA,KAAAG,EAAAA,IAAA,CAAI,UAAU,0CACb,SAAA,CAACH,EAAAA,kBAAAA,KAAA,MAAA,CAAI,UAAU,sCACb,SAAA,CAAAI,wBAACH,EAAAA,QAAQ,YAAR,CAAoB,MAAO,WAAY,UAAW,kBAChD,SACHR,EAAA,EACCE,GAAaC,GACZQ,wBAACC,EAAAA,UAAU,CAAA,KAAAT,EAAY,OAAAC,EAAgB,GAAG,IACvC,SAAUF,EAAA,YAAA,CACb,CAAA,CAAA,EAEJ,EACCD,GACCU,EAAA,kBAAA,IAACH,EAAQ,QAAA,YAAR,CAAqB,SAAYP,CAAA,CAAA,CAAA,EAEtC,EACAU,EAAA,kBAAA,IAAC,KAAA,CACC,KAAK,OACL,aAAY,YAAYX,CAAK,GAC7B,UAAW,+CAEV,SAAOK,GAAA,YAAAA,EAAA,IAAI,CAACQ,EAAMC,4BAEd,KACC,CAAA,SAAAH,EAAA,kBAAA,IAACI,EAAA,YAAA,CAEC,MAAOF,GAAA,YAAAA,EAAM,KACb,MAAMA,GAAA,YAAAA,EAAM,QAAQA,GAAA,YAAAA,EAAM,cAC1B,SACEC,IAAU,EAAI,QAAUA,IAAU,EAAI,QAAU,QAElD,SAAU,KACV,OAAAV,CAAA,EAPKS,EAAK,GAAA,CAQZ,EAVOA,EAAK,GAWd,EAEH,CAAA,CACH,CAAA,CACF"}
|
package/dist/index.cjs81.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs144.js"),o=require("./index.cjs146.js"),l=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs144.js"),o=require("./index.cjs146.js"),l=require("./index.cjs153.js"),m=({width:s=24,height:e=24,className:r,color:t})=>{const a=l.createColorClasses({color:t});return c.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:e,fill:"currentColor",viewBox:"0 0 16 16",className:o.clsx(r,a),"aria-hidden":"true",children:c.jsxRuntimeExports.jsx("path",{d:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m7.5-6.923c-.67.204-1.335.82-1.887 1.855q-.215.403-.395.872c.705.157 1.472.257 2.282.287zM4.249 3.539q.214-.577.481-1.078a7 7 0 0 1 .597-.933A7 7 0 0 0 3.051 3.05q.544.277 1.198.49zM3.509 7.5c.036-1.07.188-2.087.436-3.008a9 9 0 0 1-1.565-.667A6.96 6.96 0 0 0 1.018 7.5zm1.4-2.741a12.3 12.3 0 0 0-.4 2.741H7.5V5.091c-.91-.03-1.783-.145-2.591-.332M8.5 5.09V7.5h2.99a12.3 12.3 0 0 0-.399-2.741c-.808.187-1.681.301-2.591.332zM4.51 8.5c.035.987.176 1.914.399 2.741A13.6 13.6 0 0 1 7.5 10.91V8.5zm3.99 0v2.409c.91.03 1.783.145 2.591.332.223-.827.364-1.754.4-2.741zm-3.282 3.696q.18.469.395.872c.552 1.035 1.218 1.65 1.887 1.855V11.91c-.81.03-1.577.13-2.282.287zm.11 2.276a7 7 0 0 1-.598-.933 9 9 0 0 1-.481-1.079 8.4 8.4 0 0 0-1.198.49 7 7 0 0 0 2.276 1.522zm-1.383-2.964A13.4 13.4 0 0 1 3.508 8.5h-2.49a6.96 6.96 0 0 0 1.362 3.675c.47-.258.995-.482 1.565-.667m6.728 2.964a7 7 0 0 0 2.275-1.521 8.4 8.4 0 0 0-1.197-.49 9 9 0 0 1-.481 1.078 7 7 0 0 1-.597.933M8.5 11.909v3.014c.67-.204 1.335-.82 1.887-1.855q.216-.403.395-.872A12.6 12.6 0 0 0 8.5 11.91zm3.555-.401c.57.185 1.095.409 1.565.667A6.96 6.96 0 0 0 14.982 8.5h-2.49a13.4 13.4 0 0 1-.437 3.008M14.982 7.5a6.96 6.96 0 0 0-1.362-3.675c-.47.258-.995.482-1.565.667.248.92.4 1.938.437 3.008zM11.27 2.461q.266.502.482 1.078a8.4 8.4 0 0 0 1.196-.49 7 7 0 0 0-2.275-1.52c.218.283.418.597.597.932m-.488 1.343a8 8 0 0 0-.395-.872C9.835 1.897 9.17 1.282 8.5 1.077V4.09c.81-.03 1.577-.13 2.282-.287z"})})};exports.World=m;
|
2
2
|
//# sourceMappingURL=index.cjs81.js.map
|
package/dist/index.cjs81.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.cjs81.js","sources":["../src/icons/World/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport { IconProps } from \"../../types/icons\";\nimport { createColorClasses } from \"@/theme/colors\";\n\nexport const World = ({\n width = 24,\n height = 24,\n className,\n color,\n}: IconProps) => {\n const classes = createColorClasses({ color });\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={width}\n height={height}\n fill=\"currentColor\"\n viewBox=\"0 0 16 16\"\n className={clsx(className, classes)}\n aria-hidden=\"true\" // this is a decorative icon, so we should hide it from screen readers\n >\n <path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m7.5-6.923c-.67.204-1.335.82-1.887 1.855q-.215.403-.395.872c.705.157 1.472.257 2.282.287zM4.249 3.539q.214-.577.481-1.078a7 7 0 0 1 .597-.933A7 7 0 0 0 3.051 3.05q.544.277 1.198.49zM3.509 7.5c.036-1.07.188-2.087.436-3.008a9 9 0 0 1-1.565-.667A6.96 6.96 0 0 0 1.018 7.5zm1.4-2.741a12.3 12.3 0 0 0-.4 2.741H7.5V5.091c-.91-.03-1.783-.145-2.591-.332M8.5 5.09V7.5h2.99a12.3 12.3 0 0 0-.399-2.741c-.808.187-1.681.301-2.591.332zM4.51 8.5c.035.987.176 1.914.399 2.741A13.6 13.6 0 0 1 7.5 10.91V8.5zm3.99 0v2.409c.91.03 1.783.145 2.591.332.223-.827.364-1.754.4-2.741zm-3.282 3.696q.18.469.395.872c.552 1.035 1.218 1.65 1.887 1.855V11.91c-.81.03-1.577.13-2.282.287zm.11 2.276a7 7 0 0 1-.598-.933 9 9 0 0 1-.481-1.079 8.4 8.4 0 0 0-1.198.49 7 7 0 0 0 2.276 1.522zm-1.383-2.964A13.4 13.4 0 0 1 3.508 8.5h-2.49a6.96 6.96 0 0 0 1.362 3.675c.47-.258.995-.482 1.565-.667m6.728 2.964a7 7 0 0 0 2.275-1.521 8.4 8.4 0 0 0-1.197-.49 9 9 0 0 1-.481 1.078 7 7 0 0 1-.597.933M8.5 11.909v3.014c.67-.204 1.335-.82 1.887-1.855q.216-.403.395-.872A12.6 12.6 0 0 0 8.5 11.91zm3.555-.401c.57.185 1.095.409 1.565.667A6.96 6.96 0 0 0 14.982 8.5h-2.49a13.4 13.4 0 0 1-.437 3.008M14.982 7.5a6.96 6.96 0 0 0-1.362-3.675c-.47.258-.995.482-1.565.667.248.92.4 1.938.437 3.008zM11.27 2.461q.266.502.482 1.078a8.4 8.4 0 0 0 1.196-.49 7 7 0 0 0-2.275-1.52c.218.283.418.597.597.932m-.488 1.343a8 8 0 0 0-.395-.872C9.835 1.897 9.17 1.282 8.5 1.077V4.09c.81-.03 1.577-.13 2.282-.287z\" />\n </svg>\n );\n};\n"],"names":["World","width","height","className","color","classes","createColorClasses","jsx","clsx"],"mappings":"mLAIaA,EAAQ,CAAC,CACpB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,MAAAC,CACF,IAAiB,CACf,MAAMC,EAAUC,EAAAA,mBAAmB,CAAE,MAAAF,EAAO,EAG1C,OAAAG,EAAA,kBAAA,IAAC,MAAA,CACC,MAAM,6BACN,MAAAN,EACA,OAAAC,EACA,KAAK,eACL,QAAQ,YACR,UAAWM,EAAAA,KAAKL,EAAWE,CAAO,EAClC,cAAY,OAEZ,SAAAE,EAAAA,kBAAAA,IAAC,OAAK,CAAA,EAAE,k8CAAm8C,CAAA,CAAA,CAC78C,CAEJ"}
|
1
|
+
{"version":3,"file":"index.cjs81.js","sources":["../src/icons/World/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\r\nimport { IconProps } from \"../../types/icons\";\r\nimport { createColorClasses } from \"@/theme/colors\";\r\n\r\nexport const World = ({\r\n width = 24,\r\n height = 24,\r\n className,\r\n color,\r\n}: IconProps) => {\r\n const classes = createColorClasses({ color });\r\n\r\n return (\r\n <svg\r\n xmlns=\"http://www.w3.org/2000/svg\"\r\n width={width}\r\n height={height}\r\n fill=\"currentColor\"\r\n viewBox=\"0 0 16 16\"\r\n className={clsx(className, classes)}\r\n aria-hidden=\"true\" // this is a decorative icon, so we should hide it from screen readers\r\n >\r\n <path d=\"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8m7.5-6.923c-.67.204-1.335.82-1.887 1.855q-.215.403-.395.872c.705.157 1.472.257 2.282.287zM4.249 3.539q.214-.577.481-1.078a7 7 0 0 1 .597-.933A7 7 0 0 0 3.051 3.05q.544.277 1.198.49zM3.509 7.5c.036-1.07.188-2.087.436-3.008a9 9 0 0 1-1.565-.667A6.96 6.96 0 0 0 1.018 7.5zm1.4-2.741a12.3 12.3 0 0 0-.4 2.741H7.5V5.091c-.91-.03-1.783-.145-2.591-.332M8.5 5.09V7.5h2.99a12.3 12.3 0 0 0-.399-2.741c-.808.187-1.681.301-2.591.332zM4.51 8.5c.035.987.176 1.914.399 2.741A13.6 13.6 0 0 1 7.5 10.91V8.5zm3.99 0v2.409c.91.03 1.783.145 2.591.332.223-.827.364-1.754.4-2.741zm-3.282 3.696q.18.469.395.872c.552 1.035 1.218 1.65 1.887 1.855V11.91c-.81.03-1.577.13-2.282.287zm.11 2.276a7 7 0 0 1-.598-.933 9 9 0 0 1-.481-1.079 8.4 8.4 0 0 0-1.198.49 7 7 0 0 0 2.276 1.522zm-1.383-2.964A13.4 13.4 0 0 1 3.508 8.5h-2.49a6.96 6.96 0 0 0 1.362 3.675c.47-.258.995-.482 1.565-.667m6.728 2.964a7 7 0 0 0 2.275-1.521 8.4 8.4 0 0 0-1.197-.49 9 9 0 0 1-.481 1.078 7 7 0 0 1-.597.933M8.5 11.909v3.014c.67-.204 1.335-.82 1.887-1.855q.216-.403.395-.872A12.6 12.6 0 0 0 8.5 11.91zm3.555-.401c.57.185 1.095.409 1.565.667A6.96 6.96 0 0 0 14.982 8.5h-2.49a13.4 13.4 0 0 1-.437 3.008M14.982 7.5a6.96 6.96 0 0 0-1.362-3.675c-.47.258-.995.482-1.565.667.248.92.4 1.938.437 3.008zM11.27 2.461q.266.502.482 1.078a8.4 8.4 0 0 0 1.196-.49 7 7 0 0 0-2.275-1.52c.218.283.418.597.597.932m-.488 1.343a8 8 0 0 0-.395-.872C9.835 1.897 9.17 1.282 8.5 1.077V4.09c.81-.03 1.577-.13 2.282-.287z\" />\r\n </svg>\r\n );\r\n};\r\n"],"names":["World","width","height","className","color","classes","createColorClasses","jsx","clsx"],"mappings":"mLAIaA,EAAQ,CAAC,CACpB,MAAAC,EAAQ,GACR,OAAAC,EAAS,GACT,UAAAC,EACA,MAAAC,CACF,IAAiB,CACf,MAAMC,EAAUC,EAAAA,mBAAmB,CAAE,MAAAF,EAAO,EAG1C,OAAAG,EAAA,kBAAA,IAAC,MAAA,CACC,MAAM,6BACN,MAAAN,EACA,OAAAC,EACA,KAAK,eACL,QAAQ,YACR,UAAWM,EAAAA,KAAKL,EAAWE,CAAO,EAClC,cAAY,OAEZ,SAAAE,EAAAA,kBAAAA,IAAC,OAAK,CAAA,EAAE,k8CAAm8C,CAAA,CAAA,CAC78C,CAEJ"}
|
package/dist/index.cjs82.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs144.js"),l=require("./index.cjs146.js"),c=require("./index.
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index.cjs144.js"),l=require("./index.cjs146.js"),c=require("./index.cjs153.js"),i=({width:s=24,height:e=24,className:o,color:t})=>{const n=c.createColorClasses({color:t});return r.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:s,height:e,fill:"currentColor",viewBox:"0 0 24 24",className:l.clsx(o,n),"aria-hidden":"true",children:r.jsxRuntimeExports.jsx("path",{d:"M12 15.2 6.4 9.6l.7-.8 4.9 4.9 4.9-4.9.7.8-5.6 5.6Z"})})};exports.ArrowDown=i;
|
2
2
|
//# sourceMappingURL=index.cjs82.js.map
|