@anoki/fse-ui 2.3.0-36-SNAPSHOT20 → 2.3.0-36-SNAPSHOT21
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.cjs103.js +1 -1
- package/dist/index.cjs104.js +1 -1
- package/dist/index.cjs108.js +1 -1
- package/dist/index.cjs109.js +1 -1
- package/dist/index.cjs11.js +1 -1
- package/dist/index.cjs111.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs117.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs122.js +1 -1
- package/dist/index.cjs126.js +1 -1
- package/dist/index.cjs127.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs14.js +1 -1
- package/dist/index.cjs141.js +1 -1
- package/dist/index.cjs142.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs166.js +1 -1
- package/dist/index.cjs167.js +1 -1
- package/dist/index.cjs170.js +1 -1
- package/dist/index.cjs178.js +1 -1
- package/dist/index.cjs18.js +1 -1
- package/dist/index.cjs186.js +1 -1
- package/dist/index.cjs187.js +1 -1
- package/dist/index.cjs188.js +1 -1
- package/dist/index.cjs19.js +1 -1
- package/dist/index.cjs190.js +1 -1
- package/dist/index.cjs192.js +1 -1
- package/dist/index.cjs193.js +1 -1
- package/dist/index.cjs196.js +1 -1
- package/dist/index.cjs197.js +1 -1
- package/dist/index.cjs20.js +1 -1
- package/dist/index.cjs202.js +1 -1
- package/dist/index.cjs203.js +1 -1
- package/dist/index.cjs204.js +1 -1
- package/dist/index.cjs207.js +1 -1
- package/dist/index.cjs208.js +1 -1
- package/dist/index.cjs209.js +1 -1
- package/dist/index.cjs210.js +1 -1
- package/dist/index.cjs213.js +1 -1
- package/dist/index.cjs215.js +1 -1
- package/dist/index.cjs218.js +1 -1
- package/dist/index.cjs22.js +1 -1
- package/dist/index.cjs222.js +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs23.js +1 -1
- package/dist/index.cjs230.js +1 -1
- package/dist/index.cjs232.js +1 -1
- package/dist/index.cjs233.js +1 -1
- package/dist/index.cjs235.js +1 -1
- package/dist/index.cjs236.js +1 -1
- package/dist/index.cjs237.js +1 -1
- package/dist/index.cjs238.js +1 -1
- package/dist/index.cjs239.js +1 -1
- package/dist/index.cjs24.js +1 -1
- package/dist/index.cjs240.js +1 -1
- package/dist/index.cjs241.js +1 -1
- package/dist/index.cjs252.js +1 -1
- package/dist/index.cjs26.js +1 -1
- package/dist/index.cjs262.js +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs271.js +1 -1
- package/dist/index.cjs275.js +1 -1
- package/dist/index.cjs276.js +1 -1
- package/dist/index.cjs277.js +1 -1
- package/dist/index.cjs28.js +1 -1
- package/dist/index.cjs281.js +1 -1
- package/dist/index.cjs289.js +1 -1
- package/dist/index.cjs300.js +1 -1
- package/dist/index.cjs301.js +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/{index.cjs315.js → index.cjs314.js} +1 -1
- package/dist/{index.cjs315.js.map → index.cjs314.js.map} +1 -1
- package/dist/index.cjs317.js +2 -0
- package/dist/index.cjs317.js.map +1 -0
- package/dist/index.cjs318.js +1 -1
- package/dist/index.cjs318.js.map +1 -1
- package/dist/index.cjs319.js +1 -1
- package/dist/index.cjs319.js.map +1 -1
- package/dist/{index.cjs326.js → index.cjs325.js} +2 -2
- package/dist/{index.cjs326.js.map → index.cjs325.js.map} +1 -1
- package/dist/index.cjs327.js +2 -0
- package/dist/index.cjs327.js.map +1 -0
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs330.js +2 -0
- package/dist/index.cjs330.js.map +1 -0
- package/dist/index.cjs331.js +1 -1
- package/dist/index.cjs331.js.map +1 -1
- package/dist/index.cjs332.js +1 -1
- package/dist/index.cjs334.js +2 -0
- package/dist/index.cjs334.js.map +1 -0
- package/dist/index.cjs338.js +2 -0
- package/dist/index.cjs338.js.map +1 -0
- package/dist/index.cjs339.js +1 -1
- package/dist/index.cjs339.js.map +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs340.js.map +1 -1
- package/dist/{index.cjs345.js → index.cjs344.js} +2 -2
- package/dist/{index.cjs345.js.map → index.cjs344.js.map} +1 -1
- package/dist/index.cjs348.js +2 -0
- package/dist/index.cjs348.js.map +1 -0
- package/dist/index.cjs349.js +1 -1
- package/dist/index.cjs349.js.map +1 -1
- package/dist/index.cjs35.js +1 -1
- package/dist/index.cjs350.js +1 -1
- package/dist/index.cjs350.js.map +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs351.js.map +1 -1
- package/dist/index.cjs354.js +1 -1
- package/dist/index.cjs36.js +1 -1
- package/dist/index.cjs38.js +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs39.js +1 -1
- package/dist/index.cjs4.js +1 -1
- package/dist/index.cjs400.js.map +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs463.js +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs487.js +1 -1
- package/dist/index.cjs487.js.map +1 -1
- package/dist/index.cjs488.js +1 -1
- package/dist/index.cjs495.js +1 -1
- package/dist/index.cjs50.js +1 -1
- package/dist/index.cjs501.js +1 -1
- package/dist/index.cjs515.js +27 -1
- package/dist/index.cjs515.js.map +1 -1
- package/dist/index.cjs516.js +1 -27
- package/dist/index.cjs516.js.map +1 -1
- package/dist/index.cjs517.js +1 -1
- package/dist/index.cjs518.js +1 -1
- package/dist/index.cjs518.js.map +1 -1
- package/dist/index.cjs519.js +1 -1
- package/dist/index.cjs519.js.map +1 -1
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs520.js.map +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs521.js.map +1 -1
- package/dist/index.cjs524.js +1 -1
- package/dist/index.cjs524.js.map +1 -1
- package/dist/index.cjs525.js +1 -1
- package/dist/index.cjs526.js +1 -1
- package/dist/index.cjs526.js.map +1 -1
- package/dist/index.cjs527.js +1 -1
- package/dist/index.cjs527.js.map +1 -1
- package/dist/index.cjs528.js +1 -1
- package/dist/index.cjs528.js.map +1 -1
- package/dist/{index.cjs535.js → index.cjs529.js} +1 -1
- package/dist/{index.cjs535.js.map → index.cjs529.js.map} +1 -1
- package/dist/{index.cjs534.js → index.cjs530.js} +1 -1
- package/dist/{index.cjs534.js.map → index.cjs530.js.map} +1 -1
- package/dist/index.cjs531.js +2 -0
- package/dist/index.cjs531.js.map +1 -0
- package/dist/index.cjs539.js +1 -1
- package/dist/index.cjs539.js.map +1 -1
- package/dist/index.cjs540.js +1 -1
- package/dist/index.cjs540.js.map +1 -1
- package/dist/index.cjs541.js +1 -1
- package/dist/index.cjs541.js.map +1 -1
- package/dist/index.cjs542.js +1 -1
- package/dist/index.cjs543.js +1 -1
- package/dist/index.cjs544.js +1 -1
- package/dist/index.cjs544.js.map +1 -1
- package/dist/index.cjs545.js +1 -1
- package/dist/index.cjs545.js.map +1 -1
- package/dist/index.cjs546.js +1 -1
- package/dist/index.cjs546.js.map +1 -1
- package/dist/index.cjs547.js +1 -1
- package/dist/index.cjs547.js.map +1 -1
- package/dist/index.cjs548.js +2 -0
- package/dist/index.cjs548.js.map +1 -0
- package/dist/index.cjs549.js +2 -0
- package/dist/index.cjs549.js.map +1 -0
- package/dist/index.cjs550.js +2 -0
- package/dist/index.cjs550.js.map +1 -0
- package/dist/index.cjs551.js +2 -0
- package/dist/index.cjs551.js.map +1 -0
- package/dist/index.cjs552.js +2 -0
- package/dist/index.cjs552.js.map +1 -0
- package/dist/index.cjs556.js +1 -1
- package/dist/index.cjs556.js.map +1 -1
- package/dist/index.cjs557.js +1 -1
- package/dist/index.cjs557.js.map +1 -1
- package/dist/index.cjs558.js +1 -1
- package/dist/index.cjs558.js.map +1 -1
- package/dist/index.cjs559.js +1 -1
- package/dist/index.cjs559.js.map +1 -1
- package/dist/index.cjs560.js +1 -1
- package/dist/{index.cjs576.js → index.cjs578.js} +1 -1
- package/dist/{index.cjs576.js.map → index.cjs578.js.map} +1 -1
- package/dist/{index.cjs577.js → index.cjs579.js} +2 -2
- package/dist/{index.cjs577.js.map → index.cjs579.js.map} +1 -1
- package/dist/index.cjs580.js +2 -0
- package/dist/index.cjs580.js.map +1 -0
- package/dist/index.cjs581.js +1 -1
- package/dist/index.cjs581.js.map +1 -1
- package/dist/index.cjs582.js +1 -1
- package/dist/index.cjs582.js.map +1 -1
- package/dist/index.cjs583.js +1 -1
- package/dist/index.cjs583.js.map +1 -1
- package/dist/index.cjs584.js +1 -1
- package/dist/index.cjs584.js.map +1 -1
- package/dist/index.cjs585.js +1 -1
- package/dist/index.cjs585.js.map +1 -1
- package/dist/index.cjs586.js +1 -1
- package/dist/index.cjs586.js.map +1 -1
- package/dist/index.cjs587.js +1 -1
- package/dist/index.cjs587.js.map +1 -1
- package/dist/index.cjs588.js +1 -1
- package/dist/index.cjs588.js.map +1 -1
- package/dist/index.cjs589.js +1 -1
- package/dist/index.cjs589.js.map +1 -1
- package/dist/index.cjs590.js +1 -1
- package/dist/index.cjs590.js.map +1 -1
- package/dist/index.cjs591.js +1 -1
- package/dist/index.cjs591.js.map +1 -1
- package/dist/index.cjs592.js +1 -1
- package/dist/index.cjs592.js.map +1 -1
- package/dist/index.cjs593.js +1 -1
- package/dist/index.cjs593.js.map +1 -1
- package/dist/index.cjs594.js +1 -1
- package/dist/index.cjs594.js.map +1 -1
- package/dist/index.cjs595.js +1 -1
- package/dist/index.cjs595.js.map +1 -1
- package/dist/index.cjs596.js +1 -1
- package/dist/index.cjs596.js.map +1 -1
- package/dist/index.cjs597.js +1 -1
- package/dist/index.cjs597.js.map +1 -1
- package/dist/index.cjs598.js +1 -1
- package/dist/index.cjs598.js.map +1 -1
- package/dist/index.cjs599.js +1 -1
- package/dist/index.cjs599.js.map +1 -1
- package/dist/index.cjs6.js +1 -1
- package/dist/index.cjs600.js +1 -1
- package/dist/index.cjs600.js.map +1 -1
- package/dist/index.cjs601.js +1 -1
- package/dist/index.cjs601.js.map +1 -1
- package/dist/index.cjs602.js +1 -1
- package/dist/index.cjs602.js.map +1 -1
- package/dist/index.cjs603.js +1 -1
- package/dist/index.cjs603.js.map +1 -1
- package/dist/index.cjs604.js +1 -1
- package/dist/index.cjs604.js.map +1 -1
- package/dist/index.cjs605.js +1 -1
- package/dist/index.cjs605.js.map +1 -1
- package/dist/index.cjs606.js +1 -1
- package/dist/index.cjs606.js.map +1 -1
- package/dist/index.cjs607.js +1 -1
- package/dist/index.cjs607.js.map +1 -1
- package/dist/index.cjs608.js +1 -1
- package/dist/index.cjs608.js.map +1 -1
- package/dist/index.cjs609.js +1 -1
- package/dist/index.cjs609.js.map +1 -1
- package/dist/index.cjs610.js +1 -1
- package/dist/index.cjs610.js.map +1 -1
- package/dist/index.cjs611.js +1 -1
- package/dist/index.cjs611.js.map +1 -1
- package/dist/index.cjs612.js +1 -1
- package/dist/index.cjs612.js.map +1 -1
- package/dist/index.cjs613.js +1 -1
- package/dist/index.cjs613.js.map +1 -1
- package/dist/index.cjs614.js +1 -1
- package/dist/index.cjs614.js.map +1 -1
- package/dist/index.cjs615.js +1 -1
- package/dist/index.cjs615.js.map +1 -1
- package/dist/index.cjs616.js +1 -1
- package/dist/index.cjs616.js.map +1 -1
- package/dist/index.cjs617.js +1 -1
- package/dist/index.cjs617.js.map +1 -1
- package/dist/index.cjs623.js +1 -8
- package/dist/index.cjs623.js.map +1 -1
- package/dist/index.cjs624.js +1 -1
- package/dist/index.cjs624.js.map +1 -1
- package/dist/index.cjs625.js +8 -1
- package/dist/index.cjs625.js.map +1 -1
- package/dist/index.cjs626.js +1 -6
- package/dist/index.cjs626.js.map +1 -1
- package/dist/index.cjs627.js +1 -1
- package/dist/index.cjs627.js.map +1 -1
- package/dist/index.cjs628.js +6 -2
- package/dist/index.cjs628.js.map +1 -1
- package/dist/index.cjs629.js +1 -3
- package/dist/index.cjs629.js.map +1 -1
- package/dist/index.cjs630.js +3 -0
- package/dist/index.cjs630.js.map +1 -0
- package/dist/index.cjs631.js +3 -1
- package/dist/index.cjs631.js.map +1 -1
- package/dist/index.cjs632.js +1 -1
- package/dist/index.cjs632.js.map +1 -1
- package/dist/index.cjs633.js +1 -1
- package/dist/index.cjs633.js.map +1 -1
- package/dist/index.cjs634.js +1 -1
- package/dist/index.cjs634.js.map +1 -1
- package/dist/index.cjs635.js +1 -1
- package/dist/index.cjs635.js.map +1 -1
- package/dist/index.cjs648.js +1 -1
- package/dist/index.cjs652.js +1 -1
- package/dist/index.cjs665.js +1 -1
- package/dist/index.cjs668.js +1 -1
- package/dist/index.cjs668.js.map +1 -1
- package/dist/index.cjs669.js +1 -1
- package/dist/index.cjs669.js.map +1 -1
- package/dist/index.cjs670.js +1 -1
- package/dist/index.cjs670.js.map +1 -1
- package/dist/index.cjs671.js +1 -1
- package/dist/index.cjs671.js.map +1 -1
- package/dist/index.cjs673.js +1 -1
- package/dist/index.cjs674.js +1 -1
- package/dist/index.cjs675.js +1 -1
- package/dist/index.cjs676.js +1 -1
- package/dist/index.cjs677.js +1 -1
- package/dist/index.cjs68.js +1 -1
- package/dist/index.cjs682.js +1 -1
- package/dist/index.cjs683.js +1 -1
- package/dist/index.cjs686.js +1 -1
- package/dist/index.cjs687.js +1 -1
- package/dist/index.cjs688.js +1 -1
- package/dist/index.cjs690.js +1 -1
- package/dist/index.cjs691.js +1 -1
- package/dist/index.cjs692.js +1 -1
- package/dist/index.cjs696.js +1 -1
- package/dist/index.cjs7.js +1 -1
- package/dist/index.cjs701.js +1 -1
- package/dist/index.cjs701.js.map +1 -1
- package/dist/index.cjs702.js +1 -1
- package/dist/index.cjs702.js.map +1 -1
- package/dist/index.cjs703.js +1 -1
- package/dist/index.cjs703.js.map +1 -1
- package/dist/index.cjs704.js +1 -1
- package/dist/index.cjs704.js.map +1 -1
- package/dist/index.cjs705.js +1 -1
- package/dist/index.cjs705.js.map +1 -1
- package/dist/index.cjs706.js +6 -1
- package/dist/index.cjs706.js.map +1 -1
- package/dist/index.cjs707.js +1 -1
- package/dist/index.cjs707.js.map +1 -1
- package/dist/index.cjs708.js +12 -1
- package/dist/index.cjs708.js.map +1 -1
- package/dist/index.cjs709.js +1 -1
- package/dist/index.cjs709.js.map +1 -1
- package/dist/index.cjs71.js +1 -1
- package/dist/index.cjs710.js +1 -1
- package/dist/index.cjs710.js.map +1 -1
- package/dist/index.cjs711.js +1 -1
- package/dist/index.cjs711.js.map +1 -1
- package/dist/index.cjs712.js +1 -1
- package/dist/index.cjs712.js.map +1 -1
- package/dist/index.cjs713.js +1 -1
- package/dist/index.cjs713.js.map +1 -1
- package/dist/index.cjs714.js +1 -1
- package/dist/index.cjs714.js.map +1 -1
- package/dist/index.cjs715.js +1 -1
- package/dist/index.cjs715.js.map +1 -1
- package/dist/index.cjs716.js +1 -1
- package/dist/index.cjs716.js.map +1 -1
- package/dist/index.cjs717.js +1 -1
- package/dist/index.cjs717.js.map +1 -1
- package/dist/index.cjs718.js +1 -1
- package/dist/index.cjs718.js.map +1 -1
- package/dist/index.cjs719.js +1 -1
- package/dist/index.cjs719.js.map +1 -1
- package/dist/index.cjs72.js +1 -1
- package/dist/index.cjs720.js +1 -1
- package/dist/index.cjs720.js.map +1 -1
- package/dist/index.cjs721.js +2 -1
- package/dist/index.cjs721.js.map +1 -1
- package/dist/index.cjs722.js +1 -1
- package/dist/index.cjs722.js.map +1 -1
- package/dist/index.cjs723.js +1 -1
- package/dist/index.cjs723.js.map +1 -1
- package/dist/index.cjs724.js +1 -1
- package/dist/index.cjs724.js.map +1 -1
- package/dist/index.cjs725.js +1 -1
- package/dist/index.cjs725.js.map +1 -1
- package/dist/index.cjs726.js +1 -1
- package/dist/index.cjs726.js.map +1 -1
- package/dist/index.cjs727.js +1 -1
- package/dist/index.cjs727.js.map +1 -1
- package/dist/index.cjs728.js +1 -1
- package/dist/index.cjs728.js.map +1 -1
- package/dist/index.cjs729.js +1 -1
- package/dist/index.cjs729.js.map +1 -1
- package/dist/index.cjs73.js +1 -1
- package/dist/index.cjs730.js +1 -1
- package/dist/index.cjs730.js.map +1 -1
- package/dist/index.cjs731.js +1 -1
- package/dist/index.cjs731.js.map +1 -1
- package/dist/index.cjs732.js +1 -1
- package/dist/index.cjs732.js.map +1 -1
- package/dist/index.cjs733.js +1 -1
- package/dist/index.cjs733.js.map +1 -1
- package/dist/index.cjs734.js +1 -1
- package/dist/index.cjs734.js.map +1 -1
- package/dist/index.cjs735.js +1 -6
- package/dist/index.cjs735.js.map +1 -1
- package/dist/index.cjs736.js +1 -1
- package/dist/index.cjs736.js.map +1 -1
- package/dist/index.cjs737.js +1 -12
- package/dist/index.cjs737.js.map +1 -1
- package/dist/index.cjs738.js +1 -1
- package/dist/index.cjs738.js.map +1 -1
- package/dist/index.cjs739.js +1 -1
- package/dist/index.cjs739.js.map +1 -1
- package/dist/index.cjs740.js +1 -1
- package/dist/index.cjs740.js.map +1 -1
- package/dist/index.cjs741.js +1 -1
- package/dist/index.cjs741.js.map +1 -1
- package/dist/index.cjs742.js +1 -1
- package/dist/index.cjs742.js.map +1 -1
- package/dist/index.cjs743.js +1 -1
- package/dist/index.cjs743.js.map +1 -1
- package/dist/index.cjs744.js +1 -1
- package/dist/index.cjs744.js.map +1 -1
- package/dist/index.cjs745.js +1 -1
- package/dist/index.cjs745.js.map +1 -1
- package/dist/index.cjs746.js +1 -1
- package/dist/index.cjs746.js.map +1 -1
- package/dist/index.cjs747.js +1 -2
- package/dist/index.cjs747.js.map +1 -1
- package/dist/index.cjs748.js +1 -1
- package/dist/index.cjs748.js.map +1 -1
- package/dist/index.cjs749.js +1 -1
- package/dist/index.cjs749.js.map +1 -1
- package/dist/index.cjs750.js +1 -1
- package/dist/index.cjs750.js.map +1 -1
- package/dist/index.cjs751.js +1 -1
- package/dist/index.cjs751.js.map +1 -1
- package/dist/index.cjs752.js +1 -1
- package/dist/index.cjs752.js.map +1 -1
- package/dist/index.cjs753.js +1 -1
- package/dist/index.cjs753.js.map +1 -1
- package/dist/index.cjs759.js +1 -5
- package/dist/index.cjs759.js.map +1 -1
- package/dist/index.cjs76.js +1 -1
- package/dist/index.cjs760.js +1 -1
- package/dist/index.cjs760.js.map +1 -1
- package/dist/index.cjs761.js +1 -1
- package/dist/index.cjs761.js.map +1 -1
- package/dist/index.cjs762.js +1 -1
- package/dist/index.cjs762.js.map +1 -1
- package/dist/index.cjs763.js +1 -1
- package/dist/index.cjs763.js.map +1 -1
- package/dist/index.cjs764.js +1 -1
- package/dist/index.cjs764.js.map +1 -1
- package/dist/index.cjs765.js +1 -1
- package/dist/index.cjs765.js.map +1 -1
- package/dist/index.cjs766.js +1 -1
- package/dist/index.cjs766.js.map +1 -1
- package/dist/index.cjs767.js +1 -1
- package/dist/index.cjs767.js.map +1 -1
- package/dist/index.cjs768.js +1 -1
- package/dist/index.cjs768.js.map +1 -1
- package/dist/index.cjs769.js +1 -1
- package/dist/index.cjs769.js.map +1 -1
- package/dist/index.cjs77.js +1 -1
- package/dist/index.cjs770.js +1 -1
- package/dist/index.cjs770.js.map +1 -1
- package/dist/index.cjs771.js +1 -1
- package/dist/index.cjs771.js.map +1 -1
- package/dist/index.cjs773.js +1 -1
- package/dist/index.cjs773.js.map +1 -1
- package/dist/index.cjs774.js +1 -1
- package/dist/index.cjs775.js +1 -1
- package/dist/index.cjs775.js.map +1 -1
- package/dist/index.cjs776.js +5 -1
- package/dist/index.cjs776.js.map +1 -1
- package/dist/index.cjs777.js +1 -1
- package/dist/index.cjs778.js +1 -1
- package/dist/index.cjs778.js.map +1 -1
- package/dist/index.cjs779.js +1 -1
- package/dist/index.cjs779.js.map +1 -1
- package/dist/index.cjs78.js +1 -1
- package/dist/index.cjs780.js +1 -1
- package/dist/index.cjs780.js.map +1 -1
- package/dist/index.cjs781.js +1 -1
- package/dist/index.cjs781.js.map +1 -1
- package/dist/index.cjs782.js +1 -1
- package/dist/index.cjs782.js.map +1 -1
- package/dist/index.cjs783.js +1 -1
- package/dist/index.cjs783.js.map +1 -1
- package/dist/index.cjs784.js +1 -1
- package/dist/index.cjs784.js.map +1 -1
- package/dist/index.cjs785.js +1 -1
- package/dist/index.cjs785.js.map +1 -1
- package/dist/index.cjs786.js +1 -1
- package/dist/index.cjs786.js.map +1 -1
- package/dist/index.cjs787.js +1 -1
- package/dist/index.cjs787.js.map +1 -1
- package/dist/index.cjs788.js +1 -1
- package/dist/index.cjs788.js.map +1 -1
- package/dist/index.cjs79.js +1 -1
- package/dist/index.cjs790.js +1 -1
- package/dist/index.cjs791.js +1 -1
- package/dist/index.cjs795.js +1 -1
- package/dist/index.cjs795.js.map +1 -1
- package/dist/index.cjs796.js +1 -1
- package/dist/index.cjs796.js.map +1 -1
- package/dist/index.cjs798.js +1 -1
- package/dist/index.cjs798.js.map +1 -1
- package/dist/index.cjs799.js +1 -1
- package/dist/index.cjs799.js.map +1 -1
- package/dist/index.cjs8.js +1 -1
- package/dist/index.cjs80.js +1 -1
- package/dist/index.cjs800.js +1 -1
- package/dist/index.cjs800.js.map +1 -1
- package/dist/index.cjs801.js +1 -1
- package/dist/index.cjs801.js.map +1 -1
- package/dist/index.cjs802.js +1 -1
- package/dist/index.cjs802.js.map +1 -1
- package/dist/index.cjs803.js +1 -1
- package/dist/index.cjs803.js.map +1 -1
- package/dist/index.cjs81.js +1 -1
- package/dist/index.cjs82.js +1 -1
- package/dist/index.cjs820.js +1 -1
- package/dist/index.cjs820.js.map +1 -1
- package/dist/index.cjs821.js +1 -1
- package/dist/index.cjs821.js.map +1 -1
- package/dist/index.cjs822.js +1 -1
- package/dist/index.cjs822.js.map +1 -1
- package/dist/index.cjs823.js +1 -1
- package/dist/index.cjs823.js.map +1 -1
- package/dist/index.cjs88.js +1 -1
- package/dist/index.cjs9.js +1 -1
- package/dist/index.cjs92.js +1 -1
- package/dist/index.cjs94.js +1 -1
- package/dist/index.cjs95.js +1 -1
- package/dist/index.d.ts +6 -2
- package/dist/index.es103.js +1 -1
- package/dist/index.es104.js +1 -1
- package/dist/index.es108.js +1 -1
- package/dist/index.es109.js +1 -1
- package/dist/index.es11.js +1 -1
- package/dist/index.es111.js +1 -1
- package/dist/index.es116.js +1 -1
- package/dist/index.es117.js +1 -1
- package/dist/index.es118.js +1 -1
- package/dist/index.es120.js +1 -1
- package/dist/index.es121.js +1 -1
- package/dist/index.es122.js +1 -1
- package/dist/index.es126.js +1 -1
- package/dist/index.es127.js +1 -1
- package/dist/index.es129.js +1 -1
- package/dist/index.es13.js +1 -1
- package/dist/index.es137.js +1 -1
- package/dist/index.es14.js +3 -3
- package/dist/index.es141.js +1 -1
- package/dist/index.es142.js +1 -1
- package/dist/index.es143.js +1 -1
- package/dist/index.es144.js +1 -1
- package/dist/index.es145.js +1 -1
- package/dist/index.es146.js +1 -1
- package/dist/index.es147.js +1 -1
- package/dist/index.es148.js +1 -1
- package/dist/index.es149.js +1 -1
- package/dist/index.es150.js +1 -1
- package/dist/index.es151.js +1 -1
- package/dist/index.es159.js +1 -1
- package/dist/index.es160.js +3 -3
- package/dist/index.es166.js +3 -3
- package/dist/index.es167.js +1 -1
- package/dist/index.es170.js +1 -1
- package/dist/index.es178.js +1 -1
- package/dist/index.es18.js +1 -1
- package/dist/index.es186.js +1 -1
- package/dist/index.es187.js +1 -1
- package/dist/index.es188.js +1 -1
- package/dist/index.es19.js +1 -1
- package/dist/index.es190.js +1 -1
- package/dist/index.es192.js +1 -1
- package/dist/index.es193.js +1 -1
- package/dist/index.es196.js +1 -1
- package/dist/index.es197.js +1 -1
- package/dist/index.es20.js +1 -1
- package/dist/index.es202.js +1 -1
- package/dist/index.es203.js +1 -1
- package/dist/index.es204.js +1 -1
- package/dist/index.es207.js +1 -1
- package/dist/index.es208.js +1 -1
- package/dist/index.es209.js +1 -1
- package/dist/index.es210.js +1 -1
- package/dist/index.es213.js +1 -1
- package/dist/index.es215.js +1 -1
- package/dist/index.es218.js +1 -1
- package/dist/index.es22.js +1 -1
- package/dist/index.es222.js +1 -1
- package/dist/index.es226.js +1 -1
- package/dist/index.es23.js +1 -1
- package/dist/index.es230.js +1 -1
- package/dist/index.es232.js +1 -1
- package/dist/index.es233.js +1 -1
- package/dist/index.es235.js +1 -1
- package/dist/index.es236.js +1 -1
- package/dist/index.es237.js +1 -1
- package/dist/index.es238.js +1 -1
- package/dist/index.es239.js +1 -1
- package/dist/index.es24.js +1 -1
- package/dist/index.es240.js +1 -1
- package/dist/index.es241.js +1 -1
- package/dist/index.es252.js +1 -1
- package/dist/index.es26.js +3 -3
- package/dist/index.es262.js +1 -1
- package/dist/index.es264.js +1 -1
- package/dist/index.es265.js +1 -1
- package/dist/index.es267.js +1 -1
- package/dist/index.es271.js +1 -1
- package/dist/index.es275.js +1 -1
- package/dist/index.es276.js +1 -1
- package/dist/index.es277.js +1 -1
- package/dist/index.es28.js +1 -1
- package/dist/index.es281.js +1 -1
- package/dist/index.es289.js +1 -1
- package/dist/index.es300.js +1 -1
- package/dist/index.es301.js +2 -2
- package/dist/index.es302.js +2 -2
- package/dist/index.es303.js +3 -3
- package/dist/{index.es315.js → index.es314.js} +1 -1
- package/dist/{index.es315.js.map → index.es314.js.map} +1 -1
- package/dist/index.es317.js +151 -0
- package/dist/index.es317.js.map +1 -0
- package/dist/index.es318.js +187 -134
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es319.js +27 -200
- package/dist/index.es319.js.map +1 -1
- package/dist/{index.es326.js → index.es325.js} +2 -2
- package/dist/{index.es326.js.map → index.es325.js.map} +1 -1
- package/dist/index.es327.js +12 -0
- package/dist/index.es327.js.map +1 -0
- package/dist/index.es328.js +28 -8
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es330.js +25 -0
- package/dist/index.es330.js.map +1 -0
- package/dist/index.es331.js +3 -22
- package/dist/index.es331.js.map +1 -1
- package/dist/index.es332.js +2 -2
- package/dist/index.es334.js +2 -0
- package/dist/index.es334.js.map +1 -0
- package/dist/index.es338.js +29 -0
- package/dist/index.es338.js.map +1 -0
- package/dist/index.es339.js +17 -26
- package/dist/index.es339.js.map +1 -1
- package/dist/index.es340.js +4 -17
- package/dist/index.es340.js.map +1 -1
- package/dist/{index.es345.js → index.es344.js} +5 -5
- package/dist/{index.es345.js.map → index.es344.js.map} +1 -1
- package/dist/index.es348.js +6 -0
- package/dist/index.es348.js.map +1 -0
- package/dist/index.es349.js +21 -3
- package/dist/index.es349.js.map +1 -1
- package/dist/index.es35.js +1 -1
- package/dist/index.es350.js +5 -20
- package/dist/index.es350.js.map +1 -1
- package/dist/index.es351.js +2 -6
- package/dist/index.es351.js.map +1 -1
- package/dist/index.es354.js +12 -12
- package/dist/index.es36.js +1 -1
- package/dist/index.es38.js +1 -1
- package/dist/index.es380.js +6 -6
- package/dist/index.es39.js +1 -1
- package/dist/index.es4.js +1 -1
- package/dist/index.es400.js.map +1 -1
- package/dist/index.es433.js +6 -6
- package/dist/index.es441.js +1 -1
- package/dist/index.es444.js +1 -1
- package/dist/index.es463.js +6 -6
- package/dist/index.es464.js +2 -2
- package/dist/index.es487.js +19 -16
- package/dist/index.es487.js.map +1 -1
- package/dist/index.es488.js +1 -1
- package/dist/index.es495.js +6 -6
- package/dist/index.es50.js +1 -1
- package/dist/index.es501.js +8 -8
- package/dist/index.es515.js +3692 -5
- package/dist/index.es515.js.map +1 -1
- package/dist/index.es516.js +24 -3690
- package/dist/index.es516.js.map +1 -1
- package/dist/index.es517.js +2 -26
- package/dist/index.es517.js.map +1 -1
- package/dist/index.es518.js +2034 -2
- package/dist/index.es518.js.map +1 -1
- package/dist/index.es519.js +52 -2026
- package/dist/index.es519.js.map +1 -1
- package/dist/index.es520.js +187 -57
- package/dist/index.es520.js.map +1 -1
- package/dist/index.es521.js +5 -190
- package/dist/index.es521.js.map +1 -1
- package/dist/index.es524.js +131 -8
- package/dist/index.es524.js.map +1 -1
- package/dist/index.es525.js +1 -1
- package/dist/index.es526.js +9 -3
- package/dist/index.es526.js.map +1 -1
- package/dist/index.es527.js +2 -131
- package/dist/index.es527.js.map +1 -1
- package/dist/index.es528.js +70 -2
- package/dist/index.es528.js.map +1 -1
- package/dist/{index.es535.js → index.es529.js} +1 -1
- package/dist/{index.es535.js.map → index.es529.js.map} +1 -1
- package/dist/{index.es534.js → index.es530.js} +1 -1
- package/dist/{index.es534.js.map → index.es530.js.map} +1 -1
- package/dist/index.es531.js +60 -0
- package/dist/index.es531.js.map +1 -0
- package/dist/index.es539.js +46 -119
- package/dist/index.es539.js.map +1 -1
- package/dist/index.es540.js +5 -134
- package/dist/index.es540.js.map +1 -1
- package/dist/index.es541.js +25 -14
- package/dist/index.es541.js.map +1 -1
- package/dist/index.es542.js +1 -1
- package/dist/index.es543.js +1 -1
- package/dist/index.es544.js +73 -14
- package/dist/index.es544.js.map +1 -1
- package/dist/index.es545.js +2 -9
- package/dist/index.es545.js.map +1 -1
- package/dist/index.es546.js +11 -50
- package/dist/index.es546.js.map +1 -1
- package/dist/index.es547.js +120 -52
- package/dist/index.es547.js.map +1 -1
- package/dist/index.es548.js +138 -0
- package/dist/index.es548.js.map +1 -0
- package/dist/index.es549.js +17 -0
- package/dist/index.es549.js.map +1 -0
- package/dist/index.es550.js +18 -0
- package/dist/index.es550.js.map +1 -0
- package/dist/index.es551.js +12 -0
- package/dist/index.es551.js.map +1 -0
- package/dist/index.es552.js +53 -0
- package/dist/index.es552.js.map +1 -0
- package/dist/index.es556.js +21 -2
- package/dist/index.es556.js.map +1 -1
- package/dist/index.es557.js +2 -55
- package/dist/index.es557.js.map +1 -1
- package/dist/index.es558.js +54 -224
- package/dist/index.es558.js.map +1 -1
- package/dist/index.es559.js +224 -73
- package/dist/index.es559.js.map +1 -1
- package/dist/index.es560.js +2 -4
- package/dist/index.es560.js.map +1 -1
- package/dist/{index.es576.js → index.es578.js} +1 -1
- package/dist/{index.es576.js.map → index.es578.js.map} +1 -1
- package/dist/{index.es577.js → index.es579.js} +15 -15
- package/dist/{index.es577.js.map → index.es579.js.map} +1 -1
- package/dist/index.es580.js +5 -0
- package/dist/index.es580.js.map +1 -0
- package/dist/index.es581.js +5 -82
- package/dist/index.es581.js.map +1 -1
- package/dist/index.es582.js +14 -2
- package/dist/index.es582.js.map +1 -1
- package/dist/index.es583.js +5 -5
- package/dist/index.es583.js.map +1 -1
- package/dist/index.es584.js +4 -12
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +3 -3
- package/dist/index.es585.js.map +1 -1
- package/dist/index.es586.js +3 -3
- package/dist/index.es586.js.map +1 -1
- package/dist/index.es587.js +3 -3
- package/dist/index.es587.js.map +1 -1
- package/dist/index.es588.js +3 -3
- package/dist/index.es588.js.map +1 -1
- package/dist/index.es589.js +3 -3
- package/dist/index.es589.js.map +1 -1
- package/dist/index.es590.js +1 -1
- package/dist/index.es590.js.map +1 -1
- package/dist/index.es591.js +3 -3
- package/dist/index.es591.js.map +1 -1
- package/dist/index.es592.js +3 -3
- package/dist/index.es592.js.map +1 -1
- package/dist/index.es593.js +3 -3
- package/dist/index.es593.js.map +1 -1
- package/dist/index.es594.js +3 -3
- package/dist/index.es594.js.map +1 -1
- package/dist/index.es595.js +3 -3
- package/dist/index.es595.js.map +1 -1
- package/dist/index.es596.js +1 -1
- package/dist/index.es596.js.map +1 -1
- package/dist/index.es597.js +3 -3
- package/dist/index.es597.js.map +1 -1
- package/dist/index.es598.js +8 -4
- package/dist/index.es598.js.map +1 -1
- package/dist/index.es599.js +5 -5
- package/dist/index.es599.js.map +1 -1
- package/dist/index.es6.js +1 -1
- package/dist/index.es600.js +4 -8
- package/dist/index.es600.js.map +1 -1
- package/dist/index.es601.js +3 -3
- package/dist/index.es601.js.map +1 -1
- package/dist/index.es602.js +1 -1
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es603.js +3 -3
- package/dist/index.es603.js.map +1 -1
- package/dist/index.es604.js +10 -5
- package/dist/index.es604.js.map +1 -1
- package/dist/index.es605.js +3 -3
- package/dist/index.es605.js.map +1 -1
- package/dist/index.es606.js +5 -10
- package/dist/index.es606.js.map +1 -1
- package/dist/index.es607.js +3 -3
- package/dist/index.es607.js.map +1 -1
- package/dist/index.es608.js +1 -1
- package/dist/index.es608.js.map +1 -1
- package/dist/index.es609.js +3 -3
- package/dist/index.es609.js.map +1 -1
- package/dist/index.es610.js +3 -3
- package/dist/index.es610.js.map +1 -1
- package/dist/index.es611.js +10 -4
- package/dist/index.es611.js.map +1 -1
- package/dist/index.es612.js +3 -3
- package/dist/index.es612.js.map +1 -1
- package/dist/index.es613.js +4 -10
- package/dist/index.es613.js.map +1 -1
- package/dist/index.es614.js +8 -5
- package/dist/index.es614.js.map +1 -1
- package/dist/index.es615.js +15 -4
- package/dist/index.es615.js.map +1 -1
- package/dist/index.es616.js +10 -8
- package/dist/index.es616.js.map +1 -1
- package/dist/index.es617.js +2 -17
- package/dist/index.es617.js.map +1 -1
- package/dist/index.es623.js +71 -702
- package/dist/index.es623.js.map +1 -1
- package/dist/index.es624.js +35 -69
- package/dist/index.es624.js.map +1 -1
- package/dist/index.es625.js +713 -8
- package/dist/index.es625.js.map +1 -1
- package/dist/index.es626.js +69 -20
- package/dist/index.es626.js.map +1 -1
- package/dist/index.es627.js +8 -76
- package/dist/index.es627.js.map +1 -1
- package/dist/index.es628.js +20 -68
- package/dist/index.es628.js.map +1 -1
- package/dist/index.es629.js +75 -48
- package/dist/index.es629.js.map +1 -1
- package/dist/index.es630.js +72 -0
- package/dist/index.es630.js.map +1 -0
- package/dist/index.es631.js +49 -35
- package/dist/index.es631.js.map +1 -1
- package/dist/index.es632.js +2 -46
- package/dist/index.es632.js.map +1 -1
- package/dist/index.es633.js +2 -14
- package/dist/index.es633.js.map +1 -1
- package/dist/index.es634.js +2 -219
- package/dist/index.es634.js.map +1 -1
- package/dist/index.es635.js +2 -181
- package/dist/index.es635.js.map +1 -1
- package/dist/index.es636.js +2 -2
- package/dist/index.es637.js +2 -2
- package/dist/index.es638.js +2 -2
- package/dist/index.es639.js +2 -2
- package/dist/index.es641.js +2 -2
- package/dist/index.es642.js +2 -2
- package/dist/index.es643.js +2 -2
- package/dist/index.es644.js +2 -2
- package/dist/index.es645.js +2 -2
- package/dist/index.es646.js +2 -2
- package/dist/index.es647.js +2 -2
- package/dist/index.es648.js +2 -2
- package/dist/index.es649.js +2 -2
- package/dist/index.es650.js +2 -2
- package/dist/index.es652.js +2 -2
- package/dist/index.es653.js +2 -2
- package/dist/index.es654.js +2 -2
- package/dist/index.es655.js +2 -2
- package/dist/index.es656.js +2 -2
- package/dist/index.es657.js +2 -2
- package/dist/index.es659.js +2 -2
- package/dist/index.es662.js +2 -2
- package/dist/index.es663.js +2 -2
- package/dist/index.es664.js +2 -2
- package/dist/index.es665.js +2 -2
- package/dist/index.es666.js +2 -2
- package/dist/index.es667.js +2 -2
- package/dist/index.es668.js +46 -2
- package/dist/index.es668.js.map +1 -1
- package/dist/index.es669.js +14 -2
- package/dist/index.es669.js.map +1 -1
- package/dist/index.es670.js +219 -2
- package/dist/index.es670.js.map +1 -1
- package/dist/index.es671.js +181 -2
- package/dist/index.es671.js.map +1 -1
- package/dist/index.es673.js +2 -2
- package/dist/index.es674.js +2 -2
- package/dist/index.es675.js +2 -2
- package/dist/index.es676.js +1 -1
- package/dist/index.es677.js +8 -8
- package/dist/index.es68.js +1 -1
- package/dist/index.es682.js +1 -1
- package/dist/index.es683.js +2 -2
- package/dist/index.es686.js +1 -1
- package/dist/index.es687.js +3 -3
- package/dist/index.es688.js +3 -3
- package/dist/index.es690.js +2 -2
- package/dist/index.es691.js +1 -1
- package/dist/index.es692.js +1 -1
- package/dist/index.es696.js +1 -1
- package/dist/index.es7.js +2 -2
- package/dist/index.es701.js +5 -229
- package/dist/index.es701.js.map +1 -1
- package/dist/index.es702.js +11 -22
- package/dist/index.es702.js.map +1 -1
- package/dist/index.es703.js +4 -401
- package/dist/index.es703.js.map +1 -1
- package/dist/index.es704.js +90 -5
- package/dist/index.es704.js.map +1 -1
- package/dist/index.es705.js +18 -16
- package/dist/index.es705.js.map +1 -1
- package/dist/index.es706.js +180 -13
- package/dist/index.es706.js.map +1 -1
- package/dist/index.es707.js +9 -35
- package/dist/index.es707.js.map +1 -1
- package/dist/index.es708.js +194 -5
- package/dist/index.es708.js.map +1 -1
- package/dist/index.es709.js +320 -2
- package/dist/index.es709.js.map +1 -1
- package/dist/index.es71.js +1 -1
- package/dist/index.es710.js +92 -3
- package/dist/index.es710.js.map +1 -1
- package/dist/index.es711.js +229 -6
- package/dist/index.es711.js.map +1 -1
- package/dist/index.es712.js +22 -6
- package/dist/index.es712.js.map +1 -1
- package/dist/index.es713.js +401 -5
- package/dist/index.es713.js.map +1 -1
- package/dist/index.es714.js +2 -32
- package/dist/index.es714.js.map +1 -1
- package/dist/index.es715.js +218 -235
- package/dist/index.es715.js.map +1 -1
- package/dist/index.es716.js +2 -4
- package/dist/index.es716.js.map +1 -1
- package/dist/index.es717.js +356 -4
- package/dist/index.es717.js.map +1 -1
- package/dist/index.es718.js +2 -10
- package/dist/index.es718.js.map +1 -1
- package/dist/index.es719.js +2 -56
- package/dist/index.es719.js.map +1 -1
- package/dist/index.es72.js +1 -1
- package/dist/index.es720.js +2 -8
- package/dist/index.es720.js.map +1 -1
- package/dist/index.es721.js +33 -5
- package/dist/index.es721.js.map +1 -1
- package/dist/index.es722.js +45 -531
- package/dist/index.es722.js.map +1 -1
- package/dist/index.es723.js +59 -14
- package/dist/index.es723.js.map +1 -1
- package/dist/index.es724.js +61 -2
- package/dist/index.es724.js.map +1 -1
- package/dist/index.es725.js +71 -35
- package/dist/index.es725.js.map +1 -1
- package/dist/index.es726.js +52 -2
- package/dist/index.es726.js.map +1 -1
- package/dist/index.es727.js +80 -262
- package/dist/index.es727.js.map +1 -1
- package/dist/index.es728.js +5 -3
- package/dist/index.es728.js.map +1 -1
- package/dist/index.es729.js +16 -30
- package/dist/index.es729.js.map +1 -1
- package/dist/index.es73.js +1 -1
- package/dist/index.es730.js +13 -6
- package/dist/index.es730.js.map +1 -1
- package/dist/index.es731.js +35 -10
- package/dist/index.es731.js.map +1 -1
- package/dist/index.es732.js +5 -4
- package/dist/index.es732.js.map +1 -1
- package/dist/index.es733.js +2 -90
- package/dist/index.es733.js.map +1 -1
- package/dist/index.es734.js +3 -18
- package/dist/index.es734.js.map +1 -1
- package/dist/index.es735.js +6 -179
- package/dist/index.es735.js.map +1 -1
- package/dist/index.es736.js +6 -10
- package/dist/index.es736.js.map +1 -1
- package/dist/index.es737.js +5 -194
- package/dist/index.es737.js.map +1 -1
- package/dist/index.es738.js +32 -320
- package/dist/index.es738.js.map +1 -1
- package/dist/index.es739.js +238 -88
- package/dist/index.es739.js.map +1 -1
- package/dist/index.es740.js +4 -2
- package/dist/index.es740.js.map +1 -1
- package/dist/index.es741.js +4 -224
- package/dist/index.es741.js.map +1 -1
- package/dist/index.es742.js +10 -2
- package/dist/index.es742.js.map +1 -1
- package/dist/index.es743.js +52 -353
- package/dist/index.es743.js.map +1 -1
- package/dist/index.es744.js +8 -2
- package/dist/index.es744.js.map +1 -1
- package/dist/index.es745.js +6 -2
- package/dist/index.es745.js.map +1 -1
- package/dist/index.es746.js +532 -2
- package/dist/index.es746.js.map +1 -1
- package/dist/index.es747.js +14 -34
- package/dist/index.es747.js.map +1 -1
- package/dist/index.es748.js +2 -46
- package/dist/index.es748.js.map +1 -1
- package/dist/index.es749.js +35 -57
- package/dist/index.es749.js.map +1 -1
- package/dist/index.es750.js +2 -61
- package/dist/index.es750.js.map +1 -1
- package/dist/index.es751.js +260 -61
- package/dist/index.es751.js.map +1 -1
- package/dist/index.es752.js +3 -52
- package/dist/index.es752.js.map +1 -1
- package/dist/index.es753.js +30 -90
- package/dist/index.es753.js.map +1 -1
- package/dist/index.es759.js +2 -40
- package/dist/index.es759.js.map +1 -1
- package/dist/index.es76.js +1 -1
- package/dist/index.es760.js +2 -2
- package/dist/index.es760.js.map +1 -1
- package/dist/index.es761.js +111 -4
- package/dist/index.es761.js.map +1 -1
- package/dist/index.es762.js +2 -6
- package/dist/index.es762.js.map +1 -1
- package/dist/index.es763.js +2 -16
- package/dist/index.es763.js.map +1 -1
- package/dist/index.es764.js +11 -2
- package/dist/index.es764.js.map +1 -1
- package/dist/index.es765.js +11 -2
- package/dist/index.es765.js.map +1 -1
- package/dist/index.es766.js +54 -2
- package/dist/index.es766.js.map +1 -1
- package/dist/index.es767.js +2 -2
- package/dist/index.es767.js.map +1 -1
- package/dist/index.es768.js +145 -2
- package/dist/index.es768.js.map +1 -1
- package/dist/index.es769.js +2 -3
- package/dist/index.es769.js.map +1 -1
- package/dist/index.es77.js +1 -1
- package/dist/index.es770.js +2 -3
- package/dist/index.es770.js.map +1 -1
- package/dist/index.es771.js +2 -4
- package/dist/index.es771.js.map +1 -1
- package/dist/index.es772.js +2 -2
- package/dist/index.es773.js +2 -2
- package/dist/index.es773.js.map +1 -1
- package/dist/index.es774.js +2 -2
- package/dist/index.es775.js +2 -112
- package/dist/index.es775.js.map +1 -1
- package/dist/index.es776.js +40 -2
- package/dist/index.es776.js.map +1 -1
- package/dist/index.es777.js +2 -2
- package/dist/index.es778.js +4 -10
- package/dist/index.es778.js.map +1 -1
- package/dist/index.es779.js +2 -11
- package/dist/index.es779.js.map +1 -1
- package/dist/index.es78.js +1 -1
- package/dist/index.es780.js +2 -54
- package/dist/index.es780.js.map +1 -1
- package/dist/index.es781.js +2 -2
- package/dist/index.es781.js.map +1 -1
- package/dist/index.es782.js +6 -145
- package/dist/index.es782.js.map +1 -1
- package/dist/index.es783.js +16 -2
- package/dist/index.es783.js.map +1 -1
- package/dist/index.es784.js +2 -2
- package/dist/index.es784.js.map +1 -1
- package/dist/index.es785.js +2 -2
- package/dist/index.es785.js.map +1 -1
- package/dist/index.es786.js +3 -2
- package/dist/index.es786.js.map +1 -1
- package/dist/index.es787.js +3 -2
- package/dist/index.es787.js.map +1 -1
- package/dist/index.es788.js +4 -2
- package/dist/index.es788.js.map +1 -1
- package/dist/index.es79.js +1 -1
- package/dist/index.es790.js +1 -1
- package/dist/index.es791.js +1 -1
- package/dist/index.es794.js +2 -2
- package/dist/index.es795.js +88 -2
- package/dist/index.es795.js.map +1 -1
- package/dist/index.es796.js +108 -2
- package/dist/index.es796.js.map +1 -1
- package/dist/index.es797.js +2 -2
- package/dist/index.es798.js +2 -88
- package/dist/index.es798.js.map +1 -1
- package/dist/index.es799.js +2 -108
- package/dist/index.es799.js.map +1 -1
- package/dist/index.es8.js +2 -2
- package/dist/index.es80.js +1 -1
- package/dist/index.es800.js +529 -3
- package/dist/index.es800.js.map +1 -1
- package/dist/index.es801.js +111 -515
- package/dist/index.es801.js.map +1 -1
- package/dist/index.es802.js +117 -109
- package/dist/index.es802.js.map +1 -1
- package/dist/index.es803.js +3 -133
- package/dist/index.es803.js.map +1 -1
- package/dist/index.es81.js +1 -1
- package/dist/index.es82.js +1 -1
- package/dist/index.es820.js +21 -11
- package/dist/index.es820.js.map +1 -1
- package/dist/index.es821.js +11 -26
- package/dist/index.es821.js.map +1 -1
- package/dist/index.es822.js +27 -4
- package/dist/index.es822.js.map +1 -1
- package/dist/index.es823.js +4 -22
- package/dist/index.es823.js.map +1 -1
- package/dist/index.es88.js +1 -1
- package/dist/index.es9.js +1 -1
- package/dist/index.es92.js +1 -1
- package/dist/index.es94.js +1 -1
- package/dist/index.es95.js +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/typography.css +1 -1
- package/package.json +1 -1
- package/dist/index.cjs313.js +0 -2
- package/dist/index.cjs313.js.map +0 -1
- package/dist/index.cjs320.js +0 -2
- package/dist/index.cjs320.js.map +0 -1
- package/dist/index.cjs329.js +0 -2
- package/dist/index.cjs329.js.map +0 -1
- package/dist/index.cjs333.js +0 -2
- package/dist/index.cjs333.js.map +0 -1
- package/dist/index.cjs335.js +0 -2
- package/dist/index.cjs335.js.map +0 -1
- package/dist/index.cjs341.js +0 -2
- package/dist/index.cjs341.js.map +0 -1
- package/dist/index.cjs536.js +0 -2
- package/dist/index.cjs536.js.map +0 -1
- package/dist/index.cjs537.js +0 -2
- package/dist/index.cjs537.js.map +0 -1
- package/dist/index.cjs538.js +0 -2
- package/dist/index.cjs538.js.map +0 -1
- package/dist/index.cjs553.js +0 -2
- package/dist/index.cjs553.js.map +0 -1
- package/dist/index.cjs554.js +0 -2
- package/dist/index.cjs554.js.map +0 -1
- package/dist/index.cjs555.js +0 -2
- package/dist/index.cjs555.js.map +0 -1
- package/dist/index.cjs618.js +0 -2
- package/dist/index.cjs618.js.map +0 -1
- package/dist/index.cjs619.js +0 -2
- package/dist/index.cjs619.js.map +0 -1
- package/dist/index.es313.js +0 -5
- package/dist/index.es313.js.map +0 -1
- package/dist/index.es320.js +0 -31
- package/dist/index.es320.js.map +0 -1
- package/dist/index.es329.js +0 -32
- package/dist/index.es329.js.map +0 -1
- package/dist/index.es333.js +0 -6
- package/dist/index.es333.js.map +0 -1
- package/dist/index.es335.js +0 -2
- package/dist/index.es335.js.map +0 -1
- package/dist/index.es341.js +0 -7
- package/dist/index.es341.js.map +0 -1
- package/dist/index.es536.js +0 -71
- package/dist/index.es536.js.map +0 -1
- package/dist/index.es537.js +0 -14
- package/dist/index.es537.js.map +0 -1
- package/dist/index.es538.js +0 -55
- package/dist/index.es538.js.map +0 -1
- package/dist/index.es553.js +0 -9
- package/dist/index.es553.js.map +0 -1
- package/dist/index.es554.js +0 -28
- package/dist/index.es554.js.map +0 -1
- package/dist/index.es555.js +0 -24
- package/dist/index.es555.js.map +0 -1
- package/dist/index.es618.js +0 -14
- package/dist/index.es618.js.map +0 -1
- package/dist/index.es619.js +0 -5
- package/dist/index.es619.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs330.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error","useToggle","defaultValue","value","setValue","toggle","x"],"mappings":"sIAgDA,SAASA,GAAqB,CAC5B,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAS,IAAI,EAC3CC,EAAOC,cAAY,MAAOC,GAAS,CACvC,GAAI,EAAE,WAAa,MAAgB,UAAU,WAC3C,eAAQ,KAAK,yBAAyB,EAC/B,GAET,GAAI,CACF,aAAM,UAAU,UAAU,UAAUA,CAAI,EACxCJ,EAAcI,CAAI,EACX,EACT,OAASC,EAAO,CACd,eAAQ,KAAK,cAAeA,CAAK,EACjCL,EAAc,IAAI,EACX,EACT,CACF,EAAG,CAAA,CAAE,EACL,MAAO,CAACD,EAAYG,CAAI,CAC1B,CAw6BA,SAASI,EAAUC,EAAc,CAC/B,KAAM,CAACC,EAAOC,CAAQ,EAAIR,EAAAA,SAAS,CAAC,CAACM,CAAY,EAC3CG,EAASP,EAAAA,YAAY,IAAM,CAC/BM,EAAUE,GAAM,CAACA,CAAC,CACpB,EAAG,CAAA,CAAE,EACL,MAAO,CAACH,EAAOE,EAAQD,CAAQ,CACjC","x_google_ignoreList":[0]}
|
package/dist/index.cjs331.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs556.js");var r=e.__require();exports.distExports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs331.js.map
|
package/dist/index.cjs331.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs331.js","sources":["../node_modules/usehooks-ts/dist/index.js"],"sourcesContent":["import { useState, useCallback, useLayoutEffect, useEffect, useRef, useMemo } from 'react';\nimport debounce from 'lodash.debounce';\n\n// src/useBoolean/useBoolean.ts\nfunction useBoolean(defaultValue = false) {\n if (typeof defaultValue !== \"boolean\") {\n throw new Error(\"defaultValue must be `true` or `false`\");\n }\n const [value, setValue] = useState(defaultValue);\n const setTrue = useCallback(() => {\n setValue(true);\n }, []);\n const setFalse = useCallback(() => {\n setValue(false);\n }, []);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return { value, setValue, setTrue, setFalse, toggle };\n}\nvar useIsomorphicLayoutEffect = typeof window !== \"undefined\" ? useLayoutEffect : useEffect;\n\n// src/useEventListener/useEventListener.ts\nfunction useEventListener(eventName, handler, element, options) {\n const savedHandler = useRef(handler);\n useIsomorphicLayoutEffect(() => {\n savedHandler.current = handler;\n }, [handler]);\n useEffect(() => {\n const targetElement = (element == null ? void 0 : element.current) ?? window;\n if (!(targetElement && targetElement.addEventListener))\n return;\n const listener = (event) => {\n savedHandler.current(event);\n };\n targetElement.addEventListener(eventName, listener, options);\n return () => {\n targetElement.removeEventListener(eventName, listener, options);\n };\n }, [eventName, element, options]);\n}\n\n// src/useClickAnyWhere/useClickAnyWhere.ts\nfunction useClickAnyWhere(handler) {\n useEventListener(\"click\", (event) => {\n handler(event);\n });\n}\nfunction useCopyToClipboard() {\n const [copiedText, setCopiedText] = useState(null);\n const copy = useCallback(async (text) => {\n if (!(navigator == null ? void 0 : navigator.clipboard)) {\n console.warn(\"Clipboard not supported\");\n return false;\n }\n try {\n await navigator.clipboard.writeText(text);\n setCopiedText(text);\n return true;\n } catch (error) {\n console.warn(\"Copy failed\", error);\n setCopiedText(null);\n return false;\n }\n }, []);\n return [copiedText, copy];\n}\nfunction useCounter(initialValue) {\n const [count, setCount] = useState(initialValue ?? 0);\n const increment = useCallback(() => {\n setCount((x) => x + 1);\n }, []);\n const decrement = useCallback(() => {\n setCount((x) => x - 1);\n }, []);\n const reset = useCallback(() => {\n setCount(initialValue ?? 0);\n }, [initialValue]);\n return {\n count,\n increment,\n decrement,\n reset,\n setCount\n };\n}\nfunction useInterval(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (delay === null) {\n return;\n }\n const id = setInterval(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearInterval(id);\n };\n }, [delay]);\n}\n\n// src/useCountdown/useCountdown.ts\nfunction useCountdown({\n countStart,\n countStop = 0,\n intervalMs = 1e3,\n isIncrement = false\n}) {\n const {\n count,\n increment,\n decrement,\n reset: resetCounter\n } = useCounter(countStart);\n const {\n value: isCountdownRunning,\n setTrue: startCountdown,\n setFalse: stopCountdown\n } = useBoolean(false);\n const resetCountdown = useCallback(() => {\n stopCountdown();\n resetCounter();\n }, [stopCountdown, resetCounter]);\n const countdownCallback = useCallback(() => {\n if (count === countStop) {\n stopCountdown();\n return;\n }\n if (isIncrement) {\n increment();\n } else {\n decrement();\n }\n }, [count, countStop, decrement, increment, isIncrement, stopCountdown]);\n useInterval(countdownCallback, isCountdownRunning ? intervalMs : null);\n return [count, { startCountdown, stopCountdown, resetCountdown }];\n}\nfunction useEventCallback(fn) {\n const ref = useRef(() => {\n throw new Error(\"Cannot call an event handler while rendering.\");\n });\n useIsomorphicLayoutEffect(() => {\n ref.current = fn;\n }, [fn]);\n return useCallback((...args) => {\n var _a;\n return (_a = ref.current) == null ? void 0 : _a.call(ref, ...args);\n }, [ref]);\n}\n\n// src/useLocalStorage/useLocalStorage.ts\nvar IS_SERVER = typeof window === \"undefined\";\nfunction useLocalStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER) {\n return initialValueToUse;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER) {\n console.warn(\n `Tried setting localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.localStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting localStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER) {\n console.warn(\n `Tried removing localStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.localStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"local-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nvar IS_SERVER2 = typeof window === \"undefined\";\nfunction useMediaQuery(query, {\n defaultValue = false,\n initializeWithValue = true\n} = {}) {\n const getMatches = (query2) => {\n if (IS_SERVER2) {\n return defaultValue;\n }\n return window.matchMedia(query2).matches;\n };\n const [matches, setMatches] = useState(() => {\n if (initializeWithValue) {\n return getMatches(query);\n }\n return defaultValue;\n });\n function handleChange() {\n setMatches(getMatches(query));\n }\n useIsomorphicLayoutEffect(() => {\n const matchMedia = window.matchMedia(query);\n handleChange();\n if (matchMedia.addListener) {\n matchMedia.addListener(handleChange);\n } else {\n matchMedia.addEventListener(\"change\", handleChange);\n }\n return () => {\n if (matchMedia.removeListener) {\n matchMedia.removeListener(handleChange);\n } else {\n matchMedia.removeEventListener(\"change\", handleChange);\n }\n };\n }, [query]);\n return matches;\n}\n\n// src/useDarkMode/useDarkMode.ts\nvar COLOR_SCHEME_QUERY = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY = \"usehooks-ts-dark-mode\";\nfunction useDarkMode(options = {}) {\n const {\n defaultValue,\n localStorageKey = LOCAL_STORAGE_KEY,\n initializeWithValue = true\n } = options;\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY, {\n initializeWithValue,\n defaultValue\n });\n const [isDarkMode, setDarkMode] = useLocalStorage(\n localStorageKey,\n defaultValue ?? isDarkOS ?? false,\n { initializeWithValue }\n );\n useIsomorphicLayoutEffect(() => {\n if (isDarkOS !== isDarkMode) {\n setDarkMode(isDarkOS);\n }\n }, [isDarkOS]);\n return {\n isDarkMode,\n toggle: () => {\n setDarkMode((prev) => !prev);\n },\n enable: () => {\n setDarkMode(true);\n },\n disable: () => {\n setDarkMode(false);\n },\n set: (value) => {\n setDarkMode(value);\n }\n };\n}\nfunction useUnmount(func) {\n const funcRef = useRef(func);\n funcRef.current = func;\n useEffect(\n () => () => {\n funcRef.current();\n },\n []\n );\n}\n\n// src/useDebounceCallback/useDebounceCallback.ts\nfunction useDebounceCallback(func, delay = 500, options) {\n const debouncedFunc = useRef();\n useUnmount(() => {\n if (debouncedFunc.current) {\n debouncedFunc.current.cancel();\n }\n });\n const debounced = useMemo(() => {\n const debouncedFuncInstance = debounce(func, delay, options);\n const wrappedFunc = (...args) => {\n return debouncedFuncInstance(...args);\n };\n wrappedFunc.cancel = () => {\n debouncedFuncInstance.cancel();\n };\n wrappedFunc.isPending = () => {\n return !!debouncedFunc.current;\n };\n wrappedFunc.flush = () => {\n return debouncedFuncInstance.flush();\n };\n return wrappedFunc;\n }, [func, delay, options]);\n useEffect(() => {\n debouncedFunc.current = debounce(func, delay, options);\n }, [func, delay, options]);\n return debounced;\n}\nfunction useDebounceValue(initialValue, delay, options) {\n const eq = (options == null ? void 0 : options.equalityFn) ?? ((left, right) => left === right);\n const unwrappedInitialValue = initialValue instanceof Function ? initialValue() : initialValue;\n const [debouncedValue, setDebouncedValue] = useState(unwrappedInitialValue);\n const previousValueRef = useRef(unwrappedInitialValue);\n const updateDebouncedValue = useDebounceCallback(\n setDebouncedValue,\n delay,\n options\n );\n if (!eq(previousValueRef.current, unwrappedInitialValue)) {\n updateDebouncedValue(unwrappedInitialValue);\n previousValueRef.current = unwrappedInitialValue;\n }\n return [debouncedValue, updateDebouncedValue];\n}\nfunction useDocumentTitle(title, options = {}) {\n const { preserveTitleOnUnmount = true } = options;\n const defaultTitle = useRef(null);\n useIsomorphicLayoutEffect(() => {\n defaultTitle.current = window.document.title;\n }, []);\n useIsomorphicLayoutEffect(() => {\n window.document.title = title;\n }, [title]);\n useUnmount(() => {\n if (!preserveTitleOnUnmount && defaultTitle.current) {\n window.document.title = defaultTitle.current;\n }\n });\n}\nfunction useHover(elementRef) {\n const [value, setValue] = useState(false);\n const handleMouseEnter = () => {\n setValue(true);\n };\n const handleMouseLeave = () => {\n setValue(false);\n };\n useEventListener(\"mouseenter\", handleMouseEnter, elementRef);\n useEventListener(\"mouseleave\", handleMouseLeave, elementRef);\n return value;\n}\nfunction useIntersectionObserver({\n threshold = 0,\n root = null,\n rootMargin = \"0%\",\n freezeOnceVisible = false,\n initialIsIntersecting = false,\n onChange\n} = {}) {\n var _a;\n const [ref, setRef] = useState(null);\n const [state, setState] = useState(() => ({\n isIntersecting: initialIsIntersecting,\n entry: void 0\n }));\n const callbackRef = useRef();\n callbackRef.current = onChange;\n const frozen = ((_a = state.entry) == null ? void 0 : _a.isIntersecting) && freezeOnceVisible;\n useEffect(() => {\n if (!ref)\n return;\n if (!(\"IntersectionObserver\" in window))\n return;\n if (frozen)\n return;\n let unobserve;\n const observer = new IntersectionObserver(\n (entries) => {\n const thresholds = Array.isArray(observer.thresholds) ? observer.thresholds : [observer.thresholds];\n entries.forEach((entry) => {\n const isIntersecting = entry.isIntersecting && thresholds.some((threshold2) => entry.intersectionRatio >= threshold2);\n setState({ isIntersecting, entry });\n if (callbackRef.current) {\n callbackRef.current(isIntersecting, entry);\n }\n if (isIntersecting && freezeOnceVisible && unobserve) {\n unobserve();\n unobserve = void 0;\n }\n });\n },\n { threshold, root, rootMargin }\n );\n observer.observe(ref);\n return () => {\n observer.disconnect();\n };\n }, [\n ref,\n // eslint-disable-next-line react-hooks/exhaustive-deps\n JSON.stringify(threshold),\n root,\n rootMargin,\n frozen,\n freezeOnceVisible\n ]);\n const prevRef = useRef(null);\n useEffect(() => {\n var _a2;\n if (!ref && ((_a2 = state.entry) == null ? void 0 : _a2.target) && !freezeOnceVisible && !frozen && prevRef.current !== state.entry.target) {\n prevRef.current = state.entry.target;\n setState({ isIntersecting: initialIsIntersecting, entry: void 0 });\n }\n }, [ref, state.entry, freezeOnceVisible, frozen, initialIsIntersecting]);\n const result = [\n setRef,\n !!state.isIntersecting,\n state.entry\n ];\n result.ref = result[0];\n result.isIntersecting = result[1];\n result.entry = result[2];\n return result;\n}\nfunction useIsClient() {\n const [isClient, setClient] = useState(false);\n useEffect(() => {\n setClient(true);\n }, []);\n return isClient;\n}\nfunction useIsMounted() {\n const isMounted = useRef(false);\n useEffect(() => {\n isMounted.current = true;\n return () => {\n isMounted.current = false;\n };\n }, []);\n return useCallback(() => isMounted.current, []);\n}\nfunction useMap(initialState = /* @__PURE__ */ new Map()) {\n const [map, setMap] = useState(new Map(initialState));\n const actions = {\n set: useCallback((key, value) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.set(key, value);\n return copy;\n });\n }, []),\n setAll: useCallback((entries) => {\n setMap(() => new Map(entries));\n }, []),\n remove: useCallback((key) => {\n setMap((prev) => {\n const copy = new Map(prev);\n copy.delete(key);\n return copy;\n });\n }, []),\n reset: useCallback(() => {\n setMap(() => /* @__PURE__ */ new Map());\n }, [])\n };\n return [map, actions];\n}\n\n// src/useOnClickOutside/useOnClickOutside.ts\nfunction useOnClickOutside(ref, handler, eventType = \"mousedown\", eventListenerOptions = {}) {\n useEventListener(\n eventType,\n (event) => {\n const target = event.target;\n if (!target || !target.isConnected) {\n return;\n }\n const isOutside = Array.isArray(ref) ? ref.filter((r) => Boolean(r.current)).every((r) => r.current && !r.current.contains(target)) : ref.current && !ref.current.contains(target);\n if (isOutside) {\n handler(event);\n }\n },\n void 0,\n eventListenerOptions\n );\n}\nvar IS_SERVER3 = typeof window === \"undefined\";\nfunction useReadLocalStorage(key, options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER3) {\n initializeWithValue = false;\n }\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return null;\n }\n return parsed;\n },\n [options]\n );\n const readValue = useCallback(() => {\n if (IS_SERVER3) {\n return null;\n }\n try {\n const raw = window.localStorage.getItem(key);\n return raw ? deserializer(raw) : null;\n } catch (error) {\n console.warn(`Error reading localStorage key \\u201C${key}\\u201D:`, error);\n return null;\n }\n }, [key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return void 0;\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"local-storage\", handleStorageChange);\n return storedValue;\n}\nvar initialSize = {\n width: void 0,\n height: void 0\n};\nfunction useResizeObserver(options) {\n const { ref, box = \"content-box\" } = options;\n const [{ width, height }, setSize] = useState(initialSize);\n const isMounted = useIsMounted();\n const previousSize = useRef({ ...initialSize });\n const onResize = useRef(void 0);\n onResize.current = options.onResize;\n useEffect(() => {\n if (!ref.current)\n return;\n if (typeof window === \"undefined\" || !(\"ResizeObserver\" in window))\n return;\n const observer = new ResizeObserver(([entry]) => {\n const boxProp = box === \"border-box\" ? \"borderBoxSize\" : box === \"device-pixel-content-box\" ? \"devicePixelContentBoxSize\" : \"contentBoxSize\";\n const newWidth = extractSize(entry, boxProp, \"inlineSize\");\n const newHeight = extractSize(entry, boxProp, \"blockSize\");\n const hasChanged = previousSize.current.width !== newWidth || previousSize.current.height !== newHeight;\n if (hasChanged) {\n const newSize = { width: newWidth, height: newHeight };\n previousSize.current.width = newWidth;\n previousSize.current.height = newHeight;\n if (onResize.current) {\n onResize.current(newSize);\n } else {\n if (isMounted()) {\n setSize(newSize);\n }\n }\n }\n });\n observer.observe(ref.current, { box });\n return () => {\n observer.disconnect();\n };\n }, [box, ref, isMounted]);\n return { width, height };\n}\nfunction extractSize(entry, box, sizeType) {\n if (!entry[box]) {\n if (box === \"contentBoxSize\") {\n return entry.contentRect[sizeType === \"inlineSize\" ? \"width\" : \"height\"];\n }\n return void 0;\n }\n return Array.isArray(entry[box]) ? entry[box][0][sizeType] : (\n // @ts-ignore Support Firefox's non-standard behavior\n entry[box][sizeType]\n );\n}\nvar IS_SERVER4 = typeof window === \"undefined\";\nfunction useScreen(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER4) {\n initializeWithValue = false;\n }\n const readScreen = () => {\n if (IS_SERVER4) {\n return void 0;\n }\n return window.screen;\n };\n const [screen, setScreen] = useState(() => {\n if (initializeWithValue) {\n return readScreen();\n }\n return void 0;\n });\n const debouncedSetScreen = useDebounceCallback(\n setScreen,\n options.debounceDelay\n );\n function handleSize() {\n const newScreen = readScreen();\n const setSize = options.debounceDelay ? debouncedSetScreen : setScreen;\n if (newScreen) {\n const {\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n } = newScreen;\n setSize({\n width,\n height,\n availHeight,\n availWidth,\n colorDepth,\n orientation,\n pixelDepth\n });\n }\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return screen;\n}\nvar cachedScriptStatuses = /* @__PURE__ */ new Map();\nfunction getScriptNode(src) {\n const node = document.querySelector(\n `script[src=\"${src}\"]`\n );\n const status = node == null ? void 0 : node.getAttribute(\"data-status\");\n return {\n node,\n status\n };\n}\nfunction useScript(src, options) {\n const [status, setStatus] = useState(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return \"idle\";\n }\n if (typeof window === \"undefined\") {\n return \"loading\";\n }\n return cachedScriptStatuses.get(src) ?? \"loading\";\n });\n useEffect(() => {\n if (!src || (options == null ? void 0 : options.shouldPreventLoad)) {\n return;\n }\n const cachedScriptStatus = cachedScriptStatuses.get(src);\n if (cachedScriptStatus === \"ready\" || cachedScriptStatus === \"error\") {\n setStatus(cachedScriptStatus);\n return;\n }\n const script = getScriptNode(src);\n let scriptNode = script.node;\n if (!scriptNode) {\n scriptNode = document.createElement(\"script\");\n scriptNode.src = src;\n scriptNode.async = true;\n if (options == null ? void 0 : options.id) {\n scriptNode.id = options.id;\n }\n scriptNode.setAttribute(\"data-status\", \"loading\");\n document.body.appendChild(scriptNode);\n const setAttributeFromEvent = (event) => {\n const scriptStatus = event.type === \"load\" ? \"ready\" : \"error\";\n scriptNode == null ? void 0 : scriptNode.setAttribute(\"data-status\", scriptStatus);\n };\n scriptNode.addEventListener(\"load\", setAttributeFromEvent);\n scriptNode.addEventListener(\"error\", setAttributeFromEvent);\n } else {\n setStatus(script.status ?? cachedScriptStatus ?? \"loading\");\n }\n const setStateFromEvent = (event) => {\n const newStatus = event.type === \"load\" ? \"ready\" : \"error\";\n setStatus(newStatus);\n cachedScriptStatuses.set(src, newStatus);\n };\n scriptNode.addEventListener(\"load\", setStateFromEvent);\n scriptNode.addEventListener(\"error\", setStateFromEvent);\n return () => {\n if (scriptNode) {\n scriptNode.removeEventListener(\"load\", setStateFromEvent);\n scriptNode.removeEventListener(\"error\", setStateFromEvent);\n }\n if (scriptNode && (options == null ? void 0 : options.removeOnUnmount)) {\n scriptNode.remove();\n cachedScriptStatuses.delete(src);\n }\n };\n }, [src, options == null ? void 0 : options.shouldPreventLoad, options == null ? void 0 : options.removeOnUnmount, options == null ? void 0 : options.id]);\n return status;\n}\nvar IS_SERVER5 = typeof window === \"undefined\";\nfunction useScrollLock(options = {}) {\n const { autoLock = true, lockTarget, widthReflow = true } = options;\n const [isLocked, setIsLocked] = useState(false);\n const target = useRef(null);\n const originalStyle = useRef(null);\n const lock = () => {\n if (target.current) {\n const { overflow, paddingRight } = target.current.style;\n originalStyle.current = { overflow, paddingRight };\n if (widthReflow) {\n const offsetWidth = target.current === document.body ? window.innerWidth : target.current.offsetWidth;\n const currentPaddingRight = parseInt(window.getComputedStyle(target.current).paddingRight, 10) || 0;\n const scrollbarWidth = offsetWidth - target.current.scrollWidth;\n target.current.style.paddingRight = `${scrollbarWidth + currentPaddingRight}px`;\n }\n target.current.style.overflow = \"hidden\";\n setIsLocked(true);\n }\n };\n const unlock = () => {\n if (target.current && originalStyle.current) {\n target.current.style.overflow = originalStyle.current.overflow;\n if (widthReflow) {\n target.current.style.paddingRight = originalStyle.current.paddingRight;\n }\n }\n setIsLocked(false);\n };\n useIsomorphicLayoutEffect(() => {\n if (IS_SERVER5)\n return;\n if (lockTarget) {\n target.current = typeof lockTarget === \"string\" ? document.querySelector(lockTarget) : lockTarget;\n }\n if (!target.current) {\n target.current = document.body;\n }\n if (autoLock) {\n lock();\n }\n return () => {\n unlock();\n };\n }, [autoLock, lockTarget, widthReflow]);\n return { isLocked, lock, unlock };\n}\nvar IS_SERVER6 = typeof window === \"undefined\";\nfunction useSessionStorage(key, initialValue, options = {}) {\n const { initializeWithValue = true } = options;\n const serializer = useCallback(\n (value) => {\n if (options.serializer) {\n return options.serializer(value);\n }\n return JSON.stringify(value);\n },\n [options]\n );\n const deserializer = useCallback(\n (value) => {\n if (options.deserializer) {\n return options.deserializer(value);\n }\n if (value === \"undefined\") {\n return void 0;\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n let parsed;\n try {\n parsed = JSON.parse(value);\n } catch (error) {\n console.error(\"Error parsing JSON:\", error);\n return defaultValue;\n }\n return parsed;\n },\n [options, initialValue]\n );\n const readValue = useCallback(() => {\n const initialValueToUse = initialValue instanceof Function ? initialValue() : initialValue;\n if (IS_SERVER6) {\n return initialValueToUse;\n }\n try {\n const raw = window.sessionStorage.getItem(key);\n return raw ? deserializer(raw) : initialValueToUse;\n } catch (error) {\n console.warn(`Error reading sessionStorage key \\u201C${key}\\u201D:`, error);\n return initialValueToUse;\n }\n }, [initialValue, key, deserializer]);\n const [storedValue, setStoredValue] = useState(() => {\n if (initializeWithValue) {\n return readValue();\n }\n return initialValue instanceof Function ? initialValue() : initialValue;\n });\n const setValue = useEventCallback((value) => {\n if (IS_SERVER6) {\n console.warn(\n `Tried setting sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n try {\n const newValue = value instanceof Function ? value(readValue()) : value;\n window.sessionStorage.setItem(key, serializer(newValue));\n setStoredValue(newValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n } catch (error) {\n console.warn(`Error setting sessionStorage key \\u201C${key}\\u201D:`, error);\n }\n });\n const removeValue = useEventCallback(() => {\n if (IS_SERVER6) {\n console.warn(\n `Tried removing sessionStorage key \\u201C${key}\\u201D even though environment is not a client`\n );\n }\n const defaultValue = initialValue instanceof Function ? initialValue() : initialValue;\n window.sessionStorage.removeItem(key);\n setStoredValue(defaultValue);\n window.dispatchEvent(new StorageEvent(\"session-storage\", { key }));\n });\n useEffect(() => {\n setStoredValue(readValue());\n }, [key]);\n const handleStorageChange = useCallback(\n (event) => {\n if (event.key && event.key !== key) {\n return;\n }\n setStoredValue(readValue());\n },\n [key, readValue]\n );\n useEventListener(\"storage\", handleStorageChange);\n useEventListener(\"session-storage\", handleStorageChange);\n return [storedValue, setValue, removeValue];\n}\nfunction useStep(maxStep) {\n const [currentStep, setCurrentStep] = useState(1);\n const canGoToNextStep = currentStep + 1 <= maxStep;\n const canGoToPrevStep = currentStep - 1 > 0;\n const setStep = useCallback(\n (step) => {\n const newStep = step instanceof Function ? step(currentStep) : step;\n if (newStep >= 1 && newStep <= maxStep) {\n setCurrentStep(newStep);\n return;\n }\n throw new Error(\"Step not valid\");\n },\n [maxStep, currentStep]\n );\n const goToNextStep = useCallback(() => {\n if (canGoToNextStep) {\n setCurrentStep((step) => step + 1);\n }\n }, [canGoToNextStep]);\n const goToPrevStep = useCallback(() => {\n if (canGoToPrevStep) {\n setCurrentStep((step) => step - 1);\n }\n }, [canGoToPrevStep]);\n const reset = useCallback(() => {\n setCurrentStep(1);\n }, []);\n return [\n currentStep,\n {\n goToNextStep,\n goToPrevStep,\n canGoToNextStep,\n canGoToPrevStep,\n setStep,\n reset\n }\n ];\n}\n\n// src/useTernaryDarkMode/useTernaryDarkMode.ts\nvar COLOR_SCHEME_QUERY2 = \"(prefers-color-scheme: dark)\";\nvar LOCAL_STORAGE_KEY2 = \"usehooks-ts-ternary-dark-mode\";\nfunction useTernaryDarkMode({\n defaultValue = \"system\",\n localStorageKey = LOCAL_STORAGE_KEY2,\n initializeWithValue = true\n} = {}) {\n const isDarkOS = useMediaQuery(COLOR_SCHEME_QUERY2, { initializeWithValue });\n const [mode, setMode] = useLocalStorage(localStorageKey, defaultValue, {\n initializeWithValue\n });\n const isDarkMode = mode === \"dark\" || mode === \"system\" && isDarkOS;\n const toggleTernaryDarkMode = () => {\n const modes = [\"light\", \"system\", \"dark\"];\n setMode((prevMode) => {\n const nextIndex = (modes.indexOf(prevMode) + 1) % modes.length;\n return modes[nextIndex];\n });\n };\n return {\n isDarkMode,\n ternaryDarkMode: mode,\n setTernaryDarkMode: setMode,\n toggleTernaryDarkMode\n };\n}\nfunction useTimeout(callback, delay) {\n const savedCallback = useRef(callback);\n useIsomorphicLayoutEffect(() => {\n savedCallback.current = callback;\n }, [callback]);\n useEffect(() => {\n if (!delay && delay !== 0) {\n return;\n }\n const id = setTimeout(() => {\n savedCallback.current();\n }, delay);\n return () => {\n clearTimeout(id);\n };\n }, [delay]);\n}\nfunction useToggle(defaultValue) {\n const [value, setValue] = useState(!!defaultValue);\n const toggle = useCallback(() => {\n setValue((x) => !x);\n }, []);\n return [value, toggle, setValue];\n}\nvar IS_SERVER7 = typeof window === \"undefined\";\nfunction useWindowSize(options = {}) {\n let { initializeWithValue = true } = options;\n if (IS_SERVER7) {\n initializeWithValue = false;\n }\n const [windowSize, setWindowSize] = useState(() => {\n if (initializeWithValue) {\n return {\n width: window.innerWidth,\n height: window.innerHeight\n };\n }\n return {\n width: void 0,\n height: void 0\n };\n });\n const debouncedSetWindowSize = useDebounceCallback(\n setWindowSize,\n options.debounceDelay\n );\n function handleSize() {\n const setSize = options.debounceDelay ? debouncedSetWindowSize : setWindowSize;\n setSize({\n width: window.innerWidth,\n height: window.innerHeight\n });\n }\n useEventListener(\"resize\", handleSize);\n useIsomorphicLayoutEffect(() => {\n handleSize();\n }, []);\n return windowSize;\n}\n\nexport { useBoolean, useClickAnyWhere, useCopyToClipboard, useCountdown, useCounter, useDarkMode, useDebounceCallback, useDebounceValue, useDocumentTitle, useEventCallback, useEventListener, useHover, useIntersectionObserver, useInterval, useIsClient, useIsMounted, useIsomorphicLayoutEffect, useLocalStorage, useMap, useMediaQuery, useOnClickOutside, useReadLocalStorage, useResizeObserver, useScreen, useScript, useScrollLock, useSessionStorage, useStep, useTernaryDarkMode, useTimeout, useToggle, useUnmount, useWindowSize };\n"],"names":["useCopyToClipboard","copiedText","setCopiedText","useState","copy","useCallback","text","error","useToggle","defaultValue","value","setValue","toggle","x"],"mappings":"sIAgDA,SAASA,GAAqB,CAC5B,KAAM,CAACC,EAAYC,CAAa,EAAIC,EAAAA,SAAS,IAAI,EAC3CC,EAAOC,cAAY,MAAOC,GAAS,CACvC,GAAI,EAAE,WAAa,MAAgB,UAAU,WAC3C,eAAQ,KAAK,yBAAyB,EAC/B,GAET,GAAI,CACF,aAAM,UAAU,UAAU,UAAUA,CAAI,EACxCJ,EAAcI,CAAI,EACX,EACT,OAASC,EAAO,CACd,eAAQ,KAAK,cAAeA,CAAK,EACjCL,EAAc,IAAI,EACX,EACT,CACF,EAAG,CAAA,CAAE,EACL,MAAO,CAACD,EAAYG,CAAI,CAC1B,CAw6BA,SAASI,EAAUC,EAAc,CAC/B,KAAM,CAACC,EAAOC,CAAQ,EAAIR,EAAAA,SAAS,CAAC,CAACM,CAAY,EAC3CG,EAASP,EAAAA,YAAY,IAAM,CAC/BM,EAAUE,GAAM,CAACA,CAAC,CACpB,EAAG,CAAA,CAAE,EACL,MAAO,CAACH,EAAOE,EAAQD,CAAQ,CACjC","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs331.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/index.cjs332.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index.cjs544.js");var r=e.__require();exports.FileSaver_minExports=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs332.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs334.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AddNewModal/AddNewModalHeader/AddNewModalHeader.css');const e=require("./index.cjs278.js"),s=require("./index.cjs354.js"),a=require("./index.cjs36.js");;/* empty css */const d=require("./index.cjs80.js"),r=({closeButton:i="Annulla",onCloseClick:t,children:l})=>e.jsxRuntimeExports.jsxs("header",{className:"ui-add-new-modal-header bg-white",children:[e.jsxRuntimeExports.jsx(s.Title,{className:"fs-7 md-fs-custom text-slate-20 fw-bold",children:l}),e.jsxRuntimeExports.jsx(s.Close,{asChild:!0,className:"ui-add-new-modal-header-close",children:e.jsxRuntimeExports.jsxs(a.Button,{size:"4",variant:"closeModal","aria-label":"Chiudi modale",onClick:t,children:[e.jsxRuntimeExports.jsx("div",{className:"close-label-mobile",children:i}),e.jsxRuntimeExports.jsx(d.Close,{className:"ml-x8",width:32,height:32})]})})]});exports.AddNewModalHeader=r;
|
|
2
|
+
//# sourceMappingURL=index.cjs338.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs338.js","sources":["../src/components/ui/AddNewModal/AddNewModalHeader/index.tsx"],"sourcesContent":["import * as Dialog from \"@radix-ui/react-dialog\";\nimport { Button } from \"../../Button\";\nimport { Close } from \"@/icons\";\nimport \"./AddNewModalHeader.scss\";\nimport { ReactNode } from \"react\";\n\ntype AddNewModalHeaderProps = {\n closeButton?: string;\n onCloseClick?: () => void;\n children?: ReactNode;\n};\n\nexport const AddNewModalHeader = ({\n closeButton = \"Annulla\",\n onCloseClick,\n children,\n}: AddNewModalHeaderProps) => {\n return (\n <header className=\"ui-add-new-modal-header bg-white\">\n <Dialog.Title className=\"fs-7 md-fs-custom text-slate-20 fw-bold\">\n {children}\n </Dialog.Title>\n <Dialog.Close asChild className=\"ui-add-new-modal-header-close\">\n <Button\n size=\"4\"\n variant={\"closeModal\"}\n aria-label=\"Chiudi modale\"\n onClick={onCloseClick}\n >\n <div className={\"close-label-mobile\"}>{closeButton}</div>\n <Close className=\"ml-x8\" width={32} height={32} />\n </Button>\n </Dialog.Close>\n </header>\n );\n};\n"],"names":["AddNewModalHeader","closeButton","onCloseClick","children","jsxs","jsx","Dialog.Title","Dialog.Close","Button","Close"],"mappings":"mPAYaA,EAAoB,CAAC,CAChC,YAAAC,EAAc,UACd,aAAAC,EACA,SAAAC,CACF,IAEIC,EAAAA,kBAAAA,KAAC,SAAA,CAAO,UAAU,mCAChB,SAAA,CAAAC,EAAAA,kBAAAA,IAACC,EAAAA,MAAA,CAAa,UAAU,0CACrB,SAAAH,CAAA,CACH,0BACCI,EAAAA,MAAA,CAAa,QAAO,GAAC,UAAU,gCAC9B,SAAAH,EAAAA,kBAAAA,KAACI,EAAAA,OAAA,CACC,KAAK,IACL,QAAS,aACT,aAAW,gBACX,QAASN,EAET,SAAA,CAAAG,EAAAA,kBAAAA,IAAC,MAAA,CAAI,UAAW,qBAAuB,SAAAJ,EAAY,0BAClDQ,EAAAA,MAAA,CAAM,UAAU,QAAQ,MAAO,GAAI,OAAQ,EAAA,CAAI,CAAA,CAAA,CAAA,CAClD,CACF,CAAA,EACF"}
|
package/dist/index.cjs339.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AddNewModal/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AddNewModal/AddNewModalContent/AddNewModalContent.css');const o=require("./index.cjs278.js"),n=require("./index.cjs280.js");;/* empty css */const d=({overrideClassNames:e,children:t})=>o.jsxRuntimeExports.jsx("div",{className:n.clsx("ui-add-new-modal-body ui-modal-content-scrollable",e),children:t});exports.AddNewModalContent=d;
|
|
2
2
|
//# sourceMappingURL=index.cjs339.js.map
|
package/dist/index.cjs339.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs339.js","sources":["../src/components/ui/AddNewModal/
|
|
1
|
+
{"version":3,"file":"index.cjs339.js","sources":["../src/components/ui/AddNewModal/AddNewModalContent/index.tsx"],"sourcesContent":["import clsx from \"clsx\";\nimport \"./AddNewModalContent.scss\";\nimport { ReactNode } from \"react\";\n\ntype AddNewModalContentProps = {\n overrideClassNames?: string;\n children?: ReactNode;\n};\n\nexport const AddNewModalContent = ({\n overrideClassNames,\n children,\n}: AddNewModalContentProps) => {\n return (\n <div\n className={clsx(\n \"ui-add-new-modal-body ui-modal-content-scrollable\",\n overrideClassNames,\n )}\n >\n {children}\n </div>\n );\n};\n"],"names":["AddNewModalContent","overrideClassNames","children","jsx","clsx"],"mappings":"iLASO,MAAMA,EAAqB,CAAC,CACjC,mBAAAC,EACA,SAAAC,CACF,IAEIC,EAAAA,kBAAAA,IAAC,MAAA,CACC,UAAWC,EAAAA,KACT,oDACAH,CAAA,EAGD,SAAAC,CAAA,CAAA"}
|
package/dist/index.cjs340.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AddNewModal/
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/AddNewModal/AddNewModalFooter/AddNewModalFooter.css');const o=require("./index.cjs278.js");;/* empty css */const t=({children:e})=>o.jsxRuntimeExports.jsx("footer",{className:"ui-add-new-modal-footer bg-white shadow ui-modal-footer",children:e});exports.AddNewModalFooter=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs340.js.map
|
package/dist/index.cjs340.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs340.js","sources":["../src/components/ui/AddNewModal/
|
|
1
|
+
{"version":3,"file":"index.cjs340.js","sources":["../src/components/ui/AddNewModal/AddNewModalFooter/index.tsx"],"sourcesContent":["import \"./AddNewModalFooter.scss\";\nimport { ReactNode } from \"react\";\n\ntype AddNewModalFooterProps = {\n children?: ReactNode;\n};\n\nexport const AddNewModalFooter = ({ children }: AddNewModalFooterProps) => {\n return (\n <footer className=\"ui-add-new-modal-footer bg-white shadow ui-modal-footer\">\n {children}\n </footer>\n );\n};\n"],"names":["AddNewModalFooter","children","jsx"],"mappings":"kJAOO,MAAMA,EAAoB,CAAC,CAAE,SAAAC,KAEhCC,EAAAA,kBAAAA,IAAC,SAAA,CAAO,UAAU,0DACf,SAAAD,CAAA,CACH"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("react"),T=require("./index.cjs528.js"),E=require("./index.cjs529.js"),n=require("./index.cjs354.js"),h=require("./index.cjs530.js"),w=require("./index.cjs531.js"),i=require("./index.cjs278.js");function M(e){const o=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const t in e)if(t!=="default"){const r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(o,t,r.get?r:{enumerable:!0,get:()=>e[t]})}}return o.default=e,Object.freeze(o)}const l=M(b);var j="AlertDialog",[q]=T.createContextScope(j,[n.createDialogScope]),s=n.createDialogScope(),d=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Root,{...r,...t,modal:!0})};d.displayName=j;var I="AlertDialogTrigger",_=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Trigger,{...a,...r,ref:o})});_.displayName=I;var $="AlertDialogPortal",A=e=>{const{__scopeAlertDialog:o,...t}=e,r=s(o);return i.jsxRuntimeExports.jsx(n.Portal,{...r,...t})};A.displayName=$;var L="AlertDialogOverlay",D=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Overlay,{...a,...r,ref:o})});D.displayName=L;var c="AlertDialogContent",[F,G]=q(c),W=w.createSlottable("AlertDialogContent"),v=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,children:r,...a}=e,g=s(t),u=l.useRef(null),P=E.useComposedRefs(o,u),R=l.useRef(null);return i.jsxRuntimeExports.jsx(n.WarningProvider,{contentName:c,titleName:C,docsSlug:"alert-dialog",children:i.jsxRuntimeExports.jsx(F,{scope:t,cancelRef:R,children:i.jsxRuntimeExports.jsxs(n.Content,{role:"alertdialog",...g,...a,ref:P,onOpenAutoFocus:h.composeEventHandlers(a.onOpenAutoFocus,p=>{var y;p.preventDefault(),(y=R.current)==null||y.focus({preventScroll:!0})}),onPointerDownOutside:p=>p.preventDefault(),onInteractOutside:p=>p.preventDefault(),children:[i.jsxRuntimeExports.jsx(W,{children:r}),i.jsxRuntimeExports.jsx(k,{contentRef:u})]})})})});v.displayName=c;var C="AlertDialogTitle",f=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Title,{...a,...r,ref:o})});f.displayName=C;var N="AlertDialogDescription",x=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Description,{...a,...r,ref:o})});x.displayName=N;var Y="AlertDialogAction",S=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,a=s(t);return i.jsxRuntimeExports.jsx(n.Close,{...a,...r,ref:o})});S.displayName=Y;var O="AlertDialogCancel",m=l.forwardRef((e,o)=>{const{__scopeAlertDialog:t,...r}=e,{cancelRef:a}=G(O,t),g=s(t),u=E.useComposedRefs(o,a);return i.jsxRuntimeExports.jsx(n.Close,{...g,...r,ref:u})});m.displayName=O;var k=({contentRef:e})=>{const o=`\`${c}\` requires a description for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
You can add a description to the \`${c}\` by passing a \`${N}\` component as a child, which also benefits sighted users by adding visible context to the dialog.
|
|
4
4
|
|
|
5
5
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${c}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
6
6
|
|
|
7
7
|
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return l.useEffect(()=>{var r;document.getElementById((r=e.current)==null?void 0:r.getAttribute("aria-describedby"))||console.warn(o)},[o,e]),null},z=d,B=A,H=D,V=v,J=m,K=f,Q=x;exports.AlertDialog=d;exports.AlertDialogAction=S;exports.AlertDialogCancel=m;exports.AlertDialogContent=v;exports.AlertDialogDescription=x;exports.AlertDialogOverlay=D;exports.AlertDialogPortal=A;exports.AlertDialogTitle=f;exports.AlertDialogTrigger=_;exports.Cancel=J;exports.Content=V;exports.Description=Q;exports.Overlay=H;exports.Portal=B;exports.Root=z;exports.Title=K;
|
|
8
|
-
//# sourceMappingURL=index.
|
|
8
|
+
//# sourceMappingURL=index.cjs344.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs345.js","sources":["../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","_a","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Portal2","Overlay2","Content2","Cancel","Title2","Description2"],"mappings":"6jBAWA,IAAIA,EAAY,cACZ,CAACC,CAAgD,EAAIC,EAAAA,mBAAmBF,EAAW,CACrFG,EAAAA,iBACF,CAAC,EACGC,EAAiBD,EAAAA,kBAAiB,EAClCE,EAAeC,GAAU,CAC3B,KAAM,CAAE,mBAAAC,EAAoB,GAAGC,CAAgB,EAAKF,EAC9CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIC,EAAAA,KAAsB,CAAE,GAAGF,EAAa,GAAGD,EAAkB,MAAO,GAAM,CACvG,EACAH,EAAY,YAAcL,EAC1B,IAAIY,EAAe,qBACfC,EAAqBC,EAAM,WAC7B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGS,CAAY,EAAKV,EAC1CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIO,EAAAA,QAAyB,CAAE,GAAGR,EAAa,GAAGO,EAAc,IAAKD,EAAc,CAC5G,CACF,EACAF,EAAmB,YAAcD,EACjC,IAAIM,EAAc,oBACdC,EAAqBb,GAAU,CACjC,KAAM,CAAE,mBAAAC,EAAoB,GAAGa,CAAW,EAAKd,EACzCG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIW,EAAAA,OAAwB,CAAE,GAAGZ,EAAa,GAAGW,CAAW,CAAE,CACvF,EACAD,EAAkB,YAAcD,EAChC,IAAII,EAAe,qBACfC,EAAqBT,EAAM,WAC7B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGiB,CAAY,EAAKlB,EAC1CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIe,EAAAA,QAAyB,CAAE,GAAGhB,EAAa,GAAGe,EAAc,IAAKT,EAAc,CAC5G,CACF,EACAQ,EAAmB,YAAcD,EACjC,IAAII,EAAe,qBACf,CAACC,EAA4BC,CAA4B,EAAI3B,EAAyByB,CAAY,EAClGG,EAAYC,EAAAA,gBAAgB,oBAAoB,EAChDC,EAAqBjB,EAAM,WAC7B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,SAAAyB,EAAU,GAAGC,CAAY,EAAK3B,EACpDG,EAAcL,EAAeG,CAAkB,EAC/C2B,EAAapB,EAAM,OAAO,IAAI,EAC9BqB,EAAeC,EAAAA,gBAAgBrB,EAAcmB,CAAU,EACvDG,EAAYvB,EAAM,OAAO,IAAI,EACnC,OAAuBJ,EAAAA,kBAAAA,IACrB4B,EAAAA,gBACA,CACE,YAAaZ,EACb,UAAWa,EACX,SAAU,eACV,SAA0B7B,EAAAA,kBAAAA,IAAIiB,EAA4B,CAAE,MAAOpB,EAAoB,UAAA8B,EAAW,SAA0BG,EAAAA,kBAAAA,KAC1HC,EAAAA,QACA,CACE,KAAM,cACN,GAAGhC,EACH,GAAGwB,EACH,IAAKE,EACL,gBAAiBO,EAAAA,qBAAqBT,EAAa,gBAAkBU,GAAU,OAC7EA,EAAM,eAAc,GACpBC,EAAAP,EAAU,UAAV,MAAAO,EAAmB,MAAM,CAAE,cAAe,EAAI,EAChD,CAAC,EACD,qBAAuBD,GAAUA,EAAM,eAAc,EACrD,kBAAoBA,GAAUA,EAAM,eAAc,EAClD,SAAU,CACQjC,wBAAImB,EAAW,CAAE,SAAAG,EAAU,EAC3BtB,wBAAImC,EAAoB,CAAE,WAAAX,CAAU,CAAE,CACpE,CACA,CACA,CAAS,CAAE,CACX,CACA,CACE,CACF,EACAH,EAAmB,YAAcL,EACjC,IAAIa,EAAa,mBACbO,EAAmBhC,EAAM,WAC3B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGwC,CAAU,EAAKzC,EACxCG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIsC,EAAAA,MAAuB,CAAE,GAAGvC,EAAa,GAAGsC,EAAY,IAAKhC,EAAc,CACxG,CACF,EACA+B,EAAiB,YAAcP,EAC/B,IAAIU,EAAmB,yBACnBC,EAAyBpC,EAAM,WAAW,CAACR,EAAOS,IAAiB,CACrE,KAAM,CAAE,mBAAAR,EAAoB,GAAG4C,CAAgB,EAAK7C,EAC9CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAI0C,EAAAA,YAA6B,CAAE,GAAG3C,EAAa,GAAG0C,EAAkB,IAAKpC,EAAc,CACpH,CAAC,EACDmC,EAAuB,YAAcD,EACrC,IAAII,EAAc,oBACdC,EAAoBxC,EAAM,WAC5B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGgD,CAAW,EAAKjD,EACzCG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAI8C,EAAAA,MAAuB,CAAE,GAAG/C,EAAa,GAAG8C,EAAa,IAAKxC,EAAc,CACzG,CACF,EACAuC,EAAkB,YAAcD,EAChC,IAAII,EAAc,oBACdC,EAAoB5C,EAAM,WAC5B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGoD,CAAW,EAAKrD,EACzC,CAAE,UAAA+B,CAAS,EAAKT,EAA6B6B,EAAalD,CAAkB,EAC5EE,EAAcL,EAAeG,CAAkB,EAC/CqD,EAAMxB,EAAAA,gBAAgBrB,EAAcsB,CAAS,EACnD,OAAuB3B,EAAAA,kBAAAA,IAAI8C,EAAAA,MAAuB,CAAE,GAAG/C,EAAa,GAAGkD,EAAa,IAAAC,EAAK,CAC3F,CACF,EACAF,EAAkB,YAAcD,EAChC,IAAIZ,EAAqB,CAAC,CAAE,WAAAX,KAAiB,CAC3C,MAAM2B,EAAU,KAAKnC,CAAY;AAAA;AAAA,qCAEEA,CAAY,qBAAqBuB,CAAgB;AAAA;AAAA,4JAEsEvB,CAAY;AAAA;AAAA,wFAGtKZ,OAAAA,EAAM,UAAU,IAAM,OACG,SAAS,gBAC9B8B,EAAAV,EAAW,UAAX,YAAAU,EAAoB,aAAa,mBACvC,GACyB,QAAQ,KAAKiB,CAAO,CAC3C,EAAG,CAACA,EAAS3B,CAAU,CAAC,EACjB,IACT,EACI4B,EAAQzD,EAER0D,EAAU5C,EACV6C,EAAWzC,EACX0C,EAAWlC,EAEXmC,EAASR,EACTS,EAASrB,EACTsB,EAAelB","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.cjs344.js","sources":["../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// src/alert-dialog.tsx\nimport * as React from \"react\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport * as DialogPrimitive from \"@radix-ui/react-dialog\";\nimport { createDialogScope } from \"@radix-ui/react-dialog\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createSlottable } from \"@radix-ui/react-slot\";\nimport { jsx, jsxs } from \"react/jsx-runtime\";\nvar ROOT_NAME = \"AlertDialog\";\nvar [createAlertDialogContext, createAlertDialogScope] = createContextScope(ROOT_NAME, [\n createDialogScope\n]);\nvar useDialogScope = createDialogScope();\nvar AlertDialog = (props) => {\n const { __scopeAlertDialog, ...alertDialogProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Root, { ...dialogScope, ...alertDialogProps, modal: true });\n};\nAlertDialog.displayName = ROOT_NAME;\nvar TRIGGER_NAME = \"AlertDialogTrigger\";\nvar AlertDialogTrigger = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...triggerProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Trigger, { ...dialogScope, ...triggerProps, ref: forwardedRef });\n }\n);\nAlertDialogTrigger.displayName = TRIGGER_NAME;\nvar PORTAL_NAME = \"AlertDialogPortal\";\nvar AlertDialogPortal = (props) => {\n const { __scopeAlertDialog, ...portalProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Portal, { ...dialogScope, ...portalProps });\n};\nAlertDialogPortal.displayName = PORTAL_NAME;\nvar OVERLAY_NAME = \"AlertDialogOverlay\";\nvar AlertDialogOverlay = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...overlayProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Overlay, { ...dialogScope, ...overlayProps, ref: forwardedRef });\n }\n);\nAlertDialogOverlay.displayName = OVERLAY_NAME;\nvar CONTENT_NAME = \"AlertDialogContent\";\nvar [AlertDialogContentProvider, useAlertDialogContentContext] = createAlertDialogContext(CONTENT_NAME);\nvar Slottable = createSlottable(\"AlertDialogContent\");\nvar AlertDialogContent = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, children, ...contentProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const contentRef = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, contentRef);\n const cancelRef = React.useRef(null);\n return /* @__PURE__ */ jsx(\n DialogPrimitive.WarningProvider,\n {\n contentName: CONTENT_NAME,\n titleName: TITLE_NAME,\n docsSlug: \"alert-dialog\",\n children: /* @__PURE__ */ jsx(AlertDialogContentProvider, { scope: __scopeAlertDialog, cancelRef, children: /* @__PURE__ */ jsxs(\n DialogPrimitive.Content,\n {\n role: \"alertdialog\",\n ...dialogScope,\n ...contentProps,\n ref: composedRefs,\n onOpenAutoFocus: composeEventHandlers(contentProps.onOpenAutoFocus, (event) => {\n event.preventDefault();\n cancelRef.current?.focus({ preventScroll: true });\n }),\n onPointerDownOutside: (event) => event.preventDefault(),\n onInteractOutside: (event) => event.preventDefault(),\n children: [\n /* @__PURE__ */ jsx(Slottable, { children }),\n /* @__PURE__ */ jsx(DescriptionWarning, { contentRef })\n ]\n }\n ) })\n }\n );\n }\n);\nAlertDialogContent.displayName = CONTENT_NAME;\nvar TITLE_NAME = \"AlertDialogTitle\";\nvar AlertDialogTitle = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...titleProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Title, { ...dialogScope, ...titleProps, ref: forwardedRef });\n }\n);\nAlertDialogTitle.displayName = TITLE_NAME;\nvar DESCRIPTION_NAME = \"AlertDialogDescription\";\nvar AlertDialogDescription = React.forwardRef((props, forwardedRef) => {\n const { __scopeAlertDialog, ...descriptionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Description, { ...dialogScope, ...descriptionProps, ref: forwardedRef });\n});\nAlertDialogDescription.displayName = DESCRIPTION_NAME;\nvar ACTION_NAME = \"AlertDialogAction\";\nvar AlertDialogAction = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...actionProps } = props;\n const dialogScope = useDialogScope(__scopeAlertDialog);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...actionProps, ref: forwardedRef });\n }\n);\nAlertDialogAction.displayName = ACTION_NAME;\nvar CANCEL_NAME = \"AlertDialogCancel\";\nvar AlertDialogCancel = React.forwardRef(\n (props, forwardedRef) => {\n const { __scopeAlertDialog, ...cancelProps } = props;\n const { cancelRef } = useAlertDialogContentContext(CANCEL_NAME, __scopeAlertDialog);\n const dialogScope = useDialogScope(__scopeAlertDialog);\n const ref = useComposedRefs(forwardedRef, cancelRef);\n return /* @__PURE__ */ jsx(DialogPrimitive.Close, { ...dialogScope, ...cancelProps, ref });\n }\n);\nAlertDialogCancel.displayName = CANCEL_NAME;\nvar DescriptionWarning = ({ contentRef }) => {\n const MESSAGE = `\\`${CONTENT_NAME}\\` requires a description for the component to be accessible for screen reader users.\n\nYou can add a description to the \\`${CONTENT_NAME}\\` by passing a \\`${DESCRIPTION_NAME}\\` component as a child, which also benefits sighted users by adding visible context to the dialog.\n\nAlternatively, you can use your own component as a description by assigning it an \\`id\\` and passing the same value to the \\`aria-describedby\\` prop in \\`${CONTENT_NAME}\\`. If the description is confusing or duplicative for sighted users, you can use the \\`@radix-ui/react-visually-hidden\\` primitive as a wrapper around your description component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;\n React.useEffect(() => {\n const hasDescription = document.getElementById(\n contentRef.current?.getAttribute(\"aria-describedby\")\n );\n if (!hasDescription) console.warn(MESSAGE);\n }, [MESSAGE, contentRef]);\n return null;\n};\nvar Root2 = AlertDialog;\nvar Trigger2 = AlertDialogTrigger;\nvar Portal2 = AlertDialogPortal;\nvar Overlay2 = AlertDialogOverlay;\nvar Content2 = AlertDialogContent;\nvar Action = AlertDialogAction;\nvar Cancel = AlertDialogCancel;\nvar Title2 = AlertDialogTitle;\nvar Description2 = AlertDialogDescription;\nexport {\n Action,\n AlertDialog,\n AlertDialogAction,\n AlertDialogCancel,\n AlertDialogContent,\n AlertDialogDescription,\n AlertDialogOverlay,\n AlertDialogPortal,\n AlertDialogTitle,\n AlertDialogTrigger,\n Cancel,\n Content2 as Content,\n Description2 as Description,\n Overlay2 as Overlay,\n Portal2 as Portal,\n Root2 as Root,\n Title2 as Title,\n Trigger2 as Trigger,\n createAlertDialogScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ROOT_NAME","createAlertDialogContext","createContextScope","createDialogScope","useDialogScope","AlertDialog","props","__scopeAlertDialog","alertDialogProps","dialogScope","jsx","DialogPrimitive.Root","TRIGGER_NAME","AlertDialogTrigger","React","forwardedRef","triggerProps","DialogPrimitive.Trigger","PORTAL_NAME","AlertDialogPortal","portalProps","DialogPrimitive.Portal","OVERLAY_NAME","AlertDialogOverlay","overlayProps","DialogPrimitive.Overlay","CONTENT_NAME","AlertDialogContentProvider","useAlertDialogContentContext","Slottable","createSlottable","AlertDialogContent","children","contentProps","contentRef","composedRefs","useComposedRefs","cancelRef","DialogPrimitive.WarningProvider","TITLE_NAME","jsxs","DialogPrimitive.Content","composeEventHandlers","event","_a","DescriptionWarning","AlertDialogTitle","titleProps","DialogPrimitive.Title","DESCRIPTION_NAME","AlertDialogDescription","descriptionProps","DialogPrimitive.Description","ACTION_NAME","AlertDialogAction","actionProps","DialogPrimitive.Close","CANCEL_NAME","AlertDialogCancel","cancelProps","ref","MESSAGE","Root2","Portal2","Overlay2","Content2","Cancel","Title2","Description2"],"mappings":"6jBAWA,IAAIA,EAAY,cACZ,CAACC,CAAgD,EAAIC,EAAAA,mBAAmBF,EAAW,CACrFG,EAAAA,iBACF,CAAC,EACGC,EAAiBD,EAAAA,kBAAiB,EAClCE,EAAeC,GAAU,CAC3B,KAAM,CAAE,mBAAAC,EAAoB,GAAGC,CAAgB,EAAKF,EAC9CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIC,EAAAA,KAAsB,CAAE,GAAGF,EAAa,GAAGD,EAAkB,MAAO,GAAM,CACvG,EACAH,EAAY,YAAcL,EAC1B,IAAIY,EAAe,qBACfC,EAAqBC,EAAM,WAC7B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGS,CAAY,EAAKV,EAC1CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIO,EAAAA,QAAyB,CAAE,GAAGR,EAAa,GAAGO,EAAc,IAAKD,EAAc,CAC5G,CACF,EACAF,EAAmB,YAAcD,EACjC,IAAIM,EAAc,oBACdC,EAAqBb,GAAU,CACjC,KAAM,CAAE,mBAAAC,EAAoB,GAAGa,CAAW,EAAKd,EACzCG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIW,EAAAA,OAAwB,CAAE,GAAGZ,EAAa,GAAGW,CAAW,CAAE,CACvF,EACAD,EAAkB,YAAcD,EAChC,IAAII,EAAe,qBACfC,EAAqBT,EAAM,WAC7B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGiB,CAAY,EAAKlB,EAC1CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIe,EAAAA,QAAyB,CAAE,GAAGhB,EAAa,GAAGe,EAAc,IAAKT,EAAc,CAC5G,CACF,EACAQ,EAAmB,YAAcD,EACjC,IAAII,EAAe,qBACf,CAACC,EAA4BC,CAA4B,EAAI3B,EAAyByB,CAAY,EAClGG,EAAYC,EAAAA,gBAAgB,oBAAoB,EAChDC,EAAqBjB,EAAM,WAC7B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,SAAAyB,EAAU,GAAGC,CAAY,EAAK3B,EACpDG,EAAcL,EAAeG,CAAkB,EAC/C2B,EAAapB,EAAM,OAAO,IAAI,EAC9BqB,EAAeC,EAAAA,gBAAgBrB,EAAcmB,CAAU,EACvDG,EAAYvB,EAAM,OAAO,IAAI,EACnC,OAAuBJ,EAAAA,kBAAAA,IACrB4B,EAAAA,gBACA,CACE,YAAaZ,EACb,UAAWa,EACX,SAAU,eACV,SAA0B7B,EAAAA,kBAAAA,IAAIiB,EAA4B,CAAE,MAAOpB,EAAoB,UAAA8B,EAAW,SAA0BG,EAAAA,kBAAAA,KAC1HC,EAAAA,QACA,CACE,KAAM,cACN,GAAGhC,EACH,GAAGwB,EACH,IAAKE,EACL,gBAAiBO,EAAAA,qBAAqBT,EAAa,gBAAkBU,GAAU,OAC7EA,EAAM,eAAc,GACpBC,EAAAP,EAAU,UAAV,MAAAO,EAAmB,MAAM,CAAE,cAAe,EAAI,EAChD,CAAC,EACD,qBAAuBD,GAAUA,EAAM,eAAc,EACrD,kBAAoBA,GAAUA,EAAM,eAAc,EAClD,SAAU,CACQjC,wBAAImB,EAAW,CAAE,SAAAG,EAAU,EAC3BtB,wBAAImC,EAAoB,CAAE,WAAAX,CAAU,CAAE,CACpE,CACA,CACA,CAAS,CAAE,CACX,CACA,CACE,CACF,EACAH,EAAmB,YAAcL,EACjC,IAAIa,EAAa,mBACbO,EAAmBhC,EAAM,WAC3B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGwC,CAAU,EAAKzC,EACxCG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAIsC,EAAAA,MAAuB,CAAE,GAAGvC,EAAa,GAAGsC,EAAY,IAAKhC,EAAc,CACxG,CACF,EACA+B,EAAiB,YAAcP,EAC/B,IAAIU,EAAmB,yBACnBC,EAAyBpC,EAAM,WAAW,CAACR,EAAOS,IAAiB,CACrE,KAAM,CAAE,mBAAAR,EAAoB,GAAG4C,CAAgB,EAAK7C,EAC9CG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAI0C,EAAAA,YAA6B,CAAE,GAAG3C,EAAa,GAAG0C,EAAkB,IAAKpC,EAAc,CACpH,CAAC,EACDmC,EAAuB,YAAcD,EACrC,IAAII,EAAc,oBACdC,EAAoBxC,EAAM,WAC5B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGgD,CAAW,EAAKjD,EACzCG,EAAcL,EAAeG,CAAkB,EACrD,OAAuBG,EAAAA,kBAAAA,IAAI8C,EAAAA,MAAuB,CAAE,GAAG/C,EAAa,GAAG8C,EAAa,IAAKxC,EAAc,CACzG,CACF,EACAuC,EAAkB,YAAcD,EAChC,IAAII,EAAc,oBACdC,EAAoB5C,EAAM,WAC5B,CAACR,EAAOS,IAAiB,CACvB,KAAM,CAAE,mBAAAR,EAAoB,GAAGoD,CAAW,EAAKrD,EACzC,CAAE,UAAA+B,CAAS,EAAKT,EAA6B6B,EAAalD,CAAkB,EAC5EE,EAAcL,EAAeG,CAAkB,EAC/CqD,EAAMxB,EAAAA,gBAAgBrB,EAAcsB,CAAS,EACnD,OAAuB3B,EAAAA,kBAAAA,IAAI8C,EAAAA,MAAuB,CAAE,GAAG/C,EAAa,GAAGkD,EAAa,IAAAC,EAAK,CAC3F,CACF,EACAF,EAAkB,YAAcD,EAChC,IAAIZ,EAAqB,CAAC,CAAE,WAAAX,KAAiB,CAC3C,MAAM2B,EAAU,KAAKnC,CAAY;AAAA;AAAA,qCAEEA,CAAY,qBAAqBuB,CAAgB;AAAA;AAAA,4JAEsEvB,CAAY;AAAA;AAAA,wFAGtKZ,OAAAA,EAAM,UAAU,IAAM,OACG,SAAS,gBAC9B8B,EAAAV,EAAW,UAAX,YAAAU,EAAoB,aAAa,mBACvC,GACyB,QAAQ,KAAKiB,CAAO,CAC3C,EAAG,CAACA,EAAS3B,CAAU,CAAC,EACjB,IACT,EACI4B,EAAQzD,EAER0D,EAAU5C,EACV6C,EAAWzC,EACX0C,EAAWlC,EAEXmC,EAASR,EACTS,EAASrB,EACTsB,EAAelB","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs348.js","sources":["../src/utils/dates.ts"],"sourcesContent":["import { DateTime } from \"luxon\";\n\nexport const fromISODateToRangeFormat = (\n ISODateStartAt: string | null,\n ISODateEndAt: string | null,\n t: (key: string) => string,\n locale = \"it\",\n) => {\n if (!ISODateStartAt || !ISODateEndAt) return null;\n const startDate = DateTime.fromISO(ISODateStartAt).setLocale(locale);\n const endDate = DateTime.fromISO(ISODateEndAt).setLocale(locale);\n\n if (startDate.hasSame(endDate, \"month\")) {\n return `${t(\"from\")} ${startDate.toFormat(\"d\")} ${t(\"to\")} ${endDate.toFormat(\"d MMMM\")}`;\n }\n return `${t(\"from\")} ${startDate.toFormat(\"d MMMM\")} ${t(\"to\")} ${endDate.toFormat(\"d MMMM\")}`;\n};\n\nexport const fromISODateToDateFormatted = (\n ISODate: string | null,\n locale: string = \"it\",\n) => {\n if (!ISODate) return null;\n const date = DateTime.fromISO(ISODate).setLocale(locale);\n return date.toFormat(\"dd/MM/yyyy\");\n};\n\nexport const fromISOToFormat = (ISODate: string | null) => {\n if (!ISODate) return \" - \";\n const date = DateTime.fromISO(ISODate).setLocale(\"it\");\n return date.toFormat(\"dd/MM/yyyy\");\n};\n\nexport const formatRangeDateToISO = (startDate: string, endDate: string) => {\n const startDateTime = DateTime.fromFormat(startDate, \"yyyy-MM-dd\");\n const endDateTime = DateTime.fromFormat(endDate, \"yyyy-MM-dd\");\n\n if (!startDateTime.isValid) {\n console.error(\"Invalid start date:\", startDateTime.invalidExplanation);\n }\n\n if (!endDateTime.isValid) {\n console.error(\"Invalid end date:\", endDateTime.invalidExplanation);\n }\n\n return [\n startDateTime.startOf(\"day\").toISO() ?? \"\",\n endDateTime.endOf(\"day\").toISO() ?? \"\",\n ];\n};\n\nexport const isActiveDate = (expirationDate: string | null) => {\n if (!expirationDate) return false;\n return DateTime.fromISO(expirationDate).toMillis() > Date.now();\n};\n"],"names":["fromISODateToDateFormatted","ISODate","locale","DateTime"],"mappings":"mHAkBaA,EAA6B,CACxCC,EACAC,EAAiB,OAEZD,EACQE,EAAAA,SAAS,QAAQF,CAAO,EAAE,UAAUC,CAAM,EAC3C,SAAS,YAAY,EAFZ"}
|
package/dist/index.cjs349.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs330.js"),s=require("react"),p=()=>{const[o,t]=c.useCopyToClipboard(),[r,e]=s.useState(!1);return{isCopied:r,copiedText:o,copyToClipboard:()=>{if(typeof window>"u")return;const i=window.location.href;t(i).then(()=>{e(()=>!0),setTimeout(()=>{e(!1)},1500)}).catch(n=>{console.debug("Failed to copy!",n)})}}};exports.useCopyToClipboardCurrentPage=p;
|
|
2
2
|
//# sourceMappingURL=index.cjs349.js.map
|
package/dist/index.cjs349.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs349.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.cjs349.js","sources":["../src/hooks/useCopyToClipboardCurrentPage.ts"],"sourcesContent":["import { useCopyToClipboard as useCopyToClipboardNative } from \"usehooks-ts\";\n\nimport { useState } from \"react\";\n\nexport const useCopyToClipboardCurrentPage = () => {\n const [copiedText, copy] = useCopyToClipboardNative();\n const [isCopied, setIsCopied] = useState(false);\n\n const copyToClipboard = () => {\n if (typeof window === \"undefined\") return;\n const completeUrl = window.location.href;\n copy(completeUrl)\n .then(() => {\n setIsCopied(() => true);\n setTimeout(() => {\n setIsCopied(false);\n }, 1500);\n })\n .catch((error) => {\n console.debug(\"Failed to copy!\", error);\n });\n };\n\n return {\n isCopied,\n copiedText,\n copyToClipboard,\n };\n};\n"],"names":["useCopyToClipboardCurrentPage","copiedText","copy","useCopyToClipboardNative","isCopied","setIsCopied","useState","completeUrl","error"],"mappings":"wIAIaA,EAAgC,IAAM,CACjD,KAAM,CAACC,EAAYC,CAAI,EAAIC,qBAAA,EACrB,CAACC,EAAUC,CAAW,EAAIC,EAAAA,SAAS,EAAK,EAiB9C,MAAO,CACL,SAAAF,EACA,WAAAH,EACA,gBAlBsB,IAAM,CAC5B,GAAI,OAAO,OAAW,IAAa,OACnC,MAAMM,EAAc,OAAO,SAAS,KACpCL,EAAKK,CAAW,EACb,KAAK,IAAM,CACVF,EAAY,IAAM,EAAI,EACtB,WAAW,IAAM,CACfA,EAAY,EAAK,CACnB,EAAG,IAAI,CACT,CAAC,EACA,MAAOG,GAAU,CAChB,QAAQ,MAAM,kBAAmBA,CAAK,CACxC,CAAC,CACL,CAKE,CAEJ"}
|
package/dist/index.cjs35.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/Breadcrumb/Breadcrumb.css');const e=require("./index.cjs278.js"),i=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/navigations/Breadcrumb/Breadcrumb.css');const e=require("./index.cjs278.js"),i=require("./index.cjs314.js"),l=require("./index.cjs280.js");;/* empty css */const t=({items:s=[{label:"Home",href:"#"}]})=>e.jsxRuntimeExports.jsx("nav",{"aria-label":"Percorso di navigazione",children:e.jsxRuntimeExports.jsx("ol",{className:l.clsx("ui-breadcrumb","fs-6 md-fs-custom"),children:s.map((r,a)=>e.jsxRuntimeExports.jsxs("li",{className:"ui-breadcrumb-wrapper",children:[e.jsxRuntimeExports.jsx(i.BreadcrumbItem,{label:r.label,href:r.href,asLink:r.asLink,isClickable:r.isClickable??!0}),a<s.length-1&&e.jsxRuntimeExports.jsx("span",{className:l.clsx("ui-breadcrumb-separator","fw-bold text-slate-28"),"aria-hidden":"true",children:"/"})]},a))})});exports.Breadcrumb=t;
|
|
2
2
|
//# sourceMappingURL=index.cjs35.js.map
|
package/dist/index.cjs350.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=(t,e)=>{if(!t&&!e)return"";const i=t?t.charAt(0).toLocaleUpperCase():"",l=e?e.charAt(0).toLocaleUpperCase():"";return i+l};exports.getFullNameInitials=r;
|
|
2
2
|
//# sourceMappingURL=index.cjs350.js.map
|
package/dist/index.cjs350.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs350.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.cjs350.js","sources":["../src/utils/getFullNameInitials.ts"],"sourcesContent":["export const getFullNameInitials = (name: string, lastName: string): string => {\n if (!name && !lastName) return \"\";\n\n const nameInitial = name ? name.charAt(0).toLocaleUpperCase() : \"\";\n const lastNameInitial = lastName\n ? lastName.charAt(0).toLocaleUpperCase()\n : \"\";\n\n return nameInitial + lastNameInitial;\n};\n"],"names":["getFullNameInitials","name","lastName","nameInitial","lastNameInitial"],"mappings":"gFAAO,MAAMA,EAAsB,CAACC,EAAcC,IAA6B,CAC7E,GAAI,CAACD,GAAQ,CAACC,EAAU,MAAO,GAE/B,MAAMC,EAAcF,EAAOA,EAAK,OAAO,CAAC,EAAE,oBAAsB,GAC1DG,EAAkBF,EACpBA,EAAS,OAAO,CAAC,EAAE,oBACnB,GAEJ,OAAOC,EAAcC,CACvB"}
|
package/dist/index.cjs351.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["bg","text","color","border"],o=e=>t.map(r=>e[r]?r==="color"?`text-${e[r]}`:`${r}-${e[r]}`:"").filter(Boolean);exports.createColorClasses=o;
|
|
2
2
|
//# sourceMappingURL=index.cjs351.js.map
|
package/dist/index.cjs351.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs351.js","sources":["../src/
|
|
1
|
+
{"version":3,"file":"index.cjs351.js","sources":["../src/theme/colors.ts"],"sourcesContent":["export type ColorKeys =\n | \"primary\"\n | \"white\"\n | \"status-success\"\n | \"warning\"\n | \"error\"\n | \"muted\"\n | \"emphasis\"\n | \"slate-20\"\n | \"slate-14\"\n | \"slate-28\"\n | \"border-divider\"\n | \"transparent\"\n | \"blue-30\"\n | \"blue-15\"\n | \"disabled\"\n | \"lightblue-a01\"\n | \"lightblue-a02\"\n | \"lightblue-a03\"\n | \"secondary\"\n | \"blue-48\";\n\nexport type ColorProps = {\n bg?: ColorKeys;\n text?: ColorKeys;\n color?: ColorKeys;\n border?: ColorKeys;\n};\n\nexport type ColorPropsKeys = keyof ColorProps;\nconst colorPropsKeys: ColorPropsKeys[] = [\"bg\", \"text\", \"color\", \"border\"];\n\nexport const createColorClasses = <TProps extends ColorProps>(\n props: TProps,\n) => {\n return colorPropsKeys\n .map((key) => {\n if (!props[key]) return \"\";\n\n if (key === \"color\") return `text-${props[key]}`;\n return `${key}-${props[key]}`;\n })\n .filter(Boolean);\n};\n"],"names":["colorPropsKeys","createColorClasses","props","key"],"mappings":"gFA8BA,MAAMA,EAAmC,CAAC,KAAM,OAAQ,QAAS,QAAQ,EAE5DC,EACXC,GAEOF,EACJ,IAAKG,GACCD,EAAMC,CAAG,EAEVA,IAAQ,QAAgB,QAAQD,EAAMC,CAAG,CAAC,GACvC,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAHH,EAIzB,EACA,OAAO,OAAO"}
|
package/dist/index.cjs354.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),p=require("./index.cjs530.js"),E=require("./index.cjs529.js"),M=require("./index.cjs528.js"),v=require("./index.cjs546.js"),B=require("./index.cjs539.js"),V=require("./index.cjs547.js"),z=require("./index.cjs548.js"),K=require("./index.cjs549.js"),j=require("./index.cjs542.js"),x=require("./index.cjs543.js"),U=require("./index.cjs550.js"),Y=require("./index.cjs551.js"),Z=require("./index.cjs552.js"),J=require("./index.cjs531.js"),s=require("./index.cjs278.js");function Q(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const a=Q(H);var D="Dialog",[S,X]=M.createContextScope(D),[ee,u]=S(D),C=e=>{const{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:o,modal:c=!0}=e,l=a.useRef(null),d=a.useRef(null),[f,R]=B.useControllableState({prop:r,defaultProp:i??!1,onChange:o,caller:D});return s.jsxRuntimeExports.jsx(ee,{scope:t,triggerRef:l,contentRef:d,contentId:v.useId(),titleId:v.useId(),descriptionId:v.useId(),open:f,onOpenChange:R,onOpenToggle:a.useCallback(()=>R(L=>!L),[R]),modal:c,children:n})};C.displayName=D;var w="DialogTrigger",P=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(w,n),o=E.useComposedRefs(t,i.triggerRef);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":A(i.open),...r,ref:o,onClick:p.composeEventHandlers(e.onClick,i.onOpenToggle)})});P.displayName=w;var _="DialogPortal",[te,F]=S(_,{forceMount:void 0}),y=e=>{const{__scopeDialog:t,forceMount:n,children:r,container:i}=e,o=u(_,t);return s.jsxRuntimeExports.jsx(te,{scope:t,forceMount:n,children:a.Children.map(r,c=>s.jsxRuntimeExports.jsx(j.Presence,{present:n||o.open,children:s.jsxRuntimeExports.jsx(K.Portal,{asChild:!0,container:i,children:c})}))})};y.displayName=_;var m="DialogOverlay",O=a.forwardRef((e,t)=>{const n=F(m,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(m,e.__scopeDialog);return o.modal?s.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:s.jsxRuntimeExports.jsx(ne,{...i,ref:t})}):null});O.displayName=m;var oe=J.createSlot("DialogOverlay.RemoveScroll"),ne=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(m,n);return s.jsxRuntimeExports.jsx(Y,{as:oe,allowPinchZoom:!0,shards:[i.contentRef],children:s.jsxRuntimeExports.jsx(x.Primitive.div,{"data-state":A(i.open),...r,ref:t,style:{pointerEvents:"auto",...r.style}})})}),g="DialogContent",h=a.forwardRef((e,t)=>{const n=F(g,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,o=u(g,e.__scopeDialog);return s.jsxRuntimeExports.jsx(j.Presence,{present:r||o.open,children:o.modal?s.jsxRuntimeExports.jsx(re,{...i,ref:t}):s.jsxRuntimeExports.jsx(ie,{...i,ref:t})})});h.displayName=g;var re=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(null),i=E.useComposedRefs(t,n.contentRef,r);return a.useEffect(()=>{const o=r.current;if(o)return Z.hideOthers(o)},[]),s.jsxRuntimeExports.jsx(q,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:p.composeEventHandlers(e.onCloseAutoFocus,o=>{var c;o.preventDefault(),(c=n.triggerRef.current)==null||c.focus()}),onPointerDownOutside:p.composeEventHandlers(e.onPointerDownOutside,o=>{const c=o.detail.originalEvent,l=c.button===0&&c.ctrlKey===!0;(c.button===2||l)&&o.preventDefault()}),onFocusOutside:p.composeEventHandlers(e.onFocusOutside,o=>o.preventDefault())})}),ie=a.forwardRef((e,t)=>{const n=u(g,e.__scopeDialog),r=a.useRef(!1),i=a.useRef(!1);return s.jsxRuntimeExports.jsx(q,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:o=>{var c,l;(c=e.onCloseAutoFocus)==null||c.call(e,o),o.defaultPrevented||(r.current||(l=n.triggerRef.current)==null||l.focus(),o.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:o=>{var d,f;(d=e.onInteractOutside)==null||d.call(e,o),o.defaultPrevented||(r.current=!0,o.detail.originalEvent.type==="pointerdown"&&(i.current=!0));const c=o.target;((f=n.triggerRef.current)==null?void 0:f.contains(c))&&o.preventDefault(),o.detail.originalEvent.type==="focusin"&&i.current&&o.preventDefault()}})}),q=a.forwardRef((e,t)=>{const{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:o,...c}=e,l=u(g,n),d=a.useRef(null),f=E.useComposedRefs(t,d);return U.useFocusGuards(),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(z.FocusScope,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:o,children:s.jsxRuntimeExports.jsx(V.DismissableLayer,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":A(l.open),...c,ref:f,onDismiss:()=>l.onOpenChange(!1)})}),s.jsxRuntimeExports.jsxs(s.jsxRuntimeExports.Fragment,{children:[s.jsxRuntimeExports.jsx(ae,{titleId:l.titleId}),s.jsxRuntimeExports.jsx(le,{contentRef:d,descriptionId:l.descriptionId})]})]})}),N="DialogTitle",b=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(N,n);return s.jsxRuntimeExports.jsx(x.Primitive.h2,{id:i.titleId,...r,ref:t})});b.displayName=N;var $="DialogDescription",I=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u($,n);return s.jsxRuntimeExports.jsx(x.Primitive.p,{id:i.descriptionId,...r,ref:t})});I.displayName=$;var W="DialogClose",T=a.forwardRef((e,t)=>{const{__scopeDialog:n,...r}=e,i=u(W,n);return s.jsxRuntimeExports.jsx(x.Primitive.button,{type:"button",...r,ref:t,onClick:p.composeEventHandlers(e.onClick,()=>i.onOpenChange(!1))})});T.displayName=W;function A(e){return e?"open":"closed"}var k="DialogTitleWarning",[se,G]=M.createContext(k,{contentName:g,titleName:N,docsSlug:"dialog"}),ae=({titleId:e})=>{const t=G(k),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
2
2
|
|
|
3
3
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4
4
|
|
package/dist/index.cjs36.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/Button/Button.css');const e=require("./index.cjs278.js"),B=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require('./components/ui/Button/Button.css');const e=require("./index.cjs278.js"),B=require("./index.cjs351.js"),I=require("./index.cjs280.js");;/* empty css */const N=require("./index.cjs82.js"),l=require("./index.cjs234.js"),T=require("./index.cjs126.js"),_=require("./index.cjs116.js"),k=require("./index.cjs170.js"),v=({children:r,variant:s,variantBg:p="bg-white",bg:d="primary",textColor:j="white",border:m="white",size:h="3",className:b,disabled:o,loading:t,onClick:f,type:a="button",form:E,asLink:x,href:R,isExternal:u=!1,target:q=void 0,rel:w=void 0,icon:n=void 0,fwClassName:y="fw-bold",...i})=>{const C=s?"":B.createColorClasses({bg:d,text:j,border:m}),S={2:"fs-6 py-x8 md-py-x12 px-x24",3:"fs-7 py-x12 px-x24",4:"fs-6 py-x4 px-x8",5:"fs-7 md-fs-6 md-px-x16 py-x12"},c=I.clsx("ui-button",S[h],s&&`ui-button-${s} ${p}`,!s&&C,{"ui-button-disabled":o||t},{"ui-button-loading":t},b,y);if(x){const g=x;return e.jsxRuntimeExports.jsx(g,{target:u?"_blank":q,rel:u?"noopener noreferrer":w,href:R,className:c,...i,children:r})}const $=()=>{switch(n){case"info":return e.jsxRuntimeExports.jsx(k.Info,{height:16});case"download":return e.jsxRuntimeExports.jsx(_.Download,{height:16});case"expand":return e.jsxRuntimeExports.jsx(T.Expand,{width:18,height:18});default:return null}};return e.jsxRuntimeExports.jsxs("button",{type:a,form:E,className:c,onClick:f,disabled:o||t,...i,children:[n&&e.jsxRuntimeExports.jsxs(N.Col,{mr:"x8",children:[!t&&e.jsxRuntimeExports.jsx($,{}),t?e.jsxRuntimeExports.jsx(l.Spinner,{height:16}):null]}),r,t&&!n?e.jsxRuntimeExports.jsx(l.Spinner,{height:16}):null]})};exports.Button=v;
|
|
2
2
|
//# sourceMappingURL=index.cjs36.js.map
|
package/dist/index.cjs38.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs278.js"),n=require("./index.cjs280.js"),o=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index.cjs278.js"),n=require("./index.cjs280.js"),o=require("./index.cjs351.js"),x=({width:h=32,height:e=32,className:s,filled:v,color:t,decorative:a=!1,ariaLabel:r="Calendar"})=>{const l=o.createColorClasses({color:t});return c.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:h,height:e,fill:"currentColor",viewBox:"0 0 32 32",className:n.clsx(s,l),"aria-hidden":a,"aria-label":a?void 0:r,children:v?c.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M3.167 2.934c0-.148.119-.267.266-.267h26.134c.147 0 .266.12.266.267v.8c0 .147-.12.266-.266.266H3.433a.267.267 0 0 1-.266-.266v-.8Zm0 3.733c0-.736.596-1.333 1.333-1.333h24c.736 0 1.333.597 1.333 1.333v8H28.5V6.745h-24v21.177h10.666v1.412H4.5A1.333 1.333 0 0 1 3.167 28V6.667Zm20 22.667a6.667 6.667 0 1 0 0-13.334 6.667 6.667 0 0 0 0 13.334Zm-15.734-16a.267.267 0 0 0-.266.266v2.134c0 .147.119.266.266.266h2.134c.147 0 .266-.12.266-.266V13.6a.267.267 0 0 0-.266-.266H7.433Zm0-4a.267.267 0 0 0-.266.266v2.134c0 .147.119.266.266.266h2.134c.147 0 .266-.12.266-.266V9.6a.267.267 0 0 0-.266-.266H7.433Zm4 4a.267.267 0 0 0-.267.266v2.134c0 .147.12.266.267.266h2.133c.148 0 .267-.12.267-.266V13.6a.267.267 0 0 0-.267-.266h-2.133Zm0-4a.267.267 0 0 0-.267.266v2.134c0 .147.12.266.267.266h2.133c.148 0 .267-.12.267-.266V9.6a.267.267 0 0 0-.267-.266h-2.133Zm0 8a.267.267 0 0 0-.267.266v2.134c0 .147.12.266.267.266h2.133c.148 0 .267-.12.267-.266V17.6a.267.267 0 0 0-.267-.266h-2.133Zm4-4a.267.267 0 0 0-.267.266v2.134c0 .147.12.266.267.266h2.134c.147 0 .266-.12.266-.266V13.6a.267.267 0 0 0-.266-.266h-2.134Zm0-4a.267.267 0 0 0-.267.266v2.134c0 .147.12.266.267.266h2.134c.147 0 .266-.12.266-.266V9.6a.267.267 0 0 0-.266-.266h-2.134Zm4 0a.267.267 0 0 0-.267.266v2.134c0 .147.12.266.267.266h2.134c.147 0 .266-.12.266-.266V9.6a.267.267 0 0 0-.266-.266h-2.134Zm-12 8a.267.267 0 0 0-.266.266v2.134c0 .147.119.266.266.266h2.134c.147 0 .266-.12.266-.266V17.6a.267.267 0 0 0-.266-.266H7.433Zm0 4a.267.267 0 0 0-.266.266v2.134c0 .147.119.266.266.266h2.134c.147 0 .266-.12.266-.266V21.6a.267.267 0 0 0-.266-.266H7.433ZM21.833 20h1.334v4h2.666v1.334h-4V20Z",clipRule:"evenodd"}):c.jsxRuntimeExports.jsxs(c.jsxRuntimeExports.Fragment,{children:[c.jsxRuntimeExports.jsx("path",{d:"M3.433 2.667a.267.267 0 0 0-.266.267v.8c0 .147.12.266.266.266h26.134c.147 0 .266-.12.266-.266v-.8a.267.267 0 0 0-.266-.267zM4.5 5.334c-.736 0-1.333.597-1.333 1.333V28c0 .737.597 1.334 1.333 1.334h10.667v-1.412H4.5V6.745h24v7.922h1.333v-8c0-.736-.597-1.333-1.333-1.333z"}),c.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",d:"M23.167 29.334a6.667 6.667 0 1 0 0-13.334 6.667 6.667 0 0 0 0 13.334m0-1.334a5.333 5.333 0 1 0 0-10.666 5.333 5.333 0 0 0 0 10.666",clipRule:"evenodd"}),c.jsxRuntimeExports.jsx("path",{d:"M7.167 13.6c0-.147.12-.266.266-.266h2.134c.147 0 .266.119.266.266v2.134c0 .147-.119.266-.266.266H7.433a.267.267 0 0 1-.266-.266zM7.433 9.334a.267.267 0 0 0-.266.266v2.134c0 .147.12.266.266.266h2.134c.147 0 .266-.12.266-.266V9.6a.267.267 0 0 0-.266-.266zM11.167 13.6c0-.147.12-.266.266-.266h2.134c.147 0 .266.119.266.266v2.134c0 .147-.119.266-.266.266h-2.134a.267.267 0 0 1-.266-.266zM11.433 9.334a.267.267 0 0 0-.266.266v2.134c0 .147.12.266.266.266h2.134c.147 0 .266-.12.266-.266V9.6a.267.267 0 0 0-.266-.266zM11.167 17.6c0-.147.12-.266.266-.266h2.134c.147 0 .266.119.266.266v2.134c0 .147-.119.266-.266.266h-2.134a.267.267 0 0 1-.266-.266zM15.433 13.334a.267.267 0 0 0-.266.266v2.134c0 .147.12.266.266.266h2.134c.147 0 .266-.12.266-.266V13.6a.267.267 0 0 0-.266-.266zM15.167 9.6c0-.147.12-.266.266-.266h2.134c.147 0 .266.119.266.266v2.134c0 .147-.119.266-.266.266h-2.134a.267.267 0 0 1-.266-.266zM19.433 9.334a.267.267 0 0 0-.266.266v2.134c0 .147.12.266.266.266h2.134c.147 0 .266-.12.266-.266V9.6a.267.267 0 0 0-.266-.266zM7.167 17.6c0-.147.12-.266.266-.266h2.134c.147 0 .266.119.266.266v2.134c0 .147-.119.266-.266.266H7.433a.267.267 0 0 1-.266-.266zM7.433 21.334a.267.267 0 0 0-.266.266v2.134c0 .147.12.266.266.266h2.134c.147 0 .266-.12.266-.266V21.6a.267.267 0 0 0-.266-.266zM21.833 20h1.333v5.333h-1.333z"}),c.jsxRuntimeExports.jsx("path",{d:"M25.833 24v1.333h-4V24z"})]})})};exports.Calendar=x;
|
|
2
2
|
//# sourceMappingURL=index.cjs38.js.map
|
package/dist/index.cjs380.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),O=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const H=require("react"),O=require("./index.cjs529.js"),L=require("./index.cjs528.js"),B=require("./index.cjs530.js"),z=require("./index.cjs539.js"),G=require("./index.cjs540.js"),K=require("./index.cjs541.js"),U=require("./index.cjs542.js"),y=require("./index.cjs543.js"),l=require("./index.cjs278.js");function X(e){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(r,n,s.get?s:{enumerable:!0,get:()=>e[n]})}}return r.default=e,Object.freeze(r)}const a=X(H);var E="Checkbox",[J]=L.createContextScope(E),[Q,I]=J(E);function S(e){const{__scopeCheckbox:r,checked:n,children:s,defaultChecked:c,disabled:t,form:b,name:f,onCheckedChange:u,required:h,value:m="on",internal_do_not_use_render:d}=e,[p,v]=z.useControllableState({prop:n,defaultProp:c??!1,onChange:u,caller:E}),[C,k]=a.useState(null),[R,o]=a.useState(null),i=a.useRef(!1),j=C?!!b||!!C.closest("form"):!0,P={checked:p,disabled:t,setChecked:v,control:C,setControl:k,name:f,form:b,value:m,hasConsumerStoppedPropagationRef:i,required:h,defaultChecked:x(c)?!1:c,isFormControl:j,bubbleInput:R,setBubbleInput:o};return l.jsxRuntimeExports.jsx(Q,{scope:r,...P,children:V(d)?d(P):s})}var T="CheckboxTrigger",_=a.forwardRef(({__scopeCheckbox:e,onKeyDown:r,onClick:n,...s},c)=>{const{control:t,value:b,disabled:f,checked:u,required:h,setControl:m,setChecked:d,hasConsumerStoppedPropagationRef:p,isFormControl:v,bubbleInput:C}=I(T,e),k=O.useComposedRefs(c,m),R=a.useRef(u);return a.useEffect(()=>{const o=t==null?void 0:t.form;if(o){const i=()=>d(R.current);return o.addEventListener("reset",i),()=>o.removeEventListener("reset",i)}},[t,d]),l.jsxRuntimeExports.jsx(y.Primitive.button,{type:"button",role:"checkbox","aria-checked":x(u)?"mixed":u,"aria-required":h,"data-state":D(u),"data-disabled":f?"":void 0,disabled:f,value:b,...s,ref:k,onKeyDown:B.composeEventHandlers(r,o=>{o.key==="Enter"&&o.preventDefault()}),onClick:B.composeEventHandlers(n,o=>{d(i=>x(i)?!0:!i),C&&v&&(p.current=o.isPropagationStopped(),p.current||o.stopPropagation())})})});_.displayName=T;var q=a.forwardRef((e,r)=>{const{__scopeCheckbox:n,name:s,checked:c,defaultChecked:t,required:b,disabled:f,value:u,onCheckedChange:h,form:m,...d}=e;return l.jsxRuntimeExports.jsx(S,{__scopeCheckbox:n,checked:c,defaultChecked:t,disabled:f,required:b,onCheckedChange:h,name:s,form:m,value:u,internal_do_not_use_render:({isFormControl:p})=>l.jsxRuntimeExports.jsxs(l.jsxRuntimeExports.Fragment,{children:[l.jsxRuntimeExports.jsx(_,{...d,ref:r,__scopeCheckbox:n}),p&&l.jsxRuntimeExports.jsx(g,{__scopeCheckbox:n})]})})});q.displayName=E;var M="CheckboxIndicator",N=a.forwardRef((e,r)=>{const{__scopeCheckbox:n,forceMount:s,...c}=e,t=I(M,n);return l.jsxRuntimeExports.jsx(U.Presence,{present:s||x(t.checked)||t.checked===!0,children:l.jsxRuntimeExports.jsx(y.Primitive.span,{"data-state":D(t.checked),"data-disabled":t.disabled?"":void 0,...c,ref:r,style:{pointerEvents:"none",...e.style}})})});N.displayName=M;var $="CheckboxBubbleInput",g=a.forwardRef(({__scopeCheckbox:e,...r},n)=>{const{control:s,hasConsumerStoppedPropagationRef:c,checked:t,defaultChecked:b,required:f,disabled:u,name:h,value:m,form:d,bubbleInput:p,setBubbleInput:v}=I($,e),C=O.useComposedRefs(n,v),k=G.usePrevious(t),R=K.useSize(s);a.useEffect(()=>{const i=p;if(!i)return;const j=window.HTMLInputElement.prototype,w=Object.getOwnPropertyDescriptor(j,"checked").set,A=!c.current;if(k!==t&&w){const F=new Event("click",{bubbles:A});i.indeterminate=x(t),w.call(i,x(t)?!1:t),i.dispatchEvent(F)}},[p,k,t,c]);const o=a.useRef(x(t)?!1:t);return l.jsxRuntimeExports.jsx(y.Primitive.input,{type:"checkbox","aria-hidden":!0,defaultChecked:b??o.current,required:f,disabled:u,name:h,value:m,form:d,...r,tabIndex:-1,ref:C,style:{...r.style,...R,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});g.displayName=$;function V(e){return typeof e=="function"}function x(e){return e==="indeterminate"}function D(e){return x(e)?"indeterminate":e?"checked":"unchecked"}exports.Checkbox=q;exports.CheckboxIndicator=N;exports.Indicator=N;exports.Root=q;exports.unstable_BubbleInput=g;exports.unstable_CheckboxBubbleInput=g;exports.unstable_CheckboxProvider=S;exports.unstable_CheckboxTrigger=_;exports.unstable_Provider=S;exports.unstable_Trigger=_;
|
|
2
2
|
//# sourceMappingURL=index.cjs380.js.map
|
package/dist/index.cjs39.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs278.js"),u=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index.cjs278.js"),u=require("./index.cjs351.js"),c=require("./index.cjs280.js"),C=({width:s=32,height:r=32,color:n,className:t,onClick:o,decorative:e=!1,ariaLabel:i="Calendar outline"})=>{const a=u.createColorClasses({color:n});return l.jsxRuntimeExports.jsx("svg",{width:s,height:r,viewBox:"0 0 20 17",fill:"none","aria-hidden":e,"aria-label":e?void 0:i,xmlns:"http://www.w3.org/2000/svg",className:c.clsx(t,a),onClick:o,children:l.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.5 1H15V0H14V1H6V0H5V1H1.5C0.671573 1 0 1.67157 0 2.5V15.5C0 16.3284 0.671573 17 1.5 17H18.5C19.3284 17 20 16.3284 20 15.5V2.5C20 1.67157 19.3284 1 18.5 1ZM19 15.5C19 15.7761 18.7761 16 18.5 16H1.5C1.22386 16 1 15.7761 1 15.5V2.5C1 2.22386 1.22386 2 1.5 2H5V3H6V2H14V3H15V2H18.5C18.7761 2 19 2.22386 19 2.5V15.5ZM18 5H2V6H18V5Z",fill:"currentColor"})})};exports.CalendarOutline=C;
|
|
2
2
|
//# sourceMappingURL=index.cjs39.js.map
|
package/dist/index.cjs4.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs278.js"),c=require("./index.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index.cjs278.js"),c=require("./index.cjs351.js"),H=require("./index.cjs280.js"),a=({width:l=24,height:r=24,className:o,color:t,decorative:e=!1,ariaLabel:i="ASL"})=>{const n=c.createColorClasses({color:t});return s.jsxRuntimeExports.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:l,height:r,fill:"currentColor",viewBox:"0 0 24 24",className:H.clsx(o,n),"aria-hidden":e,"aria-label":e?void 0:i,children:s.jsxRuntimeExports.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",fill:"#0066CC",d:"M2 9L12 2L22 9H2ZM3 20V19H21V20H3ZM3 21V22H21V21H3ZM12 3.2L18.8 8H5.2L12 3.2ZM6 18V10H5V18H6ZM10 10V18H9V10H10ZM15 18V10H14V18H15ZM19 10V18H18V10H19Z"})})};exports.ASL=a;
|
|
2
2
|
//# sourceMappingURL=index.cjs4.js.map
|
package/dist/index.cjs400.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs400.js","sources":["../src/theme/typography.ts"],"sourcesContent":["export type TypographyKeys =\n | \"0\"\n | \"1\"\n | \"2\"\n | \"3\"\n | \"4\"\n | \"5\"\n | \"6\"\n | \"7\"\n | \"8\"\n | \"custom\";\n\nexport type
|
|
1
|
+
{"version":3,"file":"index.cjs400.js","sources":["../src/theme/typography.ts"],"sourcesContent":["export type TypographyKeys =\n | \"0\"\n | \"1\"\n | \"2\"\n | \"3\"\n | \"4\"\n | \"5\"\n | \"6\"\n | \"7\"\n | \"8\"\n | \"custom\";\n\nexport type FontWeightKeys = \"normal\" | \"regular\" | \"semibold\" | \"bold\";\n\nexport type TypographyProps = {\n fs?: TypographyKeys;\n fw?: FontWeightKeys;\n};\n\nexport type TypographyPropsKeys = keyof TypographyProps;\nconst typographyPropsKeys: TypographyPropsKeys[] = [\"fs\", \"fw\"];\n\nexport const createTypographyClasses = <TProps extends TypographyProps>(\n props: TProps,\n) => {\n return typographyPropsKeys\n .map((key) => (props[key] ? `${key}-${props[key]}` : \"\"))\n .filter(Boolean);\n};\n"],"names":["typographyPropsKeys","createTypographyClasses","props","key"],"mappings":"gFAoBA,MAAMA,EAA6C,CAAC,KAAM,IAAI,EAEjDC,EACXC,GAEOF,EACJ,IAAKG,GAASD,EAAMC,CAAG,EAAI,GAAGA,CAAG,IAAID,EAAMC,CAAG,CAAC,GAAK,EAAG,EACvD,OAAO,OAAO"}
|