@performant-software/core-data 2.2.7 → 2.2.8-beta.1
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.cjs108.js +1 -1
- package/dist/index.cjs116.js +1 -1
- package/dist/index.cjs118.js +1 -1
- package/dist/index.cjs119.js +1 -1
- package/dist/index.cjs120.js +1 -1
- package/dist/index.cjs121.js +1 -1
- package/dist/index.cjs123.js +1 -1
- package/dist/index.cjs129.js +1 -1
- package/dist/index.cjs13.js +1 -1
- package/dist/index.cjs13.js.map +1 -1
- package/dist/index.cjs132.js +1 -1
- package/dist/index.cjs135.js +1 -1
- package/dist/index.cjs137.js +1 -1
- package/dist/index.cjs138.js +1 -1
- package/dist/index.cjs143.js +1 -1
- package/dist/index.cjs144.js +1 -1
- package/dist/index.cjs144.js.map +1 -1
- package/dist/index.cjs145.js +1 -1
- package/dist/index.cjs145.js.map +1 -1
- package/dist/index.cjs146.js +1 -1
- package/dist/index.cjs146.js.map +1 -1
- package/dist/index.cjs147.js +1 -1
- package/dist/index.cjs147.js.map +1 -1
- package/dist/index.cjs148.js +1 -1
- package/dist/index.cjs148.js.map +1 -1
- package/dist/index.cjs149.js +1 -1
- package/dist/index.cjs149.js.map +1 -1
- package/dist/index.cjs150.js +1 -1
- package/dist/index.cjs150.js.map +1 -1
- package/dist/index.cjs151.js +1 -1
- package/dist/index.cjs151.js.map +1 -1
- package/dist/index.cjs152.js +1 -1
- package/dist/index.cjs152.js.map +1 -1
- package/dist/index.cjs153.js +1 -1
- package/dist/index.cjs153.js.map +1 -1
- package/dist/index.cjs155.js +1 -1
- package/dist/index.cjs159.js +1 -1
- package/dist/index.cjs160.js +1 -1
- package/dist/index.cjs177.js +1 -1
- package/dist/index.cjs283.js +1 -1
- package/dist/index.cjs284.js +1 -1
- package/dist/index.cjs285.js +1 -1
- package/dist/index.cjs286.js +1 -1
- package/dist/index.cjs287.js +1 -1
- package/dist/index.cjs288.js +1 -1
- package/dist/index.cjs289.js +1 -1
- package/dist/index.cjs290.js +1 -1
- package/dist/index.cjs291.js +1 -1
- package/dist/index.cjs292.js +1 -1
- package/dist/index.cjs296.js +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs301.js +1 -1
- package/dist/index.cjs301.js.map +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs302.js.map +1 -1
- package/dist/index.cjs303.js +1 -1
- package/dist/index.cjs303.js.map +1 -1
- package/dist/index.cjs304.js +1 -1
- package/dist/index.cjs304.js.map +1 -1
- package/dist/index.cjs305.js +1 -1
- package/dist/index.cjs305.js.map +1 -1
- package/dist/index.cjs306.js +1 -1
- package/dist/index.cjs306.js.map +1 -1
- package/dist/index.cjs311.js +1 -1
- package/dist/index.cjs312.js +6 -1
- package/dist/index.cjs312.js.map +1 -1
- package/dist/index.cjs313.js +1 -6
- package/dist/index.cjs313.js.map +1 -1
- package/dist/index.cjs314.js +1 -1
- package/dist/index.cjs314.js.map +1 -1
- package/dist/index.cjs315.js +1 -1
- package/dist/index.cjs315.js.map +1 -1
- package/dist/index.cjs316.js +1 -1
- package/dist/index.cjs316.js.map +1 -1
- package/dist/index.cjs317.js +1 -1
- package/dist/index.cjs317.js.map +1 -1
- package/dist/index.cjs318.js +1 -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.cjs320.js +1 -1
- package/dist/index.cjs320.js.map +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs321.js.map +1 -1
- package/dist/index.cjs322.js +1 -1
- package/dist/index.cjs322.js.map +1 -1
- package/dist/index.cjs323.js +1 -1
- package/dist/index.cjs323.js.map +1 -1
- package/dist/index.cjs324.js +2 -1
- package/dist/index.cjs324.js.map +1 -1
- package/dist/index.cjs325.js +4 -2
- package/dist/index.cjs325.js.map +1 -1
- package/dist/index.cjs326.js +2 -4
- package/dist/index.cjs326.js.map +1 -1
- package/dist/index.cjs327.js +1 -2
- package/dist/index.cjs327.js.map +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs328.js.map +1 -1
- package/dist/index.cjs329.js +2 -1
- package/dist/index.cjs329.js.map +1 -1
- package/dist/index.cjs330.js +1 -2
- package/dist/index.cjs330.js.map +1 -1
- package/dist/index.cjs333.js +1 -1
- package/dist/index.cjs333.js.map +1 -1
- package/dist/index.cjs334.js +1 -1
- package/dist/index.cjs334.js.map +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs335.js.map +1 -1
- package/dist/index.cjs336.js +1 -4
- package/dist/index.cjs336.js.map +1 -1
- package/dist/index.cjs337.js +1 -1
- package/dist/index.cjs337.js.map +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs341.js +1 -1
- package/dist/index.cjs342.js +1 -1
- package/dist/index.cjs360.js +1 -1
- package/dist/index.cjs365.js +1 -1
- package/dist/index.cjs365.js.map +1 -1
- package/dist/index.cjs366.js +1 -1
- package/dist/index.cjs366.js.map +1 -1
- package/dist/index.cjs367.js +1 -1
- package/dist/index.cjs367.js.map +1 -1
- package/dist/index.cjs368.js +4 -1
- package/dist/index.cjs368.js.map +1 -1
- package/dist/index.cjs369.js +1 -1
- package/dist/index.cjs369.js.map +1 -1
- package/dist/index.cjs370.js +1 -1
- package/dist/index.cjs370.js.map +1 -1
- package/dist/index.cjs371.js +1 -1
- package/dist/index.cjs371.js.map +1 -1
- package/dist/index.cjs372.js +1 -1
- package/dist/index.cjs373.js +1 -1
- package/dist/index.cjs373.js.map +1 -1
- package/dist/index.cjs374.js +1 -1
- package/dist/index.cjs374.js.map +1 -1
- package/dist/index.cjs375.js +1 -1
- package/dist/index.cjs375.js.map +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs377.js.map +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs378.js.map +1 -1
- package/dist/index.cjs379.js +1 -1
- package/dist/index.cjs379.js.map +1 -1
- package/dist/index.cjs380.js +1 -1
- package/dist/index.cjs380.js.map +1 -1
- package/dist/index.cjs381.js +1 -1
- package/dist/index.cjs381.js.map +1 -1
- package/dist/index.cjs382.js +1 -1
- package/dist/index.cjs382.js.map +1 -1
- package/dist/index.cjs384.js +1 -1
- package/dist/index.cjs384.js.map +1 -1
- package/dist/index.cjs385.js +1 -1
- package/dist/index.cjs385.js.map +1 -1
- package/dist/index.cjs386.js +1 -1
- package/dist/index.cjs386.js.map +1 -1
- package/dist/index.cjs387.js +1 -1
- package/dist/index.cjs387.js.map +1 -1
- package/dist/index.cjs388.js +1 -1
- package/dist/index.cjs388.js.map +1 -1
- package/dist/index.cjs389.js +1 -1
- package/dist/index.cjs389.js.map +1 -1
- package/dist/index.cjs390.js +1 -1
- package/dist/index.cjs391.js +1 -1
- package/dist/index.cjs391.js.map +1 -1
- package/dist/index.cjs392.js +5 -1
- package/dist/index.cjs392.js.map +1 -1
- package/dist/index.cjs393.js +1 -2
- package/dist/index.cjs393.js.map +1 -1
- package/dist/index.cjs394.js +1 -1
- package/dist/index.cjs394.js.map +1 -1
- package/dist/index.cjs395.js +1 -1
- package/dist/index.cjs395.js.map +1 -1
- package/dist/index.cjs396.js +12 -1
- package/dist/index.cjs396.js.map +1 -1
- package/dist/index.cjs397.js +1 -1
- package/dist/index.cjs397.js.map +1 -1
- package/dist/index.cjs398.js +1 -1
- package/dist/index.cjs398.js.map +1 -1
- package/dist/index.cjs399.js +1 -1
- package/dist/index.cjs399.js.map +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs400.js.map +1 -1
- package/dist/index.cjs402.js +1 -1
- package/dist/index.cjs402.js.map +1 -1
- package/dist/index.cjs404.js +2 -1
- package/dist/index.cjs404.js.map +1 -1
- package/dist/index.cjs405.js +1 -1
- package/dist/index.cjs405.js.map +1 -1
- package/dist/index.cjs406.js +1 -1
- package/dist/index.cjs406.js.map +1 -1
- package/dist/index.cjs407.js +1 -1
- package/dist/index.cjs407.js.map +1 -1
- package/dist/index.cjs408.js +1 -1
- package/dist/index.cjs408.js.map +1 -1
- package/dist/index.cjs409.js +1 -1
- package/dist/index.cjs409.js.map +1 -1
- package/dist/index.cjs410.js +1 -5
- package/dist/index.cjs410.js.map +1 -1
- package/dist/index.cjs411.js +1 -1
- package/dist/index.cjs411.js.map +1 -1
- package/dist/index.cjs413.js +1 -1
- package/dist/index.cjs413.js.map +1 -1
- package/dist/index.cjs414.js +1 -12
- package/dist/index.cjs414.js.map +1 -1
- package/dist/index.cjs415.js +1 -1
- package/dist/index.cjs415.js.map +1 -1
- package/dist/index.cjs416.js +1 -1
- package/dist/index.cjs416.js.map +1 -1
- package/dist/index.cjs417.js +1 -1
- package/dist/index.cjs417.js.map +1 -1
- package/dist/index.cjs418.js +1 -38
- package/dist/index.cjs418.js.map +1 -1
- package/dist/index.cjs419.js +1 -1
- package/dist/index.cjs419.js.map +1 -1
- package/dist/index.cjs420.js +1 -1
- package/dist/index.cjs420.js.map +1 -1
- package/dist/index.cjs421.js +1 -1
- package/dist/index.cjs421.js.map +1 -1
- package/dist/index.cjs422.js +1 -1
- package/dist/index.cjs422.js.map +1 -1
- package/dist/index.cjs423.js +1 -1
- package/dist/index.cjs423.js.map +1 -1
- package/dist/index.cjs425.js +1 -1
- package/dist/index.cjs425.js.map +1 -1
- package/dist/index.cjs426.js +1 -1
- package/dist/index.cjs426.js.map +1 -1
- package/dist/index.cjs427.js +1 -1
- package/dist/index.cjs427.js.map +1 -1
- package/dist/index.cjs428.js +1 -1
- package/dist/index.cjs428.js.map +1 -1
- package/dist/index.cjs429.js +1 -1
- package/dist/index.cjs429.js.map +1 -1
- package/dist/index.cjs430.js +1 -1
- package/dist/index.cjs430.js.map +1 -1
- package/dist/index.cjs431.js +1 -1
- package/dist/index.cjs431.js.map +1 -1
- package/dist/index.cjs432.js +1 -1
- package/dist/index.cjs432.js.map +1 -1
- package/dist/index.cjs433.js +1 -1
- package/dist/index.cjs433.js.map +1 -1
- package/dist/index.cjs434.js +1 -1
- package/dist/index.cjs434.js.map +1 -1
- package/dist/index.cjs435.js +1 -1
- package/dist/index.cjs435.js.map +1 -1
- package/dist/index.cjs436.js +1 -1
- package/dist/index.cjs436.js.map +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs437.js.map +1 -1
- package/dist/index.cjs438.js +1 -1
- package/dist/index.cjs438.js.map +1 -1
- package/dist/index.cjs439.js +1 -1
- package/dist/index.cjs439.js.map +1 -1
- package/dist/index.cjs440.js +1 -1
- package/dist/index.cjs440.js.map +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs441.js.map +1 -1
- package/dist/index.cjs442.js +1 -1
- package/dist/index.cjs442.js.map +1 -1
- package/dist/index.cjs443.js +1 -1
- package/dist/index.cjs443.js.map +1 -1
- package/dist/index.cjs444.js +1 -1
- package/dist/index.cjs444.js.map +1 -1
- package/dist/index.cjs445.js +1 -1
- package/dist/index.cjs445.js.map +1 -1
- package/dist/index.cjs446.js +1 -1
- package/dist/index.cjs446.js.map +1 -1
- package/dist/index.cjs447.js +1 -1
- package/dist/index.cjs447.js.map +1 -1
- package/dist/index.cjs448.js +1 -1
- package/dist/index.cjs448.js.map +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs449.js.map +1 -1
- package/dist/index.cjs450.js +1 -1
- package/dist/index.cjs450.js.map +1 -1
- package/dist/index.cjs451.js +1 -1
- package/dist/index.cjs451.js.map +1 -1
- package/dist/index.cjs452.js +1 -1
- package/dist/index.cjs452.js.map +1 -1
- package/dist/index.cjs453.js +1 -1
- package/dist/index.cjs453.js.map +1 -1
- package/dist/index.cjs454.js +1 -1
- package/dist/index.cjs454.js.map +1 -1
- package/dist/index.cjs455.js +1 -1
- package/dist/index.cjs455.js.map +1 -1
- package/dist/index.cjs456.js +1 -1
- package/dist/index.cjs456.js.map +1 -1
- package/dist/index.cjs457.js +38 -1
- package/dist/index.cjs457.js.map +1 -1
- package/dist/index.cjs458.js +1 -1
- package/dist/index.cjs458.js.map +1 -1
- package/dist/index.cjs459.js +1 -1
- package/dist/index.cjs459.js.map +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs460.js.map +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs461.js.map +1 -1
- package/dist/index.cjs462.js +1 -1
- package/dist/index.cjs462.js.map +1 -1
- package/dist/index.cjs463.js +1 -2
- package/dist/index.cjs463.js.map +1 -1
- package/dist/index.cjs464.js +1 -1
- package/dist/index.cjs464.js.map +1 -1
- package/dist/index.cjs465.js +1 -1
- package/dist/index.cjs465.js.map +1 -1
- package/dist/index.cjs466.js +1 -1
- package/dist/index.cjs466.js.map +1 -1
- package/dist/index.cjs467.js +2 -1
- package/dist/index.cjs467.js.map +1 -1
- package/dist/index.cjs468.js +1 -1
- package/dist/index.cjs468.js.map +1 -1
- package/dist/index.cjs469.js +1 -2
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs471.js +1 -1
- package/dist/index.cjs471.js.map +1 -1
- package/dist/index.cjs472.js +1 -1
- package/dist/index.cjs472.js.map +1 -1
- package/dist/index.cjs473.js +2 -1
- package/dist/index.cjs473.js.map +1 -1
- package/dist/index.cjs474.js +1 -1
- package/dist/index.cjs474.js.map +1 -1
- package/dist/index.cjs475.js +1 -1
- package/dist/index.cjs475.js.map +1 -1
- package/dist/index.cjs476.js +1 -1
- package/dist/index.cjs476.js.map +1 -1
- package/dist/index.cjs477.js +1 -1
- package/dist/index.cjs477.js.map +1 -1
- package/dist/index.cjs479.js +1 -1
- package/dist/index.cjs479.js.map +1 -1
- package/dist/index.cjs480.js +1 -1
- package/dist/index.cjs480.js.map +1 -1
- package/dist/index.cjs481.js +1 -1
- package/dist/index.cjs481.js.map +1 -1
- package/dist/index.cjs482.js +1 -1
- package/dist/index.cjs482.js.map +1 -1
- package/dist/index.cjs483.js +1 -1
- package/dist/index.cjs484.js +1 -1
- package/dist/index.cjs484.js.map +1 -1
- package/dist/index.cjs485.js +1 -1
- package/dist/index.cjs485.js.map +1 -1
- package/dist/index.cjs486.js +1 -1
- package/dist/index.cjs486.js.map +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.cjs488.js.map +1 -1
- package/dist/index.cjs489.js +1 -1
- package/dist/index.cjs489.js.map +1 -1
- package/dist/index.cjs491.js +1 -1
- package/dist/index.cjs496.js +1 -1
- package/dist/index.cjs498.js +1 -1
- package/dist/index.cjs500.js +1 -1
- package/dist/index.cjs500.js.map +1 -1
- package/dist/index.cjs501.js +1 -1
- package/dist/index.cjs501.js.map +1 -1
- package/dist/index.cjs502.js +1 -1
- package/dist/index.cjs502.js.map +1 -1
- package/dist/index.cjs503.js +1 -1
- package/dist/index.cjs503.js.map +1 -1
- package/dist/index.cjs504.js +1 -1
- package/dist/index.cjs504.js.map +1 -1
- package/dist/index.cjs506.js +7 -1
- package/dist/index.cjs506.js.map +1 -1
- package/dist/index.cjs507.js +1 -1
- package/dist/index.cjs507.js.map +1 -1
- package/dist/index.cjs508.js +1 -1
- package/dist/index.cjs508.js.map +1 -1
- package/dist/index.cjs509.js +1 -7
- package/dist/index.cjs509.js.map +1 -1
- package/dist/index.cjs510.js +1 -1
- package/dist/index.cjs510.js.map +1 -1
- package/dist/index.cjs511.js +1 -1
- package/dist/index.cjs511.js.map +1 -1
- package/dist/index.cjs512.js +1 -1
- package/dist/index.cjs512.js.map +1 -1
- package/dist/index.cjs513.js +1 -1
- package/dist/index.cjs513.js.map +1 -1
- package/dist/index.cjs514.js +1 -1
- package/dist/index.cjs514.js.map +1 -1
- package/dist/index.cjs521.js +1 -1
- package/dist/index.cjs521.js.map +1 -1
- package/dist/index.cjs525.js +1 -1
- package/dist/index.cjs525.js.map +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.cjs530.js +1 -1
- package/dist/index.cjs530.js.map +1 -1
- package/dist/index.cjs531.js +1 -1
- package/dist/index.cjs531.js.map +1 -1
- package/dist/index.cjs535.js +1 -1
- package/dist/index.cjs535.js.map +1 -1
- package/dist/index.cjs536.js +1 -1
- package/dist/index.cjs536.js.map +1 -1
- package/dist/index.cjs537.js +1 -1
- package/dist/index.cjs537.js.map +1 -1
- package/dist/index.cjs538.js +1 -1
- package/dist/index.cjs538.js.map +1 -1
- 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.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 +1 -1
- package/dist/index.cjs551.js +1 -1
- package/dist/index.cjs551.js.map +1 -1
- 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.cjs581.js +1 -1
- package/dist/index.cjs586.js +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 -2
- package/dist/index.cjs590.js.map +1 -1
- package/dist/index.cjs591.js +2 -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.cjs94.js +1 -1
- package/dist/index.cjs97.js +1 -1
- package/dist/index.es108.js +4 -4
- package/dist/index.es116.js +1 -1
- package/dist/index.es118.js +5 -5
- package/dist/index.es119.js +1 -1
- package/dist/index.es120.js +2 -2
- package/dist/index.es121.js +1 -1
- package/dist/index.es123.js +1 -1
- package/dist/index.es129.js +1 -1
- package/dist/index.es13.js +23 -16
- package/dist/index.es13.js.map +1 -1
- package/dist/index.es132.js +2 -2
- package/dist/index.es135.js +2 -2
- package/dist/index.es137.js +1 -1
- package/dist/index.es138.js +5 -5
- package/dist/index.es143.js +1 -1
- package/dist/index.es144.js +5 -13
- package/dist/index.es144.js.map +1 -1
- package/dist/index.es145.js +4 -57
- package/dist/index.es145.js.map +1 -1
- package/dist/index.es146.js +24 -6
- package/dist/index.es146.js.map +1 -1
- package/dist/index.es147.js +11 -214
- package/dist/index.es147.js.map +1 -1
- package/dist/index.es148.js +56 -195
- package/dist/index.es148.js.map +1 -1
- package/dist/index.es149.js +7 -4
- package/dist/index.es149.js.map +1 -1
- package/dist/index.es150.js +214 -12
- package/dist/index.es150.js.map +1 -1
- package/dist/index.es151.js +196 -5
- package/dist/index.es151.js.map +1 -1
- package/dist/index.es152.js +4 -5
- package/dist/index.es152.js.map +1 -1
- package/dist/index.es153.js +14 -24
- package/dist/index.es153.js.map +1 -1
- package/dist/index.es155.js +6 -6
- package/dist/index.es159.js +1 -1
- package/dist/index.es160.js +18 -18
- package/dist/index.es177.js +1 -1
- package/dist/index.es283.js +1 -1
- package/dist/index.es284.js +1 -1
- package/dist/index.es285.js +1 -1
- package/dist/index.es286.js +1 -1
- package/dist/index.es287.js +2 -2
- package/dist/index.es288.js +1 -1
- package/dist/index.es289.js +4 -4
- package/dist/index.es290.js +2 -2
- package/dist/index.es291.js +6 -6
- package/dist/index.es292.js +2 -2
- package/dist/index.es296.js +3 -3
- package/dist/index.es297.js +3 -3
- package/dist/index.es301.js +261 -6
- package/dist/index.es301.js.map +1 -1
- package/dist/index.es302.js +83 -261
- package/dist/index.es302.js.map +1 -1
- package/dist/index.es303.js +331 -77
- package/dist/index.es303.js.map +1 -1
- package/dist/index.es304.js +12 -339
- package/dist/index.es304.js.map +1 -1
- package/dist/index.es305.js +47 -12
- package/dist/index.es305.js.map +1 -1
- package/dist/index.es306.js +4 -47
- package/dist/index.es306.js.map +1 -1
- package/dist/index.es310.js +2 -2
- package/dist/index.es311.js +2 -2
- package/dist/index.es312.js +43 -2
- package/dist/index.es312.js.map +1 -1
- package/dist/index.es313.js +10 -40
- package/dist/index.es313.js.map +1 -1
- package/dist/index.es314.js +346 -10
- package/dist/index.es314.js.map +1 -1
- package/dist/index.es315.js +209 -334
- package/dist/index.es315.js.map +1 -1
- package/dist/index.es316.js +37 -222
- package/dist/index.es316.js.map +1 -1
- package/dist/index.es317.js +7 -38
- package/dist/index.es317.js.map +1 -1
- package/dist/index.es318.js +40 -7
- package/dist/index.es318.js.map +1 -1
- package/dist/index.es319.js +16 -38
- package/dist/index.es319.js.map +1 -1
- package/dist/index.es320.js +17 -16
- package/dist/index.es320.js.map +1 -1
- package/dist/index.es321.js +8 -18
- package/dist/index.es321.js.map +1 -1
- package/dist/index.es322.js +15 -8
- package/dist/index.es322.js.map +1 -1
- package/dist/index.es323.js +20 -13
- package/dist/index.es323.js.map +1 -1
- package/dist/index.es324.js +127 -18
- package/dist/index.es324.js.map +1 -1
- package/dist/index.es325.js +18 -131
- package/dist/index.es325.js.map +1 -1
- package/dist/index.es326.js +18 -19
- package/dist/index.es326.js.map +1 -1
- package/dist/index.es327.js +18 -18
- package/dist/index.es327.js.map +1 -1
- package/dist/index.es328.js +30 -14
- package/dist/index.es328.js.map +1 -1
- package/dist/index.es329.js +212 -29
- package/dist/index.es329.js.map +1 -1
- package/dist/index.es330.js +5 -217
- package/dist/index.es330.js.map +1 -1
- package/dist/index.es333.js +11 -5
- package/dist/index.es333.js.map +1 -1
- package/dist/index.es334.js +10 -3
- package/dist/index.es334.js.map +1 -1
- package/dist/index.es335.js +4 -23
- package/dist/index.es335.js.map +1 -1
- package/dist/index.es336.js +12 -107
- package/dist/index.es336.js.map +1 -1
- package/dist/index.es337.js +9 -15
- package/dist/index.es337.js.map +1 -1
- package/dist/index.es340.js +1 -1
- package/dist/index.es341.js +1 -1
- package/dist/index.es342.js +1 -1
- package/dist/index.es360.js +1 -1
- package/dist/index.es365.js +5 -2
- package/dist/index.es365.js.map +1 -1
- package/dist/index.es366.js +3 -322
- package/dist/index.es366.js.map +1 -1
- package/dist/index.es367.js +24 -2
- package/dist/index.es367.js.map +1 -1
- package/dist/index.es368.js +107 -2
- package/dist/index.es368.js.map +1 -1
- package/dist/index.es369.js +16 -2
- package/dist/index.es369.js.map +1 -1
- package/dist/index.es370.js +2 -15
- package/dist/index.es370.js.map +1 -1
- package/dist/index.es371.js +322 -2
- package/dist/index.es371.js.map +1 -1
- package/dist/index.es372.js +2 -2
- package/dist/index.es373.js +2 -48
- package/dist/index.es373.js.map +1 -1
- package/dist/index.es374.js +2 -38
- package/dist/index.es374.js.map +1 -1
- package/dist/index.es375.js +14 -42
- package/dist/index.es375.js.map +1 -1
- package/dist/index.es376.js +2 -2
- package/dist/index.es377.js +2 -16
- package/dist/index.es377.js.map +1 -1
- package/dist/index.es378.js +48 -2
- package/dist/index.es378.js.map +1 -1
- package/dist/index.es379.js +37 -15
- package/dist/index.es379.js.map +1 -1
- package/dist/index.es380.js +42 -15
- package/dist/index.es380.js.map +1 -1
- package/dist/index.es381.js +2 -18
- package/dist/index.es381.js.map +1 -1
- package/dist/index.es382.js +14 -18
- package/dist/index.es382.js.map +1 -1
- package/dist/index.es384.js +16 -11
- package/dist/index.es384.js.map +1 -1
- package/dist/index.es385.js +14 -8
- package/dist/index.es385.js.map +1 -1
- package/dist/index.es386.js +17 -4
- package/dist/index.es386.js.map +1 -1
- package/dist/index.es387.js +20 -12
- package/dist/index.es387.js.map +1 -1
- package/dist/index.es388.js +2 -10
- package/dist/index.es388.js.map +1 -1
- package/dist/index.es389.js +10 -227
- package/dist/index.es389.js.map +1 -1
- package/dist/index.es390.js +4 -2
- package/dist/index.es390.js.map +1 -1
- package/dist/index.es391.js +4 -356
- package/dist/index.es391.js.map +1 -1
- package/dist/index.es392.js +161 -2
- package/dist/index.es392.js.map +1 -1
- package/dist/index.es393.js +4 -37
- package/dist/index.es393.js.map +1 -1
- package/dist/index.es394.js +2 -51
- package/dist/index.es394.js.map +1 -1
- package/dist/index.es395.js +85 -59
- package/dist/index.es395.js.map +1 -1
- package/dist/index.es396.js +188 -55
- package/dist/index.es396.js.map +1 -1
- package/dist/index.es397.js +86 -71
- package/dist/index.es397.js.map +1 -1
- package/dist/index.es398.js +15 -52
- package/dist/index.es398.js.map +1 -1
- package/dist/index.es399.js +315 -85
- package/dist/index.es399.js.map +1 -1
- package/dist/index.es400.js +227 -4
- package/dist/index.es400.js.map +1 -1
- package/dist/index.es401.js +2 -2
- package/dist/index.es402.js +356 -2
- package/dist/index.es402.js.map +1 -1
- package/dist/index.es403.js +2 -2
- package/dist/index.es404.js +38 -2
- package/dist/index.es404.js.map +1 -1
- package/dist/index.es405.js +51 -2
- package/dist/index.es405.js.map +1 -1
- package/dist/index.es406.js +62 -2
- package/dist/index.es406.js.map +1 -1
- package/dist/index.es407.js +61 -8
- package/dist/index.es407.js.map +1 -1
- package/dist/index.es408.js +73 -4
- package/dist/index.es408.js.map +1 -1
- package/dist/index.es409.js +52 -6
- package/dist/index.es409.js.map +1 -1
- package/dist/index.es410.js +86 -158
- package/dist/index.es410.js.map +1 -1
- package/dist/index.es411.js +2 -5
- package/dist/index.es411.js.map +1 -1
- package/dist/index.es412.js +2 -2
- package/dist/index.es413.js +2 -88
- package/dist/index.es413.js.map +1 -1
- package/dist/index.es414.js +2 -194
- package/dist/index.es414.js.map +1 -1
- package/dist/index.es415.js +2 -88
- package/dist/index.es415.js.map +1 -1
- package/dist/index.es416.js +2 -13
- package/dist/index.es416.js.map +1 -1
- package/dist/index.es417.js +2 -319
- package/dist/index.es417.js.map +1 -1
- package/dist/index.es418.js +7 -55
- package/dist/index.es418.js.map +1 -1
- package/dist/index.es419.js +154 -7
- package/dist/index.es419.js.map +1 -1
- package/dist/index.es420.js +103 -13
- package/dist/index.es420.js.map +1 -1
- package/dist/index.es421.js +15 -58
- package/dist/index.es421.js.map +1 -1
- package/dist/index.es422.js +4 -63
- package/dist/index.es422.js.map +1 -1
- package/dist/index.es423.js +6 -4
- package/dist/index.es423.js.map +1 -1
- package/dist/index.es425.js +2 -8
- package/dist/index.es425.js.map +1 -1
- package/dist/index.es426.js +96 -2
- package/dist/index.es426.js.map +1 -1
- package/dist/index.es427.js +275 -2
- package/dist/index.es427.js.map +1 -1
- package/dist/index.es428.js +126 -19
- package/dist/index.es428.js.map +1 -1
- package/dist/index.es429.js +168 -2
- package/dist/index.es429.js.map +1 -1
- package/dist/index.es430.js +122 -87
- package/dist/index.es430.js.map +1 -1
- package/dist/index.es431.js +80 -227
- package/dist/index.es431.js.map +1 -1
- package/dist/index.es432.js +67 -63
- package/dist/index.es432.js.map +1 -1
- package/dist/index.es433.js +74 -114
- package/dist/index.es433.js.map +1 -1
- package/dist/index.es434.js +40 -54
- package/dist/index.es434.js.map +1 -1
- package/dist/index.es435.js +67 -78
- package/dist/index.es435.js.map +1 -1
- package/dist/index.es436.js +55 -71
- package/dist/index.es436.js.map +1 -1
- package/dist/index.es437.js +43 -54
- package/dist/index.es437.js.map +1 -1
- package/dist/index.es438.js +68 -60
- package/dist/index.es438.js.map +1 -1
- package/dist/index.es439.js +83 -69
- package/dist/index.es439.js.map +1 -1
- package/dist/index.es440.js +66 -55
- package/dist/index.es440.js.map +1 -1
- package/dist/index.es441.js +26 -110
- package/dist/index.es441.js.map +1 -1
- package/dist/index.es442.js +2 -125
- package/dist/index.es442.js.map +1 -1
- package/dist/index.es443.js +15 -125
- package/dist/index.es443.js.map +1 -1
- package/dist/index.es444.js +2 -128
- package/dist/index.es444.js.map +1 -1
- package/dist/index.es445.js +38 -28
- package/dist/index.es445.js.map +1 -1
- package/dist/index.es446.js +43 -2
- package/dist/index.es446.js.map +1 -1
- package/dist/index.es447.js +39 -17
- package/dist/index.es447.js.map +1 -1
- package/dist/index.es448.js +43 -2
- package/dist/index.es448.js.map +1 -1
- package/dist/index.es449.js +34 -34
- package/dist/index.es449.js.map +1 -1
- package/dist/index.es450.js +34 -34
- package/dist/index.es450.js.map +1 -1
- package/dist/index.es451.js +32 -32
- package/dist/index.es451.js.map +1 -1
- package/dist/index.es452.js +26 -26
- package/dist/index.es452.js.map +1 -1
- package/dist/index.es453.js +35 -34
- package/dist/index.es453.js.map +1 -1
- package/dist/index.es454.js +31 -33
- package/dist/index.es454.js.map +1 -1
- package/dist/index.es455.js +2 -43
- package/dist/index.es455.js.map +1 -1
- package/dist/index.es456.js +20 -41
- package/dist/index.es456.js.map +1 -1
- package/dist/index.es457.js +55 -44
- package/dist/index.es457.js.map +1 -1
- package/dist/index.es458.js +9 -41
- package/dist/index.es458.js.map +1 -1
- package/dist/index.es459.js +14 -2
- package/dist/index.es459.js.map +1 -1
- package/dist/index.es460.js +59 -11
- package/dist/index.es460.js.map +1 -1
- package/dist/index.es461.js +61 -30
- package/dist/index.es461.js.map +1 -1
- package/dist/index.es462.js +2 -21
- package/dist/index.es462.js.map +1 -1
- package/dist/index.es463.js +2 -12
- package/dist/index.es463.js.map +1 -1
- package/dist/index.es464.js +12 -2
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +34 -2
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +21 -2
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +10 -12
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +2 -12
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +2 -12
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +2 -2
- package/dist/index.es471.js +13 -6
- package/dist/index.es471.js.map +1 -1
- package/dist/index.es472.js +11 -155
- package/dist/index.es472.js.map +1 -1
- package/dist/index.es473.js +12 -104
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +2 -17
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +4 -8
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +4 -8
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +145 -48
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es478.js +2 -2
- package/dist/index.es479.js +109 -2
- package/dist/index.es479.js.map +1 -1
- package/dist/index.es480.js +8 -4
- package/dist/index.es480.js.map +1 -1
- package/dist/index.es481.js +8 -147
- package/dist/index.es481.js.map +1 -1
- package/dist/index.es482.js +50 -4
- package/dist/index.es482.js.map +1 -1
- package/dist/index.es483.js +2 -2
- package/dist/index.es484.js +2 -2
- package/dist/index.es484.js.map +1 -1
- package/dist/index.es485.js +2 -109
- package/dist/index.es485.js.map +1 -1
- package/dist/index.es486.js +118 -4
- package/dist/index.es486.js.map +1 -1
- package/dist/index.es487.js +8 -22
- package/dist/index.es487.js.map +1 -1
- package/dist/index.es488.js +14 -2
- package/dist/index.es488.js.map +1 -1
- package/dist/index.es489.js +3 -2
- package/dist/index.es489.js.map +1 -1
- package/dist/index.es491.js +2 -2
- package/dist/index.es492.js +2 -2
- package/dist/index.es493.js +2 -2
- package/dist/index.es496.js +2 -2
- package/dist/index.es499.js +2 -2
- package/dist/index.es500.js +2 -151
- package/dist/index.es500.js.map +1 -1
- package/dist/index.es501.js +151 -2
- package/dist/index.es501.js.map +1 -1
- package/dist/index.es502.js +2 -6
- package/dist/index.es502.js.map +1 -1
- package/dist/index.es503.js +6 -2
- package/dist/index.es503.js.map +1 -1
- package/dist/index.es504.js +2 -148
- package/dist/index.es504.js.map +1 -1
- package/dist/index.es505.js +2 -2
- package/dist/index.es506.js +177 -90
- package/dist/index.es506.js.map +1 -1
- package/dist/index.es507.js +134 -2
- package/dist/index.es507.js.map +1 -1
- package/dist/index.es508.js +129 -2
- package/dist/index.es508.js.map +1 -1
- package/dist/index.es509.js +85 -176
- package/dist/index.es509.js.map +1 -1
- package/dist/index.es510.js +78 -83
- package/dist/index.es510.js.map +1 -1
- package/dist/index.es511.js +83 -77
- package/dist/index.es511.js.map +1 -1
- package/dist/index.es512.js +2 -134
- package/dist/index.es512.js.map +1 -1
- package/dist/index.es513.js +2 -129
- package/dist/index.es513.js.map +1 -1
- package/dist/index.es514.js +2 -135
- package/dist/index.es514.js.map +1 -1
- package/dist/index.es515.js +2 -2
- package/dist/index.es516.js +2 -2
- package/dist/index.es517.js +2 -2
- package/dist/index.es518.js +2 -2
- package/dist/index.es519.js +2 -2
- package/dist/index.es521.js +148 -2
- package/dist/index.es521.js.map +1 -1
- package/dist/index.es522.js +2 -2
- package/dist/index.es524.js +2 -2
- package/dist/index.es525.js +131 -2
- package/dist/index.es525.js.map +1 -1
- package/dist/index.es526.js +42 -45
- package/dist/index.es526.js.map +1 -1
- package/dist/index.es527.js +2 -128
- package/dist/index.es527.js.map +1 -1
- package/dist/index.es528.js +138 -2
- package/dist/index.es528.js.map +1 -1
- package/dist/index.es529.js +2 -2
- package/dist/index.es530.js +4 -2
- package/dist/index.es530.js.map +1 -1
- package/dist/index.es531.js +22 -13
- package/dist/index.es531.js.map +1 -1
- package/dist/index.es532.js +2 -2
- package/dist/index.es533.js +2 -2
- package/dist/index.es535.js +14 -2
- package/dist/index.es535.js.map +1 -1
- package/dist/index.es536.js +2 -9
- package/dist/index.es536.js.map +1 -1
- package/dist/index.es537.js +2 -14
- package/dist/index.es537.js.map +1 -1
- package/dist/index.es538.js +2 -118
- package/dist/index.es538.js.map +1 -1
- package/dist/index.es539.js +2 -3
- package/dist/index.es539.js.map +1 -1
- package/dist/index.es540.js +2 -2
- package/dist/index.es544.js +2 -23
- package/dist/index.es544.js.map +1 -1
- package/dist/index.es545.js +30 -13
- package/dist/index.es545.js.map +1 -1
- package/dist/index.es546.js +2 -28
- package/dist/index.es546.js.map +1 -1
- package/dist/index.es547.js +2 -5
- package/dist/index.es547.js.map +1 -1
- package/dist/index.es548.js +2 -2
- package/dist/index.es549.js +2 -2
- package/dist/index.es550.js +2 -2
- package/dist/index.es551.js +2 -30
- package/dist/index.es551.js.map +1 -1
- package/dist/index.es553.js +2 -2
- package/dist/index.es554.js +2 -2
- package/dist/index.es555.js +2 -2
- package/dist/index.es556.js +23 -2
- package/dist/index.es556.js.map +1 -1
- package/dist/index.es557.js +13 -2
- package/dist/index.es557.js.map +1 -1
- package/dist/index.es558.js +28 -2
- package/dist/index.es558.js.map +1 -1
- package/dist/index.es559.js +5 -2
- package/dist/index.es559.js.map +1 -1
- package/dist/index.es581.js +1 -1
- package/dist/index.es586.js +6 -6
- package/dist/index.es587.js +13 -16
- package/dist/index.es587.js.map +1 -1
- package/dist/index.es588.js +18 -39
- package/dist/index.es588.js.map +1 -1
- package/dist/index.es589.js +39 -12
- package/dist/index.es589.js.map +1 -1
- package/dist/index.es590.js +12 -37
- package/dist/index.es590.js.map +1 -1
- package/dist/index.es591.js +36 -38
- package/dist/index.es591.js.map +1 -1
- package/dist/index.es592.js +39 -12
- package/dist/index.es592.js.map +1 -1
- package/dist/index.es593.js +8 -11
- package/dist/index.es593.js.map +1 -1
- package/dist/index.es94.js +3 -3
- package/dist/index.es97.js +2 -2
- package/package.json +3 -3
- package/src/components/OverlayLayers.js +17 -2
- package/types/components/FacetSlider.js.flow +43 -0
- package/types/components/FacetTimeline.js.flow +17 -0
- package/types/components/OverlayLayers.js.flow +17 -2
package/dist/index.es148.js
CHANGED
|
@@ -1,200 +1,61 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
import { useCallbackRef as J } from "./index.es144.js";
|
|
10
|
-
import { useControllableState as Q } from "./index.es116.js";
|
|
11
|
-
import { useDirection as W } from "./index.es146.js";
|
|
12
|
-
const S = "rovingFocusGroup.onEntryFocus", X = {
|
|
13
|
-
bubbles: !1,
|
|
14
|
-
cancelable: !0
|
|
15
|
-
}, G = "RovingFocusGroup", [w, M, Z] = V(G), [ee, Ee] = j(G, [
|
|
16
|
-
Z
|
|
17
|
-
]), [oe, te] = ee(G), re = /* @__PURE__ */ A((e, o) => /* @__PURE__ */ i(w.Provider, {
|
|
18
|
-
scope: e.__scopeRovingFocusGroup
|
|
19
|
-
}, /* @__PURE__ */ i(w.Slot, {
|
|
20
|
-
scope: e.__scopeRovingFocusGroup
|
|
21
|
-
}, /* @__PURE__ */ i(ne, _({}, e, {
|
|
22
|
-
ref: o
|
|
23
|
-
}))))), ne = /* @__PURE__ */ A((e, o) => {
|
|
24
|
-
const { __scopeRovingFocusGroup: n, orientation: t, loop: I = !1, dir: F, currentTabStopId: g, defaultCurrentTabStopId: R, onCurrentTabStopIdChange: b, onEntryFocus: f, ...T } = e, l = P(null), p = z(o, l), m = W(F), [c = null, d] = Q({
|
|
25
|
-
prop: g,
|
|
26
|
-
defaultProp: R,
|
|
27
|
-
onChange: b
|
|
28
|
-
}), [E, s] = y(!1), a = J(f), U = M(n), x = P(!1), [K, h] = y(0);
|
|
29
|
-
return O(() => {
|
|
30
|
-
const r = l.current;
|
|
31
|
-
if (r)
|
|
32
|
-
return r.addEventListener(S, a), () => r.removeEventListener(S, a);
|
|
33
|
-
}, [
|
|
34
|
-
a
|
|
35
|
-
]), /* @__PURE__ */ i(oe, {
|
|
36
|
-
scope: n,
|
|
37
|
-
orientation: t,
|
|
38
|
-
dir: m,
|
|
39
|
-
loop: I,
|
|
40
|
-
currentTabStopId: c,
|
|
41
|
-
onItemFocus: v(
|
|
42
|
-
(r) => d(r),
|
|
43
|
-
[
|
|
44
|
-
d
|
|
45
|
-
]
|
|
46
|
-
),
|
|
47
|
-
onItemShiftTab: v(
|
|
48
|
-
() => s(!0),
|
|
49
|
-
[]
|
|
50
|
-
),
|
|
51
|
-
onFocusableItemAdd: v(
|
|
52
|
-
() => h(
|
|
53
|
-
(r) => r + 1
|
|
54
|
-
),
|
|
55
|
-
[]
|
|
56
|
-
),
|
|
57
|
-
onFocusableItemRemove: v(
|
|
58
|
-
() => h(
|
|
59
|
-
(r) => r - 1
|
|
60
|
-
),
|
|
61
|
-
[]
|
|
62
|
-
)
|
|
63
|
-
}, /* @__PURE__ */ i(N.div, _({
|
|
64
|
-
tabIndex: E || K === 0 ? -1 : 0,
|
|
65
|
-
"data-orientation": t
|
|
66
|
-
}, T, {
|
|
67
|
-
ref: p,
|
|
68
|
-
style: {
|
|
69
|
-
outline: "none",
|
|
70
|
-
...e.style
|
|
1
|
+
import t from "react";
|
|
2
|
+
import { createContextScope as b } from "./index.es115.js";
|
|
3
|
+
import { useComposedRefs as p } from "./index.es114.js";
|
|
4
|
+
import { Slot as u } from "./index.es127.js";
|
|
5
|
+
function N(s) {
|
|
6
|
+
const a = s + "CollectionProvider", [C, R] = b(a), [x, f] = C(a, {
|
|
7
|
+
collectionRef: {
|
|
8
|
+
current: null
|
|
71
9
|
},
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}),
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
"data-orientation": f.orientation
|
|
120
|
-
}, g, {
|
|
121
|
-
ref: o,
|
|
122
|
-
onMouseDown: $(e.onMouseDown, (c) => {
|
|
123
|
-
t ? f.onItemFocus(b) : c.preventDefault();
|
|
124
|
-
}),
|
|
125
|
-
onFocus: $(
|
|
126
|
-
e.onFocus,
|
|
127
|
-
() => f.onItemFocus(b)
|
|
128
|
-
),
|
|
129
|
-
onKeyDown: $(e.onKeyDown, (c) => {
|
|
130
|
-
if (c.key === "Tab" && c.shiftKey) {
|
|
131
|
-
f.onItemShiftTab();
|
|
132
|
-
return;
|
|
133
|
-
}
|
|
134
|
-
if (c.target !== c.currentTarget)
|
|
135
|
-
return;
|
|
136
|
-
const d = de(c, f.orientation, f.dir);
|
|
137
|
-
if (d !== void 0) {
|
|
138
|
-
c.preventDefault();
|
|
139
|
-
let s = l().filter(
|
|
140
|
-
(a) => a.focusable
|
|
141
|
-
).map(
|
|
142
|
-
(a) => a.ref.current
|
|
143
|
-
);
|
|
144
|
-
if (d === "last")
|
|
145
|
-
s.reverse();
|
|
146
|
-
else if (d === "prev" || d === "next") {
|
|
147
|
-
d === "prev" && s.reverse();
|
|
148
|
-
const a = s.indexOf(c.currentTarget);
|
|
149
|
-
s = f.loop ? ue(s, a + 1) : s.slice(a + 1);
|
|
150
|
-
}
|
|
151
|
-
setTimeout(
|
|
152
|
-
() => L(s)
|
|
153
|
-
);
|
|
154
|
-
}
|
|
155
|
-
})
|
|
156
|
-
})));
|
|
157
|
-
}), se = {
|
|
158
|
-
ArrowLeft: "prev",
|
|
159
|
-
ArrowUp: "prev",
|
|
160
|
-
ArrowRight: "next",
|
|
161
|
-
ArrowDown: "next",
|
|
162
|
-
PageUp: "first",
|
|
163
|
-
Home: "first",
|
|
164
|
-
PageDown: "last",
|
|
165
|
-
End: "last"
|
|
166
|
-
};
|
|
167
|
-
function ae(e, o) {
|
|
168
|
-
return o !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
169
|
-
}
|
|
170
|
-
function de(e, o, n) {
|
|
171
|
-
const t = ae(e.key, n);
|
|
172
|
-
if (!(o === "vertical" && [
|
|
173
|
-
"ArrowLeft",
|
|
174
|
-
"ArrowRight"
|
|
175
|
-
].includes(t)) && !(o === "horizontal" && [
|
|
176
|
-
"ArrowUp",
|
|
177
|
-
"ArrowDown"
|
|
178
|
-
].includes(t)))
|
|
179
|
-
return se[t];
|
|
180
|
-
}
|
|
181
|
-
function L(e) {
|
|
182
|
-
const o = document.activeElement;
|
|
183
|
-
for (const n of e)
|
|
184
|
-
if (n === o || (n.focus(), document.activeElement !== o))
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
function ue(e, o) {
|
|
188
|
-
return e.map(
|
|
189
|
-
(n, t) => e[(o + t) % e.length]
|
|
190
|
-
);
|
|
10
|
+
itemMap: /* @__PURE__ */ new Map()
|
|
11
|
+
}), M = (r) => {
|
|
12
|
+
const { scope: e, children: l } = r, o = t.useRef(null), c = t.useRef(/* @__PURE__ */ new Map()).current;
|
|
13
|
+
return /* @__PURE__ */ t.createElement(x, {
|
|
14
|
+
scope: e,
|
|
15
|
+
itemMap: c,
|
|
16
|
+
collectionRef: o
|
|
17
|
+
}, l);
|
|
18
|
+
}, $ = s + "CollectionSlot", I = /* @__PURE__ */ t.forwardRef((r, e) => {
|
|
19
|
+
const { scope: l, children: o } = r, c = f($, l), n = p(e, c.collectionRef);
|
|
20
|
+
return /* @__PURE__ */ t.createElement(u, {
|
|
21
|
+
ref: n
|
|
22
|
+
}, o);
|
|
23
|
+
}), S = s + "CollectionItemSlot", d = "data-radix-collection-item", E = /* @__PURE__ */ t.forwardRef((r, e) => {
|
|
24
|
+
const { scope: l, children: o, ...c } = r, n = t.useRef(null), m = p(e, n), i = f(S, l);
|
|
25
|
+
return t.useEffect(() => (i.itemMap.set(n, {
|
|
26
|
+
ref: n,
|
|
27
|
+
...c
|
|
28
|
+
}), () => void i.itemMap.delete(n))), /* @__PURE__ */ t.createElement(u, {
|
|
29
|
+
[d]: "",
|
|
30
|
+
ref: m
|
|
31
|
+
}, o);
|
|
32
|
+
});
|
|
33
|
+
function A(r) {
|
|
34
|
+
const e = f(s + "CollectionConsumer", r);
|
|
35
|
+
return t.useCallback(() => {
|
|
36
|
+
const o = e.collectionRef.current;
|
|
37
|
+
if (!o)
|
|
38
|
+
return [];
|
|
39
|
+
const c = Array.from(o.querySelectorAll(`[${d}]`));
|
|
40
|
+
return Array.from(e.itemMap.values()).sort(
|
|
41
|
+
(i, _) => c.indexOf(i.ref.current) - c.indexOf(_.ref.current)
|
|
42
|
+
);
|
|
43
|
+
}, [
|
|
44
|
+
e.collectionRef,
|
|
45
|
+
e.itemMap
|
|
46
|
+
]);
|
|
47
|
+
}
|
|
48
|
+
return [
|
|
49
|
+
{
|
|
50
|
+
Provider: M,
|
|
51
|
+
Slot: I,
|
|
52
|
+
ItemSlot: E
|
|
53
|
+
},
|
|
54
|
+
A,
|
|
55
|
+
R
|
|
56
|
+
];
|
|
191
57
|
}
|
|
192
|
-
const xe = re, Ce = fe;
|
|
193
58
|
export {
|
|
194
|
-
|
|
195
|
-
xe as Root,
|
|
196
|
-
re as RovingFocusGroup,
|
|
197
|
-
fe as RovingFocusGroupItem,
|
|
198
|
-
Ee as createRovingFocusGroupScope
|
|
59
|
+
N as createCollection
|
|
199
60
|
};
|
|
200
61
|
//# sourceMappingURL=index.es148.js.map
|
package/dist/index.es148.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es148.js","sources":["../../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["import $98Iye$babelruntimehelpersesmextends from \"@babel/runtime/helpers/esm/extends\";\nimport {forwardRef as $98Iye$forwardRef, createElement as $98Iye$createElement, useRef as $98Iye$useRef, useState as $98Iye$useState, useEffect as $98Iye$useEffect, useCallback as $98Iye$useCallback} from \"react\";\nimport {composeEventHandlers as $98Iye$composeEventHandlers} from \"@radix-ui/primitive\";\nimport {createCollection as $98Iye$createCollection} from \"@radix-ui/react-collection\";\nimport {useComposedRefs as $98Iye$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {createContextScope as $98Iye$createContextScope} from \"@radix-ui/react-context\";\nimport {useId as $98Iye$useId} from \"@radix-ui/react-id\";\nimport {Primitive as $98Iye$Primitive} from \"@radix-ui/react-primitive\";\nimport {useCallbackRef as $98Iye$useCallbackRef} from \"@radix-ui/react-use-callback-ref\";\nimport {useControllableState as $98Iye$useControllableState} from \"@radix-ui/react-use-controllable-state\";\nimport {useDirection as $98Iye$useDirection} from \"@radix-ui/react-direction\";\n\n\n\n\n\n\n\n\n\n\n\n\nconst $d7bdfb9eb0fdf311$var$ENTRY_FOCUS = 'rovingFocusGroup.onEntryFocus';\nconst $d7bdfb9eb0fdf311$var$EVENT_OPTIONS = {\n bubbles: false,\n cancelable: true\n};\n/* -------------------------------------------------------------------------------------------------\n * RovingFocusGroup\n * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$GROUP_NAME = 'RovingFocusGroup';\nconst [$d7bdfb9eb0fdf311$var$Collection, $d7bdfb9eb0fdf311$var$useCollection, $d7bdfb9eb0fdf311$var$createCollectionScope] = $98Iye$createCollection($d7bdfb9eb0fdf311$var$GROUP_NAME);\nconst [$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext, $d7bdfb9eb0fdf311$export$c7109489551a4f4] = $98Iye$createContextScope($d7bdfb9eb0fdf311$var$GROUP_NAME, [\n $d7bdfb9eb0fdf311$var$createCollectionScope\n]);\nconst [$d7bdfb9eb0fdf311$var$RovingFocusProvider, $d7bdfb9eb0fdf311$var$useRovingFocusContext] = $d7bdfb9eb0fdf311$var$createRovingFocusGroupContext($d7bdfb9eb0fdf311$var$GROUP_NAME);\nconst $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.Provider, {\n scope: props.__scopeRovingFocusGroup\n }, /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.Slot, {\n scope: props.__scopeRovingFocusGroup\n }, /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$RovingFocusGroupImpl, $98Iye$babelruntimehelpersesmextends({}, props, {\n ref: forwardedRef\n }))));\n});\n/*#__PURE__*/ Object.assign($d7bdfb9eb0fdf311$export$8699f7c8af148338, {\n displayName: $d7bdfb9eb0fdf311$var$GROUP_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$RovingFocusGroupImpl = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , orientation: orientation , loop: loop = false , dir: dir , currentTabStopId: currentTabStopIdProp , defaultCurrentTabStopId: defaultCurrentTabStopId , onCurrentTabStopIdChange: onCurrentTabStopIdChange , onEntryFocus: onEntryFocus , ...groupProps } = props;\n const ref = $98Iye$useRef(null);\n const composedRefs = $98Iye$useComposedRefs(forwardedRef, ref);\n const direction = $98Iye$useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = $98Iye$useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = $98Iye$useState(false);\n const handleEntryFocus = $98Iye$useCallbackRef(onEntryFocus);\n const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = $98Iye$useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = $98Iye$useState(0);\n $98Iye$useEffect(()=>{\n const node = ref.current;\n if (node) {\n node.addEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, handleEntryFocus);\n return ()=>node.removeEventListener($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, handleEntryFocus)\n ;\n }\n }, [\n handleEntryFocus\n ]);\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$RovingFocusProvider, {\n scope: __scopeRovingFocusGroup,\n orientation: orientation,\n dir: direction,\n loop: loop,\n currentTabStopId: currentTabStopId,\n onItemFocus: $98Iye$useCallback((tabStopId)=>setCurrentTabStopId(tabStopId)\n , [\n setCurrentTabStopId\n ]),\n onItemShiftTab: $98Iye$useCallback(()=>setIsTabbingBackOut(true)\n , []),\n onFocusableItemAdd: $98Iye$useCallback(()=>setFocusableItemsCount((prevCount)=>prevCount + 1\n )\n , []),\n onFocusableItemRemove: $98Iye$useCallback(()=>setFocusableItemsCount((prevCount)=>prevCount - 1\n )\n , [])\n }, /*#__PURE__*/ $98Iye$createElement($98Iye$Primitive.div, $98Iye$babelruntimehelpersesmextends({\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation\n }, groupProps, {\n ref: composedRefs,\n style: {\n outline: 'none',\n ...props.style\n },\n onMouseDown: $98Iye$composeEventHandlers(props.onMouseDown, ()=>{\n isClickFocusRef.current = true;\n }),\n onFocus: $98Iye$composeEventHandlers(props.onFocus, (event)=>{\n // We normally wouldn't need this check, because we already check\n // that the focus is on the current target and not bubbling to it.\n // We do this because Safari doesn't focus buttons when clicked, and\n // instead, the wrapper will get focused and not through a bubbling event.\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent($d7bdfb9eb0fdf311$var$ENTRY_FOCUS, $d7bdfb9eb0fdf311$var$EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item)=>item.focusable\n );\n const activeItem = items.find((item)=>item.active\n );\n const currentItem = items.find((item)=>item.id === currentTabStopId\n );\n const candidateItems = [\n activeItem,\n currentItem,\n ...items\n ].filter(Boolean);\n const candidateNodes = candidateItems.map((item)=>item.ref.current\n );\n $d7bdfb9eb0fdf311$var$focusFirst(candidateNodes);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: $98Iye$composeEventHandlers(props.onBlur, ()=>setIsTabbingBackOut(false)\n )\n })));\n});\n/* -------------------------------------------------------------------------------------------------\n * RovingFocusGroupItem\n * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$ITEM_NAME = 'RovingFocusGroupItem';\nconst $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /*#__PURE__*/ $98Iye$forwardRef((props, forwardedRef)=>{\n const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , focusable: focusable = true , active: active = false , tabStopId: tabStopId , ...itemProps } = props;\n const autoId = $98Iye$useId();\n const id = tabStopId || autoId;\n const context = $d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = $d7bdfb9eb0fdf311$var$useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd: onFocusableItemAdd , onFocusableItemRemove: onFocusableItemRemove } = context;\n $98Iye$useEffect(()=>{\n if (focusable) {\n onFocusableItemAdd();\n return ()=>onFocusableItemRemove()\n ;\n }\n }, [\n focusable,\n onFocusableItemAdd,\n onFocusableItemRemove\n ]);\n return /*#__PURE__*/ $98Iye$createElement($d7bdfb9eb0fdf311$var$Collection.ItemSlot, {\n scope: __scopeRovingFocusGroup,\n id: id,\n focusable: focusable,\n active: active\n }, /*#__PURE__*/ $98Iye$createElement($98Iye$Primitive.span, $98Iye$babelruntimehelpersesmextends({\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation\n }, itemProps, {\n ref: forwardedRef,\n onMouseDown: $98Iye$composeEventHandlers(props.onMouseDown, (event)=>{\n // We prevent focusing non-focusable items on `mousedown`.\n // Even though the item has tabIndex={-1}, that only means take it out of the tab order.\n if (!focusable) event.preventDefault(); // Safari doesn't focus a button when clicked so we run our logic on mousedown also\n else context.onItemFocus(id);\n }),\n onFocus: $98Iye$composeEventHandlers(props.onFocus, ()=>context.onItemFocus(id)\n ),\n onKeyDown: $98Iye$composeEventHandlers(props.onKeyDown, (event)=>{\n if (event.key === 'Tab' && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = $d7bdfb9eb0fdf311$var$getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== undefined) {\n event.preventDefault();\n const items = getItems().filter((item)=>item.focusable\n );\n let candidateNodes = items.map((item)=>item.ref.current\n );\n if (focusIntent === 'last') candidateNodes.reverse();\n else if (focusIntent === 'prev' || focusIntent === 'next') {\n if (focusIntent === 'prev') candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? $d7bdfb9eb0fdf311$var$wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n /**\n * Imperative focus during keydown is risky so we prevent React's batching updates\n * to avoid potential bugs. See: https://github.com/facebook/react/issues/20332\n */ setTimeout(()=>$d7bdfb9eb0fdf311$var$focusFirst(candidateNodes)\n );\n }\n })\n })));\n});\n/*#__PURE__*/ Object.assign($d7bdfb9eb0fdf311$export$ab9df7c53fe8454, {\n displayName: $d7bdfb9eb0fdf311$var$ITEM_NAME\n});\n/* -----------------------------------------------------------------------------------------------*/ // prettier-ignore\nconst $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: 'prev',\n ArrowUp: 'prev',\n ArrowRight: 'next',\n ArrowDown: 'next',\n PageUp: 'first',\n Home: 'first',\n PageDown: 'last',\n End: 'last'\n};\nfunction $d7bdfb9eb0fdf311$var$getDirectionAwareKey(key, dir) {\n if (dir !== 'rtl') return key;\n return key === 'ArrowLeft' ? 'ArrowRight' : key === 'ArrowRight' ? 'ArrowLeft' : key;\n}\nfunction $d7bdfb9eb0fdf311$var$getFocusIntent(event, orientation, dir) {\n const key = $d7bdfb9eb0fdf311$var$getDirectionAwareKey(event.key, dir);\n if (orientation === 'vertical' && [\n 'ArrowLeft',\n 'ArrowRight'\n ].includes(key)) return undefined;\n if (orientation === 'horizontal' && [\n 'ArrowUp',\n 'ArrowDown'\n ].includes(key)) return undefined;\n return $d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction $d7bdfb9eb0fdf311$var$focusFirst(candidates) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates){\n // if focus is already where we want to go, we don't want to keep going through the candidates\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus();\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\n/**\n * Wraps an array around itself at a given start index\n * Example: `wrapArray(['a', 'b', 'c', 'd'], 2) === ['c', 'd', 'a', 'b']`\n */ function $d7bdfb9eb0fdf311$var$wrapArray(array, startIndex) {\n return array.map((_, index)=>array[(startIndex + index) % array.length]\n );\n}\nconst $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 = $d7bdfb9eb0fdf311$export$8699f7c8af148338;\nconst $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 = $d7bdfb9eb0fdf311$export$ab9df7c53fe8454;\n\n\n\n\nexport {$d7bdfb9eb0fdf311$export$c7109489551a4f4 as createRovingFocusGroupScope, $d7bdfb9eb0fdf311$export$8699f7c8af148338 as RovingFocusGroup, $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 as RovingFocusGroupItem, $d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9 as Root, $d7bdfb9eb0fdf311$export$6d08773d2e66f8f2 as Item};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$d7bdfb9eb0fdf311$var$ENTRY_FOCUS","$d7bdfb9eb0fdf311$var$EVENT_OPTIONS","$d7bdfb9eb0fdf311$var$GROUP_NAME","$d7bdfb9eb0fdf311$var$Collection","$d7bdfb9eb0fdf311$var$useCollection","$d7bdfb9eb0fdf311$var$createCollectionScope","$98Iye$createCollection","$d7bdfb9eb0fdf311$var$createRovingFocusGroupContext","$d7bdfb9eb0fdf311$export$c7109489551a4f4","$98Iye$createContextScope","$d7bdfb9eb0fdf311$var$RovingFocusProvider","$d7bdfb9eb0fdf311$var$useRovingFocusContext","$d7bdfb9eb0fdf311$export$8699f7c8af148338","$98Iye$forwardRef","props","forwardedRef","$98Iye$createElement","$d7bdfb9eb0fdf311$var$RovingFocusGroupImpl","$98Iye$babelruntimehelpersesmextends","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","groupProps","ref","$98Iye$useRef","composedRefs","$98Iye$useComposedRefs","direction","$98Iye$useDirection","currentTabStopId","setCurrentTabStopId","$98Iye$useControllableState","isTabbingBackOut","setIsTabbingBackOut","$98Iye$useState","handleEntryFocus","$98Iye$useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","$98Iye$useEffect","node","$98Iye$useCallback","tabStopId","prevCount","$98Iye$Primitive","$98Iye$composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","$d7bdfb9eb0fdf311$var$focusFirst","$d7bdfb9eb0fdf311$var$ITEM_NAME","$d7bdfb9eb0fdf311$export$ab9df7c53fe8454","focusable","active","itemProps","autoId","$98Iye$useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","$d7bdfb9eb0fdf311$var$getFocusIntent","currentIndex","$d7bdfb9eb0fdf311$var$wrapArray","$d7bdfb9eb0fdf311$var$MAP_KEY_TO_FOCUS_INTENT","$d7bdfb9eb0fdf311$var$getDirectionAwareKey","key","candidates","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","$d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9","$d7bdfb9eb0fdf311$export$6d08773d2e66f8f2"],"mappings":";;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AA,UAAW,MAAIf,EAAiCD,CAAc;AAAA,QAC1E;AAAA,MACa;AAAA,IACb,CAAS;AAAA,EACJ,CAAA,CAAC,CAAC;AACP,CAAC,GAKKkB,KAAgD;AAAA,EAClD,WAAW;AAAA,EACX,SAAS;AAAA,EACT,YAAY;AAAA,EACZ,WAAW;AAAA,EACX,QAAQ;AAAA,EACR,MAAM;AAAA,EACN,UAAU;AAAA,EACV,KAAK;AACT;AACA,SAASC,GAA2CC,GAAK1D,GAAK;AAC1D,SAAIA,MAAQ,QAAc0D,IACnBA,MAAQ,cAAc,eAAeA,MAAQ,eAAe,cAAcA;AACrF;AACA,SAASL,GAAqCtB,GAAOjC,GAAaE,GAAK;AACnE,QAAM0D,IAAMD,GAA2C1B,EAAM,KAAK/B,CAAG;AACrE,MAAI,EAAAF,MAAgB,cAAc;AAAA,IAC9B;AAAA,IACA;AAAA,EACH,EAAC,SAAS4D,CAAG,MACV,EAAA5D,MAAgB,gBAAgB;AAAA,IAChC;AAAA,IACA;AAAA,EACH,EAAC,SAAS4D,CAAG;AACd,WAAOF,GAA8CE,CAAG;AAC5D;AACA,SAASnB,EAAiCoB,GAAY;AAClD,QAAMC,IAA6B,SAAS;AAC5C,aAAWC,KAAaF;AAIpB,QAFIE,MAAcD,MAClBC,EAAU,MAAK,GACX,SAAS,kBAAkBD;AAA4B;AAEnE;AAII,SAASL,GAAgCO,GAAOC,GAAY;AAC5D,SAAOD,EAAM;AAAA,IAAI,CAACE,GAAGC,MAAQH,GAAOC,IAAaE,KAASH,EAAM,MAAM;AAAA,EAC1E;AACA;AACK,MAACI,KAA4C5E,IAC5C6E,KAA4C1B;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index.es148.js","sources":["../../../node_modules/@radix-ui/react-collection/dist/index.mjs"],"sourcesContent":["import $6vYhU$react from \"react\";\nimport {createContextScope as $6vYhU$createContextScope} from \"@radix-ui/react-context\";\nimport {useComposedRefs as $6vYhU$useComposedRefs} from \"@radix-ui/react-compose-refs\";\nimport {Slot as $6vYhU$Slot} from \"@radix-ui/react-slot\";\n\n\n\n\n\n// We have resorted to returning slots directly rather than exposing primitives that can then\n// be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.\n// This is because we encountered issues with generic types that cannot be statically analysed\n// due to creating them dynamically via createCollection.\nfunction $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {\n /* -----------------------------------------------------------------------------------------------\n * CollectionProvider\n * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';\n const [createCollectionContext, createCollectionScope] = $6vYhU$createContextScope(PROVIDER_NAME);\n const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {\n collectionRef: {\n current: null\n },\n itemMap: new Map()\n });\n const CollectionProvider = (props)=>{\n const { scope: scope , children: children } = props;\n const ref = $6vYhU$react.useRef(null);\n const itemMap = $6vYhU$react.useRef(new Map()).current;\n return /*#__PURE__*/ $6vYhU$react.createElement(CollectionProviderImpl, {\n scope: scope,\n itemMap: itemMap,\n collectionRef: ref\n }, children);\n };\n /*#__PURE__*/ Object.assign(CollectionProvider, {\n displayName: PROVIDER_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * CollectionSlot\n * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';\n const CollectionSlot = /*#__PURE__*/ $6vYhU$react.forwardRef((props, forwardedRef)=>{\n const { scope: scope , children: children } = props;\n const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);\n const composedRefs = $6vYhU$useComposedRefs(forwardedRef, context.collectionRef);\n return /*#__PURE__*/ $6vYhU$react.createElement($6vYhU$Slot, {\n ref: composedRefs\n }, children);\n });\n /*#__PURE__*/ Object.assign(CollectionSlot, {\n displayName: COLLECTION_SLOT_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * CollectionItem\n * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';\n const ITEM_DATA_ATTR = 'data-radix-collection-item';\n const CollectionItemSlot = /*#__PURE__*/ $6vYhU$react.forwardRef((props, forwardedRef)=>{\n const { scope: scope , children: children , ...itemData } = props;\n const ref = $6vYhU$react.useRef(null);\n const composedRefs = $6vYhU$useComposedRefs(forwardedRef, ref);\n const context = useCollectionContext(ITEM_SLOT_NAME, scope);\n $6vYhU$react.useEffect(()=>{\n context.itemMap.set(ref, {\n ref: ref,\n ...itemData\n });\n return ()=>void context.itemMap.delete(ref)\n ;\n });\n return /*#__PURE__*/ $6vYhU$react.createElement($6vYhU$Slot, {\n [ITEM_DATA_ATTR]: '',\n ref: composedRefs\n }, children);\n });\n /*#__PURE__*/ Object.assign(CollectionItemSlot, {\n displayName: ITEM_SLOT_NAME\n });\n /* -----------------------------------------------------------------------------------------------\n * useCollection\n * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {\n const context = useCollectionContext(name + 'CollectionConsumer', scope);\n const getItems = $6vYhU$react.useCallback(()=>{\n const collectionNode = context.collectionRef.current;\n if (!collectionNode) return [];\n const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));\n const items = Array.from(context.itemMap.values());\n const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)\n );\n return orderedItems;\n }, [\n context.collectionRef,\n context.itemMap\n ]);\n return getItems;\n }\n return [\n {\n Provider: CollectionProvider,\n Slot: CollectionSlot,\n ItemSlot: CollectionItemSlot\n },\n useCollection,\n createCollectionScope\n ];\n}\n\n\n\n\nexport {$e02a7d9cb1dc128c$export$c74125a8e3af6bb2 as createCollection};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$e02a7d9cb1dc128c$export$c74125a8e3af6bb2","name","PROVIDER_NAME","createCollectionContext","createCollectionScope","$6vYhU$createContextScope","CollectionProviderImpl","useCollectionContext","CollectionProvider","props","scope","children","ref","$6vYhU$react","itemMap","COLLECTION_SLOT_NAME","CollectionSlot","forwardedRef","context","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,GAAcL,CAAG,GACvDM,IAAUX,EAAqBe,GAAgBZ,CAAK;AAC1DG,WAAAA,EAAa,UAAU,OACnBK,EAAQ,QAAQ,IAAIN,GAAK;AAAA,MACrB,KAAKA;AAAA,MACL,GAAGa;AAAA,IACnB,CAAa,GACM,MAAI,KAAKP,EAAQ,QAAQ,OAAON,CAAG,EAE7C,GACoBC,gBAAAA,EAAa,cAAcQ,GAAa;AAAA,MACzD,CAACE,CAAc,GAAG;AAAA,MAClB,KAAKJ;AAAA,IACR,GAAER,CAAQ;AAAA,EACnB,CAAK;AAMgG,WAASe,EAAchB,GAAO;AAC3H,UAAMQ,IAAUX,EAAqBN,IAAO,sBAAsBS,CAAK;AAavE,WAZiBG,EAAa,YAAY,MAAI;AAC1C,YAAMc,IAAiBT,EAAQ,cAAc;AAC7C,UAAI,CAACS;AAAgB,eAAO;AAC5B,YAAMC,IAAe,MAAM,KAAKD,EAAe,iBAAiB,IAAIJ,CAAc,GAAG,CAAC;AAItF,aAHc,MAAM,KAAKL,EAAQ,QAAQ,OAAM,CAAE,EACtB;AAAA,QAAK,CAACW,GAAGC,MAAIF,EAAa,QAAQC,EAAE,IAAI,OAAO,IAAID,EAAa,QAAQE,EAAE,IAAI,OAAO;AAAA,MAC5H;AAAA,IAEA,GAAW;AAAA,MACCZ,EAAQ;AAAA,MACRA,EAAQ;AAAA,IACpB,CAAS;AAAA,EAEJ;AACD,SAAO;AAAA,IACH;AAAA,MACI,UAAUV;AAAA,MACV,MAAMQ;AAAA,MACN,UAAUQ;AAAA,IACb;AAAA,IACDE;AAAA,IACAtB;AAAA,EACR;AACA;","x_google_ignoreList":[0]}
|
package/dist/index.es149.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
|
|
1
|
+
import { useContext as o, createContext as n } from "react";
|
|
2
|
+
const r = /* @__PURE__ */ n(void 0);
|
|
3
|
+
function i(e) {
|
|
4
|
+
const t = o(r);
|
|
5
|
+
return e || t || "ltr";
|
|
6
|
+
}
|
|
4
7
|
export {
|
|
5
|
-
|
|
8
|
+
i as useDirection
|
|
6
9
|
};
|
|
7
10
|
//# sourceMappingURL=index.es149.js.map
|
package/dist/index.es149.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.es149.js","sources":["../../../node_modules/@radix-ui/react-
|
|
1
|
+
{"version":3,"file":"index.es149.js","sources":["../../../node_modules/@radix-ui/react-direction/dist/index.mjs"],"sourcesContent":["import {createContext as $7Gjcd$createContext, createElement as $7Gjcd$createElement, useContext as $7Gjcd$useContext} from \"react\";\n\n\nconst $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ $7Gjcd$createContext(undefined);\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/ const $f631663db3294ace$export$c760c09fdd558351 = (props)=>{\n const { dir: dir , children: children } = props;\n return /*#__PURE__*/ $7Gjcd$createElement($f631663db3294ace$var$DirectionContext.Provider, {\n value: dir\n }, children);\n};\n/* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {\n const globalDir = $7Gjcd$useContext($f631663db3294ace$var$DirectionContext);\n return localDir || globalDir || 'ltr';\n}\nconst $f631663db3294ace$export$2881499e37b75b9a = $f631663db3294ace$export$c760c09fdd558351;\n\n\n\n\nexport {$f631663db3294ace$export$b39126d51d94e6f3 as useDirection, $f631663db3294ace$export$2881499e37b75b9a as Provider, $f631663db3294ace$export$c760c09fdd558351 as DirectionProvider};\n//# sourceMappingURL=index.mjs.map\n"],"names":["$f631663db3294ace$var$DirectionContext","$7Gjcd$createContext","$f631663db3294ace$export$b39126d51d94e6f3","localDir","globalDir","$7Gjcd$useContext"],"mappings":";AAGA,MAAMA,IAAuDC,gBAAAA,EAAqB,MAAS;AASU,SAASC,EAA0CC,GAAU;AAC9J,QAAMC,IAAYC,EAAkBL,CAAsC;AAC1E,SAAOG,KAAYC,KAAa;AACpC;","x_google_ignoreList":[0]}
|
package/dist/index.es150.js
CHANGED
|
@@ -1,18 +1,220 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import H from "./index.es112.js";
|
|
2
|
+
import { forwardRef as N, createElement as m, useState as C, useRef as he, useEffect as ue } from "react";
|
|
3
|
+
import { useFloating as ge, arrow as xe } from "./index.es173.js";
|
|
4
|
+
import { Root as ve } from "./index.es174.js";
|
|
5
|
+
import { useComposedRefs as B } from "./index.es114.js";
|
|
6
|
+
import { createContextScope as Pe } from "./index.es115.js";
|
|
7
|
+
import { Primitive as F } from "./index.es117.js";
|
|
8
|
+
import { useCallbackRef as be } from "./index.es147.js";
|
|
9
|
+
import { useLayoutEffect as k } from "./index.es152.js";
|
|
10
|
+
import { useSize as ye } from "./index.es143.js";
|
|
11
|
+
import { autoUpdate as Ae, shift as _e, flip as Ce, size as Se, hide as Oe, limitShift as De } from "./index.es175.js";
|
|
12
|
+
import { offset as Re } from "./index.es176.js";
|
|
13
|
+
const T = "Popper", [j, tt] = Pe(T), [Ee, Z] = j(T), He = (o) => {
|
|
14
|
+
const { __scopePopper: i, children: r } = o, [t, a] = C(null);
|
|
15
|
+
return /* @__PURE__ */ m(Ee, {
|
|
16
|
+
scope: i,
|
|
17
|
+
anchor: t,
|
|
18
|
+
onAnchorChange: a
|
|
19
|
+
}, r);
|
|
20
|
+
}, Ne = "PopperAnchor", We = /* @__PURE__ */ N((o, i) => {
|
|
21
|
+
const { __scopePopper: r, virtualRef: t, ...a } = o, e = Z(Ne, r), n = he(null), s = B(i, n);
|
|
22
|
+
return ue(() => {
|
|
23
|
+
e.onAnchorChange((t == null ? void 0 : t.current) || n.current);
|
|
24
|
+
}), t ? null : /* @__PURE__ */ m(F.div, H({}, a, {
|
|
25
|
+
ref: s
|
|
26
|
+
}));
|
|
27
|
+
}), L = "PopperContent", [ze, Ye] = j(L), Ie = /* @__PURE__ */ N((o, i) => {
|
|
28
|
+
var r, t, a, e, n, s, w, l;
|
|
29
|
+
const { __scopePopper: S, side: d = "bottom", sideOffset: O = 0, align: c = "center", alignOffset: h = 0, arrowPadding: D = 0, avoidCollisions: f = !0, collisionBoundary: u = [], collisionPadding: g = 0, sticky: p = "partial", hideWhenDetached: $ = !1, updatePositionStrategy: q = "optimized", onPlaced: G, ...W } = o, J = Z(L, S), [R, K] = C(null), Q = B(
|
|
30
|
+
i,
|
|
31
|
+
(P) => K(P)
|
|
32
|
+
), [E, V] = C(null), x = ye(E), ee = (r = x == null ? void 0 : x.width) !== null && r !== void 0 ? r : 0, z = (t = x == null ? void 0 : x.height) !== null && t !== void 0 ? t : 0, te = d + (c !== "center" ? "-" + c : ""), oe = typeof g == "number" ? g : {
|
|
33
|
+
top: 0,
|
|
34
|
+
right: 0,
|
|
35
|
+
bottom: 0,
|
|
36
|
+
left: 0,
|
|
37
|
+
...g
|
|
38
|
+
}, Y = Array.isArray(u) ? u : [
|
|
39
|
+
u
|
|
40
|
+
], re = Y.length > 0, b = {
|
|
41
|
+
padding: oe,
|
|
42
|
+
boundary: Y.filter(Be),
|
|
43
|
+
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
44
|
+
altBoundary: re
|
|
45
|
+
}, { refs: ae, floatingStyles: I, placement: ne, isPositioned: y, middlewareData: v } = ge({
|
|
46
|
+
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
47
|
+
strategy: "fixed",
|
|
48
|
+
placement: te,
|
|
49
|
+
whileElementsMounted: (...P) => Ae(...P, {
|
|
50
|
+
animationFrame: q === "always"
|
|
51
|
+
}),
|
|
52
|
+
elements: {
|
|
53
|
+
reference: J.anchor
|
|
54
|
+
},
|
|
55
|
+
middleware: [
|
|
56
|
+
Re({
|
|
57
|
+
mainAxis: O + z,
|
|
58
|
+
alignmentAxis: h
|
|
59
|
+
}),
|
|
60
|
+
f && _e({
|
|
61
|
+
mainAxis: !0,
|
|
62
|
+
crossAxis: !1,
|
|
63
|
+
limiter: p === "partial" ? De() : void 0,
|
|
64
|
+
...b
|
|
65
|
+
}),
|
|
66
|
+
f && Ce({
|
|
67
|
+
...b
|
|
68
|
+
}),
|
|
69
|
+
Se({
|
|
70
|
+
...b,
|
|
71
|
+
apply: ({ elements: P, rects: M, availableWidth: pe, availableHeight: $e }) => {
|
|
72
|
+
const { width: me, height: we } = M.reference, _ = P.floating.style;
|
|
73
|
+
_.setProperty("--radix-popper-available-width", `${pe}px`), _.setProperty("--radix-popper-available-height", `${$e}px`), _.setProperty("--radix-popper-anchor-width", `${me}px`), _.setProperty("--radix-popper-anchor-height", `${we}px`);
|
|
74
|
+
}
|
|
75
|
+
}),
|
|
76
|
+
E && xe({
|
|
77
|
+
element: E,
|
|
78
|
+
padding: D
|
|
79
|
+
}),
|
|
80
|
+
Fe({
|
|
81
|
+
arrowWidth: ee,
|
|
82
|
+
arrowHeight: z
|
|
83
|
+
}),
|
|
84
|
+
$ && Oe({
|
|
85
|
+
strategy: "referenceHidden",
|
|
86
|
+
...b
|
|
87
|
+
})
|
|
88
|
+
]
|
|
89
|
+
}), [X, ie] = U(ne), A = be(G);
|
|
90
|
+
k(() => {
|
|
91
|
+
y && (A == null || A());
|
|
10
92
|
}, [
|
|
11
|
-
|
|
12
|
-
|
|
93
|
+
y,
|
|
94
|
+
A
|
|
13
95
|
]);
|
|
96
|
+
const de = (a = v.arrow) === null || a === void 0 ? void 0 : a.x, ce = (e = v.arrow) === null || e === void 0 ? void 0 : e.y, se = ((n = v.arrow) === null || n === void 0 ? void 0 : n.centerOffset) !== 0, [le, fe] = C();
|
|
97
|
+
return k(() => {
|
|
98
|
+
R && fe(window.getComputedStyle(R).zIndex);
|
|
99
|
+
}, [
|
|
100
|
+
R
|
|
101
|
+
]), /* @__PURE__ */ m("div", {
|
|
102
|
+
ref: ae.setFloating,
|
|
103
|
+
"data-radix-popper-content-wrapper": "",
|
|
104
|
+
style: {
|
|
105
|
+
...I,
|
|
106
|
+
transform: y ? I.transform : "translate(0, -200%)",
|
|
107
|
+
// keep off the page when measuring
|
|
108
|
+
minWidth: "max-content",
|
|
109
|
+
zIndex: le,
|
|
110
|
+
"--radix-popper-transform-origin": [
|
|
111
|
+
(s = v.transformOrigin) === null || s === void 0 ? void 0 : s.x,
|
|
112
|
+
(w = v.transformOrigin) === null || w === void 0 ? void 0 : w.y
|
|
113
|
+
].join(" ")
|
|
114
|
+
},
|
|
115
|
+
dir: o.dir
|
|
116
|
+
}, /* @__PURE__ */ m(ze, {
|
|
117
|
+
scope: S,
|
|
118
|
+
placedSide: X,
|
|
119
|
+
onArrowChange: V,
|
|
120
|
+
arrowX: de,
|
|
121
|
+
arrowY: ce,
|
|
122
|
+
shouldHideArrow: se
|
|
123
|
+
}, /* @__PURE__ */ m(F.div, H({
|
|
124
|
+
"data-side": X,
|
|
125
|
+
"data-align": ie
|
|
126
|
+
}, W, {
|
|
127
|
+
ref: Q,
|
|
128
|
+
style: {
|
|
129
|
+
...W.style,
|
|
130
|
+
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
131
|
+
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
132
|
+
animation: y ? void 0 : "none",
|
|
133
|
+
// hide the content if using the hide middleware and should be hidden
|
|
134
|
+
opacity: (l = v.hide) !== null && l !== void 0 && l.referenceHidden ? 0 : void 0
|
|
135
|
+
}
|
|
136
|
+
}))));
|
|
137
|
+
}), Xe = "PopperArrow", Me = {
|
|
138
|
+
top: "bottom",
|
|
139
|
+
right: "left",
|
|
140
|
+
bottom: "top",
|
|
141
|
+
left: "right"
|
|
142
|
+
}, ke = /* @__PURE__ */ N(function(i, r) {
|
|
143
|
+
const { __scopePopper: t, ...a } = i, e = Ye(Xe, t), n = Me[e.placedSide];
|
|
144
|
+
return (
|
|
145
|
+
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
146
|
+
// doesn't report size as we'd expect on SVG elements.
|
|
147
|
+
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
148
|
+
/* @__PURE__ */ m("span", {
|
|
149
|
+
ref: e.onArrowChange,
|
|
150
|
+
style: {
|
|
151
|
+
position: "absolute",
|
|
152
|
+
left: e.arrowX,
|
|
153
|
+
top: e.arrowY,
|
|
154
|
+
[n]: 0,
|
|
155
|
+
transformOrigin: {
|
|
156
|
+
top: "",
|
|
157
|
+
right: "0 0",
|
|
158
|
+
bottom: "center 0",
|
|
159
|
+
left: "100% 0"
|
|
160
|
+
}[e.placedSide],
|
|
161
|
+
transform: {
|
|
162
|
+
top: "translateY(100%)",
|
|
163
|
+
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
164
|
+
bottom: "rotate(180deg)",
|
|
165
|
+
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
166
|
+
}[e.placedSide],
|
|
167
|
+
visibility: e.shouldHideArrow ? "hidden" : void 0
|
|
168
|
+
}
|
|
169
|
+
}, /* @__PURE__ */ m(ve, H({}, a, {
|
|
170
|
+
ref: r,
|
|
171
|
+
style: {
|
|
172
|
+
...a.style,
|
|
173
|
+
// ensures the element can be measured correctly (mostly for if SVG)
|
|
174
|
+
display: "block"
|
|
175
|
+
}
|
|
176
|
+
})))
|
|
177
|
+
);
|
|
178
|
+
});
|
|
179
|
+
function Be(o) {
|
|
180
|
+
return o !== null;
|
|
181
|
+
}
|
|
182
|
+
const Fe = (o) => ({
|
|
183
|
+
name: "transformOrigin",
|
|
184
|
+
options: o,
|
|
185
|
+
fn(i) {
|
|
186
|
+
var r, t, a, e, n;
|
|
187
|
+
const { placement: s, rects: w, middlewareData: l } = i, d = ((r = l.arrow) === null || r === void 0 ? void 0 : r.centerOffset) !== 0, O = d ? 0 : o.arrowWidth, c = d ? 0 : o.arrowHeight, [h, D] = U(s), f = {
|
|
188
|
+
start: "0%",
|
|
189
|
+
center: "50%",
|
|
190
|
+
end: "100%"
|
|
191
|
+
}[D], u = ((t = (a = l.arrow) === null || a === void 0 ? void 0 : a.x) !== null && t !== void 0 ? t : 0) + O / 2, g = ((e = (n = l.arrow) === null || n === void 0 ? void 0 : n.y) !== null && e !== void 0 ? e : 0) + c / 2;
|
|
192
|
+
let p = "", $ = "";
|
|
193
|
+
return h === "bottom" ? (p = d ? f : `${u}px`, $ = `${-c}px`) : h === "top" ? (p = d ? f : `${u}px`, $ = `${w.floating.height + c}px`) : h === "right" ? (p = `${-c}px`, $ = d ? f : `${g}px`) : h === "left" && (p = `${w.floating.width + c}px`, $ = d ? f : `${g}px`), {
|
|
194
|
+
data: {
|
|
195
|
+
x: p,
|
|
196
|
+
y: $
|
|
197
|
+
}
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
function U(o) {
|
|
202
|
+
const [i, r = "center"] = o.split("-");
|
|
203
|
+
return [
|
|
204
|
+
i,
|
|
205
|
+
r
|
|
206
|
+
];
|
|
14
207
|
}
|
|
208
|
+
const ot = He, rt = We, at = Ie, nt = ke;
|
|
15
209
|
export {
|
|
16
|
-
|
|
210
|
+
rt as Anchor,
|
|
211
|
+
nt as Arrow,
|
|
212
|
+
at as Content,
|
|
213
|
+
He as Popper,
|
|
214
|
+
We as PopperAnchor,
|
|
215
|
+
ke as PopperArrow,
|
|
216
|
+
Ie as PopperContent,
|
|
217
|
+
ot as Root,
|
|
218
|
+
tt as createPopperScope
|
|
17
219
|
};
|
|
18
220
|
//# sourceMappingURL=index.es150.js.map
|