@rpcbase/ui 0.229.0 → 0.230.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 +52 -12
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +4 -68
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +5 -38
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +16 -14
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +5 -23
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +7 -110
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +17 -13
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +4 -4
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +5 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +6 -5
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +5 -11
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +4 -19
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +5 -13
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +6 -261
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +24 -4
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +7 -28
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +4 -126
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +6 -5
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +5 -78
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +4 -66
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +5 -8
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +5 -16
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +8 -92
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +5 -65
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +4 -45
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +5 -52
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +6 -4
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +145 -4
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +39 -15
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +4 -5
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +7 -7
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +13 -16
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +13 -4
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +7 -4
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +31 -5
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +10 -5
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +10 -4
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +8 -4
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +13 -6
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +101 -24
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +20 -7
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +53 -4
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +72 -6
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +9 -5
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +20 -4
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +16 -5
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +23 -4
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +6 -8
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +5 -5
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +23 -4
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +35 -5
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +16 -7
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +6 -145
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +4 -39
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +4 -7
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -13
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +3 -13
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +6 -7
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +24 -32
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +7 -10
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -10
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -8
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +3 -13
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +3 -101
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +5 -20
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +3 -53
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -72
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +3 -9
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +3 -20
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +3 -16
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +12 -22
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +154 -6
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +30 -5
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +9 -23
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +47 -33
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +12 -16
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +44 -6
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +95 -4
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +86 -4
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +105 -4
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +52 -4
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +11 -3
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +37 -6
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +9 -24
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +116 -7
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +17 -6
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +15 -5
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +3 -3
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +36 -3
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +20 -4
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +9 -3
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +8 -4
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +19 -3
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +28 -3
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +16 -3
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +58 -13
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +8 -154
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +64 -28
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +19 -9
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +14 -46
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +5 -11
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +4 -43
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +6 -95
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +4 -86
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +6 -105
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +16 -52
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +4 -11
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +4 -37
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +12 -8
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +9 -3
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +13 -9
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +13 -116
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +4 -17
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +5 -15
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +6 -36
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +5 -20
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +54 -8
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +8 -19
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +4 -28
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +4 -16
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +9 -20
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +4 -66
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +4 -6
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +3 -11
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +10 -50
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +10 -4
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +9 -29
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +10 -16
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +10 -5
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +9 -21
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +6 -51
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +5 -25
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +4 -41
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +5 -39
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +7 -45
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +5 -20
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +13 -67
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +7 -17
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +10 -11
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +10 -27
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +21 -13
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +10 -18
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +9 -36
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +9 -262
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +4 -278
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +5 -68
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +15 -98
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +9 -83
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +18 -3
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +14 -28
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +12 -16
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +29 -34
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +12 -16
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +25 -3
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +5 -26
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +20 -29
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +67 -4
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +6 -78
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +5 -269
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +11 -11
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +50 -10
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +4 -26
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +28 -15
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +15 -124
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -5
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +19 -38
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +50 -64
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +26 -14
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +41 -7
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +39 -5
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +45 -4
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +23 -10
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +19 -7
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +19 -132
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +61 -390
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +17 -52
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +11 -11
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +27 -11
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +13 -8
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +18 -11
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +34 -6
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +64 -12
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +262 -3
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +278 -3
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +68 -17
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +45 -51
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +99 -5
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +76 -115
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +13 -33
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +3 -73
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +24 -137
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +16 -61
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +37 -49
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +34 -14
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +67 -7
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +17 -5
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +3 -11
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +106 -17
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +26 -58
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +28 -8
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +4 -67
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +126 -19
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +4 -16
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +78 -5
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +269 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +11 -6
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +28 -5
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +16 -7
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +10 -16
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +24 -24
- package/dist/index310.js +25 -4
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +16 -4
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +125 -12
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +5 -9
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +40 -13
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +65 -13
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +14 -5
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +14 -6
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +7 -6
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +13 -6
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +3 -3
- package/dist/index320.js +5 -54
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +3 -8
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +10 -4
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +7 -4
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +133 -8
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +261 -4
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +399 -4
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +52 -3
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +11 -10
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +11 -9
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +4 -9
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +11 -10
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +4 -11
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +5 -10
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +11 -6
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +78 -5
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +66 -4
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +8 -5
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +92 -6
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +20 -5
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +4 -4
- package/dist/index340.js +4 -16
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +18 -8
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +12 -10
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +8 -10
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +11 -21
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +8 -10
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +13 -9
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +3 -9
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +3 -4
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +4 -6
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +5 -5
- package/dist/index350.js +15 -17
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +8 -9
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +50 -17
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +11 -15
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +14 -10
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +5 -29
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +5 -12
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +19 -24
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +45 -6
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +18 -21
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +10 -10
- package/dist/index360.js +5 -4
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +199 -10
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +76 -15
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +122 -5
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +16 -19
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +32 -44
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +72 -16
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +143 -5
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +59 -198
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +49 -77
- package/dist/index369.js.map +1 -1
- package/dist/index37.js +3 -3
- package/dist/index370.js +5 -9
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +12 -26
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +21 -26
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +4 -137
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +4 -12
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +4 -227
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +15 -3
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +8 -19
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +5 -77
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +5 -12
- package/dist/index379.js.map +1 -1
- package/dist/index38.js +4 -4
- package/dist/index380.js +545 -3
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +46 -71
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +18 -9
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +5 -15
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +7 -4
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +7 -18
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +7 -12
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +12 -3
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +9 -3
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +12 -14
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +5 -5
- package/dist/index390.js +3 -492
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +3 -5
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +8 -4
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +26 -4
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +26 -15
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +137 -8
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +12 -5
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +226 -4
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +3 -545
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +20 -47
- package/dist/index399.js.map +1 -1
- package/dist/index40.js +3 -3
- package/dist/index400.js +74 -14
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +12 -6
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +3 -7
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +71 -6
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +9 -8
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +15 -11
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +4 -8
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +56 -13
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +68 -8
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +31 -2
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +10 -10
- package/dist/index410.js +9 -44
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +152 -55
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +108 -8
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +8 -2
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +2 -55
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +42 -54
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +55 -4
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +8 -56
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +2 -68
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +55 -31
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +56 -9
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +14 -152
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +490 -106
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +16 -2
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +29 -2
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +13 -2
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +7 -2
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +2 -16
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +2 -29
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +2 -13
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +2 -7
- package/dist/index430.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index45.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/index72.js +2 -6
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +2 -8
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +5 -5
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +8 -2
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +6 -2
- package/dist/index76.js.map +1 -1
- package/dist/index80.js +4 -4
- package/dist/index85.js +1 -1
- package/dist/index86.js +1 -1
- package/dist/index93.js +1 -1
- package/dist/index94.js +6 -6
- package/dist/index96.js +4 -4
- package/dist/index98.js +1 -1
- package/package.json +1 -1
package/dist/index368.js
CHANGED
|
@@ -1,204 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
1
|
+
class n {
|
|
2
|
+
constructor() {
|
|
3
|
+
this.elementsSet = /* @__PURE__ */ new Set(), this.idMap = /* @__PURE__ */ new Map();
|
|
4
|
+
}
|
|
5
|
+
/**
|
|
6
|
+
* Adds a trigger element with the given ID.
|
|
7
|
+
*
|
|
8
|
+
* Note: The provided element is assumed to not be registered under multiple IDs.
|
|
9
|
+
*/
|
|
10
|
+
add(e, t) {
|
|
11
|
+
const s = this.idMap.get(e);
|
|
12
|
+
if (s !== t && (s !== void 0 && this.elementsSet.delete(s), this.elementsSet.add(t), this.idMap.set(e, t), process.env.NODE_ENV !== "production" && this.elementsSet.size !== this.idMap.size))
|
|
13
|
+
throw new Error("Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.");
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Removes the trigger element with the given ID.
|
|
17
|
+
*/
|
|
18
|
+
delete(e) {
|
|
19
|
+
const t = this.idMap.get(e);
|
|
20
|
+
t && (this.elementsSet.delete(t), this.idMap.delete(e));
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Whether the given element is registered as a trigger.
|
|
24
|
+
*/
|
|
25
|
+
hasElement(e) {
|
|
26
|
+
return this.elementsSet.has(e);
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Whether there is a registered trigger element matching the given predicate.
|
|
30
|
+
*/
|
|
31
|
+
hasMatchingElement(e) {
|
|
32
|
+
for (const t of this.elementsSet)
|
|
33
|
+
if (e(t))
|
|
34
|
+
return !0;
|
|
12
35
|
return !1;
|
|
13
|
-
if (typeof e == "function" && e.toString() === t.toString())
|
|
14
|
-
return !0;
|
|
15
|
-
let n, f, c;
|
|
16
|
-
if (e && t && typeof e == "object") {
|
|
17
|
-
if (Array.isArray(e)) {
|
|
18
|
-
if (n = e.length, n !== t.length) return !1;
|
|
19
|
-
for (f = n; f-- !== 0; )
|
|
20
|
-
if (!w(e[f], t[f]))
|
|
21
|
-
return !1;
|
|
22
|
-
return !0;
|
|
23
|
-
}
|
|
24
|
-
if (c = Object.keys(e), n = c.length, n !== Object.keys(t).length)
|
|
25
|
-
return !1;
|
|
26
|
-
for (f = n; f-- !== 0; )
|
|
27
|
-
if (!{}.hasOwnProperty.call(t, c[f]))
|
|
28
|
-
return !1;
|
|
29
|
-
for (f = n; f-- !== 0; ) {
|
|
30
|
-
const p = c[f];
|
|
31
|
-
if (!(p === "_owner" && e.$$typeof) && !w(e[p], t[p]))
|
|
32
|
-
return !1;
|
|
33
|
-
}
|
|
34
|
-
return !0;
|
|
35
36
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
floating: A
|
|
61
|
-
} = {},
|
|
62
|
-
transform: D = !0,
|
|
63
|
-
whileElementsMounted: E,
|
|
64
|
-
open: x
|
|
65
|
-
} = e, [s, C] = r.useState({
|
|
66
|
-
x: 0,
|
|
67
|
-
y: 0,
|
|
68
|
-
strategy: n,
|
|
69
|
-
placement: t,
|
|
70
|
-
middlewareData: {},
|
|
71
|
-
isPositioned: !1
|
|
72
|
-
}), [M, q] = r.useState(f);
|
|
73
|
-
w(M, f) || q(f);
|
|
74
|
-
const [B, U] = r.useState(null), [V, W] = r.useState(null), _ = r.useCallback((o) => {
|
|
75
|
-
o !== a.current && (a.current = o, U(o));
|
|
76
|
-
}, []), v = r.useCallback((o) => {
|
|
77
|
-
o !== m.current && (m.current = o, W(o));
|
|
78
|
-
}, []), i = p || B, u = A || V, a = r.useRef(null), m = r.useRef(null), y = r.useRef(s), G = E != null, S = k(E), P = k(c), F = k(x), g = r.useCallback(() => {
|
|
79
|
-
if (!a.current || !m.current)
|
|
80
|
-
return;
|
|
81
|
-
const o = {
|
|
82
|
-
placement: t,
|
|
83
|
-
strategy: n,
|
|
84
|
-
middleware: M
|
|
85
|
-
};
|
|
86
|
-
P.current && (o.platform = P.current), J(a.current, m.current, o).then((h) => {
|
|
87
|
-
const d = {
|
|
88
|
-
...h,
|
|
89
|
-
// The floating element's position may be recomputed while it's closed
|
|
90
|
-
// but still mounted (such as when transitioning out). To ensure
|
|
91
|
-
// `isPositioned` will be `false` initially on the next open, avoid
|
|
92
|
-
// setting it to `true` when `open === false` (must be specified).
|
|
93
|
-
isPositioned: F.current !== !1
|
|
94
|
-
};
|
|
95
|
-
$.current && !w(y.current, d) && (y.current = d, Y.flushSync(() => {
|
|
96
|
-
C(d);
|
|
97
|
-
}));
|
|
98
|
-
});
|
|
99
|
-
}, [M, t, n, P, F]);
|
|
100
|
-
R(() => {
|
|
101
|
-
x === !1 && y.current.isPositioned && (y.current.isPositioned = !1, C((o) => ({
|
|
102
|
-
...o,
|
|
103
|
-
isPositioned: !1
|
|
104
|
-
})));
|
|
105
|
-
}, [x]);
|
|
106
|
-
const $ = r.useRef(!1);
|
|
107
|
-
R(() => ($.current = !0, () => {
|
|
108
|
-
$.current = !1;
|
|
109
|
-
}), []), R(() => {
|
|
110
|
-
if (i && (a.current = i), u && (m.current = u), i && u) {
|
|
111
|
-
if (S.current)
|
|
112
|
-
return S.current(i, u, g);
|
|
113
|
-
g();
|
|
114
|
-
}
|
|
115
|
-
}, [i, u, g, S, G]);
|
|
116
|
-
const O = r.useMemo(() => ({
|
|
117
|
-
reference: a,
|
|
118
|
-
floating: m,
|
|
119
|
-
setReference: _,
|
|
120
|
-
setFloating: v
|
|
121
|
-
}), [_, v]), l = r.useMemo(() => ({
|
|
122
|
-
reference: i,
|
|
123
|
-
floating: u
|
|
124
|
-
}), [i, u]), j = r.useMemo(() => {
|
|
125
|
-
const o = {
|
|
126
|
-
position: n,
|
|
127
|
-
left: 0,
|
|
128
|
-
top: 0
|
|
129
|
-
};
|
|
130
|
-
if (!l.floating)
|
|
131
|
-
return o;
|
|
132
|
-
const h = z(l.floating, s.x), d = z(l.floating, s.y);
|
|
133
|
-
return D ? {
|
|
134
|
-
...o,
|
|
135
|
-
transform: "translate(" + h + "px, " + d + "px)",
|
|
136
|
-
...L(l.floating) >= 1.5 && {
|
|
137
|
-
willChange: "transform"
|
|
138
|
-
}
|
|
139
|
-
} : {
|
|
140
|
-
position: n,
|
|
141
|
-
left: h,
|
|
142
|
-
top: d
|
|
143
|
-
};
|
|
144
|
-
}, [n, D, l.floating, s.x, s.y]);
|
|
145
|
-
return r.useMemo(() => ({
|
|
146
|
-
...s,
|
|
147
|
-
update: g,
|
|
148
|
-
refs: O,
|
|
149
|
-
elements: l,
|
|
150
|
-
floatingStyles: j
|
|
151
|
-
}), [s, g, O, l, j]);
|
|
37
|
+
/**
|
|
38
|
+
* Returns the trigger element associated with the given ID, or undefined if no such element exists.
|
|
39
|
+
*/
|
|
40
|
+
getById(e) {
|
|
41
|
+
return this.idMap.get(e);
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].
|
|
45
|
+
*/
|
|
46
|
+
entries() {
|
|
47
|
+
return this.idMap.entries();
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns an iterable of all registered trigger elements.
|
|
51
|
+
*/
|
|
52
|
+
elements() {
|
|
53
|
+
return this.elementsSet.values();
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns the number of registered trigger elements.
|
|
57
|
+
*/
|
|
58
|
+
get size() {
|
|
59
|
+
return this.idMap.size;
|
|
60
|
+
}
|
|
152
61
|
}
|
|
153
|
-
const re = (e, t) => {
|
|
154
|
-
const n = K(e);
|
|
155
|
-
return {
|
|
156
|
-
name: n.name,
|
|
157
|
-
fn: n.fn,
|
|
158
|
-
options: [e, t]
|
|
159
|
-
};
|
|
160
|
-
}, oe = (e, t) => {
|
|
161
|
-
const n = Q(e);
|
|
162
|
-
return {
|
|
163
|
-
name: n.name,
|
|
164
|
-
fn: n.fn,
|
|
165
|
-
options: [e, t]
|
|
166
|
-
};
|
|
167
|
-
}, fe = (e, t) => ({
|
|
168
|
-
fn: T(e).fn,
|
|
169
|
-
options: [e, t]
|
|
170
|
-
}), se = (e, t) => {
|
|
171
|
-
const n = H(e);
|
|
172
|
-
return {
|
|
173
|
-
name: n.name,
|
|
174
|
-
fn: n.fn,
|
|
175
|
-
options: [e, t]
|
|
176
|
-
};
|
|
177
|
-
}, ie = (e, t) => {
|
|
178
|
-
const n = I(e);
|
|
179
|
-
return {
|
|
180
|
-
name: n.name,
|
|
181
|
-
fn: n.fn,
|
|
182
|
-
options: [e, t]
|
|
183
|
-
};
|
|
184
|
-
}, ue = (e, t) => {
|
|
185
|
-
const n = N(e);
|
|
186
|
-
return {
|
|
187
|
-
name: n.name,
|
|
188
|
-
fn: n.fn,
|
|
189
|
-
options: [e, t]
|
|
190
|
-
};
|
|
191
|
-
};
|
|
192
62
|
export {
|
|
193
|
-
|
|
194
|
-
J as computePosition,
|
|
195
|
-
se as flip,
|
|
196
|
-
ue as hide,
|
|
197
|
-
fe as limitShift,
|
|
198
|
-
re as offset,
|
|
199
|
-
me as platform,
|
|
200
|
-
oe as shift,
|
|
201
|
-
ie as size,
|
|
202
|
-
ne as useFloating
|
|
63
|
+
n as PopupTriggerMap
|
|
203
64
|
};
|
|
204
65
|
//# sourceMappingURL=index368.js.map
|
package/dist/index368.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index368.js","sources":["../../../node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs"],"sourcesContent":["import { computePosition, arrow as arrow$2, autoPlacement as autoPlacement$1, flip as flip$1, hide as hide$1, inline as inline$1, limitShift as limitShift$1, offset as offset$1, shift as shift$1, size as size$1 } from '@floating-ui/dom';\nexport { autoUpdate, computePosition, detectOverflow, getOverflowAncestors, platform } from '@floating-ui/dom';\nimport * as React from 'react';\nimport { useLayoutEffect } from 'react';\nimport * as ReactDOM from 'react-dom';\n\nvar isClient = typeof document !== 'undefined';\n\nvar noop = function noop() {};\nvar index = isClient ? useLayoutEffect : noop;\n\n// Fork of `fast-deep-equal` that only does the comparisons we need and compares\n// functions\nfunction deepEqual(a, b) {\n if (a === b) {\n return true;\n }\n if (typeof a !== typeof b) {\n return false;\n }\n if (typeof a === 'function' && a.toString() === b.toString()) {\n return true;\n }\n let length;\n let i;\n let keys;\n if (a && b && typeof a === 'object') {\n if (Array.isArray(a)) {\n length = a.length;\n if (length !== b.length) return false;\n for (i = length; i-- !== 0;) {\n if (!deepEqual(a[i], b[i])) {\n return false;\n }\n }\n return true;\n }\n keys = Object.keys(a);\n length = keys.length;\n if (length !== Object.keys(b).length) {\n return false;\n }\n for (i = length; i-- !== 0;) {\n if (!{}.hasOwnProperty.call(b, keys[i])) {\n return false;\n }\n }\n for (i = length; i-- !== 0;) {\n const key = keys[i];\n if (key === '_owner' && a.$$typeof) {\n continue;\n }\n if (!deepEqual(a[key], b[key])) {\n return false;\n }\n }\n return true;\n }\n return a !== a && b !== b;\n}\n\nfunction getDPR(element) {\n if (typeof window === 'undefined') {\n return 1;\n }\n const win = element.ownerDocument.defaultView || window;\n return win.devicePixelRatio || 1;\n}\n\nfunction roundByDPR(element, value) {\n const dpr = getDPR(element);\n return Math.round(value * dpr) / dpr;\n}\n\nfunction useLatestRef(value) {\n const ref = React.useRef(value);\n index(() => {\n ref.current = value;\n });\n return ref;\n}\n\n/**\n * Provides data to position a floating element.\n * @see https://floating-ui.com/docs/useFloating\n */\nfunction useFloating(options) {\n if (options === void 0) {\n options = {};\n }\n const {\n placement = 'bottom',\n strategy = 'absolute',\n middleware = [],\n platform,\n elements: {\n reference: externalReference,\n floating: externalFloating\n } = {},\n transform = true,\n whileElementsMounted,\n open\n } = options;\n const [data, setData] = React.useState({\n x: 0,\n y: 0,\n strategy,\n placement,\n middlewareData: {},\n isPositioned: false\n });\n const [latestMiddleware, setLatestMiddleware] = React.useState(middleware);\n if (!deepEqual(latestMiddleware, middleware)) {\n setLatestMiddleware(middleware);\n }\n const [_reference, _setReference] = React.useState(null);\n const [_floating, _setFloating] = React.useState(null);\n const setReference = React.useCallback(node => {\n if (node !== referenceRef.current) {\n referenceRef.current = node;\n _setReference(node);\n }\n }, []);\n const setFloating = React.useCallback(node => {\n if (node !== floatingRef.current) {\n floatingRef.current = node;\n _setFloating(node);\n }\n }, []);\n const referenceEl = externalReference || _reference;\n const floatingEl = externalFloating || _floating;\n const referenceRef = React.useRef(null);\n const floatingRef = React.useRef(null);\n const dataRef = React.useRef(data);\n const hasWhileElementsMounted = whileElementsMounted != null;\n const whileElementsMountedRef = useLatestRef(whileElementsMounted);\n const platformRef = useLatestRef(platform);\n const openRef = useLatestRef(open);\n const update = React.useCallback(() => {\n if (!referenceRef.current || !floatingRef.current) {\n return;\n }\n const config = {\n placement,\n strategy,\n middleware: latestMiddleware\n };\n if (platformRef.current) {\n config.platform = platformRef.current;\n }\n computePosition(referenceRef.current, floatingRef.current, config).then(data => {\n const fullData = {\n ...data,\n // The floating element's position may be recomputed while it's closed\n // but still mounted (such as when transitioning out). To ensure\n // `isPositioned` will be `false` initially on the next open, avoid\n // setting it to `true` when `open === false` (must be specified).\n isPositioned: openRef.current !== false\n };\n if (isMountedRef.current && !deepEqual(dataRef.current, fullData)) {\n dataRef.current = fullData;\n ReactDOM.flushSync(() => {\n setData(fullData);\n });\n }\n });\n }, [latestMiddleware, placement, strategy, platformRef, openRef]);\n index(() => {\n if (open === false && dataRef.current.isPositioned) {\n dataRef.current.isPositioned = false;\n setData(data => ({\n ...data,\n isPositioned: false\n }));\n }\n }, [open]);\n const isMountedRef = React.useRef(false);\n index(() => {\n isMountedRef.current = true;\n return () => {\n isMountedRef.current = false;\n };\n }, []);\n index(() => {\n if (referenceEl) referenceRef.current = referenceEl;\n if (floatingEl) floatingRef.current = floatingEl;\n if (referenceEl && floatingEl) {\n if (whileElementsMountedRef.current) {\n return whileElementsMountedRef.current(referenceEl, floatingEl, update);\n }\n update();\n }\n }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);\n const refs = React.useMemo(() => ({\n reference: referenceRef,\n floating: floatingRef,\n setReference,\n setFloating\n }), [setReference, setFloating]);\n const elements = React.useMemo(() => ({\n reference: referenceEl,\n floating: floatingEl\n }), [referenceEl, floatingEl]);\n const floatingStyles = React.useMemo(() => {\n const initialStyles = {\n position: strategy,\n left: 0,\n top: 0\n };\n if (!elements.floating) {\n return initialStyles;\n }\n const x = roundByDPR(elements.floating, data.x);\n const y = roundByDPR(elements.floating, data.y);\n if (transform) {\n return {\n ...initialStyles,\n transform: \"translate(\" + x + \"px, \" + y + \"px)\",\n ...(getDPR(elements.floating) >= 1.5 && {\n willChange: 'transform'\n })\n };\n }\n return {\n position: strategy,\n left: x,\n top: y\n };\n }, [strategy, transform, elements.floating, data.x, data.y]);\n return React.useMemo(() => ({\n ...data,\n update,\n refs,\n elements,\n floatingStyles\n }), [data, update, refs, elements, floatingStyles]);\n}\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow$1 = options => {\n function isRef(value) {\n return {}.hasOwnProperty.call(value, 'current');\n }\n return {\n name: 'arrow',\n options,\n fn(state) {\n const {\n element,\n padding\n } = typeof options === 'function' ? options(state) : options;\n if (element && isRef(element)) {\n if (element.current != null) {\n return arrow$2({\n element: element.current,\n padding\n }).fn(state);\n }\n return {};\n }\n if (element) {\n return arrow$2({\n element,\n padding\n }).fn(state);\n }\n return {};\n }\n };\n};\n\n/**\n * Modifies the placement by translating the floating element along the\n * specified axes.\n * A number (shorthand for `mainAxis` or distance), or an axes configuration\n * object may be passed.\n * @see https://floating-ui.com/docs/offset\n */\nconst offset = (options, deps) => {\n const result = offset$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by shifting it in order to\n * keep it in view when it will overflow the clipping boundary.\n * @see https://floating-ui.com/docs/shift\n */\nconst shift = (options, deps) => {\n const result = shift$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Built-in `limiter` that will stop `shift()` at a certain point.\n */\nconst limitShift = (options, deps) => {\n const result = limitShift$1(options);\n return {\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by flipping the `placement`\n * in order to keep it in view when the preferred placement(s) will overflow the\n * clipping boundary. Alternative to `autoPlacement`.\n * @see https://floating-ui.com/docs/flip\n */\nconst flip = (options, deps) => {\n const result = flip$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data that allows you to change the size of the floating element —\n * for instance, prevent it from overflowing the clipping boundary or match the\n * width of the reference element.\n * @see https://floating-ui.com/docs/size\n */\nconst size = (options, deps) => {\n const result = size$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Optimizes the visibility of the floating element by choosing the placement\n * that has the most space available automatically, without needing to specify a\n * preferred placement. Alternative to `flip`.\n * @see https://floating-ui.com/docs/autoPlacement\n */\nconst autoPlacement = (options, deps) => {\n const result = autoPlacement$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to hide the floating element in applicable situations, such as\n * when it is not in the same clipping context as the reference element.\n * @see https://floating-ui.com/docs/hide\n */\nconst hide = (options, deps) => {\n const result = hide$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides improved positioning for inline reference elements that can span\n * over multiple lines, such as hyperlinks or range selections.\n * @see https://floating-ui.com/docs/inline\n */\nconst inline = (options, deps) => {\n const result = inline$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\n/**\n * Provides data to position an inner element of the floating element so that it\n * appears centered to the reference element.\n * This wraps the core `arrow` middleware to allow React refs as the element.\n * @see https://floating-ui.com/docs/arrow\n */\nconst arrow = (options, deps) => {\n const result = arrow$1(options);\n return {\n name: result.name,\n fn: result.fn,\n options: [options, deps]\n };\n};\n\nexport { arrow, autoPlacement, flip, hide, inline, limitShift, offset, shift, size, useFloating };\n"],"names":["isClient","noop","index","useLayoutEffect","deepEqual","a","b","length","i","keys","key","getDPR","element","roundByDPR","value","dpr","useLatestRef","ref","React","useFloating","options","placement","strategy","middleware","platform","externalReference","externalFloating","transform","whileElementsMounted","open","data","setData","latestMiddleware","setLatestMiddleware","_reference","_setReference","_floating","_setFloating","setReference","node","referenceRef","setFloating","floatingRef","referenceEl","floatingEl","dataRef","hasWhileElementsMounted","whileElementsMountedRef","platformRef","openRef","update","config","computePosition","fullData","isMountedRef","ReactDOM","refs","elements","floatingStyles","initialStyles","x","y","offset","deps","result","offset$1","shift","shift$1","limitShift","limitShift$1","flip","flip$1","size","size$1","hide","hide$1"],"mappings":";;;;;AAMA,IAAIA,IAAW,OAAO,WAAa,KAE/BC,IAAO,WAAgB;AAAC,GACxBC,IAAQF,IAAWG,IAAkBF;AAIzC,SAASG,EAAUC,GAAGC,GAAG;AACvB,MAAID,MAAMC;AACR,WAAO;AAET,MAAI,OAAOD,KAAM,OAAOC;AACtB,WAAO;AAET,MAAI,OAAOD,KAAM,cAAcA,EAAE,eAAeC,EAAE;AAChD,WAAO;AAET,MAAIC,GACAC,GACAC;AACJ,MAAIJ,KAAKC,KAAK,OAAOD,KAAM,UAAU;AACnC,QAAI,MAAM,QAAQA,CAAC,GAAG;AAEpB,UADAE,IAASF,EAAE,QACPE,MAAWD,EAAE,OAAQ,QAAO;AAChC,WAAKE,IAAID,GAAQC,QAAQ;AACvB,YAAI,CAACJ,EAAUC,EAAEG,CAAC,GAAGF,EAAEE,CAAC,CAAC;AACvB,iBAAO;AAGX,aAAO;AAAA,IACT;AAGA,QAFAC,IAAO,OAAO,KAAKJ,CAAC,GACpBE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EACX,SAAS,CAACA,GAAS2C,CAAI;AAC3B,IASMO,KAAO,CAAClD,GAAS2C,MAAS;AAC9B,QAAMC,IAASO,EAAOnD,CAAO;AAC7B,SAAO;AAAA,IACL,MAAM4C,EAAO;AAAA,IACb,IAAIA,EAAO;AAAA,IACX,SAAS,CAAC5C,GAAS2C,CAAI;AAAA,EAC3B;AACA,GAQMS,KAAO,CAACpD,GAAS2C,MAAS;AAC9B,QAAMC,IAASS,EAAOrD,CAAO;AAC7B,SAAO;AAAA,IACL,MAAM4C,EAAO;AAAA,IACb,IAAIA,EAAO;AAAA,IACX,SAAS,CAAC5C,GAAS2C,CAAI;AAAA,EAC3B;AACA,GAsBMW,KAAO,CAACtD,GAAS2C,MAAS;AAC9B,QAAMC,IAASW,EAAOvD,CAAO;AAC7B,SAAO;AAAA,IACL,MAAM4C,EAAO;AAAA,IACb,IAAIA,EAAO;AAAA,IACX,SAAS,CAAC5C,GAAS2C,CAAI;AAAA,EAC3B;AACA;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index368.js","sources":["../../../node_modules/@base-ui/react/esm/utils/popups/popupTriggerMap.js"],"sourcesContent":["/**\n * Data structure to keep track of popup trigger elements by their IDs.\n * Uses both a set of Elements and a map of IDs to Elements for efficient lookups.\n */\nexport class PopupTriggerMap {\n constructor() {\n this.elementsSet = new Set();\n this.idMap = new Map();\n }\n\n /**\n * Adds a trigger element with the given ID.\n *\n * Note: The provided element is assumed to not be registered under multiple IDs.\n */\n add(id, element) {\n const existingElement = this.idMap.get(id);\n if (existingElement === element) {\n return;\n }\n if (existingElement !== undefined) {\n // We assume that the same element won't be registered under multiple ids.\n // This is safe considering how useTriggerRegistration is implemented.\n this.elementsSet.delete(existingElement);\n }\n this.elementsSet.add(element);\n this.idMap.set(id, element);\n if (process.env.NODE_ENV !== 'production') {\n if (this.elementsSet.size !== this.idMap.size) {\n throw new Error('Base UI: A trigger element cannot be registered under multiple IDs in PopupTriggerMap.');\n }\n }\n }\n\n /**\n * Removes the trigger element with the given ID.\n */\n delete(id) {\n const element = this.idMap.get(id);\n if (element) {\n this.elementsSet.delete(element);\n this.idMap.delete(id);\n }\n }\n\n /**\n * Whether the given element is registered as a trigger.\n */\n hasElement(element) {\n return this.elementsSet.has(element);\n }\n\n /**\n * Whether there is a registered trigger element matching the given predicate.\n */\n hasMatchingElement(predicate) {\n for (const element of this.elementsSet) {\n if (predicate(element)) {\n return true;\n }\n }\n return false;\n }\n\n /**\n * Returns the trigger element associated with the given ID, or undefined if no such element exists.\n */\n getById(id) {\n return this.idMap.get(id);\n }\n\n /**\n * Returns an iterable of all registered trigger entries, where each entry is a tuple of [id, element].\n */\n entries() {\n return this.idMap.entries();\n }\n\n /**\n * Returns an iterable of all registered trigger elements.\n */\n elements() {\n return this.elementsSet.values();\n }\n\n /**\n * Returns the number of registered trigger elements.\n */\n get size() {\n return this.idMap.size;\n }\n}"],"names":["PopupTriggerMap","id","element","existingElement","predicate"],"mappings":"AAIO,MAAMA,EAAgB;AAAA,EAC3B,cAAc;AACZ,SAAK,cAAc,oBAAI,IAAG,GAC1B,KAAK,QAAQ,oBAAI,IAAG;AAAA,EACtB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,IAAIC,GAAIC,GAAS;AACf,UAAMC,IAAkB,KAAK,MAAM,IAAIF,CAAE;AACzC,QAAIE,MAAoBD,MAGpBC,MAAoB,UAGtB,KAAK,YAAY,OAAOA,CAAe,GAEzC,KAAK,YAAY,IAAID,CAAO,GAC5B,KAAK,MAAM,IAAID,GAAIC,CAAO,GACtB,QAAQ,IAAI,aAAa,gBACvB,KAAK,YAAY,SAAS,KAAK,MAAM;AACvC,YAAM,IAAI,MAAM,wFAAwF;AAAA,EAG9G;AAAA;AAAA;AAAA;AAAA,EAKA,OAAOD,GAAI;AACT,UAAMC,IAAU,KAAK,MAAM,IAAID,CAAE;AACjC,IAAIC,MACF,KAAK,YAAY,OAAOA,CAAO,GAC/B,KAAK,MAAM,OAAOD,CAAE;AAAA,EAExB;AAAA;AAAA;AAAA;AAAA,EAKA,WAAWC,GAAS;AAClB,WAAO,KAAK,YAAY,IAAIA,CAAO;AAAA,EACrC;AAAA;AAAA;AAAA;AAAA,EAKA,mBAAmBE,GAAW;AAC5B,eAAWF,KAAW,KAAK;AACzB,UAAIE,EAAUF,CAAO;AACnB,eAAO;AAGX,WAAO;AAAA,EACT;AAAA;AAAA;AAAA;AAAA,EAKA,QAAQD,GAAI;AACV,WAAO,KAAK,MAAM,IAAIA,CAAE;AAAA,EAC1B;AAAA;AAAA;AAAA;AAAA,EAKA,UAAU;AACR,WAAO,KAAK,MAAM,QAAO;AAAA,EAC3B;AAAA;AAAA;AAAA;AAAA,EAKA,WAAW;AACT,WAAO,KAAK,YAAY,OAAM;AAAA,EAChC;AAAA;AAAA;AAAA;AAAA,EAKA,IAAI,OAAO;AACT,WAAO,KAAK,MAAM;AAAA,EACpB;AACF;","x_google_ignoreList":[0]}
|
package/dist/index369.js
CHANGED
|
@@ -1,81 +1,53 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
...r,
|
|
23
|
-
...d && {
|
|
24
|
-
reference: d
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}), g = o.useCallback((e) => {
|
|
28
|
-
const m = s(e) ? {
|
|
29
|
-
getBoundingClientRect: () => e.getBoundingClientRect(),
|
|
30
|
-
getClientRects: () => e.getClientRects(),
|
|
31
|
-
contextElement: e
|
|
32
|
-
} : e;
|
|
33
|
-
M(m), n.refs.setReference(m);
|
|
34
|
-
}, [n.refs]), [l, S] = o.useState(void 0), [k, D] = o.useState(null);
|
|
35
|
-
t.useSyncedValue("referenceElement", l ?? null);
|
|
36
|
-
const L = s(l) ? l : null;
|
|
37
|
-
t.useSyncedValue("domReferenceElement", l === void 0 ? r.domReference : L), t.useSyncedValue("floatingElement", k);
|
|
38
|
-
const x = o.useCallback((e) => {
|
|
39
|
-
(s(e) || e === null) && (R.current = e, S(e)), (s(n.refs.reference.current) || n.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
40
|
-
// `null` to support `positionReference` + an unstable `reference`
|
|
41
|
-
// callback ref.
|
|
42
|
-
e !== null && !s(e)) && n.refs.setReference(e);
|
|
43
|
-
}, [n.refs, S]), C = o.useCallback((e) => {
|
|
44
|
-
D(e), n.refs.setFloating(e);
|
|
45
|
-
}, [n.refs]), f = o.useMemo(() => ({
|
|
46
|
-
...n.refs,
|
|
47
|
-
setReference: x,
|
|
48
|
-
setFloating: C,
|
|
49
|
-
setPositionReference: g,
|
|
50
|
-
domReference: R
|
|
51
|
-
}), [n.refs, x, C, g]), a = o.useMemo(() => ({
|
|
52
|
-
...n.elements,
|
|
53
|
-
domReference: r.domReference
|
|
54
|
-
}), [n.elements, r.domReference]), E = t.useState("open"), p = t.useState("floatingId"), u = o.useMemo(() => ({
|
|
55
|
-
...n,
|
|
56
|
-
dataRef: t.context.dataRef,
|
|
57
|
-
open: E,
|
|
58
|
-
onOpenChange: t.setOpen,
|
|
59
|
-
events: t.context.events,
|
|
60
|
-
floatingId: p,
|
|
61
|
-
refs: f,
|
|
62
|
-
elements: a,
|
|
63
|
-
nodeId: i,
|
|
64
|
-
rootStore: t
|
|
65
|
-
}), [n, f, a, i, t, E, p]);
|
|
66
|
-
return F(() => {
|
|
67
|
-
t.context.dataRef.current.floatingContext = u;
|
|
68
|
-
const e = b?.nodesRef.current.find((m) => m.id === i);
|
|
69
|
-
e && (e.context = u);
|
|
70
|
-
}), o.useMemo(() => ({
|
|
71
|
-
...n,
|
|
72
|
-
context: u,
|
|
73
|
-
refs: f,
|
|
74
|
-
elements: a,
|
|
75
|
-
rootStore: t
|
|
76
|
-
}), [n, f, a, u, t]);
|
|
1
|
+
import { EMPTY_OBJECT as r } from "./index265.js";
|
|
2
|
+
import { getEmptyRootContext as i } from "./index405.js";
|
|
3
|
+
import { createSelector as n } from "./index350.js";
|
|
4
|
+
function u() {
|
|
5
|
+
return {
|
|
6
|
+
open: !1,
|
|
7
|
+
openProp: void 0,
|
|
8
|
+
mounted: !1,
|
|
9
|
+
transitionStatus: void 0,
|
|
10
|
+
floatingRootContext: i(),
|
|
11
|
+
preventUnmountingOnClose: !1,
|
|
12
|
+
payload: void 0,
|
|
13
|
+
activeTriggerId: null,
|
|
14
|
+
activeTriggerElement: null,
|
|
15
|
+
triggerIdProp: void 0,
|
|
16
|
+
popupElement: null,
|
|
17
|
+
positionerElement: null,
|
|
18
|
+
activeTriggerProps: r,
|
|
19
|
+
inactiveTriggerProps: r,
|
|
20
|
+
popupProps: r
|
|
21
|
+
};
|
|
77
22
|
}
|
|
23
|
+
const t = n((e) => e.triggerIdProp ?? e.activeTriggerId), a = {
|
|
24
|
+
open: n((e) => e.openProp ?? e.open),
|
|
25
|
+
mounted: n((e) => e.mounted),
|
|
26
|
+
transitionStatus: n((e) => e.transitionStatus),
|
|
27
|
+
floatingRootContext: n((e) => e.floatingRootContext),
|
|
28
|
+
preventUnmountingOnClose: n((e) => e.preventUnmountingOnClose),
|
|
29
|
+
payload: n((e) => e.payload),
|
|
30
|
+
activeTriggerId: t,
|
|
31
|
+
activeTriggerElement: n((e) => e.mounted ? e.activeTriggerElement : null),
|
|
32
|
+
/**
|
|
33
|
+
* Whether the trigger with the given ID was used to open the popup.
|
|
34
|
+
*/
|
|
35
|
+
isTriggerActive: n((e, o) => o !== void 0 && t(e) === o),
|
|
36
|
+
/**
|
|
37
|
+
* Whether the popup is open and was activated by a trigger with the given ID.
|
|
38
|
+
*/
|
|
39
|
+
isOpenedByTrigger: n((e, o) => o !== void 0 && t(e) === o && e.open),
|
|
40
|
+
/**
|
|
41
|
+
* Whether the popup is mounted and was activated by a trigger with the given ID.
|
|
42
|
+
*/
|
|
43
|
+
isMountedByTrigger: n((e, o) => o !== void 0 && t(e) === o && e.mounted),
|
|
44
|
+
triggerProps: n((e, o) => o ? e.activeTriggerProps : e.inactiveTriggerProps),
|
|
45
|
+
popupProps: n((e) => e.popupProps),
|
|
46
|
+
popupElement: n((e) => e.popupElement),
|
|
47
|
+
positionerElement: n((e) => e.positionerElement)
|
|
48
|
+
};
|
|
78
49
|
export {
|
|
79
|
-
|
|
50
|
+
u as createInitialPopupStoreState,
|
|
51
|
+
a as popupStoreSelectors
|
|
80
52
|
};
|
|
81
53
|
//# sourceMappingURL=index369.js.map
|
package/dist/index369.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index369.js","sources":["../../../node_modules/@base-ui/react/esm/
|
|
1
|
+
{"version":3,"file":"index369.js","sources":["../../../node_modules/@base-ui/react/esm/utils/popups/store.js"],"sourcesContent":["import { createSelector } from '@base-ui/utils/store';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { getEmptyRootContext } from \"../../floating-ui-react/utils/getEmptyRootContext.js\";\n\n/**\n * State common to all popup stores.\n */\n\nexport function createInitialPopupStoreState() {\n return {\n open: false,\n openProp: undefined,\n mounted: false,\n transitionStatus: undefined,\n floatingRootContext: getEmptyRootContext(),\n preventUnmountingOnClose: false,\n payload: undefined,\n activeTriggerId: null,\n activeTriggerElement: null,\n triggerIdProp: undefined,\n popupElement: null,\n positionerElement: null,\n activeTriggerProps: EMPTY_OBJECT,\n inactiveTriggerProps: EMPTY_OBJECT,\n popupProps: EMPTY_OBJECT\n };\n}\nconst activeTriggerIdSelector = createSelector(state => state.triggerIdProp ?? state.activeTriggerId);\nexport const popupStoreSelectors = {\n open: createSelector(state => state.openProp ?? state.open),\n mounted: createSelector(state => state.mounted),\n transitionStatus: createSelector(state => state.transitionStatus),\n floatingRootContext: createSelector(state => state.floatingRootContext),\n preventUnmountingOnClose: createSelector(state => state.preventUnmountingOnClose),\n payload: createSelector(state => state.payload),\n activeTriggerId: activeTriggerIdSelector,\n activeTriggerElement: createSelector(state => state.mounted ? state.activeTriggerElement : null),\n /**\n * Whether the trigger with the given ID was used to open the popup.\n */\n isTriggerActive: createSelector((state, triggerId) => triggerId !== undefined && activeTriggerIdSelector(state) === triggerId),\n /**\n * Whether the popup is open and was activated by a trigger with the given ID.\n */\n isOpenedByTrigger: createSelector((state, triggerId) => triggerId !== undefined && activeTriggerIdSelector(state) === triggerId && state.open),\n /**\n * Whether the popup is mounted and was activated by a trigger with the given ID.\n */\n isMountedByTrigger: createSelector((state, triggerId) => triggerId !== undefined && activeTriggerIdSelector(state) === triggerId && state.mounted),\n triggerProps: createSelector((state, isActive) => isActive ? state.activeTriggerProps : state.inactiveTriggerProps),\n popupProps: createSelector(state => state.popupProps),\n popupElement: createSelector(state => state.popupElement),\n positionerElement: createSelector(state => state.positionerElement)\n};"],"names":["createInitialPopupStoreState","getEmptyRootContext","EMPTY_OBJECT","activeTriggerIdSelector","createSelector","state","popupStoreSelectors","triggerId","isActive"],"mappings":";;;AAQO,SAASA,IAA+B;AAC7C,SAAO;AAAA,IACL,MAAM;AAAA,IACN,UAAU;AAAA,IACV,SAAS;AAAA,IACT,kBAAkB;AAAA,IAClB,qBAAqBC,EAAmB;AAAA,IACxC,0BAA0B;AAAA,IAC1B,SAAS;AAAA,IACT,iBAAiB;AAAA,IACjB,sBAAsB;AAAA,IACtB,eAAe;AAAA,IACf,cAAc;AAAA,IACd,mBAAmB;AAAA,IACnB,oBAAoBC;AAAA,IACpB,sBAAsBA;AAAA,IACtB,YAAYA;AAAA,EAChB;AACA;AACA,MAAMC,IAA0BC,EAAe,CAAAC,MAASA,EAAM,iBAAiBA,EAAM,eAAe,GACvFC,IAAsB;AAAA,EACjC,MAAMF,EAAe,CAAAC,MAASA,EAAM,YAAYA,EAAM,IAAI;AAAA,EAC1D,SAASD,EAAe,CAAAC,MAASA,EAAM,OAAO;AAAA,EAC9C,kBAAkBD,EAAe,CAAAC,MAASA,EAAM,gBAAgB;AAAA,EAChE,qBAAqBD,EAAe,CAAAC,MAASA,EAAM,mBAAmB;AAAA,EACtE,0BAA0BD,EAAe,CAAAC,MAASA,EAAM,wBAAwB;AAAA,EAChF,SAASD,EAAe,CAAAC,MAASA,EAAM,OAAO;AAAA,EAC9C,iBAAiBF;AAAA,EACjB,sBAAsBC,EAAe,CAAAC,MAASA,EAAM,UAAUA,EAAM,uBAAuB,IAAI;AAAA;AAAA;AAAA;AAAA,EAI/F,iBAAiBD,EAAe,CAACC,GAAOE,MAAcA,MAAc,UAAaJ,EAAwBE,CAAK,MAAME,CAAS;AAAA;AAAA;AAAA;AAAA,EAI7H,mBAAmBH,EAAe,CAACC,GAAOE,MAAcA,MAAc,UAAaJ,EAAwBE,CAAK,MAAME,KAAaF,EAAM,IAAI;AAAA;AAAA;AAAA;AAAA,EAI7I,oBAAoBD,EAAe,CAACC,GAAOE,MAAcA,MAAc,UAAaJ,EAAwBE,CAAK,MAAME,KAAaF,EAAM,OAAO;AAAA,EACjJ,cAAcD,EAAe,CAACC,GAAOG,MAAaA,IAAWH,EAAM,qBAAqBA,EAAM,oBAAoB;AAAA,EAClH,YAAYD,EAAe,CAAAC,MAASA,EAAM,UAAU;AAAA,EACpD,cAAcD,EAAe,CAAAC,MAASA,EAAM,YAAY;AAAA,EACxD,mBAAmBD,EAAe,CAAAC,MAASA,EAAM,iBAAiB;AACpE;","x_google_ignoreList":[0]}
|
package/dist/index37.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as n from "react";
|
|
2
|
-
import { useDialogRootContext as p } from "./
|
|
3
|
-
import { useRenderElement as a } from "./
|
|
4
|
-
import { useBaseUiId as c } from "./
|
|
2
|
+
import { useDialogRootContext as p } from "./index331.js";
|
|
3
|
+
import { useRenderElement as a } from "./index295.js";
|
|
4
|
+
import { useBaseUiId as c } from "./index330.js";
|
|
5
5
|
const d = /* @__PURE__ */ n.forwardRef(function(e, r) {
|
|
6
6
|
const {
|
|
7
7
|
render: m,
|
package/dist/index370.js
CHANGED
|
@@ -1,12 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
t && t();
|
|
6
|
-
}
|
|
7
|
-
};
|
|
8
|
-
}
|
|
1
|
+
import * as t from "react";
|
|
2
|
+
const a = {
|
|
3
|
+
...t
|
|
4
|
+
};
|
|
9
5
|
export {
|
|
10
|
-
|
|
6
|
+
a as SafeReact
|
|
11
7
|
};
|
|
12
8
|
//# sourceMappingURL=index370.js.map
|
package/dist/index370.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index370.js","sources":["../../../node_modules/@base-ui/utils/esm/
|
|
1
|
+
{"version":3,"file":"index370.js","sources":["../../../node_modules/@base-ui/utils/esm/safeReact.js"],"sourcesContent":["import * as React from 'react';\n\n// https://github.com/mui/material-ui/issues/41190#issuecomment-2040873379\nexport const SafeReact = {\n ...React\n};"],"names":["SafeReact","React"],"mappings":";AAGY,MAACA,IAAY;AAAA,EACvB,GAAGC;AACL;","x_google_ignoreList":[0]}
|
package/dist/index371.js
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
const
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const a = {
|
|
12
|
-
tabIndex: 0,
|
|
13
|
-
// Role is only for VoiceOver
|
|
14
|
-
role: o
|
|
15
|
-
};
|
|
16
|
-
return /* @__PURE__ */ n.jsx("span", {
|
|
17
|
-
...t,
|
|
18
|
-
ref: s,
|
|
19
|
-
style: f,
|
|
20
|
-
"aria-hidden": o ? void 0 : !0,
|
|
21
|
-
...a,
|
|
22
|
-
"data-base-ui-focus-guard": ""
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
process.env.NODE_ENV !== "production" && (d.displayName = "FocusGuard");
|
|
1
|
+
import n from "./index337.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
const e = /* @__PURE__ */ t.createContext(void 0);
|
|
4
|
+
process.env.NODE_ENV !== "production" && (e.displayName = "CompositeRootContext");
|
|
5
|
+
function r(s = !1) {
|
|
6
|
+
const o = t.useContext(e);
|
|
7
|
+
if (o === void 0 && !s)
|
|
8
|
+
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>." : n(16));
|
|
9
|
+
return o;
|
|
10
|
+
}
|
|
26
11
|
export {
|
|
27
|
-
|
|
12
|
+
e as CompositeRootContext,
|
|
13
|
+
r as useCompositeRootContext
|
|
28
14
|
};
|
|
29
15
|
//# sourceMappingURL=index371.js.map
|
package/dist/index371.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index371.js","sources":["../../../node_modules/@base-ui/react/esm/
|
|
1
|
+
{"version":3,"file":"index371.js","sources":["../../../node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext.js"],"sourcesContent":["'use client';\n\nimport _formatErrorMessage from \"@base-ui/utils/formatErrorMessage\";\nimport * as React from 'react';\nexport const CompositeRootContext = /*#__PURE__*/React.createContext(undefined);\nif (process.env.NODE_ENV !== \"production\") CompositeRootContext.displayName = \"CompositeRootContext\";\nexport function useCompositeRootContext(optional = false) {\n const context = React.useContext(CompositeRootContext);\n if (context === undefined && !optional) {\n throw new Error(process.env.NODE_ENV !== \"production\" ? 'Base UI: CompositeRootContext is missing. Composite parts must be placed within <Composite.Root>.' : _formatErrorMessage(16));\n }\n return context;\n}"],"names":["CompositeRootContext","React","useCompositeRootContext","optional","context","_formatErrorMessage"],"mappings":";;AAIY,MAACA,IAAoC,gBAAAC,EAAM,cAAc,MAAS;AAC1E,QAAQ,IAAI,aAAa,iBAAcD,EAAqB,cAAc;AACvE,SAASE,EAAwBC,IAAW,IAAO;AACxD,QAAMC,IAAUH,EAAM,WAAWD,CAAoB;AACrD,MAAII,MAAY,UAAa,CAACD;AAC5B,UAAM,IAAI,MAAM,QAAQ,IAAI,aAAa,eAAe,sGAAsGE,EAAoB,EAAE,CAAC;AAEvL,SAAOD;AACT;","x_google_ignoreList":[0]}
|