@anoki/fse-ui 1.10.1-RC2.16.1 → 1.10.1-RC2.16.3
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.cjs137.js +1 -1
- package/dist/index.cjs137.js.map +1 -1
- package/dist/index.cjs206.js +1 -1
- package/dist/index.cjs206.js.map +1 -1
- package/dist/index.cjs226.js +1 -1
- package/dist/index.cjs226.js.map +1 -1
- package/dist/index.cjs251.js +1 -1
- package/dist/index.cjs258.js +1 -1
- package/dist/index.cjs264.js +1 -1
- package/dist/index.cjs265.js +1 -1
- package/dist/index.cjs266.js +1 -1
- package/dist/index.cjs267.js +1 -1
- package/dist/index.cjs297.js +1 -1
- package/dist/index.cjs302.js +1 -1
- package/dist/index.cjs310.js +1 -1
- package/dist/index.cjs32.js +1 -1
- package/dist/index.cjs321.js +1 -1
- package/dist/index.cjs328.js +1 -1
- package/dist/index.cjs33.js +1 -1
- package/dist/index.cjs335.js +1 -1
- package/dist/index.cjs340.js +1 -1
- package/dist/index.cjs351.js +1 -1
- package/dist/index.cjs359.js +1 -1
- package/dist/index.cjs377.js +1 -1
- package/dist/index.cjs378.js +1 -1
- package/dist/index.cjs400.js +1 -1
- package/dist/index.cjs406.js +1 -1
- package/dist/index.cjs418.js +1 -1
- package/dist/index.cjs437.js +1 -1
- package/dist/index.cjs441.js +1 -1
- package/dist/index.cjs449.js +1 -1
- package/dist/index.cjs460.js +1 -1
- package/dist/index.cjs461.js +1 -1
- package/dist/index.cjs464.js +27 -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 +1 -27
- 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 -1
- package/dist/index.cjs469.js.map +1 -1
- package/dist/index.cjs470.js +1 -1
- package/dist/index.cjs470.js.map +1 -1
- package/dist/index.cjs471.js +2 -0
- package/dist/index.cjs471.js.map +1 -0
- package/dist/index.cjs472.js +2 -0
- package/dist/index.cjs472.js.map +1 -0
- package/dist/index.cjs473.js +1 -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.cjs481.js +1 -1
- package/dist/index.cjs482.js +1 -1
- package/dist/index.cjs485.js +2 -0
- package/dist/index.cjs485.js.map +1 -0
- package/dist/{index.cjs499.js → index.cjs486.js} +2 -2
- package/dist/{index.cjs499.js.map → index.cjs486.js.map} +1 -1
- package/dist/{index.cjs500.js → index.cjs487.js} +2 -2
- package/dist/{index.cjs500.js.map → index.cjs487.js.map} +1 -1
- package/dist/{index.cjs501.js → index.cjs488.js} +1 -1
- package/dist/{index.cjs501.js.map → index.cjs488.js.map} +1 -1
- package/dist/{index.cjs502.js → index.cjs489.js} +1 -1
- package/dist/{index.cjs502.js.map → index.cjs489.js.map} +1 -1
- package/dist/{index.cjs503.js → index.cjs490.js} +1 -1
- package/dist/{index.cjs503.js.map → index.cjs490.js.map} +1 -1
- package/dist/{index.cjs504.js → index.cjs491.js} +2 -2
- package/dist/{index.cjs504.js.map → index.cjs491.js.map} +1 -1
- package/dist/index.cjs498.js +1 -1
- package/dist/index.cjs498.js.map +1 -1
- package/dist/{index.cjs511.js → index.cjs514.js} +2 -2
- package/dist/{index.cjs511.js.map → index.cjs514.js.map} +1 -1
- package/dist/{index.cjs512.js → index.cjs515.js} +1 -1
- package/dist/index.cjs515.js.map +1 -0
- package/dist/index.cjs518.js +2 -0
- package/dist/index.cjs518.js.map +1 -0
- package/dist/{index.cjs516.js → index.cjs519.js} +1 -1
- package/dist/index.cjs519.js.map +1 -0
- package/dist/index.cjs520.js +1 -1
- package/dist/index.cjs520.js.map +1 -1
- package/dist/index.cjs521.js +2 -0
- package/dist/index.cjs521.js.map +1 -0
- package/dist/{index.cjs517.js → index.cjs522.js} +1 -1
- package/dist/index.cjs522.js.map +1 -0
- package/dist/index.cjs523.js +1 -1
- package/dist/index.cjs523.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.cjs529.js +1 -1
- package/dist/index.cjs529.js.map +1 -1
- package/dist/index.cjs530.js +1 -1
- package/dist/index.cjs530.js.map +1 -1
- package/dist/index.cjs532.js +1 -1
- package/dist/index.cjs532.js.map +1 -1
- package/dist/index.cjs533.js +1 -1
- package/dist/index.cjs533.js.map +1 -1
- package/dist/index.cjs534.js +1 -1
- package/dist/index.cjs534.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.cjs538.js +1 -1
- package/dist/index.cjs577.js +1 -1
- package/dist/index.cjs578.js +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.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.cjs645.js +1 -1
- package/dist/index.cjs647.js +1 -1
- package/dist/index.cjs662.js +1 -38
- package/dist/index.cjs662.js.map +1 -1
- package/dist/index.cjs663.js +1 -1
- package/dist/index.cjs663.js.map +1 -1
- package/dist/index.cjs664.js +1 -1
- package/dist/index.cjs664.js.map +1 -1
- package/dist/index.cjs665.js +1 -1
- package/dist/index.cjs665.js.map +1 -1
- package/dist/index.cjs666.js +38 -1
- package/dist/index.cjs666.js.map +1 -1
- package/dist/index.cjs667.js +1 -1
- package/dist/index.cjs667.js.map +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.es137.js +14 -15
- package/dist/index.es137.js.map +1 -1
- package/dist/index.es206.js +5 -5
- package/dist/index.es206.js.map +1 -1
- package/dist/index.es226.js +10 -10
- package/dist/index.es226.js.map +1 -1
- package/dist/index.es251.js +1 -1
- package/dist/index.es258.js +1 -1
- package/dist/index.es264.js +3 -3
- package/dist/index.es265.js +1 -1
- package/dist/index.es266.js +2 -2
- package/dist/index.es267.js +2 -2
- package/dist/index.es297.js +7 -7
- package/dist/index.es302.js +1 -1
- package/dist/index.es310.js +5 -5
- package/dist/index.es32.js +1 -1
- package/dist/index.es321.js +1 -1
- package/dist/index.es328.js +13 -13
- package/dist/index.es33.js +1 -1
- package/dist/index.es335.js +1 -1
- package/dist/index.es340.js +1 -1
- package/dist/index.es351.js +1 -1
- package/dist/index.es359.js +5 -5
- package/dist/index.es377.js +6 -6
- package/dist/index.es378.js +2 -2
- package/dist/index.es400.js +4 -4
- package/dist/index.es406.js +1 -1
- package/dist/index.es418.js +8 -8
- package/dist/index.es437.js +1 -1
- package/dist/index.es441.js +1 -1
- package/dist/index.es449.js +1 -1
- package/dist/index.es460.js +1 -1
- package/dist/index.es461.js +1 -1
- package/dist/index.es464.js +3664 -2021
- package/dist/index.es464.js.map +1 -1
- package/dist/index.es465.js +5 -59
- package/dist/index.es465.js.map +1 -1
- package/dist/index.es466.js +2 -189
- package/dist/index.es466.js.map +1 -1
- package/dist/index.es467.js +2019 -3662
- package/dist/index.es467.js.map +1 -1
- package/dist/index.es468.js +59 -5
- package/dist/index.es468.js.map +1 -1
- package/dist/index.es469.js +189 -2
- package/dist/index.es469.js.map +1 -1
- package/dist/index.es470.js +7 -15
- package/dist/index.es470.js.map +1 -1
- package/dist/index.es471.js +30 -0
- package/dist/index.es471.js.map +1 -0
- package/dist/index.es472.js +71 -0
- package/dist/index.es472.js.map +1 -0
- package/dist/index.es473.js +29 -6
- package/dist/index.es473.js.map +1 -1
- package/dist/index.es474.js +32 -26
- package/dist/index.es474.js.map +1 -1
- package/dist/index.es475.js +617 -63
- package/dist/index.es475.js.map +1 -1
- package/dist/index.es476.js +10 -29
- package/dist/index.es476.js.map +1 -1
- package/dist/index.es477.js +15 -33
- package/dist/index.es477.js.map +1 -1
- package/dist/index.es481.js +1 -1
- package/dist/index.es482.js +2 -2
- package/dist/index.es485.js +128 -0
- package/dist/index.es485.js.map +1 -0
- package/dist/{index.es499.js → index.es486.js} +3 -3
- package/dist/{index.es499.js.map → index.es486.js.map} +1 -1
- package/dist/{index.es500.js → index.es487.js} +3 -3
- package/dist/{index.es500.js.map → index.es487.js.map} +1 -1
- package/dist/{index.es501.js → index.es488.js} +1 -1
- package/dist/{index.es501.js.map → index.es488.js.map} +1 -1
- package/dist/{index.es502.js → index.es489.js} +1 -1
- package/dist/{index.es502.js.map → index.es489.js.map} +1 -1
- package/dist/{index.es503.js → index.es490.js} +1 -1
- package/dist/{index.es503.js.map → index.es490.js.map} +1 -1
- package/dist/{index.es504.js → index.es491.js} +2 -2
- package/dist/{index.es504.js.map → index.es491.js.map} +1 -1
- package/dist/index.es498.js +14 -124
- package/dist/index.es498.js.map +1 -1
- package/dist/{index.es511.js → index.es514.js} +3 -3
- package/dist/{index.es511.js.map → index.es514.js.map} +1 -1
- package/dist/{index.es512.js → index.es515.js} +1 -1
- package/dist/index.es515.js.map +1 -0
- package/dist/index.es518.js +24 -0
- package/dist/index.es518.js.map +1 -0
- package/dist/{index.es516.js → index.es519.js} +1 -1
- package/dist/index.es519.js.map +1 -0
- package/dist/index.es520.js +53 -4
- package/dist/index.es520.js.map +1 -1
- package/dist/index.es521.js +206 -0
- package/dist/index.es521.js.map +1 -0
- package/dist/{index.es524.js → index.es522.js} +1 -1
- package/dist/index.es522.js.map +1 -0
- package/dist/index.es523.js +2 -21
- package/dist/index.es523.js.map +1 -1
- package/dist/index.es526.js +4 -202
- package/dist/index.es526.js.map +1 -1
- package/dist/index.es527.js +131 -8
- package/dist/index.es527.js.map +1 -1
- package/dist/index.es528.js +1 -1
- package/dist/index.es529.js +9 -3
- package/dist/index.es529.js.map +1 -1
- package/dist/index.es530.js +2 -131
- package/dist/index.es530.js.map +1 -1
- package/dist/index.es532.js +46 -4
- package/dist/index.es532.js.map +1 -1
- package/dist/index.es533.js +13 -45
- package/dist/index.es533.js.map +1 -1
- package/dist/index.es534.js +216 -12
- package/dist/index.es534.js.map +1 -1
- package/dist/index.es535.js +163 -203
- package/dist/index.es535.js.map +1 -1
- package/dist/index.es536.js +3 -177
- package/dist/index.es536.js.map +1 -1
- package/dist/index.es538.js +1 -1
- package/dist/index.es577.js +1 -1
- package/dist/index.es578.js +3 -3
- package/dist/index.es582.js +83 -5
- package/dist/index.es582.js.map +1 -1
- package/dist/index.es583.js +5 -16
- package/dist/index.es583.js.map +1 -1
- package/dist/index.es584.js +15 -12
- package/dist/index.es584.js.map +1 -1
- package/dist/index.es585.js +13 -36
- package/dist/index.es585.js.map +1 -1
- package/dist/index.es586.js +36 -5
- package/dist/index.es586.js.map +1 -1
- package/dist/index.es587.js +5 -2
- package/dist/index.es587.js.map +1 -1
- package/dist/index.es588.js +2 -3
- package/dist/index.es588.js.map +1 -1
- package/dist/index.es589.js +3 -7
- package/dist/index.es589.js.map +1 -1
- package/dist/index.es590.js +7 -6
- package/dist/index.es590.js.map +1 -1
- package/dist/index.es591.js +6 -5
- package/dist/index.es591.js.map +1 -1
- package/dist/index.es592.js +5 -32
- package/dist/index.es592.js.map +1 -1
- package/dist/index.es593.js +32 -242
- package/dist/index.es593.js.map +1 -1
- package/dist/index.es594.js +242 -4
- package/dist/index.es594.js.map +1 -1
- package/dist/index.es595.js +4 -5
- package/dist/index.es595.js.map +1 -1
- package/dist/index.es596.js +4 -9
- package/dist/index.es596.js.map +1 -1
- package/dist/index.es597.js +9 -55
- package/dist/index.es597.js.map +1 -1
- package/dist/index.es598.js +55 -7
- package/dist/index.es598.js.map +1 -1
- package/dist/index.es599.js +7 -5
- package/dist/index.es599.js.map +1 -1
- package/dist/index.es600.js +5 -532
- package/dist/index.es600.js.map +1 -1
- package/dist/index.es601.js +532 -13
- package/dist/index.es601.js.map +1 -1
- package/dist/index.es602.js +14 -2
- package/dist/index.es602.js.map +1 -1
- package/dist/index.es603.js +2 -37
- package/dist/index.es603.js.map +1 -1
- package/dist/index.es604.js +37 -2
- package/dist/index.es604.js.map +1 -1
- package/dist/index.es605.js +2 -273
- package/dist/index.es605.js.map +1 -1
- package/dist/index.es606.js +273 -3
- package/dist/index.es606.js.map +1 -1
- package/dist/index.es607.js +3 -30
- package/dist/index.es607.js.map +1 -1
- package/dist/index.es608.js +28 -81
- package/dist/index.es608.js.map +1 -1
- package/dist/index.es645.js +1 -1
- package/dist/index.es647.js +4 -4
- package/dist/index.es662.js +518 -64
- package/dist/index.es662.js.map +1 -1
- package/dist/index.es663.js +126 -8
- package/dist/index.es663.js.map +1 -1
- package/dist/index.es664.js +128 -13
- package/dist/index.es664.js.map +1 -1
- package/dist/index.es665.js +64 -61
- package/dist/index.es665.js.map +1 -1
- package/dist/index.es666.js +69 -65
- package/dist/index.es666.js.map +1 -1
- package/dist/index.es667.js +7 -521
- package/dist/index.es667.js.map +1 -1
- package/dist/index.es668.js +13 -126
- package/dist/index.es668.js.map +1 -1
- package/dist/index.es669.js +60 -127
- package/dist/index.es669.js.map +1 -1
- package/package.json +1 -1
- package/dist/index.cjs478.js +0 -2
- package/dist/index.cjs478.js.map +0 -1
- package/dist/index.cjs479.js +0 -2
- package/dist/index.cjs479.js.map +0 -1
- package/dist/index.cjs508.js +0 -2
- package/dist/index.cjs508.js.map +0 -1
- package/dist/index.cjs512.js.map +0 -1
- package/dist/index.cjs516.js.map +0 -1
- package/dist/index.cjs517.js.map +0 -1
- package/dist/index.cjs524.js +0 -2
- package/dist/index.cjs524.js.map +0 -1
- package/dist/index.cjs525.js +0 -2
- package/dist/index.cjs525.js.map +0 -1
- package/dist/index.es478.js +0 -625
- package/dist/index.es478.js.map +0 -1
- package/dist/index.es479.js +0 -14
- package/dist/index.es479.js.map +0 -1
- package/dist/index.es508.js +0 -18
- package/dist/index.es508.js.map +0 -1
- package/dist/index.es512.js.map +0 -1
- package/dist/index.es516.js.map +0 -1
- package/dist/index.es517.js +0 -5
- package/dist/index.es517.js.map +0 -1
- package/dist/index.es524.js.map +0 -1
- package/dist/index.es525.js +0 -57
- package/dist/index.es525.js.map +0 -1
- /package/dist/components/ui/{CardMapDoctor/CardMapDoctor.css → CardMapDoctorV2/CardMapDoctorV2.css} +0 -0
- /package/dist/components/ui/{ConsentModal/ConsentModalFooter/ConsentModalFooter.css → DoctorModal/DoctorModalFooter/DoctorModalFooter.css} +0 -0
package/dist/index.es536.js
CHANGED
@@ -1,181 +1,7 @@
|
|
1
|
-
import * as
|
2
|
-
|
3
|
-
import { createCollection as H } from "./index.es533.js";
|
4
|
-
import { useComposedRefs as V } from "./index.es474.js";
|
5
|
-
import { createContextScope as z } from "./index.es475.js";
|
6
|
-
import { useId as q } from "./index.es479.js";
|
7
|
-
import { Primitive as P } from "./index.es477.js";
|
8
|
-
import { useCallbackRef as J } from "./index.es531.js";
|
9
|
-
import { useControllableState as Q } from "./index.es476.js";
|
10
|
-
import { useDirection as W } from "./index.es534.js";
|
11
|
-
import { j as d } from "./index.es247.js";
|
12
|
-
var _ = "rovingFocusGroup.onEntryFocus", X = { bubbles: !1, cancelable: !0 }, b = "RovingFocusGroup", [h, G, Z] = H(b), [$, Fe] = z(
|
13
|
-
b,
|
14
|
-
[Z]
|
15
|
-
), [ee, oe] = $(b), N = s.forwardRef(
|
16
|
-
(e, r) => /* @__PURE__ */ d.jsx(h.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(h.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d.jsx(te, { ...e, ref: r }) }) })
|
17
|
-
);
|
18
|
-
N.displayName = b;
|
19
|
-
var te = s.forwardRef((e, r) => {
|
20
|
-
const {
|
21
|
-
__scopeRovingFocusGroup: c,
|
22
|
-
orientation: o,
|
23
|
-
loop: F = !1,
|
24
|
-
dir: g,
|
25
|
-
currentTabStopId: R,
|
26
|
-
defaultCurrentTabStopId: E,
|
27
|
-
onCurrentTabStopIdChange: m,
|
28
|
-
onEntryFocus: u,
|
29
|
-
preventScrollOnEntryFocus: w = !1,
|
30
|
-
...C
|
31
|
-
} = e, v = s.useRef(null), I = V(r, v), t = W(g), [f = null, T] = Q({
|
32
|
-
prop: R,
|
33
|
-
defaultProp: E,
|
34
|
-
onChange: m
|
35
|
-
}), [a, i] = s.useState(!1), S = J(u), M = G(c), x = s.useRef(!1), [k, y] = s.useState(0);
|
36
|
-
return s.useEffect(() => {
|
37
|
-
const n = v.current;
|
38
|
-
if (n)
|
39
|
-
return n.addEventListener(_, S), () => n.removeEventListener(_, S);
|
40
|
-
}, [S]), /* @__PURE__ */ d.jsx(
|
41
|
-
ee,
|
42
|
-
{
|
43
|
-
scope: c,
|
44
|
-
orientation: o,
|
45
|
-
dir: t,
|
46
|
-
loop: F,
|
47
|
-
currentTabStopId: f,
|
48
|
-
onItemFocus: s.useCallback(
|
49
|
-
(n) => T(n),
|
50
|
-
[T]
|
51
|
-
),
|
52
|
-
onItemShiftTab: s.useCallback(() => i(!0), []),
|
53
|
-
onFocusableItemAdd: s.useCallback(
|
54
|
-
() => y((n) => n + 1),
|
55
|
-
[]
|
56
|
-
),
|
57
|
-
onFocusableItemRemove: s.useCallback(
|
58
|
-
() => y((n) => n - 1),
|
59
|
-
[]
|
60
|
-
),
|
61
|
-
children: /* @__PURE__ */ d.jsx(
|
62
|
-
P.div,
|
63
|
-
{
|
64
|
-
tabIndex: a || k === 0 ? -1 : 0,
|
65
|
-
"data-orientation": o,
|
66
|
-
...C,
|
67
|
-
ref: I,
|
68
|
-
style: { outline: "none", ...e.style },
|
69
|
-
onMouseDown: p(e.onMouseDown, () => {
|
70
|
-
x.current = !0;
|
71
|
-
}),
|
72
|
-
onFocus: p(e.onFocus, (n) => {
|
73
|
-
const L = !x.current;
|
74
|
-
if (n.target === n.currentTarget && L && !a) {
|
75
|
-
const D = new CustomEvent(_, X);
|
76
|
-
if (n.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
77
|
-
const A = M().filter((l) => l.focusable), U = A.find((l) => l.active), B = A.find((l) => l.id === f), Y = [U, B, ...A].filter(
|
78
|
-
Boolean
|
79
|
-
).map((l) => l.ref.current);
|
80
|
-
j(Y, w);
|
81
|
-
}
|
82
|
-
}
|
83
|
-
x.current = !1;
|
84
|
-
}),
|
85
|
-
onBlur: p(e.onBlur, () => i(!1))
|
86
|
-
}
|
87
|
-
)
|
88
|
-
}
|
89
|
-
);
|
90
|
-
}), O = "RovingFocusGroupItem", K = s.forwardRef(
|
91
|
-
(e, r) => {
|
92
|
-
const {
|
93
|
-
__scopeRovingFocusGroup: c,
|
94
|
-
focusable: o = !0,
|
95
|
-
active: F = !1,
|
96
|
-
tabStopId: g,
|
97
|
-
...R
|
98
|
-
} = e, E = q(), m = g || E, u = oe(O, c), w = u.currentTabStopId === m, C = G(c), { onFocusableItemAdd: v, onFocusableItemRemove: I } = u;
|
99
|
-
return s.useEffect(() => {
|
100
|
-
if (o)
|
101
|
-
return v(), () => I();
|
102
|
-
}, [o, v, I]), /* @__PURE__ */ d.jsx(
|
103
|
-
h.ItemSlot,
|
104
|
-
{
|
105
|
-
scope: c,
|
106
|
-
id: m,
|
107
|
-
focusable: o,
|
108
|
-
active: F,
|
109
|
-
children: /* @__PURE__ */ d.jsx(
|
110
|
-
P.span,
|
111
|
-
{
|
112
|
-
tabIndex: w ? 0 : -1,
|
113
|
-
"data-orientation": u.orientation,
|
114
|
-
...R,
|
115
|
-
ref: r,
|
116
|
-
onMouseDown: p(e.onMouseDown, (t) => {
|
117
|
-
o ? u.onItemFocus(m) : t.preventDefault();
|
118
|
-
}),
|
119
|
-
onFocus: p(e.onFocus, () => u.onItemFocus(m)),
|
120
|
-
onKeyDown: p(e.onKeyDown, (t) => {
|
121
|
-
if (t.key === "Tab" && t.shiftKey) {
|
122
|
-
u.onItemShiftTab();
|
123
|
-
return;
|
124
|
-
}
|
125
|
-
if (t.target !== t.currentTarget) return;
|
126
|
-
const f = se(t, u.orientation, u.dir);
|
127
|
-
if (f !== void 0) {
|
128
|
-
if (t.metaKey || t.ctrlKey || t.altKey || t.shiftKey) return;
|
129
|
-
t.preventDefault();
|
130
|
-
let a = C().filter((i) => i.focusable).map((i) => i.ref.current);
|
131
|
-
if (f === "last") a.reverse();
|
132
|
-
else if (f === "prev" || f === "next") {
|
133
|
-
f === "prev" && a.reverse();
|
134
|
-
const i = a.indexOf(t.currentTarget);
|
135
|
-
a = u.loop ? ce(a, i + 1) : a.slice(i + 1);
|
136
|
-
}
|
137
|
-
setTimeout(() => j(a));
|
138
|
-
}
|
139
|
-
})
|
140
|
-
}
|
141
|
-
)
|
142
|
-
}
|
143
|
-
);
|
144
|
-
}
|
145
|
-
);
|
146
|
-
K.displayName = O;
|
147
|
-
var re = {
|
148
|
-
ArrowLeft: "prev",
|
149
|
-
ArrowUp: "prev",
|
150
|
-
ArrowRight: "next",
|
151
|
-
ArrowDown: "next",
|
152
|
-
PageUp: "first",
|
153
|
-
Home: "first",
|
154
|
-
PageDown: "last",
|
155
|
-
End: "last"
|
1
|
+
import * as t from "react";
|
2
|
+
var e = globalThis != null && globalThis.document ? t.useLayoutEffect : () => {
|
156
3
|
};
|
157
|
-
function ne(e, r) {
|
158
|
-
return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
159
|
-
}
|
160
|
-
function se(e, r, c) {
|
161
|
-
const o = ne(e.key, c);
|
162
|
-
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
163
|
-
return re[o];
|
164
|
-
}
|
165
|
-
function j(e, r = !1) {
|
166
|
-
const c = document.activeElement;
|
167
|
-
for (const o of e)
|
168
|
-
if (o === c || (o.focus({ preventScroll: r }), document.activeElement !== c)) return;
|
169
|
-
}
|
170
|
-
function ce(e, r) {
|
171
|
-
return e.map((c, o) => e[(r + o) % e.length]);
|
172
|
-
}
|
173
|
-
var ge = N, Re = K;
|
174
4
|
export {
|
175
|
-
|
176
|
-
ge as Root,
|
177
|
-
N as RovingFocusGroup,
|
178
|
-
K as RovingFocusGroupItem,
|
179
|
-
Fe as createRovingFocusGroupScope
|
5
|
+
e as useLayoutEffect
|
180
6
|
};
|
181
7
|
//# sourceMappingURL=index.es536.js.map
|
package/dist/index.es536.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es536.js","sources":["../node_modules/@radix-ui/react-roving-focus/dist/index.mjs"],"sourcesContent":["\"use client\";\n\n// packages/react/roving-focus/src/roving-focus-group.tsx\nimport * as React from \"react\";\nimport { composeEventHandlers } from \"@radix-ui/primitive\";\nimport { createCollection } from \"@radix-ui/react-collection\";\nimport { useComposedRefs } from \"@radix-ui/react-compose-refs\";\nimport { createContextScope } from \"@radix-ui/react-context\";\nimport { useId } from \"@radix-ui/react-id\";\nimport { Primitive } from \"@radix-ui/react-primitive\";\nimport { useCallbackRef } from \"@radix-ui/react-use-callback-ref\";\nimport { useControllableState } from \"@radix-ui/react-use-controllable-state\";\nimport { useDirection } from \"@radix-ui/react-direction\";\nimport { jsx } from \"react/jsx-runtime\";\nvar ENTRY_FOCUS = \"rovingFocusGroup.onEntryFocus\";\nvar EVENT_OPTIONS = { bubbles: false, cancelable: true };\nvar GROUP_NAME = \"RovingFocusGroup\";\nvar [Collection, useCollection, createCollectionScope] = createCollection(GROUP_NAME);\nvar [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContextScope(\n GROUP_NAME,\n [createCollectionScope]\n);\nvar [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);\nvar RovingFocusGroup = React.forwardRef(\n (props, forwardedRef) => {\n return /* @__PURE__ */ jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });\n }\n);\nRovingFocusGroup.displayName = GROUP_NAME;\nvar RovingFocusGroupImpl = React.forwardRef((props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n orientation,\n loop = false,\n dir,\n currentTabStopId: currentTabStopIdProp,\n defaultCurrentTabStopId,\n onCurrentTabStopIdChange,\n onEntryFocus,\n preventScrollOnEntryFocus = false,\n ...groupProps\n } = props;\n const ref = React.useRef(null);\n const composedRefs = useComposedRefs(forwardedRef, ref);\n const direction = useDirection(dir);\n const [currentTabStopId = null, setCurrentTabStopId] = useControllableState({\n prop: currentTabStopIdProp,\n defaultProp: defaultCurrentTabStopId,\n onChange: onCurrentTabStopIdChange\n });\n const [isTabbingBackOut, setIsTabbingBackOut] = React.useState(false);\n const handleEntryFocus = useCallbackRef(onEntryFocus);\n const getItems = useCollection(__scopeRovingFocusGroup);\n const isClickFocusRef = React.useRef(false);\n const [focusableItemsCount, setFocusableItemsCount] = React.useState(0);\n React.useEffect(() => {\n const node = ref.current;\n if (node) {\n node.addEventListener(ENTRY_FOCUS, handleEntryFocus);\n return () => node.removeEventListener(ENTRY_FOCUS, handleEntryFocus);\n }\n }, [handleEntryFocus]);\n return /* @__PURE__ */ jsx(\n RovingFocusProvider,\n {\n scope: __scopeRovingFocusGroup,\n orientation,\n dir: direction,\n loop,\n currentTabStopId,\n onItemFocus: React.useCallback(\n (tabStopId) => setCurrentTabStopId(tabStopId),\n [setCurrentTabStopId]\n ),\n onItemShiftTab: React.useCallback(() => setIsTabbingBackOut(true), []),\n onFocusableItemAdd: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount + 1),\n []\n ),\n onFocusableItemRemove: React.useCallback(\n () => setFocusableItemsCount((prevCount) => prevCount - 1),\n []\n ),\n children: /* @__PURE__ */ jsx(\n Primitive.div,\n {\n tabIndex: isTabbingBackOut || focusableItemsCount === 0 ? -1 : 0,\n \"data-orientation\": orientation,\n ...groupProps,\n ref: composedRefs,\n style: { outline: \"none\", ...props.style },\n onMouseDown: composeEventHandlers(props.onMouseDown, () => {\n isClickFocusRef.current = true;\n }),\n onFocus: composeEventHandlers(props.onFocus, (event) => {\n const isKeyboardFocus = !isClickFocusRef.current;\n if (event.target === event.currentTarget && isKeyboardFocus && !isTabbingBackOut) {\n const entryFocusEvent = new CustomEvent(ENTRY_FOCUS, EVENT_OPTIONS);\n event.currentTarget.dispatchEvent(entryFocusEvent);\n if (!entryFocusEvent.defaultPrevented) {\n const items = getItems().filter((item) => item.focusable);\n const activeItem = items.find((item) => item.active);\n const currentItem = items.find((item) => item.id === currentTabStopId);\n const candidateItems = [activeItem, currentItem, ...items].filter(\n Boolean\n );\n const candidateNodes = candidateItems.map((item) => item.ref.current);\n focusFirst(candidateNodes, preventScrollOnEntryFocus);\n }\n }\n isClickFocusRef.current = false;\n }),\n onBlur: composeEventHandlers(props.onBlur, () => setIsTabbingBackOut(false))\n }\n )\n }\n );\n});\nvar ITEM_NAME = \"RovingFocusGroupItem\";\nvar RovingFocusGroupItem = React.forwardRef(\n (props, forwardedRef) => {\n const {\n __scopeRovingFocusGroup,\n focusable = true,\n active = false,\n tabStopId,\n ...itemProps\n } = props;\n const autoId = useId();\n const id = tabStopId || autoId;\n const context = useRovingFocusContext(ITEM_NAME, __scopeRovingFocusGroup);\n const isCurrentTabStop = context.currentTabStopId === id;\n const getItems = useCollection(__scopeRovingFocusGroup);\n const { onFocusableItemAdd, onFocusableItemRemove } = context;\n React.useEffect(() => {\n if (focusable) {\n onFocusableItemAdd();\n return () => onFocusableItemRemove();\n }\n }, [focusable, onFocusableItemAdd, onFocusableItemRemove]);\n return /* @__PURE__ */ jsx(\n Collection.ItemSlot,\n {\n scope: __scopeRovingFocusGroup,\n id,\n focusable,\n active,\n children: /* @__PURE__ */ jsx(\n Primitive.span,\n {\n tabIndex: isCurrentTabStop ? 0 : -1,\n \"data-orientation\": context.orientation,\n ...itemProps,\n ref: forwardedRef,\n onMouseDown: composeEventHandlers(props.onMouseDown, (event) => {\n if (!focusable) event.preventDefault();\n else context.onItemFocus(id);\n }),\n onFocus: composeEventHandlers(props.onFocus, () => context.onItemFocus(id)),\n onKeyDown: composeEventHandlers(props.onKeyDown, (event) => {\n if (event.key === \"Tab\" && event.shiftKey) {\n context.onItemShiftTab();\n return;\n }\n if (event.target !== event.currentTarget) return;\n const focusIntent = getFocusIntent(event, context.orientation, context.dir);\n if (focusIntent !== void 0) {\n if (event.metaKey || event.ctrlKey || event.altKey || event.shiftKey) return;\n event.preventDefault();\n const items = getItems().filter((item) => item.focusable);\n let candidateNodes = items.map((item) => item.ref.current);\n if (focusIntent === \"last\") candidateNodes.reverse();\n else if (focusIntent === \"prev\" || focusIntent === \"next\") {\n if (focusIntent === \"prev\") candidateNodes.reverse();\n const currentIndex = candidateNodes.indexOf(event.currentTarget);\n candidateNodes = context.loop ? wrapArray(candidateNodes, currentIndex + 1) : candidateNodes.slice(currentIndex + 1);\n }\n setTimeout(() => focusFirst(candidateNodes));\n }\n })\n }\n )\n }\n );\n }\n);\nRovingFocusGroupItem.displayName = ITEM_NAME;\nvar MAP_KEY_TO_FOCUS_INTENT = {\n ArrowLeft: \"prev\",\n ArrowUp: \"prev\",\n ArrowRight: \"next\",\n ArrowDown: \"next\",\n PageUp: \"first\",\n Home: \"first\",\n PageDown: \"last\",\n End: \"last\"\n};\nfunction getDirectionAwareKey(key, dir) {\n if (dir !== \"rtl\") return key;\n return key === \"ArrowLeft\" ? \"ArrowRight\" : key === \"ArrowRight\" ? \"ArrowLeft\" : key;\n}\nfunction getFocusIntent(event, orientation, dir) {\n const key = getDirectionAwareKey(event.key, dir);\n if (orientation === \"vertical\" && [\"ArrowLeft\", \"ArrowRight\"].includes(key)) return void 0;\n if (orientation === \"horizontal\" && [\"ArrowUp\", \"ArrowDown\"].includes(key)) return void 0;\n return MAP_KEY_TO_FOCUS_INTENT[key];\n}\nfunction focusFirst(candidates, preventScroll = false) {\n const PREVIOUSLY_FOCUSED_ELEMENT = document.activeElement;\n for (const candidate of candidates) {\n if (candidate === PREVIOUSLY_FOCUSED_ELEMENT) return;\n candidate.focus({ preventScroll });\n if (document.activeElement !== PREVIOUSLY_FOCUSED_ELEMENT) return;\n }\n}\nfunction wrapArray(array, startIndex) {\n return array.map((_, index) => array[(startIndex + index) % array.length]);\n}\nvar Root = RovingFocusGroup;\nvar Item = RovingFocusGroupItem;\nexport {\n Item,\n Root,\n RovingFocusGroup,\n RovingFocusGroupItem,\n createRovingFocusGroupScope\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["ENTRY_FOCUS","EVENT_OPTIONS","GROUP_NAME","Collection","useCollection","createCollectionScope","createCollection","createRovingFocusGroupContext","createRovingFocusGroupScope","createContextScope","RovingFocusProvider","useRovingFocusContext","RovingFocusGroup","React","props","forwardedRef","jsx","RovingFocusGroupImpl","__scopeRovingFocusGroup","orientation","loop","dir","currentTabStopIdProp","defaultCurrentTabStopId","onCurrentTabStopIdChange","onEntryFocus","preventScrollOnEntryFocus","groupProps","ref","composedRefs","useComposedRefs","direction","useDirection","currentTabStopId","setCurrentTabStopId","useControllableState","isTabbingBackOut","setIsTabbingBackOut","handleEntryFocus","useCallbackRef","getItems","isClickFocusRef","focusableItemsCount","setFocusableItemsCount","node","tabStopId","prevCount","Primitive","composeEventHandlers","event","isKeyboardFocus","entryFocusEvent","items","item","activeItem","currentItem","candidateNodes","focusFirst","ITEM_NAME","RovingFocusGroupItem","focusable","active","itemProps","autoId","useId","id","context","isCurrentTabStop","onFocusableItemAdd","onFocusableItemRemove","focusIntent","getFocusIntent","currentIndex","wrapArray","MAP_KEY_TO_FOCUS_INTENT","getDirectionAwareKey","key","candidates","preventScroll","PREVIOUSLY_FOCUSED_ELEMENT","candidate","array","startIndex","_","index","Root","Item"],"mappings":";;;;;;;;;;;AAcA,IAAIA,IAAc,iCACdC,IAAgB,EAAE,SAAS,IAAO,YAAY,GAAM,GACpDC,IAAa,oBACb,CAACC,GAAYC,GAAeC,CAAqB,IAAIC,EAAiBJ,CAAU,GAChF,CAACK,GAA+BC,EAA2B,IAAIC;AAAA,EACjEP;AAAA,EACA,CAACG,CAAqB;AACxB,GACI,CAACK,IAAqBC,EAAqB,IAAIJ,EAA8BL,CAAU,GACvFU,IAAmBC,EAAM;AAAA,EAC3B,CAACC,GAAOC,MACiBC,gBAAAA,MAAIb,EAAW,UAAU,EAAE,OAAOW,EAAM,yBAAyB,UAA0BE,gBAAAA,MAAIb,EAAW,MAAM,EAAE,OAAOW,EAAM,yBAAyB,UAA0BE,gBAAAA,EAAAA,IAAIC,IAAsB,EAAE,GAAGH,GAAO,KAAKC,GAAc,EAAC,CAAE,EAAC,CAAE;AAE5Q;AACAH,EAAiB,cAAcV;AAC/B,IAAIe,KAAuBJ,EAAM,WAAW,CAACC,GAAOC,MAAiB;AACnE,QAAM;AAAA,IACJ,yBAAAG;AAAA,IACA,aAAAC;AAAA,IACA,MAAAC,IAAO;AAAA,IACP,KAAAC;AAAA,IACA,kBAAkBC;AAAA,IAClB,yBAAAC;AAAA,IACA,0BAAAC;AAAA,IACA,cAAAC;AAAA,IACA,2BAAAC,IAA4B;AAAA,IAC5B,GAAGC;AAAA,EACP,IAAMb,GACEc,IAAMf,EAAM,OAAO,IAAI,GACvBgB,IAAeC,EAAgBf,GAAca,CAAG,GAChDG,IAAYC,EAAaX,CAAG,GAC5B,CAACY,IAAmB,MAAMC,CAAmB,IAAIC,EAAqB;AAAA,IAC1E,MAAMb;AAAA,IACN,aAAaC;AAAA,IACb,UAAUC;AAAA,EACd,CAAG,GACK,CAACY,GAAkBC,CAAmB,IAAIxB,EAAM,SAAS,EAAK,GAC9D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.js","sources":["../node_modules/@radix-ui/react-use-layout-effect/dist/index.mjs"],"sourcesContent":["// packages/react/use-layout-effect/src/use-layout-effect.tsx\nimport * as React from \"react\";\nvar useLayoutEffect2 = globalThis?.document ? React.useLayoutEffect : () => {\n};\nexport {\n useLayoutEffect2 as useLayoutEffect\n};\n//# sourceMappingURL=index.mjs.map\n"],"names":["useLayoutEffect2","React"],"mappings":";AAEG,IAACA,IAAmB,iCAAY,WAAWC,EAAM,kBAAkB,MAAM;AAC5E;","x_google_ignoreList":[0]}
|
package/dist/index.es538.js
CHANGED
package/dist/index.es577.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import * as n from "react";
|
2
|
-
import { Primitive as p } from "./index.
|
2
|
+
import { Primitive as p } from "./index.es474.js";
|
3
3
|
import { j as o } from "./index.es247.js";
|
4
4
|
var v = "Arrow", e = n.forwardRef((r, i) => {
|
5
5
|
const { children: t, width: s = 10, height: a = 5, ...m } = r;
|
package/dist/index.es578.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
import { offset as ot, shift as st, flip as rt, size as ct, hide as lt, limitShift as ft, computePosition as ut, arrow as ht } from "./index.
|
2
|
-
import { createCoords as m, round as A, max as E, min as V, rectToClientRect as J, floor as D } from "./index.
|
3
|
-
import { isElement as v, getDocumentElement as O, getOverflowAncestors as $, getComputedStyle as R, isHTMLElement as b, getWindow as L, isTopLayer as S, getParentNode as W, isLastTraversableNode as H, isTableElement as at, isContainingBlock as Q, getContainingBlock as dt, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getFrameElement as K, isWebKit as Y } from "./index.
|
1
|
+
import { offset as ot, shift as st, flip as rt, size as ct, hide as lt, limitShift as ft, computePosition as ut, arrow as ht } from "./index.es662.js";
|
2
|
+
import { createCoords as m, round as A, max as E, min as V, rectToClientRect as J, floor as D } from "./index.es663.js";
|
3
|
+
import { isElement as v, getDocumentElement as O, getOverflowAncestors as $, getComputedStyle as R, isHTMLElement as b, getWindow as L, isTopLayer as S, getParentNode as W, isLastTraversableNode as H, isTableElement as at, isContainingBlock as Q, getContainingBlock as dt, getNodeName as M, isOverflowElement as _, getNodeScroll as N, getFrameElement as K, isWebKit as Y } from "./index.es664.js";
|
4
4
|
function Z(t) {
|
5
5
|
const e = R(t);
|
6
6
|
let i = parseFloat(e.width) || 0, n = parseFloat(e.height) || 0;
|
package/dist/index.es582.js
CHANGED
@@ -1,8 +1,86 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
import { commonjsGlobal as g } from "./index.es465.js";
|
2
|
+
var h, L;
|
3
|
+
function Y() {
|
4
|
+
if (L) return h;
|
5
|
+
L = 1;
|
6
|
+
var _ = "Expected a function", x = NaN, C = "[object Symbol]", M = /^\s+|\s+$/g, N = /^[-+]0x[0-9a-f]+$/i, R = /^0b[01]+$/i, W = /^0o[0-7]+$/i, $ = parseInt, q = typeof g == "object" && g && g.Object === Object && g, A = typeof self == "object" && self && self.Object === Object && self, B = q || A || Function("return this")(), F = Object.prototype, G = F.toString, P = Math.max, D = Math.min, y = function() {
|
7
|
+
return B.Date.now();
|
8
|
+
};
|
9
|
+
function H(e, r, i) {
|
10
|
+
var a, u, b, c, t, f, s = 0, O = !1, d = !1, j = !0;
|
11
|
+
if (typeof e != "function")
|
12
|
+
throw new TypeError(_);
|
13
|
+
r = I(r) || 0, p(i) && (O = !!i.leading, d = "maxWait" in i, b = d ? P(I(i.maxWait) || 0, r) : b, j = "trailing" in i ? !!i.trailing : j);
|
14
|
+
function v(n) {
|
15
|
+
var o = a, m = u;
|
16
|
+
return a = u = void 0, s = n, c = e.apply(m, o), c;
|
17
|
+
}
|
18
|
+
function z(n) {
|
19
|
+
return s = n, t = setTimeout(l, r), O ? v(n) : c;
|
20
|
+
}
|
21
|
+
function J(n) {
|
22
|
+
var o = n - f, m = n - s, E = r - o;
|
23
|
+
return d ? D(E, b - m) : E;
|
24
|
+
}
|
25
|
+
function S(n) {
|
26
|
+
var o = n - f, m = n - s;
|
27
|
+
return f === void 0 || o >= r || o < 0 || d && m >= b;
|
28
|
+
}
|
29
|
+
function l() {
|
30
|
+
var n = y();
|
31
|
+
if (S(n))
|
32
|
+
return k(n);
|
33
|
+
t = setTimeout(l, J(n));
|
34
|
+
}
|
35
|
+
function k(n) {
|
36
|
+
return t = void 0, j && a ? v(n) : (a = u = void 0, c);
|
37
|
+
}
|
38
|
+
function K() {
|
39
|
+
t !== void 0 && clearTimeout(t), s = 0, a = f = u = t = void 0;
|
40
|
+
}
|
41
|
+
function Q() {
|
42
|
+
return t === void 0 ? c : k(y());
|
43
|
+
}
|
44
|
+
function T() {
|
45
|
+
var n = y(), o = S(n);
|
46
|
+
if (a = arguments, u = this, f = n, o) {
|
47
|
+
if (t === void 0)
|
48
|
+
return z(f);
|
49
|
+
if (d)
|
50
|
+
return t = setTimeout(l, r), v(f);
|
51
|
+
}
|
52
|
+
return t === void 0 && (t = setTimeout(l, r)), c;
|
53
|
+
}
|
54
|
+
return T.cancel = K, T.flush = Q, T;
|
55
|
+
}
|
56
|
+
function p(e) {
|
57
|
+
var r = typeof e;
|
58
|
+
return !!e && (r == "object" || r == "function");
|
59
|
+
}
|
60
|
+
function U(e) {
|
61
|
+
return !!e && typeof e == "object";
|
62
|
+
}
|
63
|
+
function X(e) {
|
64
|
+
return typeof e == "symbol" || U(e) && G.call(e) == C;
|
65
|
+
}
|
66
|
+
function I(e) {
|
67
|
+
if (typeof e == "number")
|
68
|
+
return e;
|
69
|
+
if (X(e))
|
70
|
+
return x;
|
71
|
+
if (p(e)) {
|
72
|
+
var r = typeof e.valueOf == "function" ? e.valueOf() : e;
|
73
|
+
e = p(r) ? r + "" : r;
|
74
|
+
}
|
75
|
+
if (typeof e != "string")
|
76
|
+
return e === 0 ? e : +e;
|
77
|
+
e = e.replace(M, "");
|
78
|
+
var i = R.test(e);
|
79
|
+
return i || W.test(e) ? $(e.slice(2), i ? 2 : 8) : N.test(e) ? x : +e;
|
80
|
+
}
|
81
|
+
return h = H, h;
|
82
|
+
}
|
5
83
|
export {
|
6
|
-
|
84
|
+
Y as __require
|
7
85
|
};
|
8
86
|
//# sourceMappingURL=index.es582.js.map
|
package/dist/index.es582.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es582.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
1
|
+
{"version":3,"file":"index.es582.js","sources":["../node_modules/lodash.debounce/index.js"],"sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as the `TypeError` message for \"Functions\" methods. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n result = wait - timeSinceLastCall;\n\n return maxing ? nativeMin(result, maxWait - timeSinceLastInvoke) : result;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n var type = typeof value;\n return !!value && (type == 'object' || type == 'function');\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = value.replace(reTrim, '');\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = debounce;\n"],"names":["FUNC_ERROR_TEXT","NAN","symbolTag","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","freeGlobal","global","freeSelf","root","objectProto","objectToString","nativeMax","nativeMin","now","debounce","func","wait","options","lastArgs","lastThis","maxWait","result","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","toNumber","isObject","invokeFunc","time","args","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","value","type","isObjectLike","isSymbol","other","isBinary","lodash_debounce"],"mappings":";;;;;AAUA,MAAIA,IAAkB,uBAGlBC,IAAM,KAGNC,IAAY,mBAGZC,IAAS,cAGTC,IAAa,sBAGbC,IAAa,cAGbC,IAAY,eAGZC,IAAe,UAGfC,IAAa,OAAOC,KAAU,YAAYA,KAAUA,EAAO,WAAW,UAAUA,GAGhFC,IAAW,OAAO,QAAQ,YAAY,QAAQ,KAAK,WAAW,UAAU,MAGxEC,IAAOH,KAAcE,KAAY,SAAS,aAAa,EAAG,GAG1DE,IAAc,OAAO,WAOrBC,IAAiBD,EAAY,UAG7BE,IAAY,KAAK,KACjBC,IAAY,KAAK,KAkBjBC,IAAM,WAAW;AACnB,WAAOL,EAAK,KAAK,IAAK;AAAA,EACvB;AAwDD,WAASM,EAASC,GAAMC,GAAMC,GAAS;AACrC,QAAIC,GACAC,GACAC,GACAC,GACAC,GACAC,GACAC,IAAiB,GACjBC,IAAU,IACVC,IAAS,IACTC,IAAW;AAEf,QAAI,OAAOZ,KAAQ;AACjB,YAAM,IAAI,UAAUlB,CAAe;AAErC,IAAAmB,IAAOY,EAASZ,CAAI,KAAK,GACrBa,EAASZ,CAAO,MAClBQ,IAAU,CAAC,CAACR,EAAQ,SACpBS,IAAS,aAAaT,GACtBG,IAAUM,IAASf,EAAUiB,EAASX,EAAQ,OAAO,KAAK,GAAGD,CAAI,IAAII,GACrEO,IAAW,cAAcV,IAAU,CAAC,CAACA,EAAQ,WAAWU;AAG1D,aAASG,EAAWC,GAAM;AACxB,UAAIC,IAAOd,GACPe,IAAUd;AAEd,aAAAD,IAAWC,IAAW,QACtBK,IAAiBO,GACjBV,IAASN,EAAK,MAAMkB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
|
-
import { Spinner as B } from "./index.es601.js";
|
6
|
-
import { VisuallyHidden as b } from "./index.es606.js";
|
7
|
-
import { extractProps as y } from "./index.es585.js";
|
8
|
-
import { mapResponsiveProp as E, mapButtonSizeToSpinnerSize as g } from "./index.es656.js";
|
9
|
-
import { marginPropDefs as h } from "./index.es587.js";
|
10
|
-
import { Root as z } from "./index.es504.js";
|
11
|
-
const S = e.forwardRef((t, o) => {
|
12
|
-
const { size: i = s.size.default } = t, { className: n, children: a, asChild: l, color: m, radius: d, disabled: r = t.loading, ...p } = y(t, s, h), c = l ? z : "button";
|
13
|
-
return e.createElement(c, { "data-disabled": r || void 0, "data-accent-color": m, "data-radius": d, ...p, ref: o, className: u("rt-reset", "rt-BaseButton", n), disabled: r }, t.loading ? e.createElement(e.Fragment, null, e.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, a), e.createElement(b, null, a), e.createElement(f, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, e.createElement(B, { size: E(i, g) })))) : a);
|
14
|
-
});
|
15
|
-
S.displayName = "BaseButton";
|
1
|
+
import { getDefaultExportFromCjs as r } from "./index.es465.js";
|
2
|
+
import { __require as s } from "./index.es649.js";
|
3
|
+
var e = s();
|
4
|
+
const t = /* @__PURE__ */ r(e);
|
16
5
|
export {
|
17
|
-
|
6
|
+
t as default
|
18
7
|
};
|
19
8
|
//# sourceMappingURL=index.es583.js.map
|
package/dist/index.es583.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es583.js","sources":[
|
1
|
+
{"version":3,"file":"index.es583.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
package/dist/index.es584.js
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
import * as
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
import {
|
6
|
-
import {
|
7
|
-
import {
|
8
|
-
|
9
|
-
|
10
|
-
|
1
|
+
import * as e from "react";
|
2
|
+
import u from "./index.es583.js";
|
3
|
+
import { baseButtonPropDefs as s } from "./index.es655.js";
|
4
|
+
import { Flex as f } from "./index.es585.js";
|
5
|
+
import { Spinner as B } from "./index.es602.js";
|
6
|
+
import { VisuallyHidden as b } from "./index.es607.js";
|
7
|
+
import { extractProps as y } from "./index.es586.js";
|
8
|
+
import { mapResponsiveProp as E, mapButtonSizeToSpinnerSize as g } from "./index.es656.js";
|
9
|
+
import { marginPropDefs as h } from "./index.es588.js";
|
10
|
+
import { Root as z } from "./index.es491.js";
|
11
|
+
const S = e.forwardRef((t, o) => {
|
12
|
+
const { size: i = s.size.default } = t, { className: n, children: a, asChild: l, color: m, radius: d, disabled: r = t.loading, ...p } = y(t, s, h), c = l ? z : "button";
|
13
|
+
return e.createElement(c, { "data-disabled": r || void 0, "data-accent-color": m, "data-radius": d, ...p, ref: o, className: u("rt-reset", "rt-BaseButton", n), disabled: r }, t.loading ? e.createElement(e.Fragment, null, e.createElement("span", { style: { display: "contents", visibility: "hidden" }, "aria-hidden": !0 }, a), e.createElement(b, null, a), e.createElement(f, { asChild: !0, align: "center", justify: "center", position: "absolute", inset: "0" }, e.createElement("span", null, e.createElement(B, { size: E(i, g) })))) : a);
|
11
14
|
});
|
12
|
-
|
15
|
+
S.displayName = "BaseButton";
|
13
16
|
export {
|
14
|
-
|
17
|
+
S as BaseButton
|
15
18
|
};
|
16
19
|
//# sourceMappingURL=index.es584.js.map
|
package/dist/index.es584.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es584.js","sources":["../node_modules/@radix-ui/themes/dist/esm/components/
|
1
|
+
{"version":3,"file":"index.es584.js","sources":["../node_modules/@radix-ui/themes/dist/esm/components/_internal/base-button.js"],"sourcesContent":["import*as o from\"react\";import B from\"classnames\";import{Slot as P}from\"radix-ui\";import{baseButtonPropDefs as r}from\"./base-button.props.js\";import{Flex as y}from\"../flex.js\";import{Spinner as b}from\"../spinner.js\";import{VisuallyHidden as c}from\"../visually-hidden.js\";import{extractProps as h}from\"../../helpers/extract-props.js\";import{mapResponsiveProp as g,mapButtonSizeToSpinnerSize as C}from\"../../helpers/map-prop-values.js\";import{marginPropDefs as x}from\"../../props/margin.props.js\";const n=o.forwardRef((t,p)=>{const{size:i=r.size.default}=t,{className:a,children:e,asChild:m,color:d,radius:l,disabled:s=t.loading,...u}=h(t,r,x),f=m?P.Root:\"button\";return o.createElement(f,{\"data-disabled\":s||void 0,\"data-accent-color\":d,\"data-radius\":l,...u,ref:p,className:B(\"rt-reset\",\"rt-BaseButton\",a),disabled:s},t.loading?o.createElement(o.Fragment,null,o.createElement(\"span\",{style:{display:\"contents\",visibility:\"hidden\"},\"aria-hidden\":!0},e),o.createElement(c,null,e),o.createElement(y,{asChild:!0,align:\"center\",justify:\"center\",position:\"absolute\",inset:\"0\"},o.createElement(\"span\",null,o.createElement(b,{size:g(i,C)})))):e)});n.displayName=\"BaseButton\";export{n as BaseButton};\n//# sourceMappingURL=base-button.js.map\n"],"names":["n","o","p","i","r","a","e","m","d","l","s","u","h","x","f","P.Root","B","c","y","b","g","C"],"mappings":";;;;;;;;;;AAAof,MAACA,IAAEC,EAAE,WAAW,CAAC,GAAEC,MAAI;AAAC,QAAK,EAAC,MAAKC,IAAEC,EAAE,KAAK,QAAO,IAAE,GAAE,EAAC,WAAUC,GAAE,UAASC,GAAE,SAAQC,GAAE,OAAMC,GAAE,QAAOC,GAAE,UAASC,IAAE,EAAE,SAAQ,GAAGC,EAAC,IAAEC,EAAE,GAAER,GAAES,CAAC,GAAEC,IAAEP,IAAEQ,IAAO;AAAS,SAAOd,EAAE,cAAca,GAAE,EAAC,iBAAgBJ,KAAG,QAAO,qBAAoBF,GAAE,eAAcC,GAAE,GAAGE,GAAE,KAAIT,GAAE,WAAUc,EAAE,YAAW,iBAAgBX,CAAC,GAAE,UAASK,EAAC,GAAE,EAAE,UAAQT,EAAE,cAAcA,EAAE,UAAS,MAAKA,EAAE,cAAc,QAAO,EAAC,OAAM,EAAC,SAAQ,YAAW,YAAW,SAAQ,GAAE,eAAc,GAAE,GAAEK,CAAC,GAAEL,EAAE,cAAcgB,GAAE,MAAKX,CAAC,GAAEL,EAAE,cAAciB,GAAE,EAAC,SAAQ,IAAG,OAAM,UAAS,SAAQ,UAAS,UAAS,YAAW,OAAM,IAAG,GAAEjB,EAAE,cAAc,QAAO,MAAKA,EAAE,cAAckB,GAAE,EAAC,MAAKC,EAAEjB,GAAEkB,CAAC,EAAC,CAAC,CAAC,CAAC,CAAC,IAAEf,CAAC;AAAC,CAAC;AAAEN,EAAE,cAAY;","x_google_ignoreList":[0]}
|
package/dist/index.es585.js
CHANGED
@@ -1,39 +1,16 @@
|
|
1
|
-
import
|
2
|
-
import
|
3
|
-
import {
|
4
|
-
import {
|
5
|
-
|
6
|
-
|
7
|
-
}
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
const e = c[l];
|
14
|
-
if (e.default !== void 0 && s === void 0 && (s = e.default), e.type === "enum" && ![e.default, ...e.values].includes(s) && !r(s) && (s = e.default), t[l] = s, "className" in e && e.className) {
|
15
|
-
delete t[l];
|
16
|
-
const f = "responsive" in e;
|
17
|
-
if (!s || r(s) && !f) continue;
|
18
|
-
if (r(s) && (e.default !== void 0 && s.initial === void 0 && (s.initial = e.default), e.type === "enum" && ([e.default, ...e.values].includes(s.initial) || (s.initial = e.default))), e.type === "enum") {
|
19
|
-
const u = y({ allowArbitraryValues: !1, value: s, className: e.className, propValues: e.values, parseValue: e.parseValue });
|
20
|
-
a = n(a, u);
|
21
|
-
continue;
|
22
|
-
}
|
23
|
-
if (e.type === "string" || e.type === "enum | string") {
|
24
|
-
const u = e.type === "string" ? [] : e.values, [d, v] = N({ className: e.className, customProperties: e.customProperties, propValues: u, parseValue: e.parseValue, value: s });
|
25
|
-
o = p(o, v), a = n(a, d);
|
26
|
-
continue;
|
27
|
-
}
|
28
|
-
if (e.type === "boolean" && s) {
|
29
|
-
a = n(a, e.className);
|
30
|
-
continue;
|
31
|
-
}
|
32
|
-
}
|
33
|
-
}
|
34
|
-
return t.className = n(a, i.className), t.style = p(o, i.style), t;
|
35
|
-
}
|
1
|
+
import * as r from "react";
|
2
|
+
import f from "./index.es583.js";
|
3
|
+
import { extractProps as p } from "./index.es586.js";
|
4
|
+
import { layoutPropDefs as l } from "./index.es587.js";
|
5
|
+
import { marginPropDefs as i } from "./index.es588.js";
|
6
|
+
import { Slot as c } from "./index.es589.js";
|
7
|
+
import { flexPropDefs as x } from "./index.es590.js";
|
8
|
+
const n = r.forwardRef((o, a) => {
|
9
|
+
const { className: e, asChild: s, as: m = "div", ...t } = p(o, x, l, i);
|
10
|
+
return r.createElement(s ? c : m, { ...t, ref: a, className: f("rt-Flex", e) });
|
11
|
+
});
|
12
|
+
n.displayName = "Flex";
|
36
13
|
export {
|
37
|
-
|
14
|
+
n as Flex
|
38
15
|
};
|
39
16
|
//# sourceMappingURL=index.es585.js.map
|
package/dist/index.es585.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.es585.js","sources":["../node_modules/@radix-ui/themes/dist/esm/
|
1
|
+
{"version":3,"file":"index.es585.js","sources":["../node_modules/@radix-ui/themes/dist/esm/components/flex.js"],"sourcesContent":["import*as o from\"react\";import a from\"classnames\";import{extractProps as n}from\"../helpers/extract-props.js\";import{layoutPropDefs as i}from\"../props/layout.props.js\";import{marginPropDefs as P}from\"../props/margin.props.js\";import{Slot as x}from\"./slot.js\";import{flexPropDefs as f}from\"./flex.props.js\";const p=o.forwardRef((r,e)=>{const{className:s,asChild:t,as:m=\"div\",...l}=n(r,f,i,P);return o.createElement(t?x:m,{...l,ref:e,className:a(\"rt-Flex\",s)})});p.displayName=\"Flex\";export{p as Flex};\n//# sourceMappingURL=flex.js.map\n"],"names":["p","o","r","e","s","t","l","n","f","i","P","x","a"],"mappings":";;;;;;;AAAsT,MAACA,IAAEC,EAAE,WAAW,CAACC,GAAEC,MAAI;AAAC,QAAK,EAAC,WAAUC,GAAE,SAAQC,GAAE,IAAG,IAAE,OAAM,GAAGC,EAAC,IAAEC,EAAEL,GAAEM,GAAEC,GAAEC,CAAC;AAAE,SAAOT,EAAE,cAAcI,IAAEM,IAAE,GAAE,EAAC,GAAGL,GAAE,KAAIH,GAAE,WAAUS,EAAE,WAAUR,CAAC,EAAC,CAAC;AAAC,CAAC;AAAEJ,EAAE,cAAY;","x_google_ignoreList":[0]}
|
package/dist/index.es586.js
CHANGED
@@ -1,8 +1,39 @@
|
|
1
|
-
import
|
2
|
-
import {
|
3
|
-
import {
|
4
|
-
|
1
|
+
import n from "./index.es583.js";
|
2
|
+
import { getResponsiveClassNames as y, getResponsiveStyles as N } from "./index.es598.js";
|
3
|
+
import { isResponsiveObject as r } from "./index.es651.js";
|
4
|
+
import { mergeStyles as p } from "./index.es600.js";
|
5
|
+
function g(...i) {
|
6
|
+
return Object.assign({}, ...i);
|
7
|
+
}
|
8
|
+
function j(i, ...m) {
|
9
|
+
let a, o;
|
10
|
+
const t = { ...i }, c = g(...m);
|
11
|
+
for (const l in c) {
|
12
|
+
let s = t[l];
|
13
|
+
const e = c[l];
|
14
|
+
if (e.default !== void 0 && s === void 0 && (s = e.default), e.type === "enum" && ![e.default, ...e.values].includes(s) && !r(s) && (s = e.default), t[l] = s, "className" in e && e.className) {
|
15
|
+
delete t[l];
|
16
|
+
const f = "responsive" in e;
|
17
|
+
if (!s || r(s) && !f) continue;
|
18
|
+
if (r(s) && (e.default !== void 0 && s.initial === void 0 && (s.initial = e.default), e.type === "enum" && ([e.default, ...e.values].includes(s.initial) || (s.initial = e.default))), e.type === "enum") {
|
19
|
+
const u = y({ allowArbitraryValues: !1, value: s, className: e.className, propValues: e.values, parseValue: e.parseValue });
|
20
|
+
a = n(a, u);
|
21
|
+
continue;
|
22
|
+
}
|
23
|
+
if (e.type === "string" || e.type === "enum | string") {
|
24
|
+
const u = e.type === "string" ? [] : e.values, [d, v] = N({ className: e.className, customProperties: e.customProperties, propValues: u, parseValue: e.parseValue, value: s });
|
25
|
+
o = p(o, v), a = n(a, d);
|
26
|
+
continue;
|
27
|
+
}
|
28
|
+
if (e.type === "boolean" && s) {
|
29
|
+
a = n(a, e.className);
|
30
|
+
continue;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
34
|
+
return t.className = n(a, i.className), t.style = p(o, i.style), t;
|
35
|
+
}
|
5
36
|
export {
|
6
|
-
|
37
|
+
j as extractProps
|
7
38
|
};
|
8
39
|
//# sourceMappingURL=index.es586.js.map
|