@lokalise/harmony 1.26.0 → 1.26.2
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/harmony.cjs +182 -1
- package/dist/harmony.cjs.map +1 -0
- package/dist/harmony.css +639 -1
- package/dist/harmony.mjs +180 -1993
- package/dist/harmony.mjs.map +1 -0
- package/dist/harmony10.cjs +9 -0
- package/dist/harmony10.cjs.map +1 -0
- package/dist/harmony10.mjs +9 -0
- package/dist/harmony10.mjs.map +1 -0
- package/dist/harmony100.cjs +65 -0
- package/dist/harmony100.cjs.map +1 -0
- package/dist/harmony100.mjs +65 -0
- package/dist/harmony100.mjs.map +1 -0
- package/dist/harmony101.cjs +91 -0
- package/dist/harmony101.cjs.map +1 -0
- package/dist/harmony101.mjs +91 -0
- package/dist/harmony101.mjs.map +1 -0
- package/dist/harmony102.cjs +21 -0
- package/dist/harmony102.cjs.map +1 -0
- package/dist/harmony102.mjs +21 -0
- package/dist/harmony102.mjs.map +1 -0
- package/dist/harmony103.cjs +99 -0
- package/dist/harmony103.cjs.map +1 -0
- package/dist/harmony103.mjs +99 -0
- package/dist/harmony103.mjs.map +1 -0
- package/dist/harmony104.cjs +16 -0
- package/dist/harmony104.cjs.map +1 -0
- package/dist/harmony104.mjs +16 -0
- package/dist/harmony104.mjs.map +1 -0
- package/dist/harmony105.cjs +17 -0
- package/dist/harmony105.cjs.map +1 -0
- package/dist/harmony105.mjs +17 -0
- package/dist/harmony105.mjs.map +1 -0
- package/dist/harmony106.cjs +39 -0
- package/dist/harmony106.cjs.map +1 -0
- package/dist/harmony106.mjs +39 -0
- package/dist/harmony106.mjs.map +1 -0
- package/dist/harmony107.cjs +31 -0
- package/dist/harmony107.cjs.map +1 -0
- package/dist/harmony107.mjs +31 -0
- package/dist/harmony107.mjs.map +1 -0
- package/dist/harmony108.cjs +10 -0
- package/dist/harmony108.cjs.map +1 -0
- package/dist/harmony108.mjs +10 -0
- package/dist/harmony108.mjs.map +1 -0
- package/dist/harmony109.cjs +60 -0
- package/dist/harmony109.cjs.map +1 -0
- package/dist/harmony109.mjs +60 -0
- package/dist/harmony109.mjs.map +1 -0
- package/dist/harmony11.cjs +8 -0
- package/dist/harmony11.cjs.map +1 -0
- package/dist/harmony11.mjs +8 -0
- package/dist/harmony11.mjs.map +1 -0
- package/dist/harmony110.cjs +63 -0
- package/dist/harmony110.cjs.map +1 -0
- package/dist/harmony110.mjs +63 -0
- package/dist/harmony110.mjs.map +1 -0
- package/dist/harmony111.cjs +21 -0
- package/dist/harmony111.cjs.map +1 -0
- package/dist/harmony111.mjs +21 -0
- package/dist/harmony111.mjs.map +1 -0
- package/dist/harmony112.cjs +16 -0
- package/dist/harmony112.cjs.map +1 -0
- package/dist/harmony112.mjs +16 -0
- package/dist/harmony112.mjs.map +1 -0
- package/dist/harmony113.cjs +18 -0
- package/dist/harmony113.cjs.map +1 -0
- package/dist/harmony113.mjs +18 -0
- package/dist/harmony113.mjs.map +1 -0
- package/dist/harmony114.cjs +19 -0
- package/dist/harmony114.cjs.map +1 -0
- package/dist/harmony114.mjs +19 -0
- package/dist/harmony114.mjs.map +1 -0
- package/dist/harmony115.cjs +14 -0
- package/dist/harmony115.cjs.map +1 -0
- package/dist/harmony115.mjs +14 -0
- package/dist/harmony115.mjs.map +1 -0
- package/dist/harmony116.cjs +19 -0
- package/dist/harmony116.cjs.map +1 -0
- package/dist/harmony116.mjs +19 -0
- package/dist/harmony116.mjs.map +1 -0
- package/dist/harmony117.cjs +24 -0
- package/dist/harmony117.cjs.map +1 -0
- package/dist/harmony117.mjs +24 -0
- package/dist/harmony117.mjs.map +1 -0
- package/dist/harmony118.cjs +15 -0
- package/dist/harmony118.cjs.map +1 -0
- package/dist/harmony118.mjs +15 -0
- package/dist/harmony118.mjs.map +1 -0
- package/dist/harmony119.cjs +49 -0
- package/dist/harmony119.cjs.map +1 -0
- package/dist/harmony119.mjs +49 -0
- package/dist/harmony119.mjs.map +1 -0
- package/dist/harmony12.cjs +27 -0
- package/dist/harmony12.cjs.map +1 -0
- package/dist/harmony12.mjs +27 -0
- package/dist/harmony12.mjs.map +1 -0
- package/dist/harmony120.cjs +15 -0
- package/dist/harmony120.cjs.map +1 -0
- package/dist/harmony120.mjs +15 -0
- package/dist/harmony120.mjs.map +1 -0
- package/dist/harmony121.cjs +9 -0
- package/dist/harmony121.cjs.map +1 -0
- package/dist/harmony121.mjs +9 -0
- package/dist/harmony121.mjs.map +1 -0
- package/dist/harmony122.cjs +15 -0
- package/dist/harmony122.cjs.map +1 -0
- package/dist/harmony122.mjs +15 -0
- package/dist/harmony122.mjs.map +1 -0
- package/dist/harmony123.cjs +35 -0
- package/dist/harmony123.cjs.map +1 -0
- package/dist/harmony123.mjs +35 -0
- package/dist/harmony123.mjs.map +1 -0
- package/dist/harmony124.cjs +17 -0
- package/dist/harmony124.cjs.map +1 -0
- package/dist/harmony124.mjs +17 -0
- package/dist/harmony124.mjs.map +1 -0
- package/dist/harmony13.cjs +8 -0
- package/dist/harmony13.cjs.map +1 -0
- package/dist/harmony13.mjs +8 -0
- package/dist/harmony13.mjs.map +1 -0
- package/dist/harmony14.cjs +14 -0
- package/dist/harmony14.cjs.map +1 -0
- package/dist/harmony14.mjs +14 -0
- package/dist/harmony14.mjs.map +1 -0
- package/dist/harmony15.cjs +14 -0
- package/dist/harmony15.cjs.map +1 -0
- package/dist/harmony15.mjs +14 -0
- package/dist/harmony15.mjs.map +1 -0
- package/dist/harmony16.cjs +21 -0
- package/dist/harmony16.cjs.map +1 -0
- package/dist/harmony16.mjs +21 -0
- package/dist/harmony16.mjs.map +1 -0
- package/dist/harmony17.cjs +19 -0
- package/dist/harmony17.cjs.map +1 -0
- package/dist/harmony17.mjs +19 -0
- package/dist/harmony17.mjs.map +1 -0
- package/dist/harmony18.cjs +145 -0
- package/dist/harmony18.cjs.map +1 -0
- package/dist/harmony18.mjs +145 -0
- package/dist/harmony18.mjs.map +1 -0
- package/dist/harmony19.cjs +17 -0
- package/dist/harmony19.cjs.map +1 -0
- package/dist/harmony19.mjs +17 -0
- package/dist/harmony19.mjs.map +1 -0
- package/dist/harmony2.cjs +22 -0
- package/dist/harmony2.cjs.map +1 -0
- package/dist/harmony2.mjs +22 -0
- package/dist/harmony2.mjs.map +1 -0
- package/dist/harmony20.cjs +20 -0
- package/dist/harmony20.cjs.map +1 -0
- package/dist/harmony20.mjs +20 -0
- package/dist/harmony20.mjs.map +1 -0
- package/dist/harmony21.cjs +21 -0
- package/dist/harmony21.cjs.map +1 -0
- package/dist/harmony21.mjs +21 -0
- package/dist/harmony21.mjs.map +1 -0
- package/dist/harmony22.cjs +23 -0
- package/dist/harmony22.cjs.map +1 -0
- package/dist/harmony22.mjs +23 -0
- package/dist/harmony22.mjs.map +1 -0
- package/dist/harmony23.cjs +23 -0
- package/dist/harmony23.cjs.map +1 -0
- package/dist/harmony23.mjs +23 -0
- package/dist/harmony23.mjs.map +1 -0
- package/dist/harmony24.cjs +13 -0
- package/dist/harmony24.cjs.map +1 -0
- package/dist/harmony24.mjs +13 -0
- package/dist/harmony24.mjs.map +1 -0
- package/dist/harmony25.cjs +14 -0
- package/dist/harmony25.cjs.map +1 -0
- package/dist/harmony25.mjs +14 -0
- package/dist/harmony25.mjs.map +1 -0
- package/dist/harmony26.cjs +30 -0
- package/dist/harmony26.cjs.map +1 -0
- package/dist/harmony26.mjs +30 -0
- package/dist/harmony26.mjs.map +1 -0
- package/dist/harmony27.cjs +34 -0
- package/dist/harmony27.cjs.map +1 -0
- package/dist/harmony27.mjs +34 -0
- package/dist/harmony27.mjs.map +1 -0
- package/dist/harmony28.cjs +14 -0
- package/dist/harmony28.cjs.map +1 -0
- package/dist/harmony28.mjs +14 -0
- package/dist/harmony28.mjs.map +1 -0
- package/dist/harmony29.cjs +41 -0
- package/dist/harmony29.cjs.map +1 -0
- package/dist/harmony29.mjs +41 -0
- package/dist/harmony29.mjs.map +1 -0
- package/dist/harmony3.cjs +47 -0
- package/dist/harmony3.cjs.map +1 -0
- package/dist/harmony3.mjs +47 -0
- package/dist/harmony3.mjs.map +1 -0
- package/dist/harmony30.cjs +14 -0
- package/dist/harmony30.cjs.map +1 -0
- package/dist/harmony30.mjs +14 -0
- package/dist/harmony30.mjs.map +1 -0
- package/dist/harmony31.cjs +13 -0
- package/dist/harmony31.cjs.map +1 -0
- package/dist/harmony31.mjs +13 -0
- package/dist/harmony31.mjs.map +1 -0
- package/dist/harmony32.cjs +17 -0
- package/dist/harmony32.cjs.map +1 -0
- package/dist/harmony32.mjs +17 -0
- package/dist/harmony32.mjs.map +1 -0
- package/dist/harmony33.cjs +17 -0
- package/dist/harmony33.cjs.map +1 -0
- package/dist/harmony33.mjs +17 -0
- package/dist/harmony33.mjs.map +1 -0
- package/dist/harmony34.cjs +17 -0
- package/dist/harmony34.cjs.map +1 -0
- package/dist/harmony34.mjs +17 -0
- package/dist/harmony34.mjs.map +1 -0
- package/dist/harmony35.cjs +16 -0
- package/dist/harmony35.cjs.map +1 -0
- package/dist/harmony35.mjs +16 -0
- package/dist/harmony35.mjs.map +1 -0
- package/dist/harmony36.cjs +20 -0
- package/dist/harmony36.cjs.map +1 -0
- package/dist/harmony36.mjs +20 -0
- package/dist/harmony36.mjs.map +1 -0
- package/dist/harmony37.cjs +18 -0
- package/dist/harmony37.cjs.map +1 -0
- package/dist/harmony37.mjs +18 -0
- package/dist/harmony37.mjs.map +1 -0
- package/dist/harmony38.cjs +18 -0
- package/dist/harmony38.cjs.map +1 -0
- package/dist/harmony38.mjs +18 -0
- package/dist/harmony38.mjs.map +1 -0
- package/dist/harmony39.cjs +18 -0
- package/dist/harmony39.cjs.map +1 -0
- package/dist/harmony39.mjs +18 -0
- package/dist/harmony39.mjs.map +1 -0
- package/dist/harmony4.cjs +29 -0
- package/dist/harmony4.cjs.map +1 -0
- package/dist/harmony4.mjs +29 -0
- package/dist/harmony4.mjs.map +1 -0
- package/dist/harmony40.cjs +20 -0
- package/dist/harmony40.cjs.map +1 -0
- package/dist/harmony40.mjs +20 -0
- package/dist/harmony40.mjs.map +1 -0
- package/dist/harmony41.cjs +20 -0
- package/dist/harmony41.cjs.map +1 -0
- package/dist/harmony41.mjs +20 -0
- package/dist/harmony41.mjs.map +1 -0
- package/dist/harmony42.cjs +20 -0
- package/dist/harmony42.cjs.map +1 -0
- package/dist/harmony42.mjs +20 -0
- package/dist/harmony42.mjs.map +1 -0
- package/dist/harmony43.cjs +18 -0
- package/dist/harmony43.cjs.map +1 -0
- package/dist/harmony43.mjs +18 -0
- package/dist/harmony43.mjs.map +1 -0
- package/dist/harmony44.cjs +20 -0
- package/dist/harmony44.cjs.map +1 -0
- package/dist/harmony44.mjs +20 -0
- package/dist/harmony44.mjs.map +1 -0
- package/dist/harmony45.cjs +17 -0
- package/dist/harmony45.cjs.map +1 -0
- package/dist/harmony45.mjs +17 -0
- package/dist/harmony45.mjs.map +1 -0
- package/dist/harmony46.cjs +59 -0
- package/dist/harmony46.cjs.map +1 -0
- package/dist/harmony46.mjs +59 -0
- package/dist/harmony46.mjs.map +1 -0
- package/dist/harmony47.cjs +83 -0
- package/dist/harmony47.cjs.map +1 -0
- package/dist/harmony47.mjs +83 -0
- package/dist/harmony47.mjs.map +1 -0
- package/dist/harmony48.cjs +23 -0
- package/dist/harmony48.cjs.map +1 -0
- package/dist/harmony48.mjs +23 -0
- package/dist/harmony48.mjs.map +1 -0
- package/dist/harmony49.cjs +113 -0
- package/dist/harmony49.cjs.map +1 -0
- package/dist/harmony49.mjs +113 -0
- package/dist/harmony49.mjs.map +1 -0
- package/dist/harmony5.cjs +14 -0
- package/dist/harmony5.cjs.map +1 -0
- package/dist/harmony5.mjs +14 -0
- package/dist/harmony5.mjs.map +1 -0
- package/dist/harmony50.cjs +24 -0
- package/dist/harmony50.cjs.map +1 -0
- package/dist/harmony50.mjs +24 -0
- package/dist/harmony50.mjs.map +1 -0
- package/dist/harmony51.cjs +29 -0
- package/dist/harmony51.cjs.map +1 -0
- package/dist/harmony51.mjs +29 -0
- package/dist/harmony51.mjs.map +1 -0
- package/dist/harmony52.cjs +11 -0
- package/dist/harmony52.cjs.map +1 -0
- package/dist/harmony52.mjs +11 -0
- package/dist/harmony52.mjs.map +1 -0
- package/dist/harmony53.cjs +27 -0
- package/dist/harmony53.cjs.map +1 -0
- package/dist/harmony53.mjs +27 -0
- package/dist/harmony53.mjs.map +1 -0
- package/dist/harmony54.cjs +21 -0
- package/dist/harmony54.cjs.map +1 -0
- package/dist/harmony54.mjs +21 -0
- package/dist/harmony54.mjs.map +1 -0
- package/dist/harmony55.cjs +18 -0
- package/dist/harmony55.cjs.map +1 -0
- package/dist/harmony55.mjs +18 -0
- package/dist/harmony55.mjs.map +1 -0
- package/dist/harmony56.cjs +21 -0
- package/dist/harmony56.cjs.map +1 -0
- package/dist/harmony56.mjs +21 -0
- package/dist/harmony56.mjs.map +1 -0
- package/dist/harmony57.cjs +64 -0
- package/dist/harmony57.cjs.map +1 -0
- package/dist/harmony57.mjs +64 -0
- package/dist/harmony57.mjs.map +1 -0
- package/dist/harmony58.cjs +9 -0
- package/dist/harmony58.cjs.map +1 -0
- package/dist/harmony58.mjs +9 -0
- package/dist/harmony58.mjs.map +1 -0
- package/dist/harmony59.cjs +12 -0
- package/dist/harmony59.cjs.map +1 -0
- package/dist/harmony59.mjs +12 -0
- package/dist/harmony59.mjs.map +1 -0
- package/dist/harmony6.cjs +52 -0
- package/dist/harmony6.cjs.map +1 -0
- package/dist/harmony6.mjs +52 -0
- package/dist/harmony6.mjs.map +1 -0
- package/dist/harmony60.cjs +21 -0
- package/dist/harmony60.cjs.map +1 -0
- package/dist/harmony60.mjs +21 -0
- package/dist/harmony60.mjs.map +1 -0
- package/dist/harmony61.cjs +26 -0
- package/dist/harmony61.cjs.map +1 -0
- package/dist/harmony61.mjs +26 -0
- package/dist/harmony61.mjs.map +1 -0
- package/dist/harmony62.cjs +8 -0
- package/dist/harmony62.cjs.map +1 -0
- package/dist/harmony62.mjs +8 -0
- package/dist/harmony62.mjs.map +1 -0
- package/dist/harmony63.cjs +35 -0
- package/dist/harmony63.cjs.map +1 -0
- package/dist/harmony63.mjs +35 -0
- package/dist/harmony63.mjs.map +1 -0
- package/dist/harmony64.cjs +35 -0
- package/dist/harmony64.cjs.map +1 -0
- package/dist/harmony64.mjs +35 -0
- package/dist/harmony64.mjs.map +1 -0
- package/dist/harmony65.cjs +22 -0
- package/dist/harmony65.cjs.map +1 -0
- package/dist/harmony65.mjs +22 -0
- package/dist/harmony65.mjs.map +1 -0
- package/dist/harmony66.cjs +34 -0
- package/dist/harmony66.cjs.map +1 -0
- package/dist/harmony66.mjs +34 -0
- package/dist/harmony66.mjs.map +1 -0
- package/dist/harmony67.cjs +62 -0
- package/dist/harmony67.cjs.map +1 -0
- package/dist/harmony67.mjs +62 -0
- package/dist/harmony67.mjs.map +1 -0
- package/dist/harmony68.cjs +12 -0
- package/dist/harmony68.cjs.map +1 -0
- package/dist/harmony68.mjs +12 -0
- package/dist/harmony68.mjs.map +1 -0
- package/dist/harmony69.cjs +11 -0
- package/dist/harmony69.cjs.map +1 -0
- package/dist/harmony69.mjs +11 -0
- package/dist/harmony69.mjs.map +1 -0
- package/dist/harmony7.cjs +33 -0
- package/dist/harmony7.cjs.map +1 -0
- package/dist/harmony7.mjs +33 -0
- package/dist/harmony7.mjs.map +1 -0
- package/dist/harmony70.cjs +32 -0
- package/dist/harmony70.cjs.map +1 -0
- package/dist/harmony70.mjs +32 -0
- package/dist/harmony70.mjs.map +1 -0
- package/dist/harmony71.cjs +6 -0
- package/dist/harmony71.cjs.map +1 -0
- package/dist/harmony71.mjs +6 -0
- package/dist/harmony71.mjs.map +1 -0
- package/dist/harmony72.cjs +14 -0
- package/dist/harmony72.cjs.map +1 -0
- package/dist/harmony72.mjs +14 -0
- package/dist/harmony72.mjs.map +1 -0
- package/dist/harmony73.cjs +24 -0
- package/dist/harmony73.cjs.map +1 -0
- package/dist/harmony73.mjs +24 -0
- package/dist/harmony73.mjs.map +1 -0
- package/dist/harmony74.cjs +9 -0
- package/dist/harmony74.cjs.map +1 -0
- package/dist/harmony74.mjs +9 -0
- package/dist/harmony74.mjs.map +1 -0
- package/dist/harmony75.cjs +12 -0
- package/dist/harmony75.cjs.map +1 -0
- package/dist/harmony75.mjs +12 -0
- package/dist/harmony75.mjs.map +1 -0
- package/dist/harmony76.cjs +12 -0
- package/dist/harmony76.cjs.map +1 -0
- package/dist/harmony76.mjs +12 -0
- package/dist/harmony76.mjs.map +1 -0
- package/dist/harmony77.cjs +60 -0
- package/dist/harmony77.cjs.map +1 -0
- package/dist/harmony77.mjs +60 -0
- package/dist/harmony77.mjs.map +1 -0
- package/dist/harmony78.cjs +35 -0
- package/dist/harmony78.cjs.map +1 -0
- package/dist/harmony78.mjs +35 -0
- package/dist/harmony78.mjs.map +1 -0
- package/dist/harmony79.cjs +8 -0
- package/dist/harmony79.cjs.map +1 -0
- package/dist/harmony79.mjs +8 -0
- package/dist/harmony79.mjs.map +1 -0
- package/dist/harmony8.cjs +26 -0
- package/dist/harmony8.cjs.map +1 -0
- package/dist/harmony8.mjs +26 -0
- package/dist/harmony8.mjs.map +1 -0
- package/dist/harmony80.cjs +12 -0
- package/dist/harmony80.cjs.map +1 -0
- package/dist/harmony80.mjs +12 -0
- package/dist/harmony80.mjs.map +1 -0
- package/dist/harmony81.cjs +27 -0
- package/dist/harmony81.cjs.map +1 -0
- package/dist/harmony81.mjs +27 -0
- package/dist/harmony81.mjs.map +1 -0
- package/dist/harmony82.cjs +9 -0
- package/dist/harmony82.cjs.map +1 -0
- package/dist/harmony82.mjs +9 -0
- package/dist/harmony82.mjs.map +1 -0
- package/dist/harmony83.cjs +24 -0
- package/dist/harmony83.cjs.map +1 -0
- package/dist/harmony83.mjs +24 -0
- package/dist/harmony83.mjs.map +1 -0
- package/dist/harmony84.cjs +15 -0
- package/dist/harmony84.cjs.map +1 -0
- package/dist/harmony84.mjs +15 -0
- package/dist/harmony84.mjs.map +1 -0
- package/dist/harmony85.cjs +21 -0
- package/dist/harmony85.cjs.map +1 -0
- package/dist/harmony85.mjs +21 -0
- package/dist/harmony85.mjs.map +1 -0
- package/dist/harmony86.cjs +17 -0
- package/dist/harmony86.cjs.map +1 -0
- package/dist/harmony86.mjs +17 -0
- package/dist/harmony86.mjs.map +1 -0
- package/dist/harmony87.cjs +19 -0
- package/dist/harmony87.cjs.map +1 -0
- package/dist/harmony87.mjs +19 -0
- package/dist/harmony87.mjs.map +1 -0
- package/dist/harmony88.cjs +24 -0
- package/dist/harmony88.cjs.map +1 -0
- package/dist/harmony88.mjs +24 -0
- package/dist/harmony88.mjs.map +1 -0
- package/dist/harmony89.cjs +8 -0
- package/dist/harmony89.cjs.map +1 -0
- package/dist/harmony89.mjs +8 -0
- package/dist/harmony89.mjs.map +1 -0
- package/dist/harmony9.cjs +55 -0
- package/dist/harmony9.cjs.map +1 -0
- package/dist/harmony9.mjs +55 -0
- package/dist/harmony9.mjs.map +1 -0
- package/dist/harmony90.cjs +102 -0
- package/dist/harmony90.cjs.map +1 -0
- package/dist/harmony90.mjs +85 -0
- package/dist/harmony90.mjs.map +1 -0
- package/dist/harmony91.cjs +135 -0
- package/dist/harmony91.cjs.map +1 -0
- package/dist/harmony91.mjs +135 -0
- package/dist/harmony91.mjs.map +1 -0
- package/dist/harmony92.cjs +15 -0
- package/dist/harmony92.cjs.map +1 -0
- package/dist/harmony92.mjs +15 -0
- package/dist/harmony92.mjs.map +1 -0
- package/dist/harmony93.cjs +8 -0
- package/dist/harmony93.cjs.map +1 -0
- package/dist/harmony93.mjs +8 -0
- package/dist/harmony93.mjs.map +1 -0
- package/dist/harmony94.cjs +43 -0
- package/dist/harmony94.cjs.map +1 -0
- package/dist/harmony94.mjs +43 -0
- package/dist/harmony94.mjs.map +1 -0
- package/dist/harmony95.cjs +63 -0
- package/dist/harmony95.cjs.map +1 -0
- package/dist/harmony95.mjs +63 -0
- package/dist/harmony95.mjs.map +1 -0
- package/dist/harmony96.cjs +10 -0
- package/dist/harmony96.cjs.map +1 -0
- package/dist/harmony96.mjs +10 -0
- package/dist/harmony96.mjs.map +1 -0
- package/dist/harmony97.cjs +9 -0
- package/dist/harmony97.cjs.map +1 -0
- package/dist/harmony97.mjs +9 -0
- package/dist/harmony97.mjs.map +1 -0
- package/dist/harmony98.cjs +8 -0
- package/dist/harmony98.cjs.map +1 -0
- package/dist/harmony98.mjs +8 -0
- package/dist/harmony98.mjs.map +1 -0
- package/dist/harmony99.cjs +8 -0
- package/dist/harmony99.cjs.map +1 -0
- package/dist/harmony99.mjs +8 -0
- package/dist/harmony99.mjs.map +1 -0
- package/dist/types/src/features/publicApi/node.d.ts +16 -9
- package/package.json +1 -1
@@ -0,0 +1,18 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
function r(e) {
|
4
|
+
var t, f, n = "";
|
5
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
6
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
7
|
+
var o = e.length;
|
8
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
9
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
10
|
+
return n;
|
11
|
+
}
|
12
|
+
function clsx() {
|
13
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
14
|
+
return n;
|
15
|
+
}
|
16
|
+
exports.clsx = clsx;
|
17
|
+
exports.default = clsx;
|
18
|
+
//# sourceMappingURL=harmony55.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony55.cjs","sources":["../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":[],"mappings":";;AAAA,SAAS,EAAE,GAAE;AAAC,MAAI,GAAE,GAAE,IAAE;AAAG,MAAG,YAAU,OAAO,KAAG,YAAU,OAAO,EAAE,MAAG;AAAA,WAAU,YAAU,OAAO,EAAE,KAAG,MAAM,QAAQ,CAAC,GAAE;AAAC,QAAI,IAAE,EAAE;AAAO,SAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,CAAC,MAAI,IAAE,EAAE,EAAE,CAAC,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAA,EAAE,MAAM,MAAI,KAAK,EAAE,GAAE,CAAC,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;AAAQ,SAAS,OAAM;AAAC,WAAQ,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,CAAC,OAAK,IAAE,EAAE,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
function r(e) {
|
2
|
+
var t, f, n = "";
|
3
|
+
if ("string" == typeof e || "number" == typeof e) n += e;
|
4
|
+
else if ("object" == typeof e) if (Array.isArray(e)) {
|
5
|
+
var o = e.length;
|
6
|
+
for (t = 0; t < o; t++) e[t] && (f = r(e[t])) && (n && (n += " "), n += f);
|
7
|
+
} else for (f in e) e[f] && (n && (n += " "), n += f);
|
8
|
+
return n;
|
9
|
+
}
|
10
|
+
function clsx() {
|
11
|
+
for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
|
12
|
+
return n;
|
13
|
+
}
|
14
|
+
export {
|
15
|
+
clsx,
|
16
|
+
clsx as default
|
17
|
+
};
|
18
|
+
//# sourceMappingURL=harmony55.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony55.mjs","sources":["../node_modules/clsx/dist/clsx.mjs"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;"],"names":[],"mappings":"AAAA,SAAS,EAAE,GAAE;AAAC,MAAI,GAAE,GAAE,IAAE;AAAG,MAAG,YAAU,OAAO,KAAG,YAAU,OAAO,EAAE,MAAG;AAAA,WAAU,YAAU,OAAO,EAAE,KAAG,MAAM,QAAQ,CAAC,GAAE;AAAC,QAAI,IAAE,EAAE;AAAO,SAAI,IAAE,GAAE,IAAE,GAAE,IAAI,GAAE,CAAC,MAAI,IAAE,EAAE,EAAE,CAAC,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAA,EAAE,MAAM,MAAI,KAAK,EAAE,GAAE,CAAC,MAAI,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;AAAQ,SAAS,OAAM;AAAC,WAAQ,GAAE,GAAE,IAAE,GAAE,IAAE,IAAG,IAAE,UAAU,QAAO,IAAE,GAAE,IAAI,EAAC,IAAE,UAAU,CAAC,OAAK,IAAE,EAAE,CAAC,OAAK,MAAI,KAAG,MAAK,KAAG;AAAG,SAAO;AAAC;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const headerContainer = "_headerContainer_1cubo_1";
|
4
|
+
const navigationTabList = "_navigationTabList_1cubo_8";
|
5
|
+
const navigationTab = "_navigationTab_1cubo_8";
|
6
|
+
const headerContent = "_headerContent_1cubo_34";
|
7
|
+
const staticEnabled = "_staticEnabled_1cubo_50";
|
8
|
+
const classes = {
|
9
|
+
headerContainer,
|
10
|
+
navigationTabList,
|
11
|
+
navigationTab,
|
12
|
+
headerContent,
|
13
|
+
staticEnabled
|
14
|
+
};
|
15
|
+
exports.default = classes;
|
16
|
+
exports.headerContainer = headerContainer;
|
17
|
+
exports.headerContent = headerContent;
|
18
|
+
exports.navigationTab = navigationTab;
|
19
|
+
exports.navigationTabList = navigationTabList;
|
20
|
+
exports.staticEnabled = staticEnabled;
|
21
|
+
//# sourceMappingURL=harmony56.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony56.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
const headerContainer = "_headerContainer_1cubo_1";
|
2
|
+
const navigationTabList = "_navigationTabList_1cubo_8";
|
3
|
+
const navigationTab = "_navigationTab_1cubo_8";
|
4
|
+
const headerContent = "_headerContent_1cubo_34";
|
5
|
+
const staticEnabled = "_staticEnabled_1cubo_50";
|
6
|
+
const classes = {
|
7
|
+
headerContainer,
|
8
|
+
navigationTabList,
|
9
|
+
navigationTab,
|
10
|
+
headerContent,
|
11
|
+
staticEnabled
|
12
|
+
};
|
13
|
+
export {
|
14
|
+
classes as default,
|
15
|
+
headerContainer,
|
16
|
+
headerContent,
|
17
|
+
navigationTab,
|
18
|
+
navigationTabList,
|
19
|
+
staticEnabled
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=harmony56.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony56.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;"}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const React = require("react");
|
4
|
+
const utils = require("./harmony90.cjs");
|
5
|
+
function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
|
6
|
+
const skipResize = React.useRef(skipOnMount);
|
7
|
+
const onResizeRef = utils.useCallbackRef(onResize);
|
8
|
+
const [size, setSize] = React.useState({
|
9
|
+
width: void 0,
|
10
|
+
height: void 0
|
11
|
+
});
|
12
|
+
const { refProxy, refElement } = utils.useRefProxy(targetRef);
|
13
|
+
const { box } = observerOptions || {};
|
14
|
+
const resizeCallback = React.useCallback((entries) => {
|
15
|
+
if (!handleWidth && !handleHeight)
|
16
|
+
return;
|
17
|
+
if (skipResize.current) {
|
18
|
+
skipResize.current = false;
|
19
|
+
return;
|
20
|
+
}
|
21
|
+
const shouldSetSize = (prevSize, nextSize) => handleWidth && prevSize.width !== nextSize.width || handleHeight && prevSize.height !== nextSize.height;
|
22
|
+
entries.forEach((entry) => {
|
23
|
+
const dimensions = utils.getDimensions(entry, box);
|
24
|
+
setSize((prevSize) => {
|
25
|
+
if (!shouldSetSize(prevSize, dimensions))
|
26
|
+
return prevSize;
|
27
|
+
onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({
|
28
|
+
width: dimensions.width,
|
29
|
+
height: dimensions.height,
|
30
|
+
entry
|
31
|
+
});
|
32
|
+
return dimensions;
|
33
|
+
});
|
34
|
+
});
|
35
|
+
}, [handleWidth, handleHeight, skipResize, box]);
|
36
|
+
const resizeHandler = React.useCallback(utils.patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [
|
37
|
+
resizeCallback,
|
38
|
+
refreshMode,
|
39
|
+
refreshRate,
|
40
|
+
refreshOptions
|
41
|
+
]);
|
42
|
+
React.useEffect(() => {
|
43
|
+
let resizeObserver;
|
44
|
+
if (refElement) {
|
45
|
+
resizeObserver = new window.ResizeObserver(resizeHandler);
|
46
|
+
resizeObserver.observe(refElement, observerOptions);
|
47
|
+
} else if (size.width || size.height) {
|
48
|
+
onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({
|
49
|
+
width: null,
|
50
|
+
height: null,
|
51
|
+
entry: null
|
52
|
+
});
|
53
|
+
setSize({ width: void 0, height: void 0 });
|
54
|
+
}
|
55
|
+
return () => {
|
56
|
+
var _a, _b, _c;
|
57
|
+
(_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
|
58
|
+
(_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);
|
59
|
+
};
|
60
|
+
}, [resizeHandler, refElement]);
|
61
|
+
return Object.assign({ ref: refProxy }, size);
|
62
|
+
}
|
63
|
+
exports.default = useResizeDetector;
|
64
|
+
//# sourceMappingURL=harmony57.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony57.cjs","sources":["../node_modules/react-resize-detector/build/useResizeDetector.js"],"sourcesContent":["import { useRef, useState, useCallback, useEffect } from 'react';\nimport { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from './utils.js';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1000, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize, } = {}) {\n // If `skipOnMount` is enabled, skip the first resize event\n const skipResize = useRef(skipOnMount);\n // Wrap the `onResize` callback with a ref to avoid re-renders\n const onResizeRef = useCallbackRef(onResize);\n const [size, setSize] = useState({\n width: undefined,\n height: undefined,\n });\n // Create a proxy ref to handle conditional rendering and dynamic ref changes of the target element\n const { refProxy, refElement } = useRefProxy(targetRef);\n const { box } = observerOptions || {};\n const resizeCallback = useCallback((entries) => {\n if (!handleWidth && !handleHeight)\n return;\n if (skipResize.current) {\n skipResize.current = false;\n return;\n }\n // Only update the size if one of the observed dimensions has changed\n const shouldSetSize = (prevSize, nextSize) => (handleWidth && prevSize.width !== nextSize.width) || (handleHeight && prevSize.height !== nextSize.height);\n entries.forEach((entry) => {\n const dimensions = getDimensions(entry, box);\n setSize((prevSize) => {\n if (!shouldSetSize(prevSize, dimensions))\n return prevSize;\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: dimensions.width,\n height: dimensions.height,\n entry,\n });\n return dimensions;\n });\n });\n }, [handleWidth, handleHeight, skipResize, box]);\n // Throttle/Debounce the resize event if refreshMode is configured\n const resizeHandler = useCallback(patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [\n resizeCallback,\n refreshMode,\n refreshRate,\n refreshOptions,\n ]);\n // Attach ResizeObserver to the element\n useEffect(() => {\n let resizeObserver;\n if (refElement) {\n resizeObserver = new window.ResizeObserver(resizeHandler);\n resizeObserver.observe(refElement, observerOptions);\n }\n // If refElement is not available, reset the size\n else if (size.width || size.height) {\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: null,\n height: null,\n entry: null,\n });\n setSize({ width: undefined, height: undefined });\n }\n // Disconnect the ResizeObserver when the component is unmounted\n return () => {\n var _a, _b, _c;\n (_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);\n (_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);\n };\n }, [resizeHandler, refElement]);\n return Object.assign({ ref: refProxy }, size);\n}\n\nexport { useResizeDetector as default };\n//# sourceMappingURL=useResizeDetector.js.map\n"],"names":["useRef","useCallbackRef","useState","useRefProxy","useCallback","getDimensions","patchResizeCallback","useEffect"],"mappings":";;;;AAIA,SAAS,kBAAkB,EAAE,cAAc,OAAO,aAAa,cAAc,KAAM,gBAAgB,cAAc,MAAM,eAAe,MAAM,WAAW,iBAAiB,SAAW,IAAG,IAAI;AAEtL,QAAM,aAAaA,MAAM,OAAC,WAAW;AAErC,QAAM,cAAcC,MAAc,eAAC,QAAQ;AAC3C,QAAM,CAAC,MAAM,OAAO,IAAIC,eAAS;AAAA,IAC7B,OAAO;AAAA,IACP,QAAQ;AAAA,EAChB,CAAK;AAED,QAAM,EAAE,UAAU,eAAeC,MAAAA,YAAY,SAAS;AACtD,QAAM,EAAE,QAAQ,mBAAmB,CAAE;AACrC,QAAM,iBAAiBC,kBAAY,CAAC,YAAY;AAC5C,QAAI,CAAC,eAAe,CAAC;AACjB;AACJ,QAAI,WAAW,SAAS;AACpB,iBAAW,UAAU;AACrB;AAAA,IACZ;AAEQ,UAAM,gBAAgB,CAAC,UAAU,aAAc,eAAe,SAAS,UAAU,SAAS,SAAW,gBAAgB,SAAS,WAAW,SAAS;AAClJ,YAAQ,QAAQ,CAAC,UAAU;AACvB,YAAM,aAAaC,MAAAA,cAAc,OAAO,GAAG;AAC3C,cAAQ,CAAC,aAAa;AAClB,YAAI,CAAC,cAAc,UAAU,UAAU;AACnC,iBAAO;AACX,wBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,UAClE,OAAO,WAAW;AAAA,UAClB,QAAQ,WAAW;AAAA,UACnB;AAAA,QACpB,CAAiB;AACD,eAAO;AAAA,MACvB,CAAa;AAAA,IACb,CAAS;AAAA,EACJ,GAAE,CAAC,aAAa,cAAc,YAAY,GAAG,CAAC;AAE/C,QAAM,gBAAgBD,MAAAA,YAAYE,MAAmB,oBAAC,gBAAgB,aAAa,aAAa,cAAc,GAAG;AAAA,IAC7G;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACR,CAAK;AAEDC,QAAAA,UAAU,MAAM;AACZ,QAAI;AACJ,QAAI,YAAY;AACZ,uBAAiB,IAAI,OAAO,eAAe,aAAa;AACxD,qBAAe,QAAQ,YAAY,eAAe;AAAA,IAC9D,WAEiB,KAAK,SAAS,KAAK,QAAQ;AAChC,sBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,QAClE,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO;AAAA,MACvB,CAAa;AACD,cAAQ,EAAE,OAAO,QAAW,QAAQ,OAAS,CAAE;AAAA,IAC3D;AAEQ,WAAO,MAAM;AACT,UAAI,IAAI,IAAI;AACZ,OAAC,KAAK,mBAAmB,QAAQ,mBAAmB,SAAS,SAAS,eAAe,gBAAgB,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,cAAc;AAC5J,OAAC,MAAM,KAAK,eAAe,YAAY,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,EAAE;AAAA,IACrF;AAAA,EACT,GAAO,CAAC,eAAe,UAAU,CAAC;AAC9B,SAAO,OAAO,OAAO,EAAE,KAAK,SAAQ,GAAI,IAAI;AAChD;;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,64 @@
|
|
1
|
+
import { useRef, useState, useCallback, useEffect } from "react";
|
2
|
+
import { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from "./harmony90.mjs";
|
3
|
+
function useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1e3, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize } = {}) {
|
4
|
+
const skipResize = useRef(skipOnMount);
|
5
|
+
const onResizeRef = useCallbackRef(onResize);
|
6
|
+
const [size, setSize] = useState({
|
7
|
+
width: void 0,
|
8
|
+
height: void 0
|
9
|
+
});
|
10
|
+
const { refProxy, refElement } = useRefProxy(targetRef);
|
11
|
+
const { box } = observerOptions || {};
|
12
|
+
const resizeCallback = useCallback((entries) => {
|
13
|
+
if (!handleWidth && !handleHeight)
|
14
|
+
return;
|
15
|
+
if (skipResize.current) {
|
16
|
+
skipResize.current = false;
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
const shouldSetSize = (prevSize, nextSize) => handleWidth && prevSize.width !== nextSize.width || handleHeight && prevSize.height !== nextSize.height;
|
20
|
+
entries.forEach((entry) => {
|
21
|
+
const dimensions = getDimensions(entry, box);
|
22
|
+
setSize((prevSize) => {
|
23
|
+
if (!shouldSetSize(prevSize, dimensions))
|
24
|
+
return prevSize;
|
25
|
+
onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({
|
26
|
+
width: dimensions.width,
|
27
|
+
height: dimensions.height,
|
28
|
+
entry
|
29
|
+
});
|
30
|
+
return dimensions;
|
31
|
+
});
|
32
|
+
});
|
33
|
+
}, [handleWidth, handleHeight, skipResize, box]);
|
34
|
+
const resizeHandler = useCallback(patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [
|
35
|
+
resizeCallback,
|
36
|
+
refreshMode,
|
37
|
+
refreshRate,
|
38
|
+
refreshOptions
|
39
|
+
]);
|
40
|
+
useEffect(() => {
|
41
|
+
let resizeObserver;
|
42
|
+
if (refElement) {
|
43
|
+
resizeObserver = new window.ResizeObserver(resizeHandler);
|
44
|
+
resizeObserver.observe(refElement, observerOptions);
|
45
|
+
} else if (size.width || size.height) {
|
46
|
+
onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({
|
47
|
+
width: null,
|
48
|
+
height: null,
|
49
|
+
entry: null
|
50
|
+
});
|
51
|
+
setSize({ width: void 0, height: void 0 });
|
52
|
+
}
|
53
|
+
return () => {
|
54
|
+
var _a, _b, _c;
|
55
|
+
(_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);
|
56
|
+
(_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);
|
57
|
+
};
|
58
|
+
}, [resizeHandler, refElement]);
|
59
|
+
return Object.assign({ ref: refProxy }, size);
|
60
|
+
}
|
61
|
+
export {
|
62
|
+
useResizeDetector as default
|
63
|
+
};
|
64
|
+
//# sourceMappingURL=harmony57.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony57.mjs","sources":["../node_modules/react-resize-detector/build/useResizeDetector.js"],"sourcesContent":["import { useRef, useState, useCallback, useEffect } from 'react';\nimport { useCallbackRef, useRefProxy, getDimensions, patchResizeCallback } from './utils.js';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nfunction useResizeDetector({ skipOnMount = false, refreshMode, refreshRate = 1000, refreshOptions, handleWidth = true, handleHeight = true, targetRef, observerOptions, onResize, } = {}) {\n // If `skipOnMount` is enabled, skip the first resize event\n const skipResize = useRef(skipOnMount);\n // Wrap the `onResize` callback with a ref to avoid re-renders\n const onResizeRef = useCallbackRef(onResize);\n const [size, setSize] = useState({\n width: undefined,\n height: undefined,\n });\n // Create a proxy ref to handle conditional rendering and dynamic ref changes of the target element\n const { refProxy, refElement } = useRefProxy(targetRef);\n const { box } = observerOptions || {};\n const resizeCallback = useCallback((entries) => {\n if (!handleWidth && !handleHeight)\n return;\n if (skipResize.current) {\n skipResize.current = false;\n return;\n }\n // Only update the size if one of the observed dimensions has changed\n const shouldSetSize = (prevSize, nextSize) => (handleWidth && prevSize.width !== nextSize.width) || (handleHeight && prevSize.height !== nextSize.height);\n entries.forEach((entry) => {\n const dimensions = getDimensions(entry, box);\n setSize((prevSize) => {\n if (!shouldSetSize(prevSize, dimensions))\n return prevSize;\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: dimensions.width,\n height: dimensions.height,\n entry,\n });\n return dimensions;\n });\n });\n }, [handleWidth, handleHeight, skipResize, box]);\n // Throttle/Debounce the resize event if refreshMode is configured\n const resizeHandler = useCallback(patchResizeCallback(resizeCallback, refreshMode, refreshRate, refreshOptions), [\n resizeCallback,\n refreshMode,\n refreshRate,\n refreshOptions,\n ]);\n // Attach ResizeObserver to the element\n useEffect(() => {\n let resizeObserver;\n if (refElement) {\n resizeObserver = new window.ResizeObserver(resizeHandler);\n resizeObserver.observe(refElement, observerOptions);\n }\n // If refElement is not available, reset the size\n else if (size.width || size.height) {\n onResizeRef === null || onResizeRef === void 0 ? void 0 : onResizeRef({\n width: null,\n height: null,\n entry: null,\n });\n setSize({ width: undefined, height: undefined });\n }\n // Disconnect the ResizeObserver when the component is unmounted\n return () => {\n var _a, _b, _c;\n (_a = resizeObserver === null || resizeObserver === void 0 ? void 0 : resizeObserver.disconnect) === null || _a === void 0 ? void 0 : _a.call(resizeObserver);\n (_c = (_b = resizeHandler).cancel) === null || _c === void 0 ? void 0 : _c.call(_b);\n };\n }, [resizeHandler, refElement]);\n return Object.assign({ ref: refProxy }, size);\n}\n\nexport { useResizeDetector as default };\n//# sourceMappingURL=useResizeDetector.js.map\n"],"names":[],"mappings":";;AAIA,SAAS,kBAAkB,EAAE,cAAc,OAAO,aAAa,cAAc,KAAM,gBAAgB,cAAc,MAAM,eAAe,MAAM,WAAW,iBAAiB,SAAW,IAAG,IAAI;AAEtL,QAAM,aAAa,OAAO,WAAW;AAErC,QAAM,cAAc,eAAe,QAAQ;AAC3C,QAAM,CAAC,MAAM,OAAO,IAAI,SAAS;AAAA,IAC7B,OAAO;AAAA,IACP,QAAQ;AAAA,EAChB,CAAK;AAED,QAAM,EAAE,UAAU,eAAe,YAAY,SAAS;AACtD,QAAM,EAAE,QAAQ,mBAAmB,CAAE;AACrC,QAAM,iBAAiB,YAAY,CAAC,YAAY;AAC5C,QAAI,CAAC,eAAe,CAAC;AACjB;AACJ,QAAI,WAAW,SAAS;AACpB,iBAAW,UAAU;AACrB;AAAA,IACZ;AAEQ,UAAM,gBAAgB,CAAC,UAAU,aAAc,eAAe,SAAS,UAAU,SAAS,SAAW,gBAAgB,SAAS,WAAW,SAAS;AAClJ,YAAQ,QAAQ,CAAC,UAAU;AACvB,YAAM,aAAa,cAAc,OAAO,GAAG;AAC3C,cAAQ,CAAC,aAAa;AAClB,YAAI,CAAC,cAAc,UAAU,UAAU;AACnC,iBAAO;AACX,wBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,UAClE,OAAO,WAAW;AAAA,UAClB,QAAQ,WAAW;AAAA,UACnB;AAAA,QACpB,CAAiB;AACD,eAAO;AAAA,MACvB,CAAa;AAAA,IACb,CAAS;AAAA,EACJ,GAAE,CAAC,aAAa,cAAc,YAAY,GAAG,CAAC;AAE/C,QAAM,gBAAgB,YAAY,oBAAoB,gBAAgB,aAAa,aAAa,cAAc,GAAG;AAAA,IAC7G;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACR,CAAK;AAED,YAAU,MAAM;AACZ,QAAI;AACJ,QAAI,YAAY;AACZ,uBAAiB,IAAI,OAAO,eAAe,aAAa;AACxD,qBAAe,QAAQ,YAAY,eAAe;AAAA,IAC9D,WAEiB,KAAK,SAAS,KAAK,QAAQ;AAChC,sBAAgB,QAAQ,gBAAgB,SAAS,SAAS,YAAY;AAAA,QAClE,OAAO;AAAA,QACP,QAAQ;AAAA,QACR,OAAO;AAAA,MACvB,CAAa;AACD,cAAQ,EAAE,OAAO,QAAW,QAAQ,OAAS,CAAE;AAAA,IAC3D;AAEQ,WAAO,MAAM;AACT,UAAI,IAAI,IAAI;AACZ,OAAC,KAAK,mBAAmB,QAAQ,mBAAmB,SAAS,SAAS,eAAe,gBAAgB,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,cAAc;AAC5J,OAAC,MAAM,KAAK,eAAe,YAAY,QAAQ,OAAO,SAAS,SAAS,GAAG,KAAK,EAAE;AAAA,IACrF;AAAA,EACT,GAAO,CAAC,eAAe,UAAU,CAAC;AAC9B,SAAO,OAAO,OAAO,EAAE,KAAK,SAAQ,GAAI,IAAI;AAChD;","x_google_ignoreList":[0]}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
3
|
+
const sidebarContainer = "_sidebarContainer_bmdti_1";
|
4
|
+
const styles = {
|
5
|
+
sidebarContainer
|
6
|
+
};
|
7
|
+
exports.default = styles;
|
8
|
+
exports.sidebarContainer = sidebarContainer;
|
9
|
+
//# sourceMappingURL=harmony58.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony58.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony58.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const Avatar_module = require("./harmony74.cjs");
|
5
|
+
const Avatar = ({
|
6
|
+
src,
|
7
|
+
href = "/",
|
8
|
+
ariaLabel = "Lokalise App Home",
|
9
|
+
alt = "Lokalise Logo"
|
10
|
+
}) => /* @__PURE__ */ jsxRuntime.jsx("a", { className: Avatar_module.default.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsxRuntime.jsx("img", { src, alt }) });
|
11
|
+
exports.Avatar = Avatar;
|
12
|
+
//# sourceMappingURL=harmony59.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony59.cjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n */\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":["jsx","styles"],"mappings":";;;;AAiBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACEA,2BAAAA,IAAA,KAAA,EAAE,WAAWC,cAAA,QAAO,UAAU,MAAY,cAAY,WACtD,UAACD,2BAAAA,IAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;;"}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import styles from "./harmony74.mjs";
|
3
|
+
const Avatar = ({
|
4
|
+
src,
|
5
|
+
href = "/",
|
6
|
+
ariaLabel = "Lokalise App Home",
|
7
|
+
alt = "Lokalise Logo"
|
8
|
+
}) => /* @__PURE__ */ jsx("a", { className: styles.logoLink, href, "aria-label": ariaLabel, children: /* @__PURE__ */ jsx("img", { src, alt }) });
|
9
|
+
export {
|
10
|
+
Avatar
|
11
|
+
};
|
12
|
+
//# sourceMappingURL=harmony59.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony59.mjs","sources":["../src/components/Sidebar/Widgets/Avatar/Avatar.tsx"],"sourcesContent":["import styles from './Avatar.module.css'\n\ntype AvatarProps = {\n\t/** URL of the avatar/logo image */\n\tsrc: string\n\t/** Link destination when avatar is clicked. Defaults to '/' */\n\thref?: string\n\t/** Accessibility label for the avatar link. Defaults to 'Home' */\n\tariaLabel?: string\n\t/** Alt text for the avatar image. Defaults to 'Lokalise' */\n\talt?: string\n}\n\n/**\n * Display company main avatar / logo in the top section of the Sidebar.\n * Used as the main branding element and home navigation link.\n */\nexport const Avatar = ({\n\tsrc,\n\thref = '/',\n\tariaLabel = 'Lokalise App Home',\n\talt = 'Lokalise Logo',\n}: AvatarProps) => (\n\t<a className={styles.logoLink} href={href} aria-label={ariaLabel}>\n\t\t<img src={src} alt={alt} />\n\t</a>\n)\n"],"names":[],"mappings":";;AAiBO,MAAM,SAAS,CAAC;AAAA,EACtB;AAAA,EACA,OAAO;AAAA,EACP,YAAY;AAAA,EACZ,MAAM;AACP,MACE,oBAAA,KAAA,EAAE,WAAW,OAAO,UAAU,MAAY,cAAY,WACtD,UAAC,oBAAA,OAAA,EAAI,KAAU,IAAA,CAAU,EAC1B,CAAA;"}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const styles_module = require("./harmony56.cjs");
|
6
|
+
const DropdownContent = require("./harmony69.cjs");
|
7
|
+
const NavigationTabsItem = require("./harmony70.cjs");
|
8
|
+
const helpers = require("./harmony71.cjs");
|
9
|
+
const NavigationTabs = ({ navigation, activeItem }) => /* @__PURE__ */ jsxRuntime.jsx("nav", { "aria-label": "Project", children: /* @__PURE__ */ jsxRuntime.jsx("ul", { className: styles_module.default.navigationTabList, "aria-orientation": "horizontal", children: navigation.filter(helpers.isNavigationItemVisible).map((item) => {
|
10
|
+
var _a, _b, _c;
|
11
|
+
if (item.dropdown) {
|
12
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
13
|
+
"li",
|
14
|
+
{
|
15
|
+
className: styles_module.default.navigationTab,
|
16
|
+
"data-testid": item.key,
|
17
|
+
"aria-selected": (_a = item.isActive) == null ? void 0 : _a.call(item, activeItem),
|
18
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
19
|
+
louis.Menu,
|
20
|
+
{
|
21
|
+
menuButton: ({ opened }) => /* @__PURE__ */ jsxRuntime.jsx(NavigationTabsItem.NavigationTabsItem, { label: item.label, disabled: item.disabled, active: opened }),
|
22
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { children: /* @__PURE__ */ jsxRuntime.jsx(DropdownContent.DropdownContent, { items: item.dropdown }) })
|
23
|
+
}
|
24
|
+
)
|
25
|
+
},
|
26
|
+
item.key
|
27
|
+
);
|
28
|
+
}
|
29
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
30
|
+
"li",
|
31
|
+
{
|
32
|
+
className: styles_module.default.navigationTab,
|
33
|
+
"data-testid": item.key,
|
34
|
+
"aria-selected": (_b = item.isActive) == null ? void 0 : _b.call(item, activeItem),
|
35
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(
|
36
|
+
NavigationTabsItem.NavigationTabsItem,
|
37
|
+
{
|
38
|
+
label: item.label,
|
39
|
+
href: item.link,
|
40
|
+
onClick: item.onClick,
|
41
|
+
disabled: item.disabled,
|
42
|
+
badge: item.badge,
|
43
|
+
novel: item.novel,
|
44
|
+
active: (_c = item.isActive) == null ? void 0 : _c.call(item, activeItem)
|
45
|
+
}
|
46
|
+
)
|
47
|
+
},
|
48
|
+
item.key
|
49
|
+
);
|
50
|
+
}) }) });
|
51
|
+
exports.NavigationTabs = NavigationTabs;
|
52
|
+
//# sourceMappingURL=harmony6.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony6.cjs","sources":["../src/components/NavigationPanel/components/NavigationTabs/NavigationTabs.tsx"],"sourcesContent":["import { Menu, MenuList } from '@lokalise/louis'\n\nimport classes from '../../styles.module.css'\nimport type { NavigationTabsItem as NavigationTabsItemTypes } from '../../types/navigation'\nimport { DropdownContent } from '../DropdownContent/DropdownContent'\nimport { NavigationTabsItem } from './NavigationTabsItem/NavigationTabsItem'\nimport { isNavigationItemVisible } from './helpers'\n\ntype NavigationTabsProps = {\n\tnavigation: NavigationTabsItemTypes[]\n\tactiveItem: string\n}\n\nexport const NavigationTabs = ({ navigation, activeItem }: NavigationTabsProps) => (\n\t<nav aria-label=\"Project\">\n\t\t<ul className={classes.navigationTabList} aria-orientation=\"horizontal\">\n\t\t\t{navigation.filter(isNavigationItemVisible).map((item) => {\n\t\t\t\tif (item.dropdown) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t\tclassName={classes.navigationTab}\n\t\t\t\t\t\t\tkey={item.key}\n\t\t\t\t\t\t\tdata-testid={item.key}\n\t\t\t\t\t\t\taria-selected={item.isActive?.(activeItem)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Menu\n\t\t\t\t\t\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t\t\t\t\t\t<NavigationTabsItem label={item.label} disabled={item.disabled} active={opened} />\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<MenuList>\n\t\t\t\t\t\t\t\t\t<DropdownContent items={item.dropdown} />\n\t\t\t\t\t\t\t\t</MenuList>\n\t\t\t\t\t\t\t</Menu>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\treturn (\n\t\t\t\t\t<li\n\t\t\t\t\t\tclassName={classes.navigationTab}\n\t\t\t\t\t\tkey={item.key}\n\t\t\t\t\t\tdata-testid={item.key}\n\t\t\t\t\t\taria-selected={item.isActive?.(activeItem)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<NavigationTabsItem\n\t\t\t\t\t\t\tlabel={item.label}\n\t\t\t\t\t\t\thref={item.link}\n\t\t\t\t\t\t\tonClick={item.onClick}\n\t\t\t\t\t\t\tdisabled={item.disabled}\n\t\t\t\t\t\t\tbadge={item.badge}\n\t\t\t\t\t\t\tnovel={item.novel}\n\t\t\t\t\t\t\tactive={item.isActive?.(activeItem)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</li>\n\t\t\t\t)\n\t\t\t})}\n\t\t</ul>\n\t</nav>\n)\n"],"names":["jsx","classes","isNavigationItemVisible","Menu","NavigationTabsItem","MenuList","DropdownContent"],"mappings":";;;;;;;;AAaa,MAAA,iBAAiB,CAAC,EAAE,YAAY,WAC5C,MAAAA,2BAAA,IAAC,OAAI,EAAA,cAAW,WACf,UAAAA,2BAAA,IAAC,QAAG,WAAWC,sBAAQ,mBAAmB,oBAAiB,cACzD,UAAA,WAAW,OAAOC,QAAuB,uBAAA,EAAE,IAAI,CAAC,SAAS;;AACzD,MAAI,KAAK,UAAU;AAEjB,WAAAF,2BAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,WAAWC,cAAQ,QAAA;AAAA,QAEnB,eAAa,KAAK;AAAA,QAClB,kBAAe,UAAK,aAAL,8BAAgB;AAAA,QAE/B,UAAAD,2BAAA;AAAA,UAACG,MAAA;AAAA,UAAA;AAAA,YACA,YAAY,CAAC,EAAE,OAAA,MACbH,2BAAAA,IAAAI,mBAAAA,oBAAA,EAAmB,OAAO,KAAK,OAAO,UAAU,KAAK,UAAU,QAAQ,OAAQ,CAAA;AAAA,YAGjF,yCAACC,gBACA,EAAA,UAAAL,2BAAAA,IAACM,mCAAgB,OAAO,KAAK,SAAU,CAAA,EACxC,CAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACD;AAAA,MAZK,KAAK;AAAA,IAaX;AAAA,EAAA;AAKD,SAAAN,2BAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAWC,cAAQ,QAAA;AAAA,MAEnB,eAAa,KAAK;AAAA,MAClB,kBAAe,UAAK,aAAL,8BAAgB;AAAA,MAE/B,UAAAD,2BAAA;AAAA,QAACI,mBAAA;AAAA,QAAA;AAAA,UACA,OAAO,KAAK;AAAA,UACZ,MAAM,KAAK;AAAA,UACX,SAAS,KAAK;AAAA,UACd,UAAU,KAAK;AAAA,UACf,OAAO,KAAK;AAAA,UACZ,OAAO,KAAK;AAAA,UACZ,SAAQ,UAAK,aAAL,8BAAgB;AAAA,QAAU;AAAA,MAAA;AAAA,IACnC;AAAA,IAZK,KAAK;AAAA,EAaX;AAEF,CAAC,EACF,CAAA,EACD,CAAA;;"}
|
@@ -0,0 +1,52 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { Menu, MenuList } from "@lokalise/louis";
|
3
|
+
import classes from "./harmony56.mjs";
|
4
|
+
import { DropdownContent } from "./harmony69.mjs";
|
5
|
+
import { NavigationTabsItem } from "./harmony70.mjs";
|
6
|
+
import { isNavigationItemVisible } from "./harmony71.mjs";
|
7
|
+
const NavigationTabs = ({ navigation, activeItem }) => /* @__PURE__ */ jsx("nav", { "aria-label": "Project", children: /* @__PURE__ */ jsx("ul", { className: classes.navigationTabList, "aria-orientation": "horizontal", children: navigation.filter(isNavigationItemVisible).map((item) => {
|
8
|
+
var _a, _b, _c;
|
9
|
+
if (item.dropdown) {
|
10
|
+
return /* @__PURE__ */ jsx(
|
11
|
+
"li",
|
12
|
+
{
|
13
|
+
className: classes.navigationTab,
|
14
|
+
"data-testid": item.key,
|
15
|
+
"aria-selected": (_a = item.isActive) == null ? void 0 : _a.call(item, activeItem),
|
16
|
+
children: /* @__PURE__ */ jsx(
|
17
|
+
Menu,
|
18
|
+
{
|
19
|
+
menuButton: ({ opened }) => /* @__PURE__ */ jsx(NavigationTabsItem, { label: item.label, disabled: item.disabled, active: opened }),
|
20
|
+
children: /* @__PURE__ */ jsx(MenuList, { children: /* @__PURE__ */ jsx(DropdownContent, { items: item.dropdown }) })
|
21
|
+
}
|
22
|
+
)
|
23
|
+
},
|
24
|
+
item.key
|
25
|
+
);
|
26
|
+
}
|
27
|
+
return /* @__PURE__ */ jsx(
|
28
|
+
"li",
|
29
|
+
{
|
30
|
+
className: classes.navigationTab,
|
31
|
+
"data-testid": item.key,
|
32
|
+
"aria-selected": (_b = item.isActive) == null ? void 0 : _b.call(item, activeItem),
|
33
|
+
children: /* @__PURE__ */ jsx(
|
34
|
+
NavigationTabsItem,
|
35
|
+
{
|
36
|
+
label: item.label,
|
37
|
+
href: item.link,
|
38
|
+
onClick: item.onClick,
|
39
|
+
disabled: item.disabled,
|
40
|
+
badge: item.badge,
|
41
|
+
novel: item.novel,
|
42
|
+
active: (_c = item.isActive) == null ? void 0 : _c.call(item, activeItem)
|
43
|
+
}
|
44
|
+
)
|
45
|
+
},
|
46
|
+
item.key
|
47
|
+
);
|
48
|
+
}) }) });
|
49
|
+
export {
|
50
|
+
NavigationTabs
|
51
|
+
};
|
52
|
+
//# sourceMappingURL=harmony6.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony6.mjs","sources":["../src/components/NavigationPanel/components/NavigationTabs/NavigationTabs.tsx"],"sourcesContent":["import { Menu, MenuList } from '@lokalise/louis'\n\nimport classes from '../../styles.module.css'\nimport type { NavigationTabsItem as NavigationTabsItemTypes } from '../../types/navigation'\nimport { DropdownContent } from '../DropdownContent/DropdownContent'\nimport { NavigationTabsItem } from './NavigationTabsItem/NavigationTabsItem'\nimport { isNavigationItemVisible } from './helpers'\n\ntype NavigationTabsProps = {\n\tnavigation: NavigationTabsItemTypes[]\n\tactiveItem: string\n}\n\nexport const NavigationTabs = ({ navigation, activeItem }: NavigationTabsProps) => (\n\t<nav aria-label=\"Project\">\n\t\t<ul className={classes.navigationTabList} aria-orientation=\"horizontal\">\n\t\t\t{navigation.filter(isNavigationItemVisible).map((item) => {\n\t\t\t\tif (item.dropdown) {\n\t\t\t\t\treturn (\n\t\t\t\t\t\t<li\n\t\t\t\t\t\t\tclassName={classes.navigationTab}\n\t\t\t\t\t\t\tkey={item.key}\n\t\t\t\t\t\t\tdata-testid={item.key}\n\t\t\t\t\t\t\taria-selected={item.isActive?.(activeItem)}\n\t\t\t\t\t\t>\n\t\t\t\t\t\t\t<Menu\n\t\t\t\t\t\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t\t\t\t\t\t<NavigationTabsItem label={item.label} disabled={item.disabled} active={opened} />\n\t\t\t\t\t\t\t\t)}\n\t\t\t\t\t\t\t>\n\t\t\t\t\t\t\t\t<MenuList>\n\t\t\t\t\t\t\t\t\t<DropdownContent items={item.dropdown} />\n\t\t\t\t\t\t\t\t</MenuList>\n\t\t\t\t\t\t\t</Menu>\n\t\t\t\t\t\t</li>\n\t\t\t\t\t)\n\t\t\t\t}\n\n\t\t\t\treturn (\n\t\t\t\t\t<li\n\t\t\t\t\t\tclassName={classes.navigationTab}\n\t\t\t\t\t\tkey={item.key}\n\t\t\t\t\t\tdata-testid={item.key}\n\t\t\t\t\t\taria-selected={item.isActive?.(activeItem)}\n\t\t\t\t\t>\n\t\t\t\t\t\t<NavigationTabsItem\n\t\t\t\t\t\t\tlabel={item.label}\n\t\t\t\t\t\t\thref={item.link}\n\t\t\t\t\t\t\tonClick={item.onClick}\n\t\t\t\t\t\t\tdisabled={item.disabled}\n\t\t\t\t\t\t\tbadge={item.badge}\n\t\t\t\t\t\t\tnovel={item.novel}\n\t\t\t\t\t\t\tactive={item.isActive?.(activeItem)}\n\t\t\t\t\t\t/>\n\t\t\t\t\t</li>\n\t\t\t\t)\n\t\t\t})}\n\t\t</ul>\n\t</nav>\n)\n"],"names":[],"mappings":";;;;;;AAaa,MAAA,iBAAiB,CAAC,EAAE,YAAY,WAC5C,MAAA,oBAAC,OAAI,EAAA,cAAW,WACf,UAAA,oBAAC,QAAG,WAAW,QAAQ,mBAAmB,oBAAiB,cACzD,UAAA,WAAW,OAAO,uBAAuB,EAAE,IAAI,CAAC,SAAS;;AACzD,MAAI,KAAK,UAAU;AAEjB,WAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACA,WAAW,QAAQ;AAAA,QAEnB,eAAa,KAAK;AAAA,QAClB,kBAAe,UAAK,aAAL,8BAAgB;AAAA,QAE/B,UAAA;AAAA,UAAC;AAAA,UAAA;AAAA,YACA,YAAY,CAAC,EAAE,OAAA,MACb,oBAAA,oBAAA,EAAmB,OAAO,KAAK,OAAO,UAAU,KAAK,UAAU,QAAQ,OAAQ,CAAA;AAAA,YAGjF,8BAAC,UACA,EAAA,UAAA,oBAAC,mBAAgB,OAAO,KAAK,SAAU,CAAA,EACxC,CAAA;AAAA,UAAA;AAAA,QAAA;AAAA,MACD;AAAA,MAZK,KAAK;AAAA,IAaX;AAAA,EAAA;AAKD,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,WAAW,QAAQ;AAAA,MAEnB,eAAa,KAAK;AAAA,MAClB,kBAAe,UAAK,aAAL,8BAAgB;AAAA,MAE/B,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,OAAO,KAAK;AAAA,UACZ,MAAM,KAAK;AAAA,UACX,SAAS,KAAK;AAAA,UACd,UAAU,KAAK;AAAA,UACf,OAAO,KAAK;AAAA,UACZ,OAAO,KAAK;AAAA,UACZ,SAAQ,UAAK,aAAL,8BAAgB;AAAA,QAAU;AAAA,MAAA;AAAA,IACnC;AAAA,IAZK,KAAK;AAAA,EAaX;AAEF,CAAC,EACF,CAAA,EACD,CAAA;"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony55.cjs");
|
6
|
+
const IconLink_module = require("./harmony75.cjs");
|
7
|
+
const IconLink = ({ label, to, icon: Icon }) => {
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
+
louis.Link,
|
10
|
+
{
|
11
|
+
"aria-label": label,
|
12
|
+
className: clsx.clsx(IconLink_module.default.link, {
|
13
|
+
[IconLink_module.default.active]: window.location.pathname.startsWith(to)
|
14
|
+
}),
|
15
|
+
href: to,
|
16
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
|
17
|
+
}
|
18
|
+
) });
|
19
|
+
};
|
20
|
+
exports.IconLink = IconLink;
|
21
|
+
//# sourceMappingURL=harmony60.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony60.cjs","sources":["../src/components/Sidebar/Widgets/IconLink/IconLink.tsx"],"sourcesContent":["import { Link, type SvgIconProps, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC } from 'react'\nimport styles from './IconLink.module.css'\n\ntype IconLinkProps = {\n\t/** URL destination for the link */\n\tto: string\n\t/** Text to display in the tooltip when hovering over the icon */\n\tlabel: string\n\t/** Icon component from @lokalise/louis to display */\n\ticon: FC<SvgIconProps>\n}\n\n/**\n * A navigation link component that displays an icon with a tooltip.\n * When hovered, shows a tooltip with the label text.\n * The link is highlighted when the current URL matches its destination.\n *\n * @example\n * ```tsx\n * <IconLink to=\"/projects\" label=\"Projects\" icon={FolderOpenIcon} />\n * ```\n */\nexport const IconLink = ({ label, to, icon: Icon }: IconLinkProps) => {\n\treturn (\n\t\t<Tooltip placement=\"right\" tooltip={label}>\n\t\t\t<Link\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={clsx(styles.link, {\n\t\t\t\t\t[styles.active]: window.location.pathname.startsWith(to),\n\t\t\t\t})}\n\t\t\t\thref={to}\n\t\t\t>\n\t\t\t\t<Icon size=\"25px\" />\n\t\t\t</Link>\n\t\t</Tooltip>\n\t)\n}\n"],"names":["jsx","Tooltip","Link","clsx","styles"],"mappings":";;;;;;AAwBO,MAAM,WAAW,CAAC,EAAE,OAAO,IAAI,MAAM,WAA0B;AACrE,SACEA,2BAAA,IAAAC,MAAA,SAAA,EAAQ,WAAU,SAAQ,SAAS,OACnC,UAAAD,2BAAA;AAAA,IAACE,MAAA;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAWC,KAAAA,KAAKC,gBAAA,QAAO,MAAM;AAAA,QAC5B,CAACA,gBAAAA,QAAO,MAAM,GAAG,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACvD;AAAA,MACD,MAAM;AAAA,MAEN,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;;"}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { Tooltip, Link } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony55.mjs";
|
4
|
+
import styles from "./harmony75.mjs";
|
5
|
+
const IconLink = ({ label, to, icon: Icon }) => {
|
6
|
+
return /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: label, children: /* @__PURE__ */ jsx(
|
7
|
+
Link,
|
8
|
+
{
|
9
|
+
"aria-label": label,
|
10
|
+
className: clsx(styles.link, {
|
11
|
+
[styles.active]: window.location.pathname.startsWith(to)
|
12
|
+
}),
|
13
|
+
href: to,
|
14
|
+
children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
|
15
|
+
}
|
16
|
+
) });
|
17
|
+
};
|
18
|
+
export {
|
19
|
+
IconLink
|
20
|
+
};
|
21
|
+
//# sourceMappingURL=harmony60.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony60.mjs","sources":["../src/components/Sidebar/Widgets/IconLink/IconLink.tsx"],"sourcesContent":["import { Link, type SvgIconProps, Tooltip } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC } from 'react'\nimport styles from './IconLink.module.css'\n\ntype IconLinkProps = {\n\t/** URL destination for the link */\n\tto: string\n\t/** Text to display in the tooltip when hovering over the icon */\n\tlabel: string\n\t/** Icon component from @lokalise/louis to display */\n\ticon: FC<SvgIconProps>\n}\n\n/**\n * A navigation link component that displays an icon with a tooltip.\n * When hovered, shows a tooltip with the label text.\n * The link is highlighted when the current URL matches its destination.\n *\n * @example\n * ```tsx\n * <IconLink to=\"/projects\" label=\"Projects\" icon={FolderOpenIcon} />\n * ```\n */\nexport const IconLink = ({ label, to, icon: Icon }: IconLinkProps) => {\n\treturn (\n\t\t<Tooltip placement=\"right\" tooltip={label}>\n\t\t\t<Link\n\t\t\t\taria-label={label}\n\t\t\t\tclassName={clsx(styles.link, {\n\t\t\t\t\t[styles.active]: window.location.pathname.startsWith(to),\n\t\t\t\t})}\n\t\t\t\thref={to}\n\t\t\t>\n\t\t\t\t<Icon size=\"25px\" />\n\t\t\t</Link>\n\t\t</Tooltip>\n\t)\n}\n"],"names":[],"mappings":";;;;AAwBO,MAAM,WAAW,CAAC,EAAE,OAAO,IAAI,MAAM,WAA0B;AACrE,SACE,oBAAA,SAAA,EAAQ,WAAU,SAAQ,SAAS,OACnC,UAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACA,cAAY;AAAA,MACZ,WAAW,KAAK,OAAO,MAAM;AAAA,QAC5B,CAAC,OAAO,MAAM,GAAG,OAAO,SAAS,SAAS,WAAW,EAAE;AAAA,MAAA,CACvD;AAAA,MACD,MAAM;AAAA,MAEN,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,IAAA;AAAA,EAAA,GAEpB;AAEF;"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const louis = require("@lokalise/louis");
|
5
|
+
const clsx = require("./harmony55.cjs");
|
6
|
+
const Menu_module = require("./harmony76.cjs");
|
7
|
+
const Menu = ({ children, icon: Icon }) => {
|
8
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
9
|
+
louis.Menu,
|
10
|
+
{
|
11
|
+
menuButton: ({ opened }) => /* @__PURE__ */ jsxRuntime.jsx(louis.Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsxRuntime.jsx(
|
12
|
+
"button",
|
13
|
+
{
|
14
|
+
type: "button",
|
15
|
+
className: clsx.clsx(Menu_module.default.dropdownButton, {
|
16
|
+
[Menu_module.default.dropdownButtonActive]: opened
|
17
|
+
}),
|
18
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(Icon, { size: "25px" })
|
19
|
+
}
|
20
|
+
) }),
|
21
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(louis.MenuList, { placement: "right-start", children })
|
22
|
+
}
|
23
|
+
);
|
24
|
+
};
|
25
|
+
exports.Menu = Menu;
|
26
|
+
//# sourceMappingURL=harmony61.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony61.cjs","sources":["../src/components/Sidebar/Widgets/Menu/Menu.tsx"],"sourcesContent":["import { MenuList, type SvgIconProps, Tooltip, Menu as UIMenu } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC, PropsWithChildren } from 'react'\nimport styles from './Menu.module.css'\n\ntype MenuProps = PropsWithChildren<{\n\t/** Icon component from @lokalise/louis to display in the menu button */\n\ticon: FC<SvgIconProps>\n}>\n\n/**\n * A dropdown menu component that displays an icon button which reveals a menu list when clicked.\n * The menu is positioned to the right of the button and includes a tooltip.\n *\n * Used primarily for dropdown menus in the Sidebar, such as the Help menu.\n *\n * @example\n * ```tsx\n * <Menu icon={HelpCenterIcon}>\n * <MenuItem href=\"/docs\">Documentation</MenuItem>\n * <MenuItem href=\"/tutorial\">Tutorials</MenuItem>\n * <MenuDivider />\n * <MenuItem href=\"/blog\">Blog</MenuItem>\n * </Menu>\n * ```\n */\nexport const Menu = ({ children, icon: Icon }: MenuProps) => {\n\treturn (\n\t\t<UIMenu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">{children}</MenuList>\n\t\t</UIMenu>\n\t)\n}\n"],"names":["jsx","UIMenu","Tooltip","clsx","styles","MenuList"],"mappings":";;;;;;AA0BO,MAAM,OAAO,CAAC,EAAE,UAAU,MAAM,WAAsB;AAE3D,SAAAA,2BAAA;AAAA,IAACC,MAAA;AAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,qCACpBC,MAAQ,SAAA,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAAF,2BAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAWG,KAAAA,KAAKC,YAAA,QAAO,gBAAgB;AAAA,YACtC,CAACA,YAAAA,QAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UAED,UAAAJ,2BAAAA,IAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAEpB;AAAA,MAGD,UAACA,2BAAA,IAAAK,MAAA,UAAA,EAAS,WAAU,eAAe,SAAS,CAAA;AAAA,IAAA;AAAA,EAC7C;AAEF;;"}
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { Menu as Menu$1, MenuList, Tooltip } from "@lokalise/louis";
|
3
|
+
import { clsx } from "./harmony55.mjs";
|
4
|
+
import styles from "./harmony76.mjs";
|
5
|
+
const Menu = ({ children, icon: Icon }) => {
|
6
|
+
return /* @__PURE__ */ jsx(
|
7
|
+
Menu$1,
|
8
|
+
{
|
9
|
+
menuButton: ({ opened }) => /* @__PURE__ */ jsx(Tooltip, { placement: "right", tooltip: "Help", children: /* @__PURE__ */ jsx(
|
10
|
+
"button",
|
11
|
+
{
|
12
|
+
type: "button",
|
13
|
+
className: clsx(styles.dropdownButton, {
|
14
|
+
[styles.dropdownButtonActive]: opened
|
15
|
+
}),
|
16
|
+
children: /* @__PURE__ */ jsx(Icon, { size: "25px" })
|
17
|
+
}
|
18
|
+
) }),
|
19
|
+
children: /* @__PURE__ */ jsx(MenuList, { placement: "right-start", children })
|
20
|
+
}
|
21
|
+
);
|
22
|
+
};
|
23
|
+
export {
|
24
|
+
Menu
|
25
|
+
};
|
26
|
+
//# sourceMappingURL=harmony61.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony61.mjs","sources":["../src/components/Sidebar/Widgets/Menu/Menu.tsx"],"sourcesContent":["import { MenuList, type SvgIconProps, Tooltip, Menu as UIMenu } from '@lokalise/louis'\nimport clsx from 'clsx'\nimport type { FC, PropsWithChildren } from 'react'\nimport styles from './Menu.module.css'\n\ntype MenuProps = PropsWithChildren<{\n\t/** Icon component from @lokalise/louis to display in the menu button */\n\ticon: FC<SvgIconProps>\n}>\n\n/**\n * A dropdown menu component that displays an icon button which reveals a menu list when clicked.\n * The menu is positioned to the right of the button and includes a tooltip.\n *\n * Used primarily for dropdown menus in the Sidebar, such as the Help menu.\n *\n * @example\n * ```tsx\n * <Menu icon={HelpCenterIcon}>\n * <MenuItem href=\"/docs\">Documentation</MenuItem>\n * <MenuItem href=\"/tutorial\">Tutorials</MenuItem>\n * <MenuDivider />\n * <MenuItem href=\"/blog\">Blog</MenuItem>\n * </Menu>\n * ```\n */\nexport const Menu = ({ children, icon: Icon }: MenuProps) => {\n\treturn (\n\t\t<UIMenu\n\t\t\tmenuButton={({ opened }) => (\n\t\t\t\t<Tooltip placement=\"right\" tooltip=\"Help\">\n\t\t\t\t\t<button\n\t\t\t\t\t\ttype=\"button\"\n\t\t\t\t\t\tclassName={clsx(styles.dropdownButton, {\n\t\t\t\t\t\t\t[styles.dropdownButtonActive]: opened,\n\t\t\t\t\t\t})}\n\t\t\t\t\t>\n\t\t\t\t\t\t<Icon size=\"25px\" />\n\t\t\t\t\t</button>\n\t\t\t\t</Tooltip>\n\t\t\t)}\n\t\t>\n\t\t\t<MenuList placement=\"right-start\">{children}</MenuList>\n\t\t</UIMenu>\n\t)\n}\n"],"names":["UIMenu"],"mappings":";;;;AA0BO,MAAM,OAAO,CAAC,EAAE,UAAU,MAAM,WAAsB;AAE3D,SAAA;AAAA,IAACA;AAAAA,IAAA;AAAA,MACA,YAAY,CAAC,EAAE,OAAO,0BACpB,SAAQ,EAAA,WAAU,SAAQ,SAAQ,QAClC,UAAA;AAAA,QAAC;AAAA,QAAA;AAAA,UACA,MAAK;AAAA,UACL,WAAW,KAAK,OAAO,gBAAgB;AAAA,YACtC,CAAC,OAAO,oBAAoB,GAAG;AAAA,UAAA,CAC/B;AAAA,UAED,UAAA,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA,GAEpB;AAAA,MAGD,UAAC,oBAAA,UAAA,EAAS,WAAU,eAAe,SAAS,CAAA;AAAA,IAAA;AAAA,EAC7C;AAEF;"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
3
|
+
const jsxRuntime = require("react/jsx-runtime");
|
4
|
+
const ProfileMenuContent = require("./harmony77.cjs");
|
5
|
+
const ProfileMenuProvider = require("./harmony78.cjs");
|
6
|
+
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuProvider.ProfileMenuProvider, { config, children: /* @__PURE__ */ jsxRuntime.jsx(ProfileMenuContent.ProfileMenuContent, { children }) });
|
7
|
+
exports.ProfileMenu = ProfileMenu;
|
8
|
+
//# sourceMappingURL=harmony62.cjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony62.cjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import { ProfileMenuContent, type ProfileMenuContentProps } from './ProfileMenuContent'\nimport { ProfileMenuProvider } from './ProfileMenuProvider'\nimport type { SidebarProfileMenuConfig } from './types'\n\ntype ProfileMenuProps = {\n\t/** Configuration object containing team and user settings */\n\tconfig: SidebarProfileMenuConfig\n\t/** Render function for the menu content */\n\tchildren: ProfileMenuContentProps['children']\n}\n\n/**\n * A contextual menu component that provides team management functionality.\n * It manages team switching, profile settings, billing options, and upgrade prompts.\n *\n * The component uses a render prop pattern to provide context values to its children,\n * allowing flexible composition of menu items based on user permissions and team status.\n *\n * @example\n * ```tsx\n * <ProfileMenu config={profileMenuConfig}>\n * {({ allowTeamCreation, showBillingButton }) => (\n * <>\n * <TeamSwitch onSwitchTeam={handleTeamSwitch} />\n * {allowTeamCreation && <MenuItem>Create new team</MenuItem>}\n * {showBillingButton && <MenuItem href=\"/billing\">Billing</MenuItem>}\n * </>\n * )}\n * </ProfileMenu>\n * ```\n */\nexport const ProfileMenu = ({ config, children }: ProfileMenuProps) => (\n\t<ProfileMenuProvider config={config}>\n\t\t<ProfileMenuContent>{children}</ProfileMenuContent>\n\t</ProfileMenuProvider>\n)\n"],"names":["jsx","ProfileMenuProvider","ProfileMenuContent"],"mappings":";;;;;AA+BO,MAAM,cAAc,CAAC,EAAE,QAAQ,SAAS,MAC7CA,2BAAA,IAAAC,oBAAA,qBAAA,EAAoB,QACpB,UAAAD,2BAAA,IAACE,mBAAoB,oBAAA,EAAA,SAAS,CAAA,EAC/B,CAAA;;"}
|
@@ -0,0 +1,8 @@
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
2
|
+
import { ProfileMenuContent } from "./harmony77.mjs";
|
3
|
+
import { ProfileMenuProvider } from "./harmony78.mjs";
|
4
|
+
const ProfileMenu = ({ config, children }) => /* @__PURE__ */ jsx(ProfileMenuProvider, { config, children: /* @__PURE__ */ jsx(ProfileMenuContent, { children }) });
|
5
|
+
export {
|
6
|
+
ProfileMenu
|
7
|
+
};
|
8
|
+
//# sourceMappingURL=harmony62.mjs.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"harmony62.mjs","sources":["../src/components/Sidebar/Widgets/ProfileMenu/ProfileMenu.tsx"],"sourcesContent":["import { ProfileMenuContent, type ProfileMenuContentProps } from './ProfileMenuContent'\nimport { ProfileMenuProvider } from './ProfileMenuProvider'\nimport type { SidebarProfileMenuConfig } from './types'\n\ntype ProfileMenuProps = {\n\t/** Configuration object containing team and user settings */\n\tconfig: SidebarProfileMenuConfig\n\t/** Render function for the menu content */\n\tchildren: ProfileMenuContentProps['children']\n}\n\n/**\n * A contextual menu component that provides team management functionality.\n * It manages team switching, profile settings, billing options, and upgrade prompts.\n *\n * The component uses a render prop pattern to provide context values to its children,\n * allowing flexible composition of menu items based on user permissions and team status.\n *\n * @example\n * ```tsx\n * <ProfileMenu config={profileMenuConfig}>\n * {({ allowTeamCreation, showBillingButton }) => (\n * <>\n * <TeamSwitch onSwitchTeam={handleTeamSwitch} />\n * {allowTeamCreation && <MenuItem>Create new team</MenuItem>}\n * {showBillingButton && <MenuItem href=\"/billing\">Billing</MenuItem>}\n * </>\n * )}\n * </ProfileMenu>\n * ```\n */\nexport const ProfileMenu = ({ config, children }: ProfileMenuProps) => (\n\t<ProfileMenuProvider config={config}>\n\t\t<ProfileMenuContent>{children}</ProfileMenuContent>\n\t</ProfileMenuProvider>\n)\n"],"names":[],"mappings":";;;AA+BO,MAAM,cAAc,CAAC,EAAE,QAAQ,SAAS,MAC7C,oBAAA,qBAAA,EAAoB,QACpB,UAAA,oBAAC,oBAAoB,EAAA,SAAS,CAAA,EAC/B,CAAA;"}
|