@rpcbase/ui 0.228.0 → 0.229.0
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/index100.js +11 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +68 -8
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +38 -6
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +14 -5
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +23 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +110 -6
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +13 -146
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +4 -39
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -5
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +5 -8
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +11 -13
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +19 -13
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +13 -8
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +261 -31
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +4 -10
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +28 -11
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +126 -8
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +5 -13
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +78 -101
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +67 -20
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +8 -53
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +16 -73
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +92 -9
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +62 -17
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +44 -15
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +52 -24
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +4 -6
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +4 -5
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +15 -23
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +6 -35
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +8 -16
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +16 -6
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +4 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +4 -4
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +5 -4
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +5 -4
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +4 -3
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -6
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +7 -24
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +24 -7
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +6 -6
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +6 -3
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +5 -3
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +4 -4
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +5 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +4 -4
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +8 -3
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +5 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +4 -3
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +4 -5
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +6 -68
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +146 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +38 -362
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -261
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +7 -60
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +13 -46
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +13 -169
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +7 -109
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +31 -24
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +11 -8
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +10 -4
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +8 -5
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +13 -4
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +100 -465
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +20 -186
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +53 -107
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +71 -261
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +9 -9
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +20 -42
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +16 -4
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +23 -11
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +6 -68
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +6 -38
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +24 -14
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +32 -21
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +16 -111
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +7 -13
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +4 -4
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +5 -4
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +5 -5
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +4 -11
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +3 -19
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +7 -13
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +24 -262
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +7 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +7 -28
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +5 -126
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +3 -5
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +3 -78
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +4 -66
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +3 -8
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +5 -16
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +3 -92
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +3 -65
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +3 -45
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +13 -16
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +153 -4
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +29 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +9 -58
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +43 -61
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +11 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +44 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +95 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +86 -16
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +105 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +52 -4
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +11 -12
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +37 -9
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +8 -13
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +3 -13
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +9 -4
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +116 -5
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +17 -6
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +15 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +34 -52
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +20 -8
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +8 -4
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +19 -4
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +28 -8
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +16 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +20 -5
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +66 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +6 -10
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +11 -9
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +50 -9
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +4 -11
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +29 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +16 -9
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -6
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +21 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +51 -4
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +25 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +41 -6
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +39 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +45 -9
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +19 -18
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +67 -13
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +17 -7
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +11 -10
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +27 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +13 -21
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +18 -10
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +36 -9
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +262 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +278 -4
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +68 -5
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +98 -15
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +83 -9
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +3 -18
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +28 -14
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +16 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +34 -29
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +16 -12
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +3 -25
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +26 -5
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +29 -20
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +4 -67
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +78 -6
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +268 -10
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +11 -50
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +11 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +24 -28
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +15 -15
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +125 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +40 -51
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +65 -25
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +14 -42
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +7 -39
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +6 -45
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +3 -20
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +10 -70
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +7 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +133 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +396 -24
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +52 -13
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +11 -18
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +11 -36
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +8 -262
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +9 -276
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +8 -68
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +11 -97
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +3 -83
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +3 -3
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +16 -28
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +51 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +6 -35
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +121 -15
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +32 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +73 -26
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +140 -26
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +62 -4
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +49 -78
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +15 -270
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +8 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +4 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +11 -25
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +21 -16
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +57 -124
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +8 -5
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +64 -38
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +17 -63
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +16 -13
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +5 -7
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +5 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +6 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +4 -10
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +6 -7
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +15 -132
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +24 -24
- package/dist/index310.js +4 -399
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +4 -52
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +12 -11
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +9 -11
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +13 -13
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +13 -154
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +4 -30
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +5 -9
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +6 -48
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +5 -11
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +3 -3
- package/dist/index320.js +53 -43
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +8 -95
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +4 -86
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +4 -105
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +8 -52
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +4 -11
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +4 -37
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +3 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +10 -116
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +9 -17
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +9 -15
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +10 -3
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +10 -36
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +9 -20
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +6 -9
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +5 -8
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +4 -8
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +5 -11
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +6 -8
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +5 -13
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +4 -4
- package/dist/index340.js +16 -3
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +7 -3
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +9 -18
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +9 -27
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +20 -15
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +10 -17
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +9 -51
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +9 -5
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +4 -122
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +5 -32
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index350.js +16 -73
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +9 -142
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +18 -61
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +13 -47
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +13 -15
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +28 -7
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +13 -5
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +25 -11
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +5 -21
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +20 -4
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +10 -10
- package/dist/index360.js +4 -18
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +11 -12
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +17 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +5 -11
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +19 -15
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +45 -6
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +17 -20
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +5 -45
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +198 -15
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +78 -5
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index370.js +7 -199
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +26 -78
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +25 -19
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +137 -8
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +13 -26
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +221 -21
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +3 -137
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +19 -12
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +72 -221
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +12 -4
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index380.js +3 -19
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +68 -74
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +9 -12
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +15 -3
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +4 -71
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +18 -9
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +12 -15
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +3 -5
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +3 -5
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +15 -4
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index390.js +491 -15
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +4 -8
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +4 -5
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +4 -5
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +15 -545
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +9 -47
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +5 -17
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +4 -5
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +545 -7
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +47 -7
- package/dist/index399.js.map +1 -1
- package/dist/index40.js +3 -3
- package/dist/index400.js +17 -7
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +5 -11
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +7 -8
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +6 -12
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +8 -3
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +12 -3
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +8 -14
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +12 -491
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +7 -4
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +2 -56
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index410.js +43 -67
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +56 -31
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +8 -9
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +2 -153
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +54 -107
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +55 -7
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +5 -2
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +54 -42
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +68 -56
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +31 -8
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +9 -2
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +152 -54
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +108 -56
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +2 -16
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +2 -29
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +2 -13
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +2 -7
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +16 -2
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +29 -2
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +13 -2
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +7 -2
- package/dist/index430.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.js +2 -2
- package/dist/index48.js +2 -2
- package/dist/index49.js +34 -34
- package/dist/index50.js +29 -29
- package/dist/index51.js +2 -2
- package/dist/index52.js +12 -12
- package/dist/index53.js +4 -4
- package/dist/index54.js +1 -1
- package/dist/index55.js +22 -22
- package/dist/index56.js +5 -5
- package/dist/index57.js +5 -5
- package/dist/index58.js +8 -8
- package/dist/index59.js +5 -5
- package/dist/index60.js +17 -17
- package/dist/index61.js +5 -5
- package/dist/index62.js +3 -3
- package/dist/index66.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index70.js +1 -1
- package/dist/index71.js +1 -1
- package/dist/index72.js +6 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +8 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +6 -2
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -2
- package/dist/index76.js +2 -6
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +2 -8
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -6
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +6 -52
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +68 -4
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -5
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +363 -15
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +261 -5
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +60 -7
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +46 -16
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +169 -4
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +109 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +24 -5
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +8 -6
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +4 -4
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +5 -4
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +4 -6
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +466 -24
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +185 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +107 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +262 -6
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +9 -5
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +42 -4
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index378.js
CHANGED
|
@@ -1,230 +1,81 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function
|
|
12
|
-
return
|
|
13
|
-
disabledIndices: r
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function v(t, r) {
|
|
17
|
-
return C(t.current, {
|
|
18
|
-
decrement: !0,
|
|
19
|
-
startingIndex: t.current.length,
|
|
20
|
-
disabledIndices: r
|
|
21
|
-
});
|
|
1
|
+
import { isShadowRoot as O, getNodeName as y } from "./index274.js";
|
|
2
|
+
import { ownerDocument as U } from "./index249.js";
|
|
3
|
+
const k = {
|
|
4
|
+
inert: /* @__PURE__ */ new WeakMap(),
|
|
5
|
+
"aria-hidden": /* @__PURE__ */ new WeakMap()
|
|
6
|
+
}, T = "data-base-ui-inert", E = {
|
|
7
|
+
inert: /* @__PURE__ */ new WeakSet(),
|
|
8
|
+
"aria-hidden": /* @__PURE__ */ new WeakSet()
|
|
9
|
+
};
|
|
10
|
+
let u = /* @__PURE__ */ new WeakMap(), p = 0;
|
|
11
|
+
function q(t) {
|
|
12
|
+
return E[t];
|
|
22
13
|
}
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
decrement: o = !1,
|
|
26
|
-
disabledIndices: a,
|
|
27
|
-
amount: n = 1
|
|
28
|
-
} = {}) {
|
|
29
|
-
let c = r;
|
|
30
|
-
do
|
|
31
|
-
c += o ? -n : n;
|
|
32
|
-
while (c >= 0 && c <= t.length - 1 && H(t, c, a));
|
|
33
|
-
return c;
|
|
14
|
+
function v(t) {
|
|
15
|
+
return t ? O(t) ? t.host : v(t.parentNode) : null;
|
|
34
16
|
}
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
17
|
+
const w = (t, r) => r.map((o) => {
|
|
18
|
+
if (t.contains(o))
|
|
19
|
+
return o;
|
|
20
|
+
const n = v(o);
|
|
21
|
+
return t.contains(n) ? n : null;
|
|
22
|
+
}).filter((o) => o != null), V = (t) => {
|
|
23
|
+
const r = /* @__PURE__ */ new Set();
|
|
24
|
+
return t.forEach((o) => {
|
|
25
|
+
let n = o;
|
|
26
|
+
for (; n && !r.has(n); )
|
|
27
|
+
r.add(n), n = n.parentNode;
|
|
28
|
+
}), r;
|
|
29
|
+
}, N = (t, r, o) => {
|
|
30
|
+
const n = [], s = (i) => {
|
|
31
|
+
!i || o.has(i) || Array.from(i.children).forEach((a) => {
|
|
32
|
+
y(a) !== "script" && (r.has(a) ? s(a) : n.push(a));
|
|
33
|
+
});
|
|
34
|
+
};
|
|
35
|
+
return s(t), n;
|
|
36
|
+
};
|
|
37
|
+
function x(t, r, o, n, {
|
|
38
|
+
mark: s = !0,
|
|
39
|
+
markerIgnoreElements: i = []
|
|
47
40
|
}) {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
s && (P = !0), (s !== R || u === -1) && (R = s, u += 1, l[u] = []), l[u].push(M), V[M] = u;
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
let N = !1, S = 0;
|
|
63
|
-
if (P)
|
|
64
|
-
for (const R of l) {
|
|
65
|
-
const u = R.length;
|
|
66
|
-
u > S && (S = u), u !== e && (N = !0);
|
|
67
|
-
}
|
|
68
|
-
const U = N && T < t.length, h = S || e, $ = (R) => {
|
|
69
|
-
if (!N || i === -1)
|
|
70
|
-
return;
|
|
71
|
-
const u = V[i];
|
|
72
|
-
if (u == null)
|
|
73
|
-
return;
|
|
74
|
-
const y = l[u].indexOf(i), M = R === "up" ? -1 : 1;
|
|
75
|
-
for (let s = u + M, m = 0; m < l.length; m += 1, s += M) {
|
|
76
|
-
if (s < 0 || s >= l.length) {
|
|
77
|
-
if (!a || U)
|
|
78
|
-
return;
|
|
79
|
-
if (s = s < 0 ? l.length - 1 : 0, n) {
|
|
80
|
-
const k = Math.min(y, l[s].length - 1), O = l[s][k] ?? l[s][0], J = n(r, i, O);
|
|
81
|
-
s = V[J] ?? s;
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
const A = l[s];
|
|
85
|
-
for (let k = Math.min(y, A.length - 1); k >= 0; k -= 1) {
|
|
86
|
-
const O = A[k];
|
|
87
|
-
if (!H(t, O, w))
|
|
88
|
-
return O;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}, q = (R) => {
|
|
92
|
-
if (!U || i === -1)
|
|
93
|
-
return;
|
|
94
|
-
const u = i % h, y = R === "up" ? -h : h, M = g - g % h, s = _(g / h) + 1;
|
|
95
|
-
for (let m = i - u + y, A = 0; A < s; A += 1, m += y) {
|
|
96
|
-
if (m < 0 || m > g) {
|
|
97
|
-
if (!a)
|
|
98
|
-
return;
|
|
99
|
-
m = m < 0 ? M : 0;
|
|
100
|
-
}
|
|
101
|
-
const k = Math.min(m + h - 1, g);
|
|
102
|
-
for (let O = Math.min(m + u, k); O >= m; O -= 1)
|
|
103
|
-
if (!H(t, O, w))
|
|
104
|
-
return O;
|
|
105
|
-
}
|
|
106
|
-
};
|
|
107
|
-
D && b(r);
|
|
108
|
-
const d = $(E) ?? q(E);
|
|
109
|
-
if (d !== void 0)
|
|
110
|
-
f = d;
|
|
111
|
-
else if (i === -1)
|
|
112
|
-
f = E === "up" ? g : G;
|
|
113
|
-
else if (f = C(t, {
|
|
114
|
-
startingIndex: i,
|
|
115
|
-
amount: h,
|
|
116
|
-
decrement: E === "up",
|
|
117
|
-
disabledIndices: w
|
|
118
|
-
}), a) {
|
|
119
|
-
if (E === "up" && (i - h < G || f < 0)) {
|
|
120
|
-
const R = i % h, u = g % h, y = g - (u - R);
|
|
121
|
-
u === R ? f = g : f = u > R ? y : y - h, n && (f = n(r, i, f));
|
|
122
|
-
}
|
|
123
|
-
E === "down" && i + h > g && (f = C(t, {
|
|
124
|
-
startingIndex: i % h - h,
|
|
125
|
-
amount: h,
|
|
126
|
-
disabledIndices: w
|
|
127
|
-
}), n && (f = n(r, i, f)));
|
|
128
|
-
}
|
|
129
|
-
j(t, f) && (f = i);
|
|
130
|
-
}
|
|
131
|
-
if (o === "both") {
|
|
132
|
-
const l = _(i / e);
|
|
133
|
-
r.key === (c ? z : B) && (D && b(r), i % e !== e - 1 ? (f = C(t, {
|
|
134
|
-
startingIndex: i,
|
|
135
|
-
disabledIndices: w
|
|
136
|
-
}), a && W(f, e, l) && (f = C(t, {
|
|
137
|
-
startingIndex: i - i % e - 1,
|
|
138
|
-
disabledIndices: w
|
|
139
|
-
}), n && (f = n(r, i, f)))) : a && (f = C(t, {
|
|
140
|
-
startingIndex: i - i % e - 1,
|
|
141
|
-
disabledIndices: w
|
|
142
|
-
}), n && (f = n(r, i, f))), W(f, e, l) && (f = i)), r.key === (c ? B : z) && (D && b(r), i % e !== 0 ? (f = C(t, {
|
|
143
|
-
startingIndex: i,
|
|
144
|
-
decrement: !0,
|
|
145
|
-
disabledIndices: w
|
|
146
|
-
}), a && W(f, e, l) && (f = C(t, {
|
|
147
|
-
startingIndex: i + (e - i % e),
|
|
148
|
-
decrement: !0,
|
|
149
|
-
disabledIndices: w
|
|
150
|
-
}), n && (f = n(r, i, f)))) : a && (f = C(t, {
|
|
151
|
-
startingIndex: i + (e - i % e),
|
|
152
|
-
decrement: !0,
|
|
153
|
-
disabledIndices: w
|
|
154
|
-
}), n && (f = n(r, i, f))), W(f, e, l) && (f = i));
|
|
155
|
-
const V = _(g / e) === l;
|
|
156
|
-
j(t, f) && (a && V ? (f = r.key === (c ? B : z) ? g : C(t, {
|
|
157
|
-
startingIndex: i - i % e - 1,
|
|
158
|
-
disabledIndices: w
|
|
159
|
-
}), n && (f = n(r, i, f))) : f = i);
|
|
41
|
+
const a = n ? "inert" : o ? "aria-hidden" : null;
|
|
42
|
+
let f = null, m = null;
|
|
43
|
+
const d = w(r, t), C = s ? w(r, i) : [], H = new Set(C), I = s ? N(r, V(d), new Set(d)).filter((e) => !H.has(e)) : [], S = [], g = [];
|
|
44
|
+
if (a) {
|
|
45
|
+
const e = k[a], c = q(a);
|
|
46
|
+
m = c, f = e;
|
|
47
|
+
const h = w(r, Array.from(r.querySelectorAll("[aria-live]"))), A = d.concat(h);
|
|
48
|
+
N(r, V(A), new Set(A)).forEach((l) => {
|
|
49
|
+
const W = l.getAttribute(a), M = W !== null && W !== "false", b = (e.get(l) || 0) + 1;
|
|
50
|
+
e.set(l, b), S.push(l), b === 1 && M && c.add(l), M || l.setAttribute(a, a === "inert" ? "" : "true");
|
|
51
|
+
});
|
|
160
52
|
}
|
|
161
|
-
return
|
|
53
|
+
return s && I.forEach((e) => {
|
|
54
|
+
const c = (u.get(e) || 0) + 1;
|
|
55
|
+
u.set(e, c), g.push(e), c === 1 && e.setAttribute(T, "");
|
|
56
|
+
}), p += 1, () => {
|
|
57
|
+
f && S.forEach((e) => {
|
|
58
|
+
const h = (f.get(e) || 0) - 1;
|
|
59
|
+
f.set(e, h), h || (!m?.has(e) && a && e.removeAttribute(a), m?.delete(e));
|
|
60
|
+
}), s && g.forEach((e) => {
|
|
61
|
+
const c = (u.get(e) || 0) - 1;
|
|
62
|
+
u.set(e, c), c || e.removeAttribute(T);
|
|
63
|
+
}), p -= 1, p || (k.inert = /* @__PURE__ */ new WeakMap(), k["aria-hidden"] = /* @__PURE__ */ new WeakMap(), E.inert = /* @__PURE__ */ new WeakSet(), E["aria-hidden"] = /* @__PURE__ */ new WeakSet(), u = /* @__PURE__ */ new WeakMap());
|
|
64
|
+
};
|
|
162
65
|
}
|
|
163
|
-
function
|
|
164
|
-
const
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
},
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
const g = [];
|
|
175
|
-
for (let i = 0; i < c; i += 1)
|
|
176
|
-
for (let D = 0; D < e; D += 1)
|
|
177
|
-
g.push(n + i + D * r);
|
|
178
|
-
n % r + c <= r && g.every((i) => a[i] == null) ? (g.forEach((i) => {
|
|
179
|
-
a[i] = w;
|
|
180
|
-
}), G = !0) : n += 1;
|
|
181
|
-
}
|
|
182
|
-
}), [...a];
|
|
183
|
-
}
|
|
184
|
-
function rt(t, r, o, a, n) {
|
|
185
|
-
if (t === -1)
|
|
186
|
-
return -1;
|
|
187
|
-
const c = o.indexOf(t), e = r[t];
|
|
188
|
-
switch (n) {
|
|
189
|
-
case "tl":
|
|
190
|
-
return c;
|
|
191
|
-
case "tr":
|
|
192
|
-
return e ? c + e.width - 1 : c;
|
|
193
|
-
case "bl":
|
|
194
|
-
return e ? c + (e.height - 1) * a : c;
|
|
195
|
-
case "br":
|
|
196
|
-
return o.lastIndexOf(t);
|
|
197
|
-
default:
|
|
198
|
-
return -1;
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
function ft(t, r) {
|
|
202
|
-
return r.flatMap((o, a) => t.includes(o) ? [a] : []);
|
|
203
|
-
}
|
|
204
|
-
function H(t, r, o) {
|
|
205
|
-
if (typeof o == "function" ? o(r) : o?.includes(r) ?? !1)
|
|
206
|
-
return !0;
|
|
207
|
-
const n = t[r];
|
|
208
|
-
return n ? Z(n) ? !o && (n.hasAttribute("disabled") || n.getAttribute("aria-disabled") === "true") : !0 : !1;
|
|
209
|
-
}
|
|
210
|
-
function Y(t) {
|
|
211
|
-
return t.visibility === "hidden" || t.visibility === "collapse";
|
|
212
|
-
}
|
|
213
|
-
function Z(t, r = t ? K(t) : null) {
|
|
214
|
-
return !t || !t.isConnected || !r || Y(r) ? !1 : typeof t.checkVisibility == "function" ? t.checkVisibility() : r.display !== "none" && r.display !== "contents";
|
|
66
|
+
function R(t, r = {}) {
|
|
67
|
+
const {
|
|
68
|
+
ariaHidden: o = !1,
|
|
69
|
+
inert: n = !1,
|
|
70
|
+
mark: s = !0,
|
|
71
|
+
markerIgnoreElements: i = []
|
|
72
|
+
} = r, a = U(t[0]).body;
|
|
73
|
+
return x(t, a, o, n, {
|
|
74
|
+
mark: s,
|
|
75
|
+
markerIgnoreElements: i
|
|
76
|
+
});
|
|
215
77
|
}
|
|
216
78
|
export {
|
|
217
|
-
|
|
218
|
-
C as findNonDisabledListIndex,
|
|
219
|
-
rt as getGridCellIndexOfCorner,
|
|
220
|
-
ft as getGridCellIndices,
|
|
221
|
-
tt as getGridNavigatedIndex,
|
|
222
|
-
v as getMaxListIndex,
|
|
223
|
-
x as getMinListIndex,
|
|
224
|
-
W as isDifferentGridRow,
|
|
225
|
-
Z as isElementVisible,
|
|
226
|
-
Y as isHiddenByStyles,
|
|
227
|
-
j as isIndexOutOfListBounds,
|
|
228
|
-
H as isListIndexDisabled
|
|
79
|
+
R as markOthers
|
|
229
80
|
};
|
|
230
81
|
//# sourceMappingURL=index378.js.map
|
package/dist/index378.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index378.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/composite.js"],"sourcesContent":["import { floor } from '@floating-ui/utils';\nimport { getComputedStyle } from '@floating-ui/utils/dom';\nimport { stopEvent } from \"./event.js\";\nimport { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP } from \"./constants.js\";\nexport function isDifferentGridRow(index, cols, prevRow) {\n return Math.floor(index / cols) !== prevRow;\n}\nexport function isIndexOutOfListBounds(list, index) {\n return index < 0 || index >= list.length;\n}\nexport function getMinListIndex(listRef, disabledIndices) {\n return findNonDisabledListIndex(listRef.current, {\n disabledIndices\n });\n}\nexport function getMaxListIndex(listRef, disabledIndices) {\n return findNonDisabledListIndex(listRef.current, {\n decrement: true,\n startingIndex: listRef.current.length,\n disabledIndices\n });\n}\nexport function findNonDisabledListIndex(list, {\n startingIndex = -1,\n decrement = false,\n disabledIndices,\n amount = 1\n} = {}) {\n let index = startingIndex;\n do {\n index += decrement ? -amount : amount;\n } while (index >= 0 && index <= list.length - 1 && isListIndexDisabled(list, index, disabledIndices));\n return index;\n}\nexport function getGridNavigatedIndex(list, {\n event,\n orientation,\n loopFocus,\n onLoop,\n rtl,\n cols,\n disabledIndices,\n minIndex,\n maxIndex,\n prevIndex,\n stopEvent: stop = false\n}) {\n let nextIndex = prevIndex;\n let verticalDirection;\n if (event.key === ARROW_UP) {\n verticalDirection = 'up';\n } else if (event.key === ARROW_DOWN) {\n verticalDirection = 'down';\n }\n if (verticalDirection) {\n // -------------------------------------------------------------------------\n // Detect row structure only when handling vertical navigation. This keeps\n // the non-vertical key paths free from row inference work.\n // -------------------------------------------------------------------------\n const rows = [];\n const rowIndexMap = [];\n let hasRoleRow = false;\n let visibleItemCount = 0;\n {\n let currentRowEl = null;\n let currentRowIndex = -1;\n list.forEach((el, idx) => {\n if (el == null) {\n return;\n }\n visibleItemCount += 1;\n const rowEl = el.closest('[role=\"row\"]');\n if (rowEl) {\n hasRoleRow = true;\n }\n if (rowEl !== currentRowEl || currentRowIndex === -1) {\n currentRowEl = rowEl;\n currentRowIndex += 1;\n rows[currentRowIndex] = [];\n }\n rows[currentRowIndex].push(idx);\n rowIndexMap[idx] = currentRowIndex;\n });\n }\n let hasDomRows = false;\n let inferredDomCols = 0;\n if (hasRoleRow) {\n for (const row of rows) {\n const rowLength = row.length;\n if (rowLength > inferredDomCols) {\n inferredDomCols = rowLength;\n }\n if (rowLength !== cols) {\n hasDomRows = true;\n }\n }\n }\n const hasVirtualizedGaps = hasDomRows && visibleItemCount < list.length;\n const verticalCols = inferredDomCols || cols;\n const navigateVertically = direction => {\n if (!hasDomRows || prevIndex === -1) {\n return undefined;\n }\n const currentRow = rowIndexMap[prevIndex];\n if (currentRow == null) {\n return undefined;\n }\n const colInRow = rows[currentRow].indexOf(prevIndex);\n const step = direction === 'up' ? -1 : 1;\n for (let nextRow = currentRow + step, i = 0; i < rows.length; i += 1, nextRow += step) {\n if (nextRow < 0 || nextRow >= rows.length) {\n if (!loopFocus || hasVirtualizedGaps) {\n return undefined;\n }\n nextRow = nextRow < 0 ? rows.length - 1 : 0;\n if (onLoop) {\n const clampedCol = Math.min(colInRow, rows[nextRow].length - 1);\n const targetItemIndex = rows[nextRow][clampedCol] ?? rows[nextRow][0];\n const returnedItemIndex = onLoop(event, prevIndex, targetItemIndex);\n nextRow = rowIndexMap[returnedItemIndex] ?? nextRow;\n }\n }\n const targetRow = rows[nextRow];\n for (let col = Math.min(colInRow, targetRow.length - 1); col >= 0; col -= 1) {\n const candidate = targetRow[col];\n if (!isListIndexDisabled(list, candidate, disabledIndices)) {\n return candidate;\n }\n }\n }\n return undefined;\n };\n const navigateVerticallyWithInferredRows = direction => {\n if (!hasVirtualizedGaps || prevIndex === -1) {\n return undefined;\n }\n const colInRow = prevIndex % verticalCols;\n const rowStep = direction === 'up' ? -verticalCols : verticalCols;\n const lastRowStart = maxIndex - maxIndex % verticalCols;\n const rowCount = floor(maxIndex / verticalCols) + 1;\n for (let rowStart = prevIndex - colInRow + rowStep, i = 0; i < rowCount; i += 1, rowStart += rowStep) {\n if (rowStart < 0 || rowStart > maxIndex) {\n if (!loopFocus) {\n return undefined;\n }\n rowStart = rowStart < 0 ? lastRowStart : 0;\n }\n const rowEnd = Math.min(rowStart + verticalCols - 1, maxIndex);\n for (let candidate = Math.min(rowStart + colInRow, rowEnd); candidate >= rowStart; candidate -= 1) {\n if (!isListIndexDisabled(list, candidate, disabledIndices)) {\n return candidate;\n }\n }\n }\n return undefined;\n };\n if (stop) {\n stopEvent(event);\n }\n const verticalCandidate = navigateVertically(verticalDirection) ?? navigateVerticallyWithInferredRows(verticalDirection);\n if (verticalCandidate !== undefined) {\n nextIndex = verticalCandidate;\n } else if (prevIndex === -1) {\n nextIndex = verticalDirection === 'up' ? maxIndex : minIndex;\n } else {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n amount: verticalCols,\n decrement: verticalDirection === 'up',\n disabledIndices\n });\n if (loopFocus) {\n if (verticalDirection === 'up' && (prevIndex - verticalCols < minIndex || nextIndex < 0)) {\n const col = prevIndex % verticalCols;\n const maxCol = maxIndex % verticalCols;\n const offset = maxIndex - (maxCol - col);\n if (maxCol === col) {\n nextIndex = maxIndex;\n } else {\n nextIndex = maxCol > col ? offset : offset - verticalCols;\n }\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (verticalDirection === 'down' && prevIndex + verticalCols > maxIndex) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex % verticalCols - verticalCols,\n amount: verticalCols,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n }\n }\n if (isIndexOutOfListBounds(list, nextIndex)) {\n nextIndex = prevIndex;\n }\n }\n\n // Remains on the same row/column.\n if (orientation === 'both') {\n const prevRow = floor(prevIndex / cols);\n if (event.key === (rtl ? ARROW_LEFT : ARROW_RIGHT)) {\n if (stop) {\n stopEvent(event);\n }\n if (prevIndex % cols !== cols - 1) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n disabledIndices\n });\n if (loopFocus && isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n } else if (loopFocus) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n if (event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT)) {\n if (stop) {\n stopEvent(event);\n }\n if (prevIndex % cols !== 0) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex,\n decrement: true,\n disabledIndices\n });\n if (loopFocus && isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n } else if (loopFocus) {\n nextIndex = findNonDisabledListIndex(list, {\n startingIndex: prevIndex + (cols - prevIndex % cols),\n decrement: true,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n }\n if (isDifferentGridRow(nextIndex, cols, prevRow)) {\n nextIndex = prevIndex;\n }\n }\n const lastRow = floor(maxIndex / cols) === prevRow;\n if (isIndexOutOfListBounds(list, nextIndex)) {\n if (loopFocus && lastRow) {\n nextIndex = event.key === (rtl ? ARROW_RIGHT : ARROW_LEFT) ? maxIndex : findNonDisabledListIndex(list, {\n startingIndex: prevIndex - prevIndex % cols - 1,\n disabledIndices\n });\n if (onLoop) {\n nextIndex = onLoop(event, prevIndex, nextIndex);\n }\n } else {\n nextIndex = prevIndex;\n }\n }\n }\n return nextIndex;\n}\n\n/** For each cell index, gets the item index that occupies that cell */\nexport function createGridCellMap(sizes, cols, dense) {\n const cellMap = [];\n let startIndex = 0;\n sizes.forEach(({\n width,\n height\n }, index) => {\n if (width > cols) {\n if (process.env.NODE_ENV !== 'production') {\n throw new Error(`[Floating UI]: Invalid grid - item width at index ${index} is greater than grid columns`);\n }\n }\n let itemPlaced = false;\n if (dense) {\n startIndex = 0;\n }\n while (!itemPlaced) {\n const targetCells = [];\n for (let i = 0; i < width; i += 1) {\n for (let j = 0; j < height; j += 1) {\n targetCells.push(startIndex + i + j * cols);\n }\n }\n if (startIndex % cols + width <= cols && targetCells.every(cell => cellMap[cell] == null)) {\n targetCells.forEach(cell => {\n cellMap[cell] = index;\n });\n itemPlaced = true;\n } else {\n startIndex += 1;\n }\n }\n });\n\n // convert into a non-sparse array\n return [...cellMap];\n}\n\n/** Gets cell index of an item's corner or -1 when index is -1. */\nexport function getGridCellIndexOfCorner(index, sizes, cellMap, cols, corner) {\n if (index === -1) {\n return -1;\n }\n const firstCellIndex = cellMap.indexOf(index);\n const sizeItem = sizes[index];\n switch (corner) {\n case 'tl':\n return firstCellIndex;\n case 'tr':\n if (!sizeItem) {\n return firstCellIndex;\n }\n return firstCellIndex + sizeItem.width - 1;\n case 'bl':\n if (!sizeItem) {\n return firstCellIndex;\n }\n return firstCellIndex + (sizeItem.height - 1) * cols;\n case 'br':\n return cellMap.lastIndexOf(index);\n default:\n return -1;\n }\n}\n\n/** Gets all cell indices that correspond to the specified indices */\nexport function getGridCellIndices(indices, cellMap) {\n return cellMap.flatMap((index, cellIndex) => indices.includes(index) ? [cellIndex] : []);\n}\nexport function isListIndexDisabled(list, index, disabledIndices) {\n const isExplicitlyDisabled = typeof disabledIndices === 'function' ? disabledIndices(index) : disabledIndices?.includes(index) ?? false;\n if (isExplicitlyDisabled) {\n return true;\n }\n const element = list[index];\n if (!element) {\n return false;\n }\n if (!isElementVisible(element)) {\n return true;\n }\n return !disabledIndices && (element.hasAttribute('disabled') || element.getAttribute('aria-disabled') === 'true');\n}\nexport function isHiddenByStyles(styles) {\n return styles.visibility === 'hidden' || styles.visibility === 'collapse';\n}\nexport function isElementVisible(element, styles = element ? getComputedStyle(element) : null) {\n if (!element || !element.isConnected || !styles || isHiddenByStyles(styles)) {\n return false;\n }\n if (typeof element.checkVisibility === 'function') {\n return element.checkVisibility();\n }\n return styles.display !== 'none' && styles.display !== 'contents';\n}"],"names":["isDifferentGridRow","index","cols","prevRow","isIndexOutOfListBounds","list","getMinListIndex","listRef","disabledIndices","findNonDisabledListIndex","getMaxListIndex","startingIndex","decrement","amount","isListIndexDisabled","getGridNavigatedIndex","event","orientation","loopFocus","onLoop","rtl","minIndex","maxIndex","prevIndex","stop","nextIndex","verticalDirection","ARROW_UP","ARROW_DOWN","rows","rowIndexMap","hasRoleRow","visibleItemCount","currentRowEl","currentRowIndex","el","idx","rowEl","hasDomRows","inferredDomCols","row","rowLength","hasVirtualizedGaps","verticalCols","navigateVertically","direction","currentRow","colInRow","step","nextRow","i","clampedCol","targetItemIndex","returnedItemIndex","targetRow","col","candidate","navigateVerticallyWithInferredRows","rowStep","lastRowStart","rowCount","floor","rowStart","rowEnd","stopEvent","verticalCandidate","maxCol","offset","ARROW_LEFT","ARROW_RIGHT","lastRow","createGridCellMap","sizes","dense","cellMap","startIndex","width","height","itemPlaced","targetCells","j","cell","getGridCellIndexOfCorner","corner","firstCellIndex","sizeItem","getGridCellIndices","indices","cellIndex","element","isElementVisible","isHiddenByStyles","styles","getComputedStyle"],"mappings":";;;;AAIO,SAASA,EAAmBC,GAAOC,GAAMC,GAAS;AACvD,SAAO,KAAK,MAAMF,IAAQC,CAAI,MAAMC;AACtC;AACO,SAASC,EAAuBC,GAAMJ,GAAO;AAClD,SAAO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,GAAMJ,GAAOO,GAAiB;AAEhE,MAD6B,OAAOA,KAAoB,aAAaA,EAAgBP,CAAK,IAAIO,GAAiB,SAASP,CAAK,KAAK;AAEhI,WAAO;AAET,QAAMwF,IAAUpF,EAAKJ,CAAK;AAC1B,SAAKwF,IAGAC,EAAiBD,CAAO,IAGtB,CAACjF,MAAoBiF,EAAQ,aAAa,UAAU,KAAKA,EAAQ,aAAa,eAAe,MAAM,UAFjG,KAHA;AAMX;AACO,SAASE,EAAiBC,GAAQ;AACvC,SAAOA,EAAO,eAAe,YAAYA,EAAO,eAAe;AACjE;AACO,SAASF,EAAiBD,GAASG,IAASH,IAAUI,EAAiBJ,CAAO,IAAI,MAAM;AAC7F,SAAI,CAACA,KAAW,CAACA,EAAQ,eAAe,CAACG,KAAUD,EAAiBC,CAAM,IACjE,KAEL,OAAOH,EAAQ,mBAAoB,aAC9BA,EAAQ,gBAAe,IAEzBG,EAAO,YAAY,UAAUA,EAAO,YAAY;AACzD;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index378.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/utils/markOthers.js"],"sourcesContent":["// Modified to add conditional `aria-hidden` support:\n// https://github.com/theKashey/aria-hidden/blob/9220c8f4a4fd35f63bee5510a9f41a37264382d4/src/index.ts\nimport { getNodeName, isShadowRoot } from '@floating-ui/utils/dom';\nimport { ownerDocument } from '@base-ui/utils/owner';\nconst counters = {\n inert: new WeakMap(),\n 'aria-hidden': new WeakMap()\n};\nconst markerName = 'data-base-ui-inert';\nconst uncontrolledElementsSets = {\n inert: new WeakSet(),\n 'aria-hidden': new WeakSet()\n};\nlet markerCounterMap = new WeakMap();\nlet lockCount = 0;\nfunction getUncontrolledElementsSet(controlAttribute) {\n return uncontrolledElementsSets[controlAttribute];\n}\nexport const supportsInert = () => typeof HTMLElement !== 'undefined' && 'inert' in HTMLElement.prototype;\nfunction unwrapHost(node) {\n if (!node) {\n return null;\n }\n return isShadowRoot(node) ? node.host : unwrapHost(node.parentNode);\n}\nconst correctElements = (parent, targets) => targets.map(target => {\n if (parent.contains(target)) {\n return target;\n }\n const correctedTarget = unwrapHost(target);\n if (parent.contains(correctedTarget)) {\n return correctedTarget;\n }\n return null;\n}).filter(x => x != null);\nconst buildKeepSet = targets => {\n const keep = new Set();\n targets.forEach(target => {\n let node = target;\n while (node && !keep.has(node)) {\n keep.add(node);\n node = node.parentNode;\n }\n });\n return keep;\n};\nconst collectOutsideElements = (root, keepElements, stopElements) => {\n const outside = [];\n const walk = parent => {\n if (!parent || stopElements.has(parent)) {\n return;\n }\n Array.from(parent.children).forEach(node => {\n if (getNodeName(node) === 'script') {\n return;\n }\n if (keepElements.has(node)) {\n walk(node);\n } else {\n outside.push(node);\n }\n });\n };\n walk(root);\n return outside;\n};\nfunction applyAttributeToOthers(uncorrectedAvoidElements, body, ariaHidden, inert, {\n mark = true,\n markerIgnoreElements = []\n}) {\n // eslint-disable-next-line no-nested-ternary\n const controlAttribute = inert ? 'inert' : ariaHidden ? 'aria-hidden' : null;\n let counterMap = null;\n let uncontrolledElementsSet = null;\n const avoidElements = correctElements(body, uncorrectedAvoidElements);\n const markerIgnoreTargets = mark ? correctElements(body, markerIgnoreElements) : [];\n const markerIgnoreSet = new Set(markerIgnoreTargets);\n const markerTargets = mark ? collectOutsideElements(body, buildKeepSet(avoidElements), new Set(avoidElements)).filter(target => !markerIgnoreSet.has(target)) : [];\n const hiddenElements = [];\n const markedElements = [];\n if (controlAttribute) {\n const map = counters[controlAttribute];\n const currentUncontrolledElementsSet = getUncontrolledElementsSet(controlAttribute);\n uncontrolledElementsSet = currentUncontrolledElementsSet;\n counterMap = map;\n const ariaLiveElements = correctElements(body, Array.from(body.querySelectorAll('[aria-live]')));\n const controlElements = avoidElements.concat(ariaLiveElements);\n const controlTargets = collectOutsideElements(body, buildKeepSet(controlElements), new Set(controlElements));\n controlTargets.forEach(node => {\n const attr = node.getAttribute(controlAttribute);\n const alreadyHidden = attr !== null && attr !== 'false';\n const counterValue = (map.get(node) || 0) + 1;\n map.set(node, counterValue);\n hiddenElements.push(node);\n if (counterValue === 1 && alreadyHidden) {\n currentUncontrolledElementsSet.add(node);\n }\n if (!alreadyHidden) {\n node.setAttribute(controlAttribute, controlAttribute === 'inert' ? '' : 'true');\n }\n });\n }\n if (mark) {\n markerTargets.forEach(node => {\n const markerValue = (markerCounterMap.get(node) || 0) + 1;\n markerCounterMap.set(node, markerValue);\n markedElements.push(node);\n if (markerValue === 1) {\n node.setAttribute(markerName, '');\n }\n });\n }\n lockCount += 1;\n return () => {\n if (counterMap) {\n hiddenElements.forEach(element => {\n const currentCounterValue = counterMap.get(element) || 0;\n const counterValue = currentCounterValue - 1;\n counterMap.set(element, counterValue);\n if (!counterValue) {\n if (!uncontrolledElementsSet?.has(element) && controlAttribute) {\n element.removeAttribute(controlAttribute);\n }\n uncontrolledElementsSet?.delete(element);\n }\n });\n }\n if (mark) {\n markedElements.forEach(element => {\n const markerValue = (markerCounterMap.get(element) || 0) - 1;\n markerCounterMap.set(element, markerValue);\n if (!markerValue) {\n element.removeAttribute(markerName);\n }\n });\n }\n lockCount -= 1;\n if (!lockCount) {\n counters.inert = new WeakMap();\n counters['aria-hidden'] = new WeakMap();\n uncontrolledElementsSets.inert = new WeakSet();\n uncontrolledElementsSets['aria-hidden'] = new WeakSet();\n markerCounterMap = new WeakMap();\n }\n };\n}\nexport function markOthers(avoidElements, options = {}) {\n const {\n ariaHidden = false,\n inert = false,\n mark = true,\n markerIgnoreElements = []\n } = options;\n const body = ownerDocument(avoidElements[0]).body;\n return applyAttributeToOthers(avoidElements, body, ariaHidden, inert, {\n mark,\n markerIgnoreElements\n });\n}"],"names":["counters","markerName","uncontrolledElementsSets","markerCounterMap","lockCount","getUncontrolledElementsSet","controlAttribute","unwrapHost","node","isShadowRoot","correctElements","parent","targets","target","correctedTarget","x","buildKeepSet","keep","collectOutsideElements","root","keepElements","stopElements","outside","walk","getNodeName","applyAttributeToOthers","uncorrectedAvoidElements","body","ariaHidden","inert","mark","markerIgnoreElements","counterMap","uncontrolledElementsSet","avoidElements","markerIgnoreTargets","markerIgnoreSet","markerTargets","hiddenElements","markedElements","map","currentUncontrolledElementsSet","ariaLiveElements","controlElements","attr","alreadyHidden","counterValue","markerValue","element","markOthers","options","ownerDocument"],"mappings":";;AAIA,MAAMA,IAAW;AAAA,EACf,OAAO,oBAAI,QAAO;AAAA,EAClB,eAAe,oBAAI,QAAO;AAC5B,GACMC,IAAa,sBACbC,IAA2B;AAAA,EAC/B,OAAO,oBAAI,QAAO;AAAA,EAClB,eAAe,oBAAI,QAAO;AAC5B;AACA,IAAIC,IAAmB,oBAAI,QAAO,GAC9BC,IAAY;AAChB,SAASC,EAA2BC,GAAkB;AACpD,SAAOJ,EAAyBI,CAAgB;AAClD;AAEA,SAASC,EAAWC,GAAM;AACxB,SAAKA,IAGEC,EAAaD,CAAI,IAAIA,EAAK,OAAOD,EAAWC,EAAK,UAAU,IAFzD;AAGX;AACA,MAAME,IAAkB,CAACC,GAAQC,MAAYA,EAAQ,IAAI,CAAAC,MAAU;AACjE,MAAIF,EAAO,SAASE,CAAM;AACxB,WAAOA;AAET,QAAMC,IAAkBP,EAAWM,CAAM;AACzC,SAAIF,EAAO,SAASG,CAAe,IAC1BA,IAEF;AACT,CAAC,EAAE,OAAO,CAAAC,MAAKA,KAAK,IAAI,GAClBC,IAAe,CAAAJ,MAAW;AAC9B,QAAMK,IAAO,oBAAI,IAAG;AACpB,SAAAL,EAAQ,QAAQ,CAAAC,MAAU;AACxB,QAAIL,IAAOK;AACX,WAAOL,KAAQ,CAACS,EAAK,IAAIT,CAAI;AAC3B,MAAAS,EAAK,IAAIT,CAAI,GACbA,IAAOA,EAAK;AAAA,EAEhB,CAAC,GACMS;AACT,GACMC,IAAyB,CAACC,GAAMC,GAAcC,MAAiB;AACnE,QAAMC,IAAU,CAAA,GACVC,IAAO,CAAAZ,MAAU;AACrB,IAAI,CAACA,KAAUU,EAAa,IAAIV,CAAM,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,GAAegB,IAAU,IAAI;AACtD,QAAM;AAAA,IACJ,YAAAtB,IAAa;AAAA,IACb,OAAAC,IAAQ;AAAA,IACR,MAAAC,IAAO;AAAA,IACP,sBAAAC,IAAuB,CAAA;AAAA,EAC3B,IAAMmB,GACEvB,IAAOwB,EAAcjB,EAAc,CAAC,CAAC,EAAE;AAC7C,SAAOT,EAAuBS,GAAeP,GAAMC,GAAYC,GAAO;AAAA,IACpE,MAAAC;AAAA,IACA,sBAAAC;AAAA,EACJ,CAAG;AACH;","x_google_ignoreList":[0]}
|
package/dist/index379.js
CHANGED
|
@@ -1,7 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
import "./index30.js";
|
|
3
|
+
const e = /* @__PURE__ */ t.createContext(null);
|
|
4
|
+
process.env.NODE_ENV !== "production" && (e.displayName = "FloatingNodeContext");
|
|
5
|
+
const o = /* @__PURE__ */ t.createContext(null);
|
|
6
|
+
process.env.NODE_ENV !== "production" && (o.displayName = "FloatingTreeContext");
|
|
7
|
+
const a = () => t.useContext(e)?.id || null, i = (n) => {
|
|
8
|
+
const r = t.useContext(o);
|
|
9
|
+
return n ?? r;
|
|
10
|
+
};
|
|
4
11
|
export {
|
|
5
|
-
|
|
12
|
+
a as useFloatingParentNodeId,
|
|
13
|
+
i as useFloatingTree
|
|
6
14
|
};
|
|
7
15
|
//# sourceMappingURL=index379.js.map
|
package/dist/index379.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index379.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/
|
|
1
|
+
{"version":3,"file":"index379.js","sources":["../../../node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useRefWithInit } from '@base-ui/utils/useRefWithInit';\nimport { FloatingTreeStore } from \"./FloatingTreeStore.js\";\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nconst FloatingNodeContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") FloatingNodeContext.displayName = \"FloatingNodeContext\";\nconst FloatingTreeContext = /*#__PURE__*/React.createContext(null);\n\n/**\n * Returns the parent node id for nested floating elements, if available.\n * Returns `null` for top-level floating elements.\n */\nif (process.env.NODE_ENV !== \"production\") FloatingTreeContext.displayName = \"FloatingTreeContext\";\nexport const useFloatingParentNodeId = () => React.useContext(FloatingNodeContext)?.id || null;\n\n/**\n * Returns the nearest floating tree context, if available.\n */\nexport const useFloatingTree = externalTree => {\n const contextTree = React.useContext(FloatingTreeContext);\n return externalTree ?? contextTree;\n};\n\n/**\n * Registers a node into the `FloatingTree`, returning its id.\n * @see https://floating-ui.com/docs/FloatingTree\n */\nexport function useFloatingNodeId(externalTree) {\n const id = useId();\n const tree = useFloatingTree(externalTree);\n const parentId = useFloatingParentNodeId();\n useIsoLayoutEffect(() => {\n if (!id) {\n return undefined;\n }\n const node = {\n id,\n parentId\n };\n tree?.addNode(node);\n return () => {\n tree?.removeNode(node);\n };\n }, [tree, id, parentId]);\n return id;\n}\n/**\n * Provides parent node context for nested floating elements.\n * @see https://floating-ui.com/docs/FloatingTree\n * @internal\n */\nexport function FloatingNode(props) {\n const {\n children,\n id\n } = props;\n const parentId = useFloatingParentNodeId();\n return /*#__PURE__*/_jsx(FloatingNodeContext.Provider, {\n value: React.useMemo(() => ({\n id,\n parentId\n }), [id, parentId]),\n children: children\n });\n}\n/**\n * Provides context for nested floating elements when they are not children of\n * each other on the DOM.\n * This is not necessary in all cases, except when there must be explicit communication between parent and child floating elements. It is necessary for:\n * - The `bubbles` option in the `useDismiss()` Hook\n * - Nested virtual list navigation\n * - Nested floating elements that each open on hover\n * - Custom communication between parent and child floating elements\n * @see https://floating-ui.com/docs/FloatingTree\n * @internal\n */\nexport function FloatingTree(props) {\n const {\n children,\n externalTree\n } = props;\n const tree = useRefWithInit(() => externalTree ?? new FloatingTreeStore()).current;\n return /*#__PURE__*/_jsx(FloatingTreeContext.Provider, {\n value: tree,\n children: children\n });\n}"],"names":["FloatingNodeContext","React","FloatingTreeContext","useFloatingParentNodeId","useFloatingTree","externalTree","contextTree"],"mappings":";;AAQA,MAAMA,IAAmC,gBAAAC,EAAM,cAAc,IAAI;AAC7D,QAAQ,IAAI,aAAa,iBAAcD,EAAoB,cAAc;AAC7E,MAAME,IAAmC,gBAAAD,EAAM,cAAc,IAAI;AAM7D,QAAQ,IAAI,aAAa,iBAAcC,EAAoB,cAAc;AACjE,MAACC,IAA0B,MAAMF,EAAM,WAAWD,CAAmB,GAAG,MAAM,MAK7EI,IAAkB,CAAAC,MAAgB;AAC7C,QAAMC,IAAcL,EAAM,WAAWC,CAAmB;AACxD,SAAOG,KAAgBC;AACzB;","x_google_ignoreList":[0]}
|
package/dist/index38.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import * as c from "react";
|
|
2
|
-
import { useDialogRootContext as d } from "./
|
|
3
|
-
import { useRenderElement as u } from "./
|
|
4
|
-
import { popupStateMapping as l } from "./
|
|
5
|
-
import { transitionStatusMapping as m } from "./
|
|
2
|
+
import { useDialogRootContext as d } from "./index100.js";
|
|
3
|
+
import { useRenderElement as u } from "./index101.js";
|
|
4
|
+
import { popupStateMapping as l } from "./index102.js";
|
|
5
|
+
import { transitionStatusMapping as m } from "./index103.js";
|
|
6
6
|
const f = {
|
|
7
7
|
...l,
|
|
8
8
|
...m
|
package/dist/index380.js
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
function s(c, t = {}) {
|
|
4
|
-
const {
|
|
5
|
-
preventScroll: o = !1,
|
|
6
|
-
cancelPrevious: a = !0,
|
|
7
|
-
sync: i = !1
|
|
8
|
-
} = t;
|
|
9
|
-
a && cancelAnimationFrame(e);
|
|
10
|
-
const r = () => c?.focus({
|
|
11
|
-
preventScroll: o
|
|
12
|
-
});
|
|
13
|
-
if (i)
|
|
14
|
-
return r(), u;
|
|
15
|
-
const n = requestAnimationFrame(r);
|
|
16
|
-
return e = n, () => {
|
|
17
|
-
e === n && (cancelAnimationFrame(n), e = 0);
|
|
18
|
-
};
|
|
1
|
+
function n(r) {
|
|
2
|
+
return r == null ? r : "current" in r ? r.current : r;
|
|
19
3
|
}
|
|
20
4
|
export {
|
|
21
|
-
|
|
5
|
+
n as resolveRef
|
|
22
6
|
};
|
|
23
7
|
//# sourceMappingURL=index380.js.map
|
package/dist/index380.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index380.js","sources":["../../../node_modules/@base-ui/react/esm/
|
|
1
|
+
{"version":3,"file":"index380.js","sources":["../../../node_modules/@base-ui/react/esm/utils/resolveRef.js"],"sourcesContent":["/**\n * If the provided argument is a ref object, returns its `current` value.\n * Otherwise, returns the argument itself.\n */\nexport function resolveRef(maybeRef) {\n if (maybeRef == null) {\n return maybeRef;\n }\n return 'current' in maybeRef ? maybeRef.current : maybeRef;\n}"],"names":["resolveRef","maybeRef"],"mappings":"AAIO,SAASA,EAAWC,GAAU;AACnC,SAAIA,KAAY,OACPA,IAEF,aAAaA,IAAWA,EAAS,UAAUA;AACpD;","x_google_ignoreList":[0]}
|
package/dist/index381.js
CHANGED
|
@@ -1,81 +1,75 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { createEventEmitter as a } from "./index389.js";
|
|
2
|
+
import { ReactStore as m } from "./index291.js";
|
|
3
|
+
import { isClickLikeEvent as f } from "./index372.js";
|
|
4
|
+
import { createSelector as o } from "./index294.js";
|
|
5
|
+
const l = {
|
|
6
|
+
open: o((t) => t.open),
|
|
7
|
+
transitionStatus: o((t) => t.transitionStatus),
|
|
8
|
+
domReferenceElement: o((t) => t.domReferenceElement),
|
|
9
|
+
referenceElement: o((t) => t.positionReference ?? t.referenceElement),
|
|
10
|
+
floatingElement: o((t) => t.floatingElement),
|
|
11
|
+
floatingId: o((t) => t.floatingId)
|
|
9
12
|
};
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
y(a) !== "script" && (r.has(a) ? s(a) : n.push(a));
|
|
33
|
-
});
|
|
34
|
-
};
|
|
35
|
-
return s(t), n;
|
|
36
|
-
};
|
|
37
|
-
function x(t, r, o, n, {
|
|
38
|
-
mark: s = !0,
|
|
39
|
-
markerIgnoreElements: i = []
|
|
40
|
-
}) {
|
|
41
|
-
const a = n ? "inert" : o ? "aria-hidden" : null;
|
|
42
|
-
let f = null, m = null;
|
|
43
|
-
const d = w(r, t), C = s ? w(r, i) : [], H = new Set(C), I = s ? N(r, V(d), new Set(d)).filter((e) => !H.has(e)) : [], S = [], g = [];
|
|
44
|
-
if (a) {
|
|
45
|
-
const e = k[a], c = q(a);
|
|
46
|
-
m = c, f = e;
|
|
47
|
-
const h = w(r, Array.from(r.querySelectorAll("[aria-live]"))), A = d.concat(h);
|
|
48
|
-
N(r, V(A), new Set(A)).forEach((l) => {
|
|
49
|
-
const W = l.getAttribute(a), M = W !== null && W !== "false", b = (e.get(l) || 0) + 1;
|
|
50
|
-
e.set(l, b), S.push(l), b === 1 && M && c.add(l), M || l.setAttribute(a, a === "inert" ? "" : "true");
|
|
51
|
-
});
|
|
13
|
+
class d extends m {
|
|
14
|
+
constructor(n) {
|
|
15
|
+
const {
|
|
16
|
+
syncOnly: e,
|
|
17
|
+
nested: r,
|
|
18
|
+
onOpenChange: s,
|
|
19
|
+
triggerElements: c,
|
|
20
|
+
...i
|
|
21
|
+
} = n;
|
|
22
|
+
super({
|
|
23
|
+
...i,
|
|
24
|
+
positionReference: i.referenceElement,
|
|
25
|
+
domReferenceElement: i.referenceElement
|
|
26
|
+
}, {
|
|
27
|
+
onOpenChange: s,
|
|
28
|
+
dataRef: {
|
|
29
|
+
current: {}
|
|
30
|
+
},
|
|
31
|
+
events: a(),
|
|
32
|
+
nested: r,
|
|
33
|
+
triggerElements: c
|
|
34
|
+
}, l), this.syncOnly = e;
|
|
52
35
|
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
36
|
+
/**
|
|
37
|
+
* Syncs the event used by hover logic to distinguish hover-open from click-like interaction.
|
|
38
|
+
*/
|
|
39
|
+
syncOpenEvent = (n, e) => {
|
|
40
|
+
(!n || !this.state.open || // Prevent a pending hover-open from overwriting a click-open event, while allowing
|
|
41
|
+
// click events to upgrade a hover-open.
|
|
42
|
+
e != null && f(e)) && (this.context.dataRef.current.openEvent = n ? e : void 0);
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Runs the root-owned side effects for an open state change.
|
|
46
|
+
*/
|
|
47
|
+
dispatchOpenChange = (n, e) => {
|
|
48
|
+
this.syncOpenEvent(n, e.event);
|
|
49
|
+
const r = {
|
|
50
|
+
open: n,
|
|
51
|
+
reason: e.reason,
|
|
52
|
+
nativeEvent: e.event,
|
|
53
|
+
nested: this.context.nested,
|
|
54
|
+
triggerElement: e.trigger
|
|
55
|
+
};
|
|
56
|
+
this.context.events.emit("openchange", r);
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* Emits the `openchange` event through the internal event emitter and calls the `onOpenChange` handler with the provided arguments.
|
|
60
|
+
*
|
|
61
|
+
* @param newOpen The new open state.
|
|
62
|
+
* @param eventDetails Details about the event that triggered the open state change.
|
|
63
|
+
*/
|
|
64
|
+
setOpen = (n, e) => {
|
|
65
|
+
if (this.syncOnly) {
|
|
66
|
+
this.context.onOpenChange?.(n, e);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
this.dispatchOpenChange(n, e), this.context.onOpenChange?.(n, e);
|
|
64
70
|
};
|
|
65
|
-
}
|
|
66
|
-
function R(t, r = {}) {
|
|
67
|
-
const {
|
|
68
|
-
ariaHidden: o = !1,
|
|
69
|
-
inert: n = !1,
|
|
70
|
-
mark: s = !0,
|
|
71
|
-
markerIgnoreElements: i = []
|
|
72
|
-
} = r, a = U(t[0]).body;
|
|
73
|
-
return x(t, a, o, n, {
|
|
74
|
-
mark: s,
|
|
75
|
-
markerIgnoreElements: i
|
|
76
|
-
});
|
|
77
71
|
}
|
|
78
72
|
export {
|
|
79
|
-
|
|
73
|
+
d as FloatingRootStore
|
|
80
74
|
};
|
|
81
75
|
//# sourceMappingURL=index381.js.map
|