@rpcbase/ui 0.241.0 → 0.242.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/components/DayPickerField/index.d.ts.map +1 -1
- package/dist/components/PhoneNumberInput/country-options.d.ts +1 -1
- package/dist/components/PhoneNumberInput/country-options.d.ts.map +1 -1
- package/dist/index100.js +8 -4
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +5 -8
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -5
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +3 -3
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +6 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +152 -6
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +38 -144
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +4 -39
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +7 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +12 -6
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +13 -13
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +7 -13
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +30 -6
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +10 -31
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +10 -10
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +8 -10
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +13 -8
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +101 -13
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +20 -102
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +54 -20
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +70 -51
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +9 -72
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +20 -9
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +16 -20
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +23 -16
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +6 -23
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +5 -6
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +23 -5
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +35 -24
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +14 -35
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +5 -16
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +4 -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 +4 -4
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +3 -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 +22 -7
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +6 -24
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +4 -7
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +5 -6
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +3 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +3 -3
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +4 -3
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +3 -4
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +4 -3
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +3 -4
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +3 -3
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +3 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +5 -3
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +68 -5
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -69
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +386 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +201 -303
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +46 -247
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +42 -56
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +169 -46
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +96 -156
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +24 -109
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +8 -25
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +5 -8
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +5 -4
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +4 -5
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +487 -4
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +151 -428
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +13 -185
- package/dist/index165.js.map +1 -1
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +6 -6
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +3 -6
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +14 -16
- package/dist/index169.js.map +1 -1
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +12 -9
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +10 -10
- package/dist/index172.js.map +1 -1
- package/dist/index173.js.map +1 -1
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +1 -1
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +13 -12
- package/dist/index176.js.map +1 -1
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +1 -1
- package/dist/index178.js.map +1 -1
- package/dist/index179.js.map +1 -1
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +1 -1
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +2 -2
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +6 -8
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +161 -246
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +279 -4
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +5 -28
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +23 -122
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +126 -5
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +59 -74
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +7 -65
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +16 -9
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +31 -16
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +65 -88
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +20 -66
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +63 -42
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +6 -58
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +5 -8
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +11 -87
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -19
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +48 -14
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +4 -6
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +29 -5
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +16 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +5 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +21 -6
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +53 -16
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +20 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +41 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +39 -12
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +46 -10
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +20 -13
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +70 -13
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +17 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +3 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +11 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +13 -5
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +17 -53
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +36 -8
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +239 -4
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +252 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +68 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +99 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +83 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +3 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +29 -10
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +16 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +35 -10
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +17 -10
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +3 -10
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +26 -9
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +28 -6
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -6
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +78 -4
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +272 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +11 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +10 -5
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +25 -16
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +16 -7
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +124 -9
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +5 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +65 -21
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +14 -11
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +7 -9
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +5 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +3 -4
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +10 -5
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +7 -16
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +133 -9
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +398 -17
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +5 -16
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +51 -11
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +10 -28
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +27 -12
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +11 -25
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +58 -5
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +9 -20
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +82 -61
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +19 -6
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +16 -11
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +4 -49
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +6 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +6 -29
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +4 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +6 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +16 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +4 -51
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +4 -25
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +12 -41
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +9 -39
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +421 -350
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +14 -45
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +13 -20
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +4 -70
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +5 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +6 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +5 -27
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +53 -12
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +8 -18
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +4 -36
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +4 -262
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +8 -278
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +4 -68
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +4 -99
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +3 -83
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +10 -3
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +9 -29
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +9 -16
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +11 -35
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +10 -16
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +9 -3
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +48 -29
- package/dist/index29.js.map +1 -1
- package/dist/index290.js +6 -26
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -28
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +5 -4
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +5 -78
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +6 -269
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +5 -11
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +16 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +7 -25
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +10 -16
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +9 -124
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +21 -5
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +8 -40
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +9 -65
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +10 -14
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +4 -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 +16 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +9 -10
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +18 -7
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +19 -132
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +194 -184
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +10 -397
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +29 -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 +25 -11
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +5 -13
- package/dist/index314.js.map +1 -1
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +12 -10
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +11 -9
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +14 -13
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +9 -11
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +3 -3
- package/dist/index32.js.map +1 -1
- package/dist/index320.js +11 -44
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +40 -92
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +87 -76
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +69 -88
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +92 -39
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +51 -10
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +10 -36
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +4 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +37 -3
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +8 -9
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +81 -62
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +2 -2
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +1 -1
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +3 -36
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +35 -19
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +20 -8
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +9 -19
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +8 -28
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +23 -15
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +28 -8
- package/dist/index339.js.map +1 -1
- package/dist/index34.js +7 -61
- package/dist/index34.js.map +1 -1
- package/dist/index340.js +16 -11
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +8 -8
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +11 -13
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +8 -3
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +13 -3
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +3 -17
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +3 -51
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +17 -5
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +46 -117
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +5 -32
- package/dist/index349.js.map +1 -1
- package/dist/index35.js +29 -30
- package/dist/index35.js.map +1 -1
- package/dist/index350.js +58 -70
- package/dist/index350.js.map +1 -1
- package/dist/index351.js +64 -140
- package/dist/index351.js.map +1 -1
- package/dist/index352.js +7 -60
- package/dist/index352.js.map +1 -1
- package/dist/index353.js +4 -49
- package/dist/index353.js.map +1 -1
- package/dist/index354.js +12 -15
- package/dist/index354.js.map +1 -1
- package/dist/index355.js +21 -8
- package/dist/index355.js.map +1 -1
- package/dist/index356.js +17 -5
- package/dist/index356.js.map +1 -1
- package/dist/index357.js +8 -12
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +144 -21
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +79 -4
- package/dist/index359.js.map +1 -1
- package/dist/index36.js +52 -53
- package/dist/index36.js.map +1 -1
- package/dist/index360.js +61 -17
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +15 -13
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +4 -12
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +5 -16
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +3 -4
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +11 -5
- package/dist/index365.js.map +1 -1
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +1 -1
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +7 -7
- package/dist/index368.js.map +1 -1
- package/dist/index369.js.map +1 -1
- package/dist/index37.js.map +1 -1
- package/dist/index370.js +4 -4
- package/dist/index371.js +40 -44
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +122 -19
- package/dist/index372.js.map +1 -1
- package/dist/index373.js +4 -8
- package/dist/index373.js.map +1 -1
- package/dist/index374.js +18 -26
- package/dist/index374.js.map +1 -1
- package/dist/index375.js +12 -26
- package/dist/index375.js.map +1 -1
- package/dist/index376.js +4 -137
- package/dist/index376.js.map +1 -1
- package/dist/index377.js +19 -11
- package/dist/index377.js.map +1 -1
- package/dist/index378.js +7 -225
- package/dist/index378.js.map +1 -1
- package/dist/index379.js +27 -4
- package/dist/index379.js.map +1 -1
- package/dist/index38.js.map +1 -1
- package/dist/index380.js +136 -18
- package/dist/index380.js.map +1 -1
- package/dist/index381.js +10 -75
- package/dist/index381.js.map +1 -1
- package/dist/index382.js +47 -12
- package/dist/index382.js.map +1 -1
- package/dist/index383.js +3 -3
- package/dist/index383.js.map +1 -1
- package/dist/index384.js +19 -69
- package/dist/index384.js.map +1 -1
- package/dist/index385.js +76 -9
- package/dist/index385.js.map +1 -1
- package/dist/index386.js +12 -16
- package/dist/index386.js.map +1 -1
- package/dist/index387.js +3 -4
- package/dist/index387.js.map +1 -1
- package/dist/index388.js +71 -4
- package/dist/index388.js.map +1 -1
- package/dist/index389.js +36 -4
- package/dist/index389.js.map +1 -1
- package/dist/index39.js +3 -3
- package/dist/index39.js.map +1 -1
- package/dist/index390.js +7 -16
- package/dist/index390.js.map +1 -1
- package/dist/index391.js +15 -8
- package/dist/index391.js.map +1 -1
- package/dist/index392.js +3 -6
- package/dist/index392.js.map +1 -1
- package/dist/index393.js +3 -5
- package/dist/index393.js.map +1 -1
- package/dist/index394.js +4 -545
- package/dist/index394.js.map +1 -1
- package/dist/index395.js +5 -47
- package/dist/index395.js.map +1 -1
- package/dist/index396.js +4 -18
- package/dist/index396.js.map +1 -1
- package/dist/index397.js +15 -5
- package/dist/index397.js.map +1 -1
- package/dist/index398.js +8 -7
- package/dist/index398.js.map +1 -1
- package/dist/index399.js +5 -6
- package/dist/index399.js.map +1 -1
- package/dist/index40.js.map +1 -1
- package/dist/index400.js +4 -7
- package/dist/index400.js.map +1 -1
- package/dist/index401.js +545 -11
- package/dist/index401.js.map +1 -1
- package/dist/index402.js +47 -9
- package/dist/index402.js.map +1 -1
- package/dist/index403.js +17 -12
- package/dist/index403.js.map +1 -1
- package/dist/index404.js +6 -3
- package/dist/index404.js.map +1 -1
- package/dist/index405.js +8 -3
- package/dist/index405.js.map +1 -1
- package/dist/index406.js +6 -14
- package/dist/index406.js.map +1 -1
- package/dist/index407.js +7 -491
- package/dist/index407.js.map +1 -1
- package/dist/index408.js +11 -4
- package/dist/index408.js.map +1 -1
- package/dist/index409.js +9 -56
- package/dist/index409.js.map +1 -1
- package/dist/index41.js +45 -40
- package/dist/index41.js.map +1 -1
- package/dist/index410.js +13 -68
- package/dist/index410.js.map +1 -1
- package/dist/index411.js +3 -31
- package/dist/index411.js.map +1 -1
- package/dist/index412.js +15 -9
- package/dist/index412.js.map +1 -1
- package/dist/index413.js +488 -149
- package/dist/index413.js.map +1 -1
- package/dist/index414.js +8 -108
- package/dist/index414.js.map +1 -1
- package/dist/index415.js +2 -8
- package/dist/index415.js.map +1 -1
- package/dist/index416.js +44 -2
- package/dist/index416.js.map +1 -1
- package/dist/index417.js +52 -40
- package/dist/index417.js.map +1 -1
- package/dist/index418.js +7 -55
- package/dist/index418.js.map +1 -1
- package/dist/index419.js +2 -8
- package/dist/index419.js.map +1 -1
- package/dist/index420.js +55 -2
- package/dist/index420.js.map +1 -1
- package/dist/index421.js +53 -52
- package/dist/index421.js.map +1 -1
- package/dist/index422.js +32 -55
- package/dist/index422.js.map +1 -1
- package/dist/index423.js +68 -2
- package/dist/index423.js.map +1 -1
- package/dist/index424.js +31 -2
- package/dist/index424.js.map +1 -1
- package/dist/index425.js +9 -2
- package/dist/index425.js.map +1 -1
- package/dist/index426.js +153 -2
- package/dist/index426.js.map +1 -1
- package/dist/index427.js +108 -16
- package/dist/index427.js.map +1 -1
- package/dist/index428.js +4 -28
- package/dist/index428.js.map +1 -1
- package/dist/index429.js +56 -13
- package/dist/index429.js.map +1 -1
- package/dist/index430.js +2 -7
- package/dist/index430.js.map +1 -1
- package/dist/index431.js +5 -0
- package/dist/index431.js.map +1 -0
- package/dist/index432.js +5 -0
- package/dist/index432.js.map +1 -0
- package/dist/index433.js +5 -0
- package/dist/index433.js.map +1 -0
- package/dist/index434.js +19 -0
- package/dist/index434.js.map +1 -0
- package/dist/index435.js +32 -0
- package/dist/index435.js.map +1 -0
- package/dist/index436.js +16 -0
- package/dist/index436.js.map +1 -0
- package/dist/index437.js +10 -0
- package/dist/index437.js.map +1 -0
- package/dist/index48.js +2 -2
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +274 -268
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +182 -184
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +3 -3
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +105 -103
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +5 -5
- package/dist/index53.js.map +1 -1
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +102 -110
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +4 -4
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +5 -5
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +9 -9
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +5 -5
- package/dist/index59.js.map +1 -1
- package/dist/index6.js +43 -48
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +90 -86
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +2 -2
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +24 -26
- package/dist/index62.js.map +1 -1
- package/dist/index76.js +1 -1
- package/dist/index77.js +2 -2
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +2 -2
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +50 -52
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +4 -4
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +12 -4
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +5 -15
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +7 -5
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +17 -7
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +4 -16
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +1 -1
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +5 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +4 -4
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +4 -5
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +2 -2
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +5 -3
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +24 -6
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +4 -24
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +4 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +2 -2
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +5 -6
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +4 -5
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +4 -3
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/package.json +14 -12
package/dist/index188.js
CHANGED
|
@@ -1,9 +1,130 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as o from "react";
|
|
2
|
+
import * as j from "react-dom";
|
|
3
|
+
import { isNode as w } from "./index248.js";
|
|
4
|
+
import { addEventListener as S } from "./index240.js";
|
|
5
|
+
import { mergeCleanups as G } from "./index378.js";
|
|
6
|
+
import { useId as _ } from "./index347.js";
|
|
7
|
+
import { useIsoLayoutEffect as h } from "./index201.js";
|
|
8
|
+
import { useStableCallback as L } from "./index202.js";
|
|
9
|
+
import { EMPTY_OBJECT as k } from "./index204.js";
|
|
10
|
+
import { FocusGuard as T } from "./index379.js";
|
|
11
|
+
import { enableFocusInside as I, isOutsideEvent as E, getPreviousTabbable as q, getNextTabbable as A, disableFocusInside as B } from "./index380.js";
|
|
12
|
+
import { createChangeEventDetails as H } from "./index175.js";
|
|
13
|
+
import { createAttribute as J } from "./index383.js";
|
|
14
|
+
import { useRenderElement as Y } from "./index172.js";
|
|
15
|
+
import { ownerVisuallyHidden as z } from "./index191.js";
|
|
16
|
+
import { j as d } from "./index30.js";
|
|
17
|
+
import { focusOut as K } from "./index177.js";
|
|
18
|
+
const N = /* @__PURE__ */ o.createContext(null);
|
|
19
|
+
process.env.NODE_ENV !== "production" && (N.displayName = "PortalContext");
|
|
20
|
+
const Q = () => o.useContext(N), U = J("portal");
|
|
21
|
+
function W(C = {}) {
|
|
22
|
+
const {
|
|
23
|
+
ref: m,
|
|
24
|
+
container: n,
|
|
25
|
+
componentProps: g = k,
|
|
26
|
+
elementProps: F
|
|
27
|
+
} = C, p = _(), b = Q()?.portalNode, [a, c] = o.useState(null), [e, u] = o.useState(null), R = L((t) => {
|
|
28
|
+
t !== null && u(t);
|
|
29
|
+
}), r = o.useRef(null);
|
|
30
|
+
h(() => {
|
|
31
|
+
if (n === null) {
|
|
32
|
+
r.current && (r.current = null, u(null), c(null));
|
|
33
|
+
return;
|
|
34
|
+
}
|
|
35
|
+
if (p == null)
|
|
36
|
+
return;
|
|
37
|
+
const t = (n && (w(n) ? n : n.current)) ?? b ?? document.body;
|
|
38
|
+
if (t == null) {
|
|
39
|
+
r.current && (r.current = null, u(null), c(null));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
r.current !== t && (r.current = t, u(null), c(t));
|
|
43
|
+
}, [n, b, p]);
|
|
44
|
+
const i = Y("div", g, {
|
|
45
|
+
ref: [m, R],
|
|
46
|
+
props: [{
|
|
47
|
+
id: p,
|
|
48
|
+
[U]: ""
|
|
49
|
+
}, F]
|
|
50
|
+
});
|
|
51
|
+
return {
|
|
52
|
+
portalNode: e,
|
|
53
|
+
portalSubtree: a && i ? /* @__PURE__ */ j.createPortal(i, a) : null
|
|
54
|
+
};
|
|
5
55
|
}
|
|
56
|
+
const X = /* @__PURE__ */ o.forwardRef(function(m, n) {
|
|
57
|
+
const {
|
|
58
|
+
render: g,
|
|
59
|
+
className: F,
|
|
60
|
+
style: p,
|
|
61
|
+
children: v,
|
|
62
|
+
container: b,
|
|
63
|
+
renderGuards: a,
|
|
64
|
+
...c
|
|
65
|
+
} = m, {
|
|
66
|
+
portalNode: e,
|
|
67
|
+
portalSubtree: u
|
|
68
|
+
} = W({
|
|
69
|
+
container: b,
|
|
70
|
+
ref: n,
|
|
71
|
+
componentProps: m,
|
|
72
|
+
elementProps: c
|
|
73
|
+
}), R = o.useRef(null), r = o.useRef(null), i = o.useRef(null), x = o.useRef(null), [t, D] = o.useState(null), f = o.useRef(!1), y = t?.modal, O = t?.open, P = typeof a == "boolean" ? a : !!t && !t.modal && t.open && !!e;
|
|
74
|
+
o.useEffect(() => {
|
|
75
|
+
if (!e || y)
|
|
76
|
+
return;
|
|
77
|
+
function s(l) {
|
|
78
|
+
e && l.relatedTarget && E(l) && (l.type === "focusin" ? f.current && (I(e), f.current = !1) : (B(e), f.current = !0));
|
|
79
|
+
}
|
|
80
|
+
return G(S(e, "focusin", s, !0), S(e, "focusout", s, !0));
|
|
81
|
+
}, [e, y]), h(() => {
|
|
82
|
+
!e || O !== !0 || !f.current || (I(e), f.current = !1);
|
|
83
|
+
}, [O, e]);
|
|
84
|
+
const M = o.useMemo(() => ({
|
|
85
|
+
beforeOutsideRef: R,
|
|
86
|
+
afterOutsideRef: r,
|
|
87
|
+
beforeInsideRef: i,
|
|
88
|
+
afterInsideRef: x,
|
|
89
|
+
portalNode: e,
|
|
90
|
+
setFocusManagerState: D
|
|
91
|
+
}), [e]);
|
|
92
|
+
return /* @__PURE__ */ d.jsxs(o.Fragment, {
|
|
93
|
+
children: [u, /* @__PURE__ */ d.jsxs(N.Provider, {
|
|
94
|
+
value: M,
|
|
95
|
+
children: [P && e && /* @__PURE__ */ d.jsx(T, {
|
|
96
|
+
"data-type": "outside",
|
|
97
|
+
ref: R,
|
|
98
|
+
onFocus: (s) => {
|
|
99
|
+
if (E(s, e))
|
|
100
|
+
i.current?.focus();
|
|
101
|
+
else {
|
|
102
|
+
const l = t ? t.domReference : null;
|
|
103
|
+
q(l)?.focus();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}), P && e && /* @__PURE__ */ d.jsx("span", {
|
|
107
|
+
"aria-owns": e.id,
|
|
108
|
+
style: z
|
|
109
|
+
}), e && /* @__PURE__ */ j.createPortal(v, e), P && e && /* @__PURE__ */ d.jsx(T, {
|
|
110
|
+
"data-type": "outside",
|
|
111
|
+
ref: r,
|
|
112
|
+
onFocus: (s) => {
|
|
113
|
+
if (E(s, e))
|
|
114
|
+
x.current?.focus();
|
|
115
|
+
else {
|
|
116
|
+
const l = t ? t.domReference : null;
|
|
117
|
+
A(l)?.focus(), t?.closeOnFocusOut && t?.onOpenChange(!1, H(K, s.nativeEvent));
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
})]
|
|
121
|
+
})]
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
process.env.NODE_ENV !== "production" && (X.displayName = "FloatingPortal");
|
|
6
125
|
export {
|
|
7
|
-
|
|
126
|
+
X as FloatingPortal,
|
|
127
|
+
W as useFloatingPortalNode,
|
|
128
|
+
Q as usePortalContext
|
|
8
129
|
};
|
|
9
130
|
//# sourceMappingURL=index188.js.map
|
package/dist/index188.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index188.js","sources":["../../../node_modules/@base-ui/utils/esm/useOnFirstRender.js"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nexport function useOnFirstRender(fn) {\n const ref = React.useRef(true);\n if (ref.current) {\n ref.current = false;\n fn();\n }\n}"],"names":["useOnFirstRender","fn","ref","React"],"mappings":";AAGO,SAASA,EAAiBC,GAAI;AACnC,QAAMC,IAAMC,EAAM,OAAO,EAAI;AAC7B,EAAID,EAAI,YACNA,EAAI,UAAU,IACdD,EAAE;AAEN;","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index188.js","sources":["../node_modules/@base-ui/react/floating-ui-react/components/FloatingPortal.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { isNode } from '@floating-ui/utils/dom';\nimport { addEventListener } from '@base-ui/utils/addEventListener';\nimport { mergeCleanups } from '@base-ui/utils/mergeCleanups';\nimport { useId } from '@base-ui/utils/useId';\nimport { useIsoLayoutEffect } from '@base-ui/utils/useIsoLayoutEffect';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { EMPTY_OBJECT } from '@base-ui/utils/empty';\nimport { FocusGuard } from \"../../utils/FocusGuard.mjs\";\nimport { enableFocusInside, disableFocusInside, getPreviousTabbable, getNextTabbable, isOutsideEvent } from \"../utils/tabbable.mjs\";\nimport { createChangeEventDetails } from \"../../internals/createBaseUIEventDetails.mjs\";\nimport { REASONS } from \"../../internals/reasons.mjs\";\nimport { createAttribute } from \"../utils/createAttribute.mjs\";\nimport { useRenderElement } from \"../../internals/useRenderElement.mjs\";\nimport { ownerVisuallyHidden } from \"../../internals/constants.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nconst PortalContext = /*#__PURE__*/React.createContext(null);\nif (process.env.NODE_ENV !== \"production\") PortalContext.displayName = \"PortalContext\";\nexport const usePortalContext = () => React.useContext(PortalContext);\nconst attr = createAttribute('portal');\nexport function useFloatingPortalNode(props = {}) {\n const {\n ref,\n container: containerProp,\n componentProps = EMPTY_OBJECT,\n elementProps\n } = props;\n const uniqueId = useId();\n const portalContext = usePortalContext();\n const parentPortalNode = portalContext?.portalNode;\n const [containerElement, setContainerElement] = React.useState(null);\n const [portalNode, setPortalNode] = React.useState(null);\n const setPortalNodeRef = useStableCallback(node => {\n if (node !== null) {\n // the useIsoLayoutEffect below watching containerProp / parentPortalNode\n // sets setPortalNode(null) when the container becomes null or changes.\n // So even though the ref callback now ignores null, the portal node still gets cleared.\n setPortalNode(node);\n }\n });\n const containerRef = React.useRef(null);\n useIsoLayoutEffect(() => {\n // Wait for the container to be resolved if explicitly `null`.\n if (containerProp === null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n\n // React 17 does not use React.useId().\n if (uniqueId == null) {\n return;\n }\n const resolvedContainer = (containerProp && (isNode(containerProp) ? containerProp : containerProp.current)) ?? parentPortalNode ?? document.body;\n if (resolvedContainer == null) {\n if (containerRef.current) {\n containerRef.current = null;\n setPortalNode(null);\n setContainerElement(null);\n }\n return;\n }\n if (containerRef.current !== resolvedContainer) {\n containerRef.current = resolvedContainer;\n setPortalNode(null);\n setContainerElement(resolvedContainer);\n }\n }, [containerProp, parentPortalNode, uniqueId]);\n const portalElement = useRenderElement('div', componentProps, {\n ref: [ref, setPortalNodeRef],\n props: [{\n id: uniqueId,\n [attr]: ''\n }, elementProps]\n });\n\n // This `createPortal` call injects `portalElement` into the `container`.\n // Another call inside `FloatingPortal`/`FloatingPortalLite` then injects the children into `portalElement`.\n const portalSubtree = containerElement && portalElement ? /*#__PURE__*/ReactDOM.createPortal(portalElement, containerElement) : null;\n return {\n portalNode,\n portalSubtree\n };\n}\n\n/**\n * Portals the floating element into a given container element — by default,\n * outside of the app root and into the body.\n * This is necessary to ensure the floating element can appear outside any\n * potential parent containers that cause clipping (such as `overflow: hidden`),\n * while retaining its location in the React tree.\n * @see https://floating-ui.com/docs/FloatingPortal\n * @internal\n */\nexport const FloatingPortal = /*#__PURE__*/React.forwardRef(function FloatingPortal(componentProps, forwardedRef) {\n const {\n render,\n className,\n style,\n children,\n container,\n renderGuards,\n ...elementProps\n } = componentProps;\n const {\n portalNode,\n portalSubtree\n } = useFloatingPortalNode({\n container,\n ref: forwardedRef,\n componentProps,\n elementProps\n });\n const beforeOutsideRef = React.useRef(null);\n const afterOutsideRef = React.useRef(null);\n const beforeInsideRef = React.useRef(null);\n const afterInsideRef = React.useRef(null);\n const [focusManagerState, setFocusManagerState] = React.useState(null);\n const focusInsideDisabledRef = React.useRef(false);\n const modal = focusManagerState?.modal;\n const open = focusManagerState?.open;\n const shouldRenderGuards = typeof renderGuards === 'boolean' ? renderGuards : !!focusManagerState && !focusManagerState.modal && focusManagerState.open && !!portalNode;\n\n // https://codesandbox.io/s/tabbable-portal-f4tng?file=/src/TabbablePortal.tsx\n React.useEffect(() => {\n if (!portalNode || modal) {\n return undefined;\n }\n\n // Make sure elements inside the portal element are tabbable only when the\n // portal has already been focused, either by tabbing into a focus trap\n // element outside or using the mouse.\n function onFocus(event) {\n if (portalNode && event.relatedTarget && isOutsideEvent(event)) {\n if (event.type === 'focusin') {\n if (focusInsideDisabledRef.current) {\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }\n } else {\n disableFocusInside(portalNode);\n focusInsideDisabledRef.current = true;\n }\n }\n }\n\n // Listen to the event on the capture phase so they run before the focus\n // trap elements onFocus prop is called.\n return mergeCleanups(addEventListener(portalNode, 'focusin', onFocus, true), addEventListener(portalNode, 'focusout', onFocus, true));\n }, [portalNode, modal]);\n useIsoLayoutEffect(() => {\n if (!portalNode || open !== true || !focusInsideDisabledRef.current) {\n return;\n }\n\n // Restore tabbability before the focus manager's queued focus-on-open step runs.\n enableFocusInside(portalNode);\n focusInsideDisabledRef.current = false;\n }, [open, portalNode]);\n const portalContextValue = React.useMemo(() => ({\n beforeOutsideRef,\n afterOutsideRef,\n beforeInsideRef,\n afterInsideRef,\n portalNode,\n setFocusManagerState\n }), [portalNode]);\n return /*#__PURE__*/_jsxs(React.Fragment, {\n children: [portalSubtree, /*#__PURE__*/_jsxs(PortalContext.Provider, {\n value: portalContextValue,\n children: [shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: beforeOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n beforeInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const prevTabbable = getPreviousTabbable(domReference);\n prevTabbable?.focus();\n }\n }\n }), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(\"span\", {\n \"aria-owns\": portalNode.id,\n style: ownerVisuallyHidden\n }), portalNode && /*#__PURE__*/ReactDOM.createPortal(children, portalNode), shouldRenderGuards && portalNode && /*#__PURE__*/_jsx(FocusGuard, {\n \"data-type\": \"outside\",\n ref: afterOutsideRef,\n onFocus: event => {\n if (isOutsideEvent(event, portalNode)) {\n afterInsideRef.current?.focus();\n } else {\n const domReference = focusManagerState ? focusManagerState.domReference : null;\n const nextTabbable = getNextTabbable(domReference);\n nextTabbable?.focus();\n if (focusManagerState?.closeOnFocusOut) {\n focusManagerState?.onOpenChange(false, createChangeEventDetails(REASONS.focusOut, event.nativeEvent));\n }\n }\n }\n })]\n })]\n });\n});\nif (process.env.NODE_ENV !== \"production\") FloatingPortal.displayName = \"FloatingPortal\";"],"names":["PortalContext","React","usePortalContext","attr","createAttribute","useFloatingPortalNode","props","ref","containerProp","componentProps","EMPTY_OBJECT","elementProps","uniqueId","useId","parentPortalNode","containerElement","setContainerElement","portalNode","setPortalNode","setPortalNodeRef","useStableCallback","node","containerRef","useIsoLayoutEffect","resolvedContainer","isNode","portalElement","useRenderElement","ReactDOM","FloatingPortal","forwardedRef","render","className","style","children","container","renderGuards","portalSubtree","beforeOutsideRef","afterOutsideRef","beforeInsideRef","afterInsideRef","focusManagerState","setFocusManagerState","focusInsideDisabledRef","modal","open","shouldRenderGuards","onFocus","event","isOutsideEvent","enableFocusInside","disableFocusInside","mergeCleanups","addEventListener","portalContextValue","_jsxs","_jsx","FocusGuard","domReference","getPreviousTabbable","ownerVisuallyHidden","getNextTabbable","createChangeEventDetails","REASONS.focusOut"],"mappings":"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","x_google_ignoreList":[0]}
|
package/dist/index189.js
CHANGED
|
@@ -1,82 +1,67 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import { useDismiss as K } from "./index279.js";
|
|
9
|
-
import { useInteractions as L } from "./index195.js";
|
|
10
|
-
import { getTarget as U, contains as V } from "./index291.js";
|
|
11
|
-
import { imperativeAction as j } from "./index177.js";
|
|
12
|
-
function $(P) {
|
|
1
|
+
import * as w from "react";
|
|
2
|
+
import { useOnFirstRender as y } from "./index197.js";
|
|
3
|
+
import { useDialogRoot as T, DialogInteractions as k } from "./index350.js";
|
|
4
|
+
import { useDialogRootContext as V, IsDrawerContext as A, DialogRootContext as B } from "./index171.js";
|
|
5
|
+
import { DialogStore as E } from "./index351.js";
|
|
6
|
+
import { j as a } from "./index30.js";
|
|
7
|
+
function J(c, l = "dialog") {
|
|
13
8
|
const {
|
|
9
|
+
children: r,
|
|
10
|
+
open: s,
|
|
11
|
+
defaultOpen: i = !1,
|
|
12
|
+
onOpenChange: g,
|
|
13
|
+
onOpenChangeComplete: m,
|
|
14
|
+
disablePointerDismissal: f = !1,
|
|
15
|
+
modal: C = !0,
|
|
16
|
+
actionsRef: x,
|
|
17
|
+
handle: D,
|
|
18
|
+
triggerId: d,
|
|
19
|
+
defaultTriggerId: p = null
|
|
20
|
+
} = c, P = l === "drawer", o = l === "alert-dialog", R = o ? !0 : C, I = o || f, h = o ? "alertdialog" : "dialog", u = V(!0), t = {
|
|
21
|
+
modal: R,
|
|
22
|
+
disablePointerDismissal: I,
|
|
23
|
+
nested: !!u,
|
|
24
|
+
role: h
|
|
25
|
+
}, e = E.useStore(D?.store, {
|
|
26
|
+
open: i,
|
|
27
|
+
openProp: s,
|
|
28
|
+
activeTriggerId: p,
|
|
29
|
+
triggerIdProp: d,
|
|
30
|
+
...t
|
|
31
|
+
});
|
|
32
|
+
y(() => {
|
|
33
|
+
const n = s === void 0 && e.state.open === !1 && i === !0 ? {
|
|
34
|
+
open: !0,
|
|
35
|
+
activeTriggerId: p
|
|
36
|
+
} : null;
|
|
37
|
+
o ? e.update(n ? {
|
|
38
|
+
...t,
|
|
39
|
+
...n
|
|
40
|
+
} : t) : n && e.update(n);
|
|
41
|
+
}), e.useControlledProp("openProp", s), e.useControlledProp("triggerIdProp", d), e.useSyncedValues(t), e.useContextCallback("onOpenChange", g), e.useContextCallback("onOpenChangeComplete", m);
|
|
42
|
+
const S = e.useState("open"), v = e.useState("mounted"), O = e.useState("payload");
|
|
43
|
+
T({
|
|
14
44
|
store: e,
|
|
15
|
-
|
|
16
|
-
actionsRef: N,
|
|
17
|
-
isDrawer: m
|
|
18
|
-
} = P, n = e.useState("open"), S = e.useState("disablePointerDismissal"), p = e.useState("modal"), f = e.useState("popupElement"), {
|
|
19
|
-
openMethod: k,
|
|
20
|
-
triggerProps: r
|
|
21
|
-
} = I(n);
|
|
22
|
-
M(e);
|
|
23
|
-
const {
|
|
24
|
-
forceUnmount: g
|
|
25
|
-
} = B(n, e), d = t.useCallback(() => {
|
|
26
|
-
e.setOpen(!1, A(j));
|
|
27
|
-
}, [e]);
|
|
28
|
-
t.useImperativeHandle(N, () => ({
|
|
29
|
-
unmount: g,
|
|
30
|
-
close: d
|
|
31
|
-
}), [g, d]);
|
|
32
|
-
const c = F({
|
|
33
|
-
popupStore: e,
|
|
34
|
-
onOpenChange: e.setOpen,
|
|
35
|
-
treatPopupAsFloatingElement: !0
|
|
36
|
-
}), [i, D] = t.useState(0), [u, C] = t.useState(0), O = i === 0, h = H(c), T = K(c, {
|
|
37
|
-
outsidePressEvent() {
|
|
38
|
-
return e.context.internalBackdropRef.current || e.context.backdropRef.current ? "intentional" : {
|
|
39
|
-
mouse: p === "trap-focus" ? "sloppy" : "intentional",
|
|
40
|
-
touch: "sloppy"
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
outsidePress(s) {
|
|
44
|
-
if (!e.context.outsidePressEnabledRef.current || "button" in s && s.button !== 0 || "touches" in s && s.touches.length !== 1)
|
|
45
|
-
return !1;
|
|
46
|
-
const l = U(s);
|
|
47
|
-
if (O && !S) {
|
|
48
|
-
const a = l;
|
|
49
|
-
return p && (e.context.internalBackdropRef.current || e.context.backdropRef.current) ? e.context.internalBackdropRef.current === a || e.context.backdropRef.current === a || V(a, f) && !a?.hasAttribute("data-base-ui-portal") : !0;
|
|
50
|
-
}
|
|
51
|
-
return !1;
|
|
52
|
-
},
|
|
53
|
-
escapeKey: O
|
|
45
|
+
actionsRef: x
|
|
54
46
|
});
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
openMethod: k,
|
|
71
|
-
activeTriggerProps: w,
|
|
72
|
-
inactiveTriggerProps: E,
|
|
73
|
-
popupProps: y,
|
|
74
|
-
floatingRootContext: c,
|
|
75
|
-
nestedOpenDialogCount: i,
|
|
76
|
-
nestedOpenDrawerCount: u
|
|
47
|
+
const b = S || v, j = w.useMemo(() => ({
|
|
48
|
+
store: e
|
|
49
|
+
}), [e]);
|
|
50
|
+
return /* @__PURE__ */ a.jsx(A.Provider, {
|
|
51
|
+
value: !1,
|
|
52
|
+
children: /* @__PURE__ */ a.jsxs(B.Provider, {
|
|
53
|
+
value: j,
|
|
54
|
+
children: [b && /* @__PURE__ */ a.jsx(k, {
|
|
55
|
+
store: e,
|
|
56
|
+
parentContext: u?.store.context,
|
|
57
|
+
isDrawer: P
|
|
58
|
+
}), typeof r == "function" ? r({
|
|
59
|
+
payload: O
|
|
60
|
+
}) : r]
|
|
61
|
+
})
|
|
77
62
|
});
|
|
78
63
|
}
|
|
79
64
|
export {
|
|
80
|
-
|
|
65
|
+
J as useRenderDialogRoot
|
|
81
66
|
};
|
|
82
67
|
//# sourceMappingURL=index189.js.map
|
package/dist/index189.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index189.js","sources":["
|
|
1
|
+
{"version":3,"file":"index189.js","sources":["../node_modules/@base-ui/react/dialog/root/useRenderDialogRoot.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useOnFirstRender } from '@base-ui/utils/useOnFirstRender';\nimport { DialogInteractions, useDialogRoot } from \"./useDialogRoot.mjs\";\nimport { DialogRootContext, IsDrawerContext, useDialogRootContext } from \"./DialogRootContext.mjs\";\nimport { DialogStore } from \"../store/DialogStore.mjs\";\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nexport function useRenderDialogRoot(props, mode = 'dialog') {\n const {\n children,\n open: openProp,\n defaultOpen = false,\n onOpenChange,\n onOpenChangeComplete,\n disablePointerDismissal: disablePointerDismissalProp = false,\n modal: modalProp = true,\n actionsRef,\n handle,\n triggerId: triggerIdProp,\n defaultTriggerId: defaultTriggerIdProp = null\n } = props;\n const isDrawer = mode === 'drawer';\n const isAlertDialog = mode === 'alert-dialog';\n const modal = isAlertDialog ? true : modalProp;\n const disablePointerDismissal = isAlertDialog || disablePointerDismissalProp;\n const role = isAlertDialog ? 'alertdialog' : 'dialog';\n const parentDialogRootContext = useDialogRootContext(true);\n const nested = Boolean(parentDialogRootContext);\n const rootState = {\n modal,\n disablePointerDismissal,\n nested,\n role\n };\n const store = DialogStore.useStore(handle?.store, {\n open: defaultOpen,\n openProp,\n activeTriggerId: defaultTriggerIdProp,\n triggerIdProp,\n ...rootState\n });\n\n // Support initially open state when uncontrolled\n useOnFirstRender(() => {\n const nextState = openProp === undefined && store.state.open === false && defaultOpen === true ? {\n open: true,\n activeTriggerId: defaultTriggerIdProp\n } : null;\n if (isAlertDialog) {\n // Handles can reuse plain Dialog stores; alert dialog invariants must exist immediately.\n store.update(nextState ? {\n ...rootState,\n ...nextState\n } : rootState);\n } else if (nextState) {\n store.update(nextState);\n }\n });\n store.useControlledProp('openProp', openProp);\n store.useControlledProp('triggerIdProp', triggerIdProp);\n store.useSyncedValues(rootState);\n store.useContextCallback('onOpenChange', onOpenChange);\n store.useContextCallback('onOpenChangeComplete', onOpenChangeComplete);\n const open = store.useState('open');\n const mounted = store.useState('mounted');\n const payload = store.useState('payload');\n useDialogRoot({\n store,\n actionsRef\n });\n const shouldRenderInteractions = open || mounted;\n const contextValue = React.useMemo(() => ({\n store\n }), [store]);\n return /*#__PURE__*/_jsx(IsDrawerContext.Provider, {\n value: false,\n children: /*#__PURE__*/_jsxs(DialogRootContext.Provider, {\n value: contextValue,\n children: [shouldRenderInteractions && /*#__PURE__*/_jsx(DialogInteractions, {\n store: store,\n parentContext: parentDialogRootContext?.store.context,\n isDrawer: isDrawer\n }), typeof children === 'function' ? children({\n payload\n }) : children]\n })\n });\n}"],"names":["useRenderDialogRoot","props","mode","children","openProp","defaultOpen","onOpenChange","onOpenChangeComplete","disablePointerDismissalProp","modalProp","actionsRef","handle","triggerIdProp","defaultTriggerIdProp","isDrawer","isAlertDialog","modal","disablePointerDismissal","role","parentDialogRootContext","useDialogRootContext","rootState","store","DialogStore","useOnFirstRender","nextState","open","mounted","payload","useDialogRoot","shouldRenderInteractions","contextValue","React","_jsx","IsDrawerContext","_jsxs","DialogRootContext","DialogInteractions"],"mappings":";;;;;;AAQO,SAASA,EAAoBC,GAAOC,IAAO,UAAU;AAC1D,QAAM;AAAA,IACJ,UAAAC;AAAA,IACA,MAAMC;AAAA,IACN,aAAAC,IAAc;AAAA,IACd,cAAAC;AAAA,IACA,sBAAAC;AAAA,IACA,yBAAyBC,IAA8B;AAAA,IACvD,OAAOC,IAAY;AAAA,IACnB,YAAAC;AAAA,IACA,QAAAC;AAAA,IACA,WAAWC;AAAA,IACX,kBAAkBC,IAAuB;AAAA,EAC7C,IAAMZ,GACEa,IAAWZ,MAAS,UACpBa,IAAgBb,MAAS,gBACzBc,IAAQD,IAAgB,KAAON,GAC/BQ,IAA0BF,KAAiBP,GAC3CU,IAAOH,IAAgB,gBAAgB,UACvCI,IAA0BC,EAAqB,EAAI,GAEnDC,IAAY;AAAA,IAChB,OAAAL;AAAA,IACA,yBAAAC;AAAA,IACA,QAJa,EAAQE;AAAA,IAKrB,MAAAD;AAAA,EACJ,GACQI,IAAQC,EAAY,SAASZ,GAAQ,OAAO;AAAA,IAChD,MAAMN;AAAA,IACN,UAAAD;AAAA,IACA,iBAAiBS;AAAA,IACjB,eAAAD;AAAA,IACA,GAAGS;AAAA,EACP,CAAG;AAGD,EAAAG,EAAiB,MAAM;AACrB,UAAMC,IAAYrB,MAAa,UAAakB,EAAM,MAAM,SAAS,MAASjB,MAAgB,KAAO;AAAA,MAC/F,MAAM;AAAA,MACN,iBAAiBQ;AAAA,IACvB,IAAQ;AACJ,IAAIE,IAEFO,EAAM,OAAOG,IAAY;AAAA,MACvB,GAAGJ;AAAA,MACH,GAAGI;AAAA,IACX,IAAUJ,CAAS,IACJI,KACTH,EAAM,OAAOG,CAAS;AAAA,EAE1B,CAAC,GACDH,EAAM,kBAAkB,YAAYlB,CAAQ,GAC5CkB,EAAM,kBAAkB,iBAAiBV,CAAa,GACtDU,EAAM,gBAAgBD,CAAS,GAC/BC,EAAM,mBAAmB,gBAAgBhB,CAAY,GACrDgB,EAAM,mBAAmB,wBAAwBf,CAAoB;AACrE,QAAMmB,IAAOJ,EAAM,SAAS,MAAM,GAC5BK,IAAUL,EAAM,SAAS,SAAS,GAClCM,IAAUN,EAAM,SAAS,SAAS;AACxC,EAAAO,EAAc;AAAA,IACZ,OAAAP;AAAA,IACA,YAAAZ;AAAA,EACJ,CAAG;AACD,QAAMoB,IAA2BJ,KAAQC,GACnCI,IAAeC,EAAM,QAAQ,OAAO;AAAA,IACxC,OAAAV;AAAA,EACJ,IAAM,CAACA,CAAK,CAAC;AACX,SAAoBW,gBAAAA,EAAAA,IAAKC,EAAgB,UAAU;AAAA,IACjD,OAAO;AAAA,IACP,UAAuBC,gBAAAA,EAAAA,KAAMC,EAAkB,UAAU;AAAA,MACvD,OAAOL;AAAA,MACP,UAAU,CAACD,KAAyCG,gBAAAA,EAAAA,IAAKI,GAAoB;AAAA,QAC3E,OAAOf;AAAA,QACP,eAAeH,GAAyB,MAAM;AAAA,QAC9C,UAAUL;AAAA,MAClB,CAAO,GAAG,OAAOX,KAAa,aAAaA,EAAS;AAAA,QAC5C,SAAAyB;AAAA,MACR,CAAO,IAAIzB,CAAQ;AAAA,IACnB,CAAK;AAAA,EACL,CAAG;AACH;","x_google_ignoreList":[0]}
|
package/dist/index190.js
CHANGED
|
@@ -1,70 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { popupStoreSelectors as u, createInitialPopupStoreState as c } from "./index353.js";
|
|
6
|
-
import { createSelector as n } from "./index354.js";
|
|
7
|
-
const m = {
|
|
8
|
-
...u,
|
|
9
|
-
modal: n((e) => e.modal),
|
|
10
|
-
nested: n((e) => e.nested),
|
|
11
|
-
nestedOpenDialogCount: n((e) => e.nestedOpenDialogCount),
|
|
12
|
-
nestedOpenDrawerCount: n((e) => e.nestedOpenDrawerCount),
|
|
13
|
-
disablePointerDismissal: n((e) => e.disablePointerDismissal),
|
|
14
|
-
openMethod: n((e) => e.openMethod),
|
|
15
|
-
descriptionElementId: n((e) => e.descriptionElementId),
|
|
16
|
-
titleElementId: n((e) => e.titleElementId),
|
|
17
|
-
viewportElement: n((e) => e.viewportElement),
|
|
18
|
-
role: n((e) => e.role)
|
|
19
|
-
};
|
|
20
|
-
class s extends a {
|
|
21
|
-
constructor(r) {
|
|
22
|
-
super(g(r), {
|
|
23
|
-
popupRef: /* @__PURE__ */ i.createRef(),
|
|
24
|
-
backdropRef: /* @__PURE__ */ i.createRef(),
|
|
25
|
-
internalBackdropRef: /* @__PURE__ */ i.createRef(),
|
|
26
|
-
outsidePressEnabledRef: {
|
|
27
|
-
current: !0
|
|
28
|
-
},
|
|
29
|
-
triggerElements: new p(),
|
|
30
|
-
onOpenChange: void 0,
|
|
31
|
-
onOpenChangeComplete: void 0
|
|
32
|
-
}, m);
|
|
33
|
-
}
|
|
34
|
-
setOpen = (r, t) => {
|
|
35
|
-
if (t.preventUnmountOnClose = () => {
|
|
36
|
-
this.set("preventUnmountingOnClose", !0);
|
|
37
|
-
}, !r && t.trigger == null && this.state.activeTriggerId != null && (t.trigger = this.state.activeTriggerElement ?? void 0), this.context.onOpenChange?.(r, t), t.isCanceled)
|
|
38
|
-
return;
|
|
39
|
-
this.state.floatingRootContext.dispatchOpenChange(r, t);
|
|
40
|
-
const o = {
|
|
41
|
-
open: r
|
|
42
|
-
}, l = t.trigger?.id ?? null;
|
|
43
|
-
(l || r) && (o.activeTriggerId = l, o.activeTriggerElement = t.trigger ?? null), this.update(o);
|
|
44
|
-
};
|
|
45
|
-
static useStore(r, t) {
|
|
46
|
-
const o = d(() => new s(t)).current;
|
|
47
|
-
return r ?? o;
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function g(e = {}) {
|
|
51
|
-
return {
|
|
52
|
-
...c(),
|
|
53
|
-
modal: !0,
|
|
54
|
-
disablePointerDismissal: !1,
|
|
55
|
-
popupElement: null,
|
|
56
|
-
viewportElement: null,
|
|
57
|
-
descriptionElementId: void 0,
|
|
58
|
-
titleElementId: void 0,
|
|
59
|
-
openMethod: null,
|
|
60
|
-
nested: !1,
|
|
61
|
-
nestedOpenDialogCount: 0,
|
|
62
|
-
nestedOpenDrawerCount: 0,
|
|
63
|
-
role: "dialog",
|
|
64
|
-
...e
|
|
1
|
+
function n(a, s) {
|
|
2
|
+
return function(e, ...t) {
|
|
3
|
+
const r = new URL(a);
|
|
4
|
+
return r.searchParams.set("code", e.toString()), t.forEach((o) => r.searchParams.append("args[]", o)), `${s} error #${e}; visit ${r} for the full message.`;
|
|
65
5
|
};
|
|
66
6
|
}
|
|
7
|
+
const u = n("https://base-ui.com/production-error", "Base UI");
|
|
67
8
|
export {
|
|
68
|
-
|
|
9
|
+
n as createFormatErrorMessage,
|
|
10
|
+
u as default
|
|
69
11
|
};
|
|
70
12
|
//# sourceMappingURL=index190.js.map
|
package/dist/index190.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index190.js","sources":["
|
|
1
|
+
{"version":3,"file":"index190.js","sources":["../node_modules/@base-ui/utils/formatErrorMessage.mjs"],"sourcesContent":["/**\n * Creates a formatErrorMessage function with a custom URL and prefix.\n * @param baseUrl - The base URL for the error page (e.g., 'https://base-ui.com/production-error')\n * @param prefix - The prefix for the error message (e.g., 'Base UI')\n * @returns A function that formats error messages with the given URL and prefix\n */\nexport function createFormatErrorMessage(baseUrl, prefix) {\n return function formatErrorMessage(code, ...args) {\n const url = new URL(baseUrl);\n url.searchParams.set('code', code.toString());\n args.forEach(arg => url.searchParams.append('args[]', arg));\n return `${prefix} error #${code}; visit ${url} for the full message.`;\n };\n}\n\n/**\n * WARNING: Don't import this directly. It's imported by the code generated by\n * `@mui/internal-babel-plugin-minify-errors`. Make sure to always use string literals in `Error`\n * constructors to ensure the plugin works as expected. Supported patterns include:\n * throw new Error('My message');\n * throw new Error(`My message: ${foo}`);\n * throw new Error(`My message: ${foo}` + 'another string');\n * ...\n */\nconst formatErrorMessage = createFormatErrorMessage('https://base-ui.com/production-error', 'Base UI');\nexport default formatErrorMessage;"],"names":["createFormatErrorMessage","baseUrl","prefix","code","args","url","arg","formatErrorMessage"],"mappings":"AAMO,SAASA,EAAyBC,GAASC,GAAQ;AACxD,SAAO,SAA4BC,MAASC,GAAM;AAChD,UAAMC,IAAM,IAAI,IAAIJ,CAAO;AAC3B,WAAAI,EAAI,aAAa,IAAI,QAAQF,EAAK,SAAQ,CAAE,GAC5CC,EAAK,QAAQ,CAAAE,MAAOD,EAAI,aAAa,OAAO,UAAUC,CAAG,CAAC,GACnD,GAAGJ,CAAM,WAAWC,CAAI,WAAWE,CAAG;AAAA,EAC/C;AACF;AAWK,MAACE,IAAqBP,EAAyB,wCAAwC,SAAS;","x_google_ignoreList":[0]}
|
package/dist/index191.js
CHANGED
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const t = {
|
|
2
|
+
style: {
|
|
3
|
+
transition: "none"
|
|
4
|
+
}
|
|
5
|
+
}, i = "data-base-ui-click-trigger", n = {
|
|
6
|
+
fallbackAxisSide: "none"
|
|
7
|
+
}, e = {
|
|
8
|
+
clipPath: "inset(50%)",
|
|
9
|
+
position: "fixed",
|
|
10
|
+
top: 0,
|
|
11
|
+
left: 0
|
|
12
|
+
};
|
|
8
13
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
i as CLICK_TRIGGER_IDENTIFIER,
|
|
15
|
+
t as DISABLED_TRANSITIONS_STYLE,
|
|
16
|
+
n as DROPDOWN_COLLISION_AVOIDANCE,
|
|
17
|
+
e as ownerVisuallyHidden
|
|
11
18
|
};
|
|
12
19
|
//# sourceMappingURL=index191.js.map
|
package/dist/index191.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index191.js","sources":["
|
|
1
|
+
{"version":3,"file":"index191.js","sources":["../node_modules/@base-ui/react/internals/constants.mjs"],"sourcesContent":["export const TYPEAHEAD_RESET_MS = 500;\nexport const PATIENT_CLICK_THRESHOLD = 500;\nexport const DISABLED_TRANSITIONS_STYLE = {\n style: {\n transition: 'none'\n }\n};\nexport const CLICK_TRIGGER_IDENTIFIER = 'data-base-ui-click-trigger';\nexport const BASE_UI_SWIPE_IGNORE_ATTRIBUTE = 'data-base-ui-swipe-ignore';\nexport const LEGACY_SWIPE_IGNORE_ATTRIBUTE = 'data-swipe-ignore';\nexport const BASE_UI_SWIPE_IGNORE_SELECTOR = `[${BASE_UI_SWIPE_IGNORE_ATTRIBUTE}]`;\nexport const LEGACY_SWIPE_IGNORE_SELECTOR = `[${LEGACY_SWIPE_IGNORE_ATTRIBUTE}]`;\n\n/**\n * Used for dropdowns that usually strictly prefer top/bottom placements and\n * use `var(--available-height)` to limit their height.\n */\nexport const DROPDOWN_COLLISION_AVOIDANCE = {\n fallbackAxisSide: 'none'\n};\n\n/**\n * Used by regular popups that usually aren't scrollable and are allowed to\n * freely flip to any axis of placement.\n */\nexport const POPUP_COLLISION_AVOIDANCE = {\n fallbackAxisSide: 'end'\n};\n\n/**\n * Special visually hidden styles for the aria-owns owner element to ensure owned element\n * accessibility in iOS/Safari/VoiceControl.\n * The owner element is an empty span, so most of the common visually hidden styles are not needed.\n * @see https://github.com/floating-ui/floating-ui/issues/3403\n */\nexport const ownerVisuallyHidden = {\n clipPath: 'inset(50%)',\n position: 'fixed',\n top: 0,\n left: 0\n};"],"names":["DISABLED_TRANSITIONS_STYLE","CLICK_TRIGGER_IDENTIFIER","DROPDOWN_COLLISION_AVOIDANCE","ownerVisuallyHidden"],"mappings":"AAEY,MAACA,IAA6B;AAAA,EACxC,OAAO;AAAA,IACL,YAAY;AAAA,EAChB;AACA,GACaC,IAA2B,8BAU3BC,IAA+B;AAAA,EAC1C,kBAAkB;AACpB,GAgBaC,IAAsB;AAAA,EACjC,UAAU;AAAA,EACV,UAAU;AAAA,EACV,KAAK;AAAA,EACL,MAAM;AACR;","x_google_ignoreList":[0]}
|
package/dist/index192.js
CHANGED
|
@@ -1,19 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
1
|
+
import * as i from "react";
|
|
2
|
+
import { useStableCallback as u } from "./index202.js";
|
|
3
|
+
import { useEnhancedClickHandler as c } from "./index356.js";
|
|
4
|
+
import { useValueChanged as l } from "./index215.js";
|
|
5
|
+
import { ios as a } from "./index357.js";
|
|
6
|
+
function m(e, t) {
|
|
7
|
+
const n = u((p, s) => {
|
|
8
|
+
(typeof e == "function" ? e() : e) || t(s || // On iOS Safari, the hitslop around touch targets means tapping outside an element's
|
|
9
|
+
// bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`
|
|
10
|
+
// will be "" in that case.
|
|
11
|
+
(a ? "touch" : ""));
|
|
12
|
+
}), {
|
|
13
|
+
onClick: o,
|
|
14
|
+
onPointerDown: r
|
|
15
|
+
} = c(n);
|
|
16
|
+
return i.useMemo(() => ({
|
|
17
|
+
onClick: o,
|
|
18
|
+
onPointerDown: r
|
|
19
|
+
}), [o, r]);
|
|
20
|
+
}
|
|
21
|
+
function M(e) {
|
|
22
|
+
const [t, n] = i.useState(null), o = m(e, n);
|
|
23
|
+
return l(e, (r) => {
|
|
24
|
+
r && !e && n(null);
|
|
25
|
+
}), i.useMemo(() => ({
|
|
26
|
+
openMethod: t,
|
|
27
|
+
triggerProps: o
|
|
28
|
+
}), [t, o]);
|
|
29
|
+
}
|
|
13
30
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
n as DROPDOWN_COLLISION_AVOIDANCE,
|
|
17
|
-
e as ownerVisuallyHidden
|
|
31
|
+
M as useOpenInteractionType,
|
|
32
|
+
m as useOpenMethodTriggerProps
|
|
18
33
|
};
|
|
19
34
|
//# sourceMappingURL=index192.js.map
|
package/dist/index192.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index192.js","sources":["
|
|
1
|
+
{"version":3,"file":"index192.js","sources":["../node_modules/@base-ui/react/utils/useOpenInteractionType.mjs"],"sourcesContent":["'use client';\n\nimport * as React from 'react';\nimport { useStableCallback } from '@base-ui/utils/useStableCallback';\nimport { useEnhancedClickHandler } from '@base-ui/utils/useEnhancedClickHandler';\nimport { platform } from '@base-ui/utils/platform';\nimport { useValueChanged } from \"../internals/useValueChanged.mjs\";\nexport function useOpenMethodTriggerProps(open, setOpenMethod) {\n const handleTriggerClick = useStableCallback((_, interactionType) => {\n const isOpen = typeof open === 'function' ? open() : open;\n if (!isOpen) {\n setOpenMethod(interactionType || (\n // On iOS Safari, the hitslop around touch targets means tapping outside an element's\n // bounds does not fire `pointerdown` but does fire `mousedown`. The `interactionType`\n // will be \"\" in that case.\n platform.os.ios ? 'touch' : ''));\n }\n });\n const {\n onClick,\n onPointerDown\n } = useEnhancedClickHandler(handleTriggerClick);\n return React.useMemo(() => ({\n onClick,\n onPointerDown\n }), [onClick, onPointerDown]);\n}\n\n/**\n * Determines the interaction type (keyboard, mouse, touch, etc.) that opened the component.\n *\n * @param open The open state of the component.\n */\nexport function useOpenInteractionType(open) {\n const [openMethod, setOpenMethod] = React.useState(null);\n const triggerProps = useOpenMethodTriggerProps(open, setOpenMethod);\n useValueChanged(open, previousOpen => {\n if (previousOpen && !open) {\n setOpenMethod(null);\n }\n });\n return React.useMemo(() => ({\n openMethod,\n triggerProps\n }), [openMethod, triggerProps]);\n}"],"names":["useOpenMethodTriggerProps","open","setOpenMethod","handleTriggerClick","useStableCallback","_","interactionType","platform.os.ios","onClick","onPointerDown","useEnhancedClickHandler","React","useOpenInteractionType","openMethod","triggerProps","useValueChanged","previousOpen"],"mappings":";;;;;AAOO,SAASA,EAA0BC,GAAMC,GAAe;AAC7D,QAAMC,IAAqBC,EAAkB,CAACC,GAAGC,MAAoB;AAEnE,KADe,OAAOL,KAAS,aAAaA,EAAI,IAAKA,MAEnDC,EAAcI;AAAA;AAAA;AAAA,KAIdC,IAAkB,UAAU,GAAG;AAAA,EAEnC,CAAC,GACK;AAAA,IACJ,SAAAC;AAAA,IACA,eAAAC;AAAA,EACJ,IAAMC,EAAwBP,CAAkB;AAC9C,SAAOQ,EAAM,QAAQ,OAAO;AAAA,IAC1B,SAAAH;AAAA,IACA,eAAAC;AAAA,EACJ,IAAM,CAACD,GAASC,CAAa,CAAC;AAC9B;AAOO,SAASG,EAAuBX,GAAM;AAC3C,QAAM,CAACY,GAAYX,CAAa,IAAIS,EAAM,SAAS,IAAI,GACjDG,IAAed,EAA0BC,GAAMC,CAAa;AAClE,SAAAa,EAAgBd,GAAM,CAAAe,MAAgB;AACpC,IAAIA,KAAgB,CAACf,KACnBC,EAAc,IAAI;AAAA,EAEtB,CAAC,GACMS,EAAM,QAAQ,OAAO;AAAA,IAC1B,YAAAE;AAAA,IACA,cAAAC;AAAA,EACJ,IAAM,CAACD,GAAYC,CAAY,CAAC;AAChC;","x_google_ignoreList":[0]}
|