@rpcbase/ui 0.231.0 → 0.232.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/I18nField/index.d.ts.map +1 -1
- package/dist/index100.js +52 -5
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +3 -7
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -5
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +15 -4
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +5 -4
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +7 -6
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +16 -145
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +4 -39
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -4
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +5 -7
- package/dist/index109.js.map +1 -1
- package/dist/index11.js +291 -278
- package/dist/index11.js.map +1 -1
- package/dist/index110.js +5 -13
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +4 -13
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +4 -7
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +6 -31
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +24 -10
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +6 -10
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +4 -8
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +6 -13
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +5 -101
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +5 -20
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +5 -53
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +4 -72
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +8 -9
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +5 -20
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +4 -16
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +4 -23
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +6 -6
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +145 -5
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +39 -23
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +5 -35
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +8 -16
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +13 -6
- 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 -4
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +10 -4
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +10 -3
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +8 -6
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +14 -24
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +101 -7
- 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 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +72 -3
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +9 -3
- 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 -3
- 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 -3
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +5 -3
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +23 -3
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +35 -6
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +16 -69
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +7 -2
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +4 -363
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -261
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +4 -60
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +4 -46
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +3 -169
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +6 -109
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +24 -25
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +8 -8
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +6 -4
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +5 -5
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +3 -4
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +3 -466
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +4 -185
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +3 -107
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -262
- 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 -42
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +3 -4
- package/dist/index170.js.map +1 -1
- package/dist/index172.js +3 -3
- package/dist/index175.js +1 -1
- package/dist/index176.js +4 -4
- package/dist/index182.js +1 -1
- package/dist/index184.js +12 -12
- package/dist/index187.js +5 -5
- package/dist/index189.js +3 -3
- package/dist/index190.js +1 -1
- package/dist/index193.js +3 -3
- package/dist/index194.js +5 -5
- package/dist/index196.js +13 -58
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +154 -8
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +28 -64
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +9 -19
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +46 -14
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +11 -5
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +43 -4
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +95 -6
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +86 -4
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +105 -6
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +52 -16
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +11 -4
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +37 -4
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +8 -12
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +116 -9
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +17 -13
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +15 -13
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +3 -4
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +36 -5
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +20 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +9 -5
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +8 -54
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +19 -8
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +28 -4
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +16 -4
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +58 -8
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +8 -4
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +66 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +19 -3
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +16 -10
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +5 -9
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +5 -9
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +6 -10
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +4 -10
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +6 -9
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +16 -6
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +4 -5
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +4 -4
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +12 -5
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +9 -6
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +13 -5
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +13 -16
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +4 -7
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +5 -10
- package/dist/index239.js.map +1 -1
- package/dist/index240.js +6 -10
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +5 -21
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +54 -10
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +8 -9
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +4 -9
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +4 -4
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +8 -5
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +4 -16
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +4 -9
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +3 -18
- package/dist/index249.js.map +1 -1
- package/dist/index250.js +10 -15
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +9 -12
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +9 -29
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +10 -12
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +10 -25
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +9 -5
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +7 -20
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +5 -66
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +4 -6
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +5 -11
- package/dist/index259.js.map +1 -1
- package/dist/index260.js +6 -50
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +6 -4
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +14 -27
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +7 -16
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +10 -5
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +10 -21
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +20 -50
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +10 -25
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +9 -41
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +9 -39
- package/dist/index269.js.map +1 -1
- package/dist/index270.js +5 -45
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +5 -20
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +14 -68
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +9 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +18 -11
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +15 -27
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +12 -13
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +29 -18
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +11 -35
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +24 -261
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +5 -278
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +20 -69
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +59 -92
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +6 -83
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +11 -3
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +48 -27
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +4 -17
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +30 -35
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +15 -15
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +5 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +20 -25
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +49 -26
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +26 -4
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +39 -76
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +35 -265
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +45 -12
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +20 -10
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +70 -25
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +17 -16
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +11 -125
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +27 -5
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +12 -39
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +16 -63
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +36 -13
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +262 -7
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +278 -5
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +68 -3
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +99 -10
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +83 -7
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +3 -133
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +24 -24
- package/dist/index310.js +29 -399
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +16 -52
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +35 -12
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +16 -11
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +3 -13
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +22 -150
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +25 -27
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +4 -10
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +74 -44
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +268 -10
- package/dist/index319.js.map +1 -1
- package/dist/index32.js +3 -3
- package/dist/index320.js +11 -44
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +10 -95
- package/dist/index321.js.map +1 -1
- package/dist/index322.js +25 -86
- package/dist/index322.js.map +1 -1
- package/dist/index323.js +15 -104
- package/dist/index323.js.map +1 -1
- package/dist/index324.js +123 -50
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +5 -11
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +37 -34
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +65 -8
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +14 -4
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +7 -9
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +5 -116
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +3 -17
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +10 -15
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +7 -36
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +131 -18
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +398 -7
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +51 -18
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +11 -28
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +11 -16
- package/dist/index338.js.map +1 -1
- package/dist/index346.js +2 -2
- package/dist/index348.js +8 -8
- package/dist/index349.js +3 -3
- package/dist/index350.js +2 -2
- package/dist/index351.js +5 -5
- package/dist/index353.js +1 -1
- package/dist/index359.js +20 -4
- package/dist/index359.js.map +1 -1
- package/dist/index360.js +5 -18
- package/dist/index360.js.map +1 -1
- package/dist/index361.js +18 -13
- package/dist/index361.js.map +1 -1
- package/dist/index362.js +13 -4
- package/dist/index362.js.map +1 -1
- package/dist/index363.js +4 -12
- package/dist/index363.js.map +1 -1
- package/dist/index364.js +11 -16
- package/dist/index364.js.map +1 -1
- package/dist/index365.js +16 -5
- package/dist/index365.js.map +1 -1
- package/dist/index366.js +5 -20
- package/dist/index366.js.map +1 -1
- package/dist/index367.js +19 -43
- package/dist/index367.js.map +1 -1
- package/dist/index368.js +40 -13
- package/dist/index368.js.map +1 -1
- package/dist/index369.js +17 -4
- package/dist/index369.js.map +1 -1
- package/dist/index370.js +4 -200
- package/dist/index370.js.map +1 -1
- package/dist/index371.js +197 -74
- package/dist/index371.js.map +1 -1
- package/dist/index372.js +77 -20
- package/dist/index372.js.map +1 -1
- package/dist/index374.js +3 -3
- package/dist/index375.js +1 -1
- package/dist/index376.js +3 -3
- package/dist/index378.js +2 -2
- package/dist/index380.js +1 -1
- package/dist/index381.js +2 -2
- package/dist/index394.js +2 -2
- package/dist/index397.js +1 -1
- package/dist/index398.js +2 -2
- package/dist/index400.js +1 -1
- package/dist/index401.js +1 -1
- package/dist/index402.js +1 -1
- package/dist/index403.js +1 -1
- package/dist/index407.js +1 -1
- package/dist/index411.js +1 -1
- package/dist/index413.js +1 -1
- package/dist/index414.js +2 -2
- package/dist/index417.js +1 -1
- package/dist/index418.js +1 -1
- package/dist/index421.js +1 -1
- package/dist/index422.js +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/index48.js +2 -2
- package/dist/index49.js +28 -28
- package/dist/index50.js +21 -21
- package/dist/index51.js +1 -1
- package/dist/index52.js +8 -8
- package/dist/index53.js +2 -2
- package/dist/index55.js +17 -17
- package/dist/index56.js +4 -4
- package/dist/index57.js +3 -3
- package/dist/index58.js +7 -7
- package/dist/index59.js +4 -4
- package/dist/index60.js +12 -12
- package/dist/index61.js +2 -2
- package/dist/index62.js +2 -2
- package/dist/index66.js +1 -1
- package/dist/index67.js +1 -1
- package/dist/index72.js +6 -2
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +8 -2
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +5 -5
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +2 -8
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +2 -6
- package/dist/index76.js.map +1 -1
- package/dist/index79.js +6 -52
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +68 -4
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +2 -5
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +363 -15
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +261 -5
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +60 -7
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +46 -16
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +169 -4
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +109 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +24 -5
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +8 -6
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +4 -4
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +5 -4
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +4 -6
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +466 -24
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +185 -6
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +107 -4
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +262 -6
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +9 -5
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +42 -4
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +4 -5
- package/dist/index99.js.map +1 -1
- package/package.json +1 -1
package/dist/index275.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index275.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index275.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useRange.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\nimport { addToRange, rangeContainsModifiers } from \"../utils/index.js\";\nimport { rangeIncludesDate } from \"../utils/rangeIncludesDate.js\";\n/**\n * Hook to manage range selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected range, a function to select a\n * range, and a function to check if a date is within the range.\n */\nexport function useRange(props, dateLib) {\n const { disabled, excludeDisabled, selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const isSelected = (date) => selected && rangeIncludesDate(selected, date, false, dateLib);\n const select = (triggerDate, modifiers, e) => {\n const { min, max } = props;\n const newRange = triggerDate\n ? addToRange(triggerDate, selected, min, max, required, dateLib)\n : undefined;\n if (excludeDisabled && disabled && newRange?.from && newRange.to) {\n if (rangeContainsModifiers({ from: newRange.from, to: newRange.to }, disabled, dateLib)) {\n // if a disabled days is found, the range is reset\n newRange.from = triggerDate;\n newRange.to = undefined;\n }\n }\n if (!onSelect) {\n setSelected(newRange);\n }\n onSelect?.(newRange, triggerDate, modifiers, e);\n return newRange;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useRange","props","dateLib","disabled","excludeDisabled","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","triggerDate","modifiers","e","min","max","newRange","addToRange","rangeContainsModifiers","date","rangeIncludesDate"],"mappings":";;;;AAYO,SAASA,EAASC,GAAOC,GAAS;AACrC,QAAM,EAAE,UAAAC,GAAU,iBAAAC,GAAiB,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMN,GAClF,CAACO,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG;AAoB7B,SAAO;AAAA,IACH,UAAAG;AAAA,IACA,QApBW,CAACC,GAAaC,GAAWC,MAAM;AAC1C,YAAM,EAAE,KAAAC,GAAK,KAAAC,EAAG,IAAKf,GACfgB,IAAWL,IACXM,EAAWN,GAAaD,GAAUI,GAAKC,GAAKV,GAAUJ,CAAO,IAC7D;AACN,aAAIE,KAAmBD,KAAYc,GAAU,QAAQA,EAAS,MACtDE,EAAuB,EAAE,MAAMF,EAAS,MAAM,IAAIA,EAAS,GAAE,GAAId,GAAUD,CAAO,MAElFe,EAAS,OAAOL,GAChBK,EAAS,KAAK,SAGjBV,KACDE,EAAYQ,CAAQ,GAExBV,IAAWU,GAAUL,GAAaC,GAAWC,CAAC,GACvCG;AAAA,IACX;AAAA,IAII,YAtBe,CAACG,MAAST,KAAYU,EAAkBV,GAAUS,GAAM,IAAOlB,CAAO;AAAA,EAuB7F;AACA;","x_google_ignoreList":[0]}
|
package/dist/index276.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
return
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { useControlledValue as a } from "./index271.js";
|
|
2
|
+
function q(u, S) {
|
|
3
|
+
const { selected: c, required: s, onSelect: t } = u, [f, r] = a(c, t ? c : void 0), e = t ? c : f, { isSameDay: d } = S;
|
|
4
|
+
return {
|
|
5
|
+
selected: e,
|
|
6
|
+
select: (n, o, i) => {
|
|
7
|
+
let l = n;
|
|
8
|
+
return !s && e && e && d(n, e) && (l = void 0), t || r(l), t?.(l, n, o, i), l;
|
|
9
|
+
},
|
|
10
|
+
isSelected: (n) => e ? d(e, n) : !1
|
|
11
|
+
};
|
|
11
12
|
}
|
|
12
13
|
export {
|
|
13
|
-
|
|
14
|
-
a as getMaxScrollOffset,
|
|
15
|
-
u as normalizeScrollOffset
|
|
14
|
+
q as useSingle
|
|
16
15
|
};
|
|
17
16
|
//# sourceMappingURL=index276.js.map
|
package/dist/index276.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index276.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index276.js","sources":["../../../node_modules/react-day-picker/dist/esm/selection/useSingle.js"],"sourcesContent":["import { useControlledValue } from \"../helpers/useControlledValue.js\";\n/**\n * Hook to manage single-date selection in the DayPicker component.\n *\n * @template T - The type of DayPicker props.\n * @param props - The DayPicker props.\n * @param dateLib - The date utility library instance.\n * @returns An object containing the selected date, a function to select a date,\n * and a function to check if a date is selected.\n */\nexport function useSingle(props, dateLib) {\n const { selected: initiallySelected, required, onSelect, } = props;\n const [internallySelected, setSelected] = useControlledValue(initiallySelected, onSelect ? initiallySelected : undefined);\n const selected = !onSelect ? internallySelected : initiallySelected;\n const { isSameDay } = dateLib;\n const isSelected = (compareDate) => {\n return selected ? isSameDay(selected, compareDate) : false;\n };\n const select = (triggerDate, modifiers, e) => {\n let newDate = triggerDate;\n if (!required && selected && selected && isSameDay(triggerDate, selected)) {\n // If the date is the same, clear the selection.\n newDate = undefined;\n }\n if (!onSelect) {\n setSelected(newDate);\n }\n if (required) {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n else {\n onSelect?.(newDate, triggerDate, modifiers, e);\n }\n return newDate;\n };\n return {\n selected,\n select,\n isSelected,\n };\n}\n"],"names":["useSingle","props","dateLib","initiallySelected","required","onSelect","internallySelected","setSelected","useControlledValue","selected","isSameDay","triggerDate","modifiers","e","newDate","compareDate"],"mappings":";AAUO,SAASA,EAAUC,GAAOC,GAAS;AACtC,QAAM,EAAE,UAAUC,GAAmB,UAAAC,GAAU,UAAAC,EAAQ,IAAMJ,GACvD,CAACK,GAAoBC,CAAW,IAAIC,EAAmBL,GAAmBE,IAAWF,IAAoB,MAAS,GAClHM,IAAYJ,IAAgCF,IAArBG,GACvB,EAAE,WAAAI,EAAS,IAAKR;AAqBtB,SAAO;AAAA,IACH,UAAAO;AAAA,IACA,QAnBW,CAACE,GAAaC,GAAWC,MAAM;AAC1C,UAAIC,IAAUH;AACd,aAAI,CAACP,KAAYK,KAAYA,KAAYC,EAAUC,GAAaF,CAAQ,MAEpEK,IAAU,SAETT,KACDE,EAAYO,CAAO,GAGnBT,IAAWS,GAASH,GAAaC,GAAWC,CAAC,GAK1CC;AAAA,IACX;AAAA,IAII,YAvBe,CAACC,MACTN,IAAWC,EAAUD,GAAUM,CAAW,IAAI;AAAA,EAuB7D;AACA;","x_google_ignoreList":[0]}
|
package/dist/index277.js
CHANGED
|
@@ -1,22 +1,33 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { defaultDateLib as D } from "./index127.js";
|
|
2
|
+
function w(f, g, n = 0, s = 0, l = !1, u = D) {
|
|
3
|
+
const { from: o, to: i } = g || {}, { isSameDay: r, isAfter: m, isBefore: c } = u;
|
|
4
|
+
let e;
|
|
5
|
+
if (!o && !i)
|
|
6
|
+
e = { from: f, to: n > 0 ? void 0 : f };
|
|
7
|
+
else if (o && !i)
|
|
8
|
+
r(o, f) ? n === 0 ? e = { from: o, to: f } : l ? e = { from: o, to: void 0 } : e = void 0 : c(f, o) ? e = { from: f, to: o } : e = { from: o, to: f };
|
|
9
|
+
else if (o && i)
|
|
10
|
+
if (r(o, f) && r(i, f))
|
|
11
|
+
l ? e = { from: o, to: i } : e = void 0;
|
|
12
|
+
else if (r(o, f))
|
|
13
|
+
e = { from: o, to: n > 0 ? void 0 : f };
|
|
14
|
+
else if (r(i, f))
|
|
15
|
+
e = { from: f, to: n > 0 ? void 0 : f };
|
|
16
|
+
else if (c(f, o))
|
|
17
|
+
e = { from: f, to: i };
|
|
18
|
+
else if (m(f, o))
|
|
19
|
+
e = { from: o, to: f };
|
|
20
|
+
else if (m(f, i))
|
|
21
|
+
e = { from: o, to: f };
|
|
22
|
+
else
|
|
23
|
+
throw new Error("Invalid range");
|
|
24
|
+
if (e?.from && e?.to) {
|
|
25
|
+
const t = u.differenceInCalendarDays(e.to, e.from);
|
|
26
|
+
s > 0 && t > s ? e = { from: f, to: void 0 } : n > 1 && t < n && (e = { from: f, to: void 0 });
|
|
27
|
+
}
|
|
28
|
+
return e;
|
|
18
29
|
}
|
|
19
30
|
export {
|
|
20
|
-
|
|
31
|
+
w as addToRange
|
|
21
32
|
};
|
|
22
33
|
//# sourceMappingURL=index277.js.map
|
package/dist/index277.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index277.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index277.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/addToRange.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Adds a date to an existing range, considering constraints like minimum and\n * maximum range size.\n *\n * @param date - The date to add to the range.\n * @param initialRange - The initial range to which the date will be added.\n * @param min - The minimum number of days in the range.\n * @param max - The maximum number of days in the range.\n * @param required - Whether the range must always include at least one date.\n * @param dateLib - The date utility library instance.\n * @returns The updated date range, or `undefined` if the range is cleared.\n * @group Utilities\n */\nexport function addToRange(date, initialRange, min = 0, max = 0, required = false, dateLib = defaultDateLib) {\n const { from, to } = initialRange || {};\n const { isSameDay, isAfter, isBefore } = dateLib;\n let range;\n if (!from && !to) {\n // the range is empty, add the date\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (from && !to) {\n // adding date to an incomplete range\n if (isSameDay(from, date)) {\n // adding a date equal to the start of the range\n if (min === 0) {\n range = { from, to: date };\n }\n else if (required) {\n range = { from, to: undefined };\n }\n else {\n range = undefined;\n }\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: from };\n }\n else {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n }\n else if (from && to) {\n // adding date to a complete range\n if (isSameDay(from, date) && isSameDay(to, date)) {\n // adding a date that is equal to both start and end of the range\n if (required) {\n range = { from, to };\n }\n else {\n range = undefined;\n }\n }\n else if (isSameDay(from, date)) {\n // adding a date equal to the the start of the range\n range = { from, to: min > 0 ? undefined : date };\n }\n else if (isSameDay(to, date)) {\n // adding a dare equal to the end of the range\n range = { from: date, to: min > 0 ? undefined : date };\n }\n else if (isBefore(date, from)) {\n // adding a date before the start of the range\n range = { from: date, to: to };\n }\n else if (isAfter(date, from)) {\n // adding a date after the start of the range\n range = { from, to: date };\n }\n else if (isAfter(date, to)) {\n // adding a date after the end of the range\n range = { from, to: date };\n }\n else {\n throw new Error(\"Invalid range\");\n }\n }\n // check for min / max\n if (range?.from && range?.to) {\n const diff = dateLib.differenceInCalendarDays(range.to, range.from);\n if (max > 0 && diff > max) {\n range = { from: date, to: undefined };\n }\n else if (min > 1 && diff < min) {\n range = { from: date, to: undefined };\n }\n }\n return range;\n}\n"],"names":["addToRange","date","initialRange","min","max","required","dateLib","defaultDateLib","from","to","isSameDay","isAfter","isBefore","range","diff"],"mappings":";AAcO,SAASA,EAAWC,GAAMC,GAAcC,IAAM,GAAGC,IAAM,GAAGC,IAAW,IAAOC,IAAUC,GAAgB;AACzG,QAAM,EAAE,MAAAC,GAAM,IAAAC,EAAE,IAAKP,KAAgB,CAAA,GAC/B,EAAE,WAAAQ,GAAW,SAAAC,GAAS,UAAAC,EAAQ,IAAKN;AACzC,MAAIO;AACJ,MAAI,CAACL,KAAQ,CAACC;AAEV,IAAAI,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,WAE/CO,KAAQ,CAACC;AAEd,IAAIC,EAAUF,GAAMP,CAAI,IAEhBE,MAAQ,IACRU,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI,IAEnBI,IACLQ,IAAQ,EAAE,MAAAL,GAAM,IAAI,OAAS,IAG7BK,IAAQ,SAGPD,EAASX,GAAMO,CAAI,IAExBK,IAAQ,EAAE,MAAMZ,GAAM,IAAIO,EAAI,IAI9BK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,WAGvBO,KAAQC;AAEb,QAAIC,EAAUF,GAAMP,CAAI,KAAKS,EAAUD,GAAIR,CAAI;AAE3C,MAAII,IACAQ,IAAQ,EAAE,MAAAL,GAAM,IAAAC,EAAE,IAGlBI,IAAQ;AAAA,aAGPH,EAAUF,GAAMP,CAAI;AAEzB,MAAAY,IAAQ,EAAE,MAAAL,GAAM,IAAIL,IAAM,IAAI,SAAYF,EAAI;AAAA,aAEzCS,EAAUD,GAAIR,CAAI;AAEvB,MAAAY,IAAQ,EAAE,MAAMZ,GAAM,IAAIE,IAAM,IAAI,SAAYF,EAAI;AAAA,aAE/CW,EAASX,GAAMO,CAAI;AAExB,MAAAK,IAAQ,EAAE,MAAMZ,GAAM,IAAIQ,EAAE;AAAA,aAEvBE,EAAQV,GAAMO,CAAI;AAEvB,MAAAK,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA,aAEnBU,EAAQV,GAAMQ,CAAE;AAErB,MAAAI,IAAQ,EAAE,MAAAL,GAAM,IAAIP,EAAI;AAAA;AAGxB,YAAM,IAAI,MAAM,eAAe;AAIvC,MAAIY,GAAO,QAAQA,GAAO,IAAI;AAC1B,UAAMC,IAAOR,EAAQ,yBAAyBO,EAAM,IAAIA,EAAM,IAAI;AAClE,IAAIT,IAAM,KAAKU,IAAOV,IAClBS,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS,IAE9BE,IAAM,KAAKW,IAAOX,MACvBU,IAAQ,EAAE,MAAMZ,GAAM,IAAI,OAAS;AAAA,EAE3C;AACA,SAAOY;AACX;","x_google_ignoreList":[0]}
|
package/dist/index278.js
CHANGED
|
@@ -1,40 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
open: o = !1,
|
|
11
|
-
onOpenChange: f,
|
|
12
|
-
elements: e = {}
|
|
13
|
-
} = s, r = c(), i = u() != null;
|
|
14
|
-
if (process.env.NODE_ENV !== "production") {
|
|
15
|
-
const n = e.reference;
|
|
16
|
-
n && !l(n) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
|
|
1
|
+
import { defaultDateLib as f } from "./index127.js";
|
|
2
|
+
function y(t, r, e = f) {
|
|
3
|
+
const n = Array.isArray(r) ? r : [r];
|
|
4
|
+
let a = t.from;
|
|
5
|
+
const i = e.differenceInCalendarDays(t.to, t.from), s = Math.min(i, 6);
|
|
6
|
+
for (let o = 0; o <= s; o++) {
|
|
7
|
+
if (n.includes(a.getDay()))
|
|
8
|
+
return !0;
|
|
9
|
+
a = e.addDays(a, 1);
|
|
17
10
|
}
|
|
18
|
-
|
|
19
|
-
open: o,
|
|
20
|
-
transitionStatus: void 0,
|
|
21
|
-
onOpenChange: f,
|
|
22
|
-
referenceElement: e.reference ?? null,
|
|
23
|
-
floatingElement: e.floating ?? null,
|
|
24
|
-
triggerElements: new d(),
|
|
25
|
-
floatingId: r,
|
|
26
|
-
syncOnly: !1,
|
|
27
|
-
nested: i
|
|
28
|
-
})).current;
|
|
29
|
-
return m(() => {
|
|
30
|
-
const n = {
|
|
31
|
-
open: o,
|
|
32
|
-
floatingId: r
|
|
33
|
-
};
|
|
34
|
-
e.reference !== void 0 && (n.referenceElement = e.reference, n.domReferenceElement = l(e.reference) ? e.reference : null), e.floating !== void 0 && (n.floatingElement = e.floating), t.update(n);
|
|
35
|
-
}, [o, r, e.reference, e.floating, t]), t.context.onOpenChange = f, t.context.nested = i, t;
|
|
11
|
+
return !1;
|
|
36
12
|
}
|
|
37
13
|
export {
|
|
38
|
-
y as
|
|
14
|
+
y as rangeContainsDayOfWeek
|
|
39
15
|
};
|
|
40
16
|
//# sourceMappingURL=index278.js.map
|
package/dist/index278.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index278.js","sources":["../../../node_modules
|
|
1
|
+
{"version":3,"file":"index278.js","sources":["../../../node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js"],"sourcesContent":["import { defaultDateLib } from \"../classes/DateLib.js\";\n/**\n * Checks if a date range contains one or more specified days of the week.\n *\n * @since 9.2.2\n * @param range - The date range to check.\n * @param dayOfWeek - The day(s) of the week to check for (`0-6`, where `0` is\n * Sunday).\n * @param dateLib - The date utility library instance.\n * @returns `true` if the range contains the specified day(s) of the week,\n * otherwise `false`.\n * @group Utilities\n */\nexport function rangeContainsDayOfWeek(range, dayOfWeek, dateLib = defaultDateLib) {\n const dayOfWeekArr = !Array.isArray(dayOfWeek) ? [dayOfWeek] : dayOfWeek;\n let date = range.from;\n const totalDays = dateLib.differenceInCalendarDays(range.to, range.from);\n // iterate at maximum one week or the total days if the range is shorter than one week\n const totalDaysLimit = Math.min(totalDays, 6);\n for (let i = 0; i <= totalDaysLimit; i++) {\n if (dayOfWeekArr.includes(date.getDay())) {\n return true;\n }\n date = dateLib.addDays(date, 1);\n }\n return false;\n}\n"],"names":["rangeContainsDayOfWeek","range","dayOfWeek","dateLib","defaultDateLib","dayOfWeekArr","date","totalDays","totalDaysLimit","i"],"mappings":";AAaO,SAASA,EAAuBC,GAAOC,GAAWC,IAAUC,GAAgB;AAC/E,QAAMC,IAAgB,MAAM,QAAQH,CAAS,IAAkBA,IAAd,CAACA,CAAS;AAC3D,MAAII,IAAOL,EAAM;AACjB,QAAMM,IAAYJ,EAAQ,yBAAyBF,EAAM,IAAIA,EAAM,IAAI,GAEjEO,IAAiB,KAAK,IAAID,GAAW,CAAC;AAC5C,WAASE,IAAI,GAAGA,KAAKD,GAAgBC,KAAK;AACtC,QAAIJ,EAAa,SAASC,EAAK,OAAM,CAAE;AACnC,aAAO;AAEX,IAAAA,IAAOH,EAAQ,QAAQG,GAAM,CAAC;AAAA,EAClC;AACA,SAAO;AACX;","x_google_ignoreList":[0]}
|
package/dist/index279.js
CHANGED
|
@@ -1,266 +1,29 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import { defaultDateLib as p } from "./index127.js";
|
|
2
|
+
import { dateMatchModifiers as s } from "./index32.js";
|
|
3
|
+
import { rangeContainsDayOfWeek as M } from "./index278.js";
|
|
4
|
+
import { rangeIncludesDate as l } from "./index147.js";
|
|
5
|
+
import { rangeOverlaps as y } from "./index280.js";
|
|
6
|
+
import { isDatesArray as a, isDateRange as A, isDayOfWeekType as C, isDateInterval as I, isDateAfterType as v, isDateBeforeType as F } from "./index149.js";
|
|
7
|
+
function d(n, t, f = p) {
|
|
8
|
+
const e = Array.isArray(t) ? t : [t];
|
|
9
|
+
if (e.filter((o) => typeof o != "function").some((o) => typeof o == "boolean" ? o : f.isDate(o) ? l(n, o, !1, f) : a(o, f) ? o.some((r) => l(n, r, !1, f)) : A(o) ? o.from && o.to ? y(n, { from: o.from, to: o.to }, f) : !1 : C(o) ? M(n, o.dayOfWeek, f) : I(o) ? f.isAfter(o.before, o.after) ? y(n, {
|
|
10
|
+
from: f.addDays(o.after, 1),
|
|
11
|
+
to: f.addDays(o.before, -1)
|
|
12
|
+
}, f) : s(n.from, o, f) || s(n.to, o, f) : v(o) || F(o) ? s(n.from, o, f) || s(n.to, o, f) : !1))
|
|
13
|
+
return !0;
|
|
14
|
+
const i = e.filter((o) => typeof o == "function");
|
|
15
|
+
if (i.length) {
|
|
16
|
+
let o = n.from;
|
|
17
|
+
const r = f.differenceInCalendarDays(n.to, n.from);
|
|
18
|
+
for (let u = 0; u <= r; u++) {
|
|
19
|
+
if (i.some((D) => D(o)))
|
|
20
|
+
return !0;
|
|
21
|
+
o = f.addDays(o, 1);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
21
24
|
return !1;
|
|
22
25
|
}
|
|
23
|
-
function Ze(d) {
|
|
24
|
-
return {
|
|
25
|
-
escapeKey: typeof d == "boolean" ? d : d?.escapeKey ?? !1,
|
|
26
|
-
outsidePress: typeof d == "boolean" ? d : d?.outsidePress ?? !0
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
function pt(d, Ee = {}) {
|
|
30
|
-
const n = "rootStore" in d ? d.rootStore : d, S = n.useState("open"), ne = n.useState("floatingElement"), {
|
|
31
|
-
dataRef: m
|
|
32
|
-
} = n.context, {
|
|
33
|
-
enabled: h = !0,
|
|
34
|
-
escapeKey: N = !0,
|
|
35
|
-
outsidePress: x = !0,
|
|
36
|
-
outsidePressEvent: ge = "sloppy",
|
|
37
|
-
referencePress: ye = Qe,
|
|
38
|
-
referencePressEvent: L = "sloppy",
|
|
39
|
-
bubbles: Pe,
|
|
40
|
-
externalTree: Re
|
|
41
|
-
} = Ee, P = Ve(Re), Te = y(typeof x == "function" ? x : () => !1), R = typeof x == "function" ? Te : x, re = R !== !1, se = y(() => ge), O = a.useRef(!1), X = a.useRef(!1), b = a.useRef(!1), {
|
|
42
|
-
escapeKey: W,
|
|
43
|
-
outsidePress: oe
|
|
44
|
-
} = Ze(Pe), s = a.useRef(null), D = de(), ce = de(), E = y(() => {
|
|
45
|
-
ce.clear(), m.current.insideReactTree = !1;
|
|
46
|
-
}), F = a.useRef(!1), $ = a.useRef(""), q = y(ye), w = y((r) => {
|
|
47
|
-
if (!S || !h || !N || r.key !== "Escape" || F.current)
|
|
48
|
-
return;
|
|
49
|
-
const g = m.current.floatingContext?.nodeId, Y = P ? ee(P.nodesRef.current, g) : [];
|
|
50
|
-
if (!W && Y.length > 0) {
|
|
51
|
-
let M = !0;
|
|
52
|
-
if (Y.forEach((p) => {
|
|
53
|
-
p.context?.open && !p.context.dataRef.current.__escapeKeyBubbles && (M = !1);
|
|
54
|
-
}), !M)
|
|
55
|
-
return;
|
|
56
|
-
}
|
|
57
|
-
const G = qe(r) ? r.nativeEvent : r, I = A(je, G);
|
|
58
|
-
n.setOpen(!1, I), !W && !I.isPropagationAllowed && r.stopPropagation();
|
|
59
|
-
}), T = y(() => {
|
|
60
|
-
m.current.insideReactTree = !0, ce.start(0, E);
|
|
61
|
-
});
|
|
62
|
-
a.useEffect(() => {
|
|
63
|
-
if (!S || !h)
|
|
64
|
-
return;
|
|
65
|
-
m.current.__escapeKeyBubbles = W, m.current.__outsidePressBubbles = oe;
|
|
66
|
-
const r = new pe(), g = new pe();
|
|
67
|
-
function Y() {
|
|
68
|
-
r.clear(), F.current = !0;
|
|
69
|
-
}
|
|
70
|
-
function G() {
|
|
71
|
-
r.start(
|
|
72
|
-
// 0ms or 1ms don't work in Safari. 5ms appears to consistently work.
|
|
73
|
-
// Only apply to WebKit for the test to remain 0ms.
|
|
74
|
-
Ae() ? 5 : 0,
|
|
75
|
-
() => {
|
|
76
|
-
F.current = !1;
|
|
77
|
-
}
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
function I() {
|
|
81
|
-
b.current = !0, g.start(0, () => {
|
|
82
|
-
b.current = !1;
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
function M() {
|
|
86
|
-
O.current = !1, X.current = !1;
|
|
87
|
-
}
|
|
88
|
-
function p() {
|
|
89
|
-
const e = $.current, t = e === "pen" || !e ? "mouse" : e, o = se(), c = typeof o == "function" ? o() : o;
|
|
90
|
-
return typeof c == "string" ? c : c[t];
|
|
91
|
-
}
|
|
92
|
-
function be(e) {
|
|
93
|
-
const t = p();
|
|
94
|
-
return t === "intentional" && e.type !== "click" || t === "sloppy" && e.type === "click";
|
|
95
|
-
}
|
|
96
|
-
function ue(e) {
|
|
97
|
-
const t = m.current.floatingContext?.nodeId, o = P && ee(P.nodesRef.current, t).some((c) => f(e, c.context?.elements.floating));
|
|
98
|
-
return f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || o;
|
|
99
|
-
}
|
|
100
|
-
function _(e) {
|
|
101
|
-
if (be(e)) {
|
|
102
|
-
E();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
if (m.current.insideReactTree) {
|
|
106
|
-
E();
|
|
107
|
-
return;
|
|
108
|
-
}
|
|
109
|
-
const t = te(e), o = `[${Ue("inert")}]`, c = v(t) ? t.getRootNode() : null, k = Array.from((Be(c) ? c : me(n.select("floatingElement"))).querySelectorAll(o)), le = n.context.triggerElements;
|
|
110
|
-
if (t && (le.hasElement(t) || le.hasMatchingElement((i) => B(i, t))))
|
|
111
|
-
return;
|
|
112
|
-
let K = v(t) ? t : null;
|
|
113
|
-
for (; K && !Z(K); ) {
|
|
114
|
-
const i = Ne(K);
|
|
115
|
-
if (Z(i) || !v(i))
|
|
116
|
-
break;
|
|
117
|
-
K = i;
|
|
118
|
-
}
|
|
119
|
-
if (k.length && v(t) && !$e(t) && // Clicked on a direct ancestor (e.g. FloatingOverlay).
|
|
120
|
-
!B(t, n.select("floatingElement")) && // If the target root element contains none of the markers, then the
|
|
121
|
-
// element was injected after the floating element rendered.
|
|
122
|
-
k.every((i) => !B(K, i)))
|
|
123
|
-
return;
|
|
124
|
-
if (Le(t) && !("touches" in e)) {
|
|
125
|
-
const i = Z(t), C = Fe(t), fe = /auto|scroll/, xe = i || fe.test(C.overflowX), Xe = i || fe.test(C.overflowY), We = xe && t.clientWidth > 0 && t.scrollWidth > t.clientWidth, Ye = Xe && t.clientHeight > 0 && t.scrollHeight > t.clientHeight, _e = C.direction === "rtl", He = Ye && (_e ? e.offsetX <= t.offsetWidth - t.clientWidth : e.offsetX > t.clientWidth), ve = We && e.offsetY > t.clientHeight;
|
|
126
|
-
if (He || ve)
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
if (ue(e))
|
|
130
|
-
return;
|
|
131
|
-
if (p() === "intentional" && b.current) {
|
|
132
|
-
g.clear(), b.current = !1;
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
if (typeof R == "function" && !R(e))
|
|
136
|
-
return;
|
|
137
|
-
const Ke = m.current.floatingContext?.nodeId, ae = P ? ee(P.nodesRef.current, Ke) : [];
|
|
138
|
-
if (ae.length > 0) {
|
|
139
|
-
let i = !0;
|
|
140
|
-
if (ae.forEach((C) => {
|
|
141
|
-
C.context?.open && !C.context.dataRef.current.__outsidePressBubbles && (i = !1);
|
|
142
|
-
}), !i)
|
|
143
|
-
return;
|
|
144
|
-
}
|
|
145
|
-
n.setOpen(!1, A(Ge, e)), E();
|
|
146
|
-
}
|
|
147
|
-
function we(e) {
|
|
148
|
-
p() !== "sloppy" || e.pointerType === "touch" || !n.select("open") || !h || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || _(e);
|
|
149
|
-
}
|
|
150
|
-
function Ce(e) {
|
|
151
|
-
if (p() !== "sloppy" || !n.select("open") || !h || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")))
|
|
152
|
-
return;
|
|
153
|
-
const t = e.touches[0];
|
|
154
|
-
t && (s.current = {
|
|
155
|
-
startTime: Date.now(),
|
|
156
|
-
startX: t.clientX,
|
|
157
|
-
startY: t.clientY,
|
|
158
|
-
dismissOnTouchEnd: !1,
|
|
159
|
-
dismissOnMouseDown: !0
|
|
160
|
-
}, D.start(1e3, () => {
|
|
161
|
-
s.current && (s.current.dismissOnTouchEnd = !1, s.current.dismissOnMouseDown = !1);
|
|
162
|
-
}));
|
|
163
|
-
}
|
|
164
|
-
function H(e, t) {
|
|
165
|
-
const o = te(e);
|
|
166
|
-
if (!o)
|
|
167
|
-
return;
|
|
168
|
-
const c = u(o, e.type, () => {
|
|
169
|
-
t(e), c();
|
|
170
|
-
});
|
|
171
|
-
}
|
|
172
|
-
function Se(e) {
|
|
173
|
-
$.current = "touch", H(e, Ce);
|
|
174
|
-
}
|
|
175
|
-
function J(e) {
|
|
176
|
-
D.clear(), e.type === "pointerdown" && ($.current = e.pointerType), !(e.type === "mousedown" && s.current && !s.current.dismissOnMouseDown) && H(e, (t) => {
|
|
177
|
-
t.type === "pointerdown" ? we(t) : _(t);
|
|
178
|
-
});
|
|
179
|
-
}
|
|
180
|
-
function Q(e) {
|
|
181
|
-
if (!O.current)
|
|
182
|
-
return;
|
|
183
|
-
const t = X.current;
|
|
184
|
-
if (M(), p() === "intentional") {
|
|
185
|
-
if (e.type === "pointercancel") {
|
|
186
|
-
t && I();
|
|
187
|
-
return;
|
|
188
|
-
}
|
|
189
|
-
if (!ue(e)) {
|
|
190
|
-
if (t) {
|
|
191
|
-
I();
|
|
192
|
-
return;
|
|
193
|
-
}
|
|
194
|
-
typeof R == "function" && !R(e) || (g.clear(), b.current = !0, E());
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
function Oe(e) {
|
|
199
|
-
if (p() !== "sloppy" || !s.current || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")))
|
|
200
|
-
return;
|
|
201
|
-
const t = e.touches[0];
|
|
202
|
-
if (!t)
|
|
203
|
-
return;
|
|
204
|
-
const o = Math.abs(t.clientX - s.current.startX), c = Math.abs(t.clientY - s.current.startY), k = Math.sqrt(o * o + c * c);
|
|
205
|
-
k > 5 && (s.current.dismissOnTouchEnd = !0), k > 10 && (_(e), D.clear(), s.current = null);
|
|
206
|
-
}
|
|
207
|
-
function De(e) {
|
|
208
|
-
H(e, Oe);
|
|
209
|
-
}
|
|
210
|
-
function Ie(e) {
|
|
211
|
-
p() !== "sloppy" || !s.current || f(e, n.select("floatingElement")) || f(e, n.select("domReferenceElement")) || (s.current.dismissOnTouchEnd && _(e), D.clear(), s.current = null);
|
|
212
|
-
}
|
|
213
|
-
function Me(e) {
|
|
214
|
-
H(e, Ie);
|
|
215
|
-
}
|
|
216
|
-
const l = me(ne), ke = z(N && z(u(l, "keydown", w), u(l, "compositionstart", Y), u(l, "compositionend", G)), re && z(u(l, "click", J, !0), u(l, "pointerdown", J, !0), u(l, "pointerup", Q, !0), u(l, "pointercancel", Q, !0), u(l, "mousedown", J, !0), u(l, "mouseup", Q, !0), u(l, "touchstart", Se, !0), u(l, "touchmove", De, !0), u(l, "touchend", Me, !0)));
|
|
217
|
-
return () => {
|
|
218
|
-
ke(), r.clear(), g.clear(), M(), b.current = !1;
|
|
219
|
-
};
|
|
220
|
-
}, [m, ne, N, re, R, S, h, W, oe, w, E, se, P, n, D]), a.useEffect(E, [R, E]);
|
|
221
|
-
const V = a.useMemo(() => ({
|
|
222
|
-
onKeyDown: w,
|
|
223
|
-
[Je[L]]: (r) => {
|
|
224
|
-
q() && n.setOpen(!1, A(he, r.nativeEvent));
|
|
225
|
-
},
|
|
226
|
-
...L !== "intentional" && {
|
|
227
|
-
onClick(r) {
|
|
228
|
-
q() && n.setOpen(!1, A(he, r.nativeEvent));
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
}), [w, n, L, q]), U = y((r) => {
|
|
232
|
-
if (!S || !h || r.button !== 0)
|
|
233
|
-
return;
|
|
234
|
-
const g = te(r.nativeEvent);
|
|
235
|
-
B(n.select("floatingElement"), g) && (O.current || (O.current = !0, X.current = !1));
|
|
236
|
-
}), j = y((r) => {
|
|
237
|
-
!S || !h || (r.defaultPrevented || r.nativeEvent.defaultPrevented) && O.current && (X.current = !0);
|
|
238
|
-
}), ie = a.useMemo(() => ({
|
|
239
|
-
onKeyDown: w,
|
|
240
|
-
// `onMouseDown` may be blocked if `event.preventDefault()` is called in
|
|
241
|
-
// `onPointerDown`, such as with <NumberField.ScrubArea>.
|
|
242
|
-
// See https://github.com/mui/base-ui/pull/3379
|
|
243
|
-
onPointerDown: j,
|
|
244
|
-
onMouseDown: j,
|
|
245
|
-
onClickCapture: T,
|
|
246
|
-
onMouseDownCapture(r) {
|
|
247
|
-
T(), U(r);
|
|
248
|
-
},
|
|
249
|
-
onPointerDownCapture(r) {
|
|
250
|
-
T(), U(r);
|
|
251
|
-
},
|
|
252
|
-
onMouseUpCapture: T,
|
|
253
|
-
onTouchEndCapture: T,
|
|
254
|
-
onTouchMoveCapture: T
|
|
255
|
-
}), [w, T, U, j]);
|
|
256
|
-
return a.useMemo(() => h ? {
|
|
257
|
-
reference: V,
|
|
258
|
-
floating: ie,
|
|
259
|
-
trigger: V
|
|
260
|
-
} : {}, [h, V, ie]);
|
|
261
|
-
}
|
|
262
26
|
export {
|
|
263
|
-
|
|
264
|
-
pt as useDismiss
|
|
27
|
+
d as rangeContainsModifiers
|
|
265
28
|
};
|
|
266
29
|
//# sourceMappingURL=index279.js.map
|