@rpcbase/ui 0.208.0 → 0.209.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/index.js +13 -13
- package/dist/index100.js +3 -3
- package/dist/index100.js.map +1 -1
- package/dist/index101.js +9 -3
- package/dist/index101.js.map +1 -1
- package/dist/index102.js +4 -9
- package/dist/index102.js.map +1 -1
- package/dist/index103.js +9 -4
- package/dist/index103.js.map +1 -1
- package/dist/index104.js +18 -12
- package/dist/index104.js.map +1 -1
- package/dist/index105.js +25 -18
- package/dist/index105.js.map +1 -1
- package/dist/index106.js +5 -24
- package/dist/index106.js.map +1 -1
- package/dist/index107.js +2 -2
- package/dist/index107.js.map +1 -1
- package/dist/index108.js +4 -3
- package/dist/index108.js.map +1 -1
- package/dist/index109.js +3 -3
- package/dist/index109.js.map +1 -1
- package/dist/index110.js +3 -4
- package/dist/index110.js.map +1 -1
- package/dist/index111.js +3 -3
- package/dist/index111.js.map +1 -1
- package/dist/index112.js +8 -5
- package/dist/index112.js.map +1 -1
- package/dist/index113.js +7 -8
- package/dist/index113.js.map +1 -1
- package/dist/index114.js +34 -7
- package/dist/index114.js.map +1 -1
- package/dist/index115.js +7 -34
- package/dist/index115.js.map +1 -1
- package/dist/index116.js +5 -7
- package/dist/index116.js.map +1 -1
- package/dist/index117.js +7 -5
- package/dist/index117.js.map +1 -1
- package/dist/index118.js +9 -7
- package/dist/index118.js.map +1 -1
- package/dist/index119.js +3 -7
- package/dist/index119.js.map +1 -1
- package/dist/index120.js +4 -3
- package/dist/index120.js.map +1 -1
- package/dist/index121.js +3 -4
- package/dist/index121.js.map +1 -1
- package/dist/index122.js +3 -3
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +4 -3
- package/dist/index123.js.map +1 -1
- package/dist/index124.js +3 -4
- package/dist/index124.js.map +1 -1
- package/dist/index125.js +3 -3
- package/dist/index125.js.map +1 -1
- package/dist/index126.js +7 -5
- package/dist/index126.js.map +1 -1
- package/dist/index127.js +57 -8
- package/dist/index127.js.map +1 -1
- package/dist/index128.js +7 -57
- package/dist/index128.js.map +1 -1
- package/dist/index129.js +19 -6
- package/dist/index129.js.map +1 -1
- package/dist/index130.js +19 -19
- package/dist/index130.js.map +1 -1
- package/dist/index131.js +34 -19
- package/dist/index131.js.map +1 -1
- package/dist/index132.js +5 -34
- package/dist/index132.js.map +1 -1
- package/dist/index133.js +8 -5
- package/dist/index133.js.map +1 -1
- package/dist/index134.js +13 -7
- package/dist/index134.js.map +1 -1
- package/dist/index135.js +10 -14
- package/dist/index135.js.map +1 -1
- package/dist/index136.js +6 -10
- package/dist/index136.js.map +1 -1
- package/dist/index137.js +4 -5
- package/dist/index137.js.map +1 -1
- package/dist/index138.js +5 -5
- package/dist/index138.js.map +1 -1
- package/dist/index139.js +5 -5
- package/dist/index139.js.map +1 -1
- package/dist/index140.js +5 -5
- package/dist/index140.js.map +1 -1
- package/dist/index141.js +4 -5
- package/dist/index141.js.map +1 -1
- package/dist/index142.js +6 -4
- package/dist/index142.js.map +1 -1
- package/dist/index143.js +21 -7
- package/dist/index143.js.map +1 -1
- package/dist/index144.js +9 -21
- package/dist/index144.js.map +1 -1
- package/dist/index145.js +7 -8
- package/dist/index145.js.map +1 -1
- package/dist/index146.js +5 -6
- package/dist/index146.js.map +1 -1
- package/dist/index147.js +6 -6
- package/dist/index147.js.map +1 -1
- package/dist/index148.js +4 -6
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +4 -4
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +5 -4
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +4 -5
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +5 -4
- package/dist/index152.js.map +1 -1
- package/dist/index153.js +4 -5
- package/dist/index153.js.map +1 -1
- package/dist/index154.js +4 -4
- package/dist/index154.js.map +1 -1
- package/dist/index155.js +3 -3
- package/dist/index155.js.map +1 -1
- package/dist/index156.js +29 -5
- package/dist/index156.js.map +1 -1
- package/dist/index157.js +33 -29
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +15 -32
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +10 -14
- package/dist/index159.js.map +1 -1
- package/dist/index160.js +9 -11
- package/dist/index160.js.map +1 -1
- package/dist/index161.js +16 -9
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +86 -16
- package/dist/index162.js.map +1 -1
- package/dist/index163.js +47 -86
- package/dist/index163.js.map +1 -1
- package/dist/index164.js +16 -46
- package/dist/index164.js.map +1 -1
- package/dist/index165.js +8 -17
- package/dist/index165.js.map +1 -1
- package/dist/index166.js +10 -8
- package/dist/index166.js.map +1 -1
- package/dist/index167.js +4 -9
- package/dist/index167.js.map +1 -1
- package/dist/index168.js +22 -5
- package/dist/index168.js.map +1 -1
- package/dist/index169.js +7 -22
- package/dist/index169.js.map +1 -1
- package/dist/index170.js +6 -7
- package/dist/index170.js.map +1 -1
- package/dist/index171.js +4 -4
- package/dist/index171.js.map +1 -1
- package/dist/index172.js +4 -6
- package/dist/index172.js.map +1 -1
- package/dist/index173.js +6 -4
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +67 -6
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +17 -67
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +12 -17
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +9 -12
- package/dist/index177.js.map +1 -1
- package/dist/index178.js +20 -9
- package/dist/index178.js.map +1 -1
- package/dist/index179.js +14 -17
- package/dist/index179.js.map +1 -1
- package/dist/index180.js +54 -16
- package/dist/index180.js.map +1 -1
- package/dist/index181.js +9 -54
- package/dist/index181.js.map +1 -1
- package/dist/index182.js +6 -10
- package/dist/index182.js.map +1 -1
- package/dist/index183.js +26 -6
- package/dist/index183.js.map +1 -1
- package/dist/index184.js +26 -26
- package/dist/index184.js.map +1 -1
- package/dist/index185.js +10 -23
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +13 -13
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +6 -13
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +23 -6
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +385 -23
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +487 -377
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +122 -487
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +53 -131
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +76 -51
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +897 -75
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +19 -899
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +446 -17
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +4 -448
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +57 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +56 -52
- package/dist/index199.js.map +1 -1
- package/dist/index200.js +55 -56
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +8 -60
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +15 -7
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +143 -15
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +4 -145
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +11 -4
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +104 -10
- package/dist/index206.js.map +1 -1
- package/dist/index207.js +347 -94
- package/dist/index207.js.map +1 -1
- package/dist/index208.js +87 -349
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +304 -73
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +193 -309
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +19 -211
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +27 -18
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +187 -27
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +16 -186
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +62 -18
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +40 -58
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +9 -43
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +25 -10
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +45 -25
- package/dist/index219.js.map +1 -1
- package/dist/index220.js +17 -44
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +3 -18
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +5 -3
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +20 -4
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +24 -20
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +66 -23
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +14 -67
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +4 -15
- package/dist/index227.js.map +1 -1
- package/dist/index228.js +51 -4
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +5 -50
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +26 -5
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +11 -24
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +8 -12
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +3 -13
- package/dist/index234.js +29 -3
- package/dist/index234.js.map +1 -0
- package/dist/index235.js +68 -25
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +2 -71
- package/dist/index237.js +15 -3
- package/dist/index237.js.map +1 -0
- package/dist/index238.js +51 -12
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +114 -50
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +9 -0
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +6 -115
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +13 -6
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +687 -13
- package/dist/index242.js.map +1 -1
- package/dist/index243.js +234 -668
- package/dist/index243.js.map +1 -1
- package/dist/index244.js +670 -222
- package/dist/index244.js.map +1 -1
- package/dist/index245.js +7430 -700
- package/dist/index245.js.map +1 -1
- package/dist/index246.js +7 -7431
- package/dist/index246.js.map +1 -1
- package/dist/index247.js +12 -6
- package/dist/index247.js.map +1 -1
- package/dist/index248.js +5 -12
- package/dist/index248.js.map +1 -1
- package/dist/index249.js +459 -5
- package/dist/index249.js.map +1 -1
- package/dist/index25.js +20 -8
- package/dist/index25.js.map +1 -1
- package/dist/index250.js +32 -454
- package/dist/index250.js.map +1 -1
- package/dist/index251.js +18 -36
- package/dist/index251.js.map +1 -1
- package/dist/index252.js +25 -17
- package/dist/index252.js.map +1 -1
- package/dist/index253.js +4 -27
- package/dist/index253.js.map +1 -1
- package/dist/index254.js +58 -4
- package/dist/index254.js.map +1 -1
- package/dist/index255.js +7 -58
- package/dist/index255.js.map +1 -1
- package/dist/index256.js +12 -7
- package/dist/index256.js.map +1 -1
- package/dist/index257.js +3 -13
- package/dist/index257.js.map +1 -1
- package/dist/index258.js +17 -3
- package/dist/index258.js.map +1 -1
- package/dist/index259.js +23 -14
- package/dist/index259.js.map +1 -1
- package/dist/index26.js +56 -18
- package/dist/index26.js.map +1 -1
- package/dist/index260.js +41 -23
- package/dist/index260.js.map +1 -1
- package/dist/index261.js +13 -43
- package/dist/index261.js.map +1 -1
- package/dist/index262.js +25 -13
- package/dist/index262.js.map +1 -1
- package/dist/index263.js +16 -24
- package/dist/index263.js.map +1 -1
- package/dist/index264.js +33 -15
- package/dist/index264.js.map +1 -1
- package/dist/index265.js +5 -35
- package/dist/index265.js.map +1 -1
- package/dist/index266.js +9 -5
- package/dist/index266.js.map +1 -1
- package/dist/index267.js +7 -8
- package/dist/index267.js.map +1 -1
- package/dist/index268.js +9 -8
- package/dist/index268.js.map +1 -1
- package/dist/index269.js +10 -9
- package/dist/index269.js.map +1 -1
- package/dist/index27.js +50 -53
- package/dist/index27.js.map +1 -1
- package/dist/index270.js +7 -10
- package/dist/index270.js.map +1 -1
- package/dist/index271.js +73 -7
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +161 -63
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +100 -157
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +13 -113
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +78 -12
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +23 -57
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +12 -45
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +16 -13
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +98 -15
- package/dist/index279.js.map +1 -1
- package/dist/index28.js +1 -59
- package/dist/index280.js +50 -93
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +57 -5
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +41 -78
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +100 -58
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +46 -104
- package/dist/index284.js.map +1 -1
- package/dist/index285.js +39 -51
- package/dist/index285.js.map +1 -1
- package/dist/index286.js +141 -42
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +119 -122
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +222 -107
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +159 -173
- package/dist/index289.js.map +1 -1
- package/dist/index29.js +4 -0
- package/dist/index290.js +177 -119
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +5 -298
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +6 -5
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +7 -6
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +5 -6
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +4 -4
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +21 -6
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +10 -21
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +126 -10
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +146 -108
- package/dist/index299.js.map +1 -1
- package/dist/index30.js +8 -6
- package/dist/index30.js.map +1 -0
- package/dist/index300.js +55 -151
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +107 -66
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +489 -107
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +63 -492
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +4 -63
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +28 -4
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +65 -27
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +147 -60
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +56 -147
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +553 -53
- package/dist/index309.js.map +1 -1
- package/dist/index31.js +6 -5
- package/dist/index31.js.map +1 -1
- package/dist/index310.js +170 -521
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +327 -206
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +251 -314
- package/dist/index312.js.map +1 -1
- package/dist/index32.js +3 -3
- package/dist/index32.js.map +1 -1
- package/dist/index33.js +7 -5
- package/dist/index33.js.map +1 -1
- package/dist/index34.js +7 -4
- package/dist/index34.js.map +1 -1
- package/dist/index35.js +5 -10
- package/dist/index35.js.map +1 -1
- package/dist/index36.js +7 -5
- package/dist/index36.js.map +1 -1
- package/dist/index37.js +8 -7
- package/dist/index37.js.map +1 -1
- package/dist/index38.js +12 -8
- package/dist/index38.js.map +1 -1
- package/dist/index39.js +5 -11
- package/dist/index39.js.map +1 -1
- package/dist/index40.js +6 -6
- package/dist/index40.js.map +1 -1
- package/dist/index41.js +5 -5
- package/dist/index41.js.map +1 -1
- package/dist/index42.js +9 -6
- package/dist/index42.js.map +1 -1
- package/dist/index43.js +8 -9
- package/dist/index43.js.map +1 -1
- package/dist/index44.js +5 -8
- package/dist/index44.js.map +1 -1
- package/dist/index45.js +2 -2
- package/dist/index45.js.map +1 -1
- package/dist/index46.js +11 -5
- package/dist/index46.js.map +1 -1
- package/dist/index47.js +4 -4
- package/dist/index47.js.map +1 -1
- package/dist/index48.js +6 -10
- package/dist/index48.js.map +1 -1
- package/dist/index49.js +4 -7
- package/dist/index49.js.map +1 -1
- package/dist/index50.js +6 -4
- package/dist/index50.js.map +1 -1
- package/dist/index51.js +6 -6
- package/dist/index51.js.map +1 -1
- package/dist/index52.js +5 -5
- package/dist/index52.js.map +1 -1
- package/dist/index53.js +8 -5
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +13 -9
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +5 -12
- package/dist/index55.js.map +1 -1
- package/dist/index56.js +4 -4
- package/dist/index56.js.map +1 -1
- package/dist/index57.js +4 -4
- package/dist/index57.js.map +1 -1
- package/dist/index58.js +13 -6
- package/dist/index58.js.map +1 -1
- package/dist/index59.js +4 -10
- package/dist/index59.js.map +1 -1
- package/dist/index60.js +8 -7
- package/dist/index60.js.map +1 -1
- package/dist/index61.js +68 -9
- package/dist/index61.js.map +1 -1
- package/dist/index62.js +8 -68
- package/dist/index62.js.map +1 -1
- package/dist/index63.js +31 -8
- package/dist/index63.js.map +1 -1
- package/dist/index64.js +10 -31
- package/dist/index64.js.map +1 -1
- package/dist/index65.js +16 -10
- package/dist/index65.js.map +1 -1
- package/dist/index66.js +200 -15
- package/dist/index66.js.map +1 -1
- package/dist/index67.js +21 -201
- package/dist/index67.js.map +1 -1
- package/dist/index68.js +12 -16
- package/dist/index68.js.map +1 -1
- package/dist/index69.js +123 -17
- package/dist/index69.js.map +1 -1
- package/dist/index70.js +18 -122
- package/dist/index70.js.map +1 -1
- package/dist/index71.js +9 -19
- package/dist/index71.js.map +1 -1
- package/dist/index72.js +9 -8
- package/dist/index72.js.map +1 -1
- package/dist/index73.js +11 -7
- package/dist/index73.js.map +1 -1
- package/dist/index74.js +7 -11
- package/dist/index74.js.map +1 -1
- package/dist/index75.js +6 -6
- package/dist/index75.js.map +1 -1
- package/dist/index76.js +4 -9
- package/dist/index76.js.map +1 -1
- package/dist/index77.js +42 -5
- package/dist/index77.js.map +1 -1
- package/dist/index78.js +368 -29
- package/dist/index78.js.map +1 -1
- package/dist/index79.js +37 -379
- package/dist/index79.js.map +1 -1
- package/dist/index80.js +22 -39
- package/dist/index80.js.map +1 -1
- package/dist/index81.js +56 -20
- package/dist/index81.js.map +1 -1
- package/dist/index82.js +7 -57
- package/dist/index82.js.map +1 -1
- package/dist/index83.js +4 -6
- package/dist/index83.js.map +1 -1
- package/dist/index84.js +3 -3
- package/dist/index84.js.map +1 -1
- package/dist/index85.js +3 -3
- package/dist/index85.js.map +1 -1
- package/dist/index86.js +3 -3
- package/dist/index86.js.map +1 -1
- package/dist/index87.js +5 -4
- package/dist/index87.js.map +1 -1
- package/dist/index88.js +3 -3
- package/dist/index88.js.map +1 -1
- package/dist/index89.js +10 -6
- package/dist/index89.js.map +1 -1
- package/dist/index90.js +7 -10
- package/dist/index90.js.map +1 -1
- package/dist/index91.js +6 -7
- package/dist/index91.js.map +1 -1
- package/dist/index92.js +5 -6
- package/dist/index92.js.map +1 -1
- package/dist/index93.js +7 -5
- package/dist/index93.js.map +1 -1
- package/dist/index94.js +48 -8
- package/dist/index94.js.map +1 -1
- package/dist/index95.js +104 -46
- package/dist/index95.js.map +1 -1
- package/dist/index96.js +8 -103
- package/dist/index96.js.map +1 -1
- package/dist/index97.js +5 -9
- package/dist/index97.js.map +1 -1
- package/dist/index98.js +3 -3
- package/dist/index98.js.map +1 -1
- package/dist/index99.js +6 -7
- package/dist/index99.js.map +1 -1
- package/package.json +2 -2
- package/dist/index233.js.map +0 -1
- package/dist/index236.js.map +0 -1
- package/dist/index28.js.map +0 -1
- package/dist/index313.js +0 -272
- package/dist/index313.js.map +0 -1
package/dist/index235.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index235.js","names":[],"sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/
|
|
1
|
+
{"version":3,"file":"index235.js","names":["React"],"sources":["../../../node_modules/react-remove-scroll-bar/dist/es2015/component.js"],"sourcesContent":["import * as React from 'react';\nimport { styleSingleton } from 'react-style-singleton';\nimport { fullWidthClassName, zeroRightClassName, noScrollbarsClassName, removedBarSizeVariable } from './constants';\nimport { getGapWidth } from './utils';\nvar Style = styleSingleton();\nexport var lockAttribute = 'data-scroll-locked';\n// important tip - once we measure scrollBar width and remove them\n// we could not repeat this operation\n// thus we are using style-singleton - only the first \"yet correct\" style will be applied.\nvar getStyles = function (_a, allowRelative, gapMode, important) {\n var left = _a.left, top = _a.top, right = _a.right, gap = _a.gap;\n if (gapMode === void 0) { gapMode = 'margin'; }\n return \"\\n .\".concat(noScrollbarsClassName, \" {\\n overflow: hidden \").concat(important, \";\\n padding-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n body[\").concat(lockAttribute, \"] {\\n overflow: hidden \").concat(important, \";\\n overscroll-behavior: contain;\\n \").concat([\n allowRelative && \"position: relative \".concat(important, \";\"),\n gapMode === 'margin' &&\n \"\\n padding-left: \".concat(left, \"px;\\n padding-top: \").concat(top, \"px;\\n padding-right: \").concat(right, \"px;\\n margin-left:0;\\n margin-top:0;\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n \"),\n gapMode === 'padding' && \"padding-right: \".concat(gap, \"px \").concat(important, \";\"),\n ]\n .filter(Boolean)\n .join(''), \"\\n }\\n \\n .\").concat(zeroRightClassName, \" {\\n right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" {\\n margin-right: \").concat(gap, \"px \").concat(important, \";\\n }\\n \\n .\").concat(zeroRightClassName, \" .\").concat(zeroRightClassName, \" {\\n right: 0 \").concat(important, \";\\n }\\n \\n .\").concat(fullWidthClassName, \" .\").concat(fullWidthClassName, \" {\\n margin-right: 0 \").concat(important, \";\\n }\\n \\n body[\").concat(lockAttribute, \"] {\\n \").concat(removedBarSizeVariable, \": \").concat(gap, \"px;\\n }\\n\");\n};\nvar getCurrentUseCounter = function () {\n var counter = parseInt(document.body.getAttribute(lockAttribute) || '0', 10);\n return isFinite(counter) ? counter : 0;\n};\nexport var useLockAttribute = function () {\n React.useEffect(function () {\n document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());\n return function () {\n var newCounter = getCurrentUseCounter() - 1;\n if (newCounter <= 0) {\n document.body.removeAttribute(lockAttribute);\n }\n else {\n document.body.setAttribute(lockAttribute, newCounter.toString());\n }\n };\n }, []);\n};\n/**\n * Removes page scrollbar and blocks page scroll when mounted\n */\nexport var RemoveScrollBar = function (_a) {\n var noRelative = _a.noRelative, noImportant = _a.noImportant, _b = _a.gapMode, gapMode = _b === void 0 ? 'margin' : _b;\n useLockAttribute();\n /*\n gap will be measured on every component mount\n however it will be used only by the \"first\" invocation\n due to singleton nature of <Style\n */\n var gap = React.useMemo(function () { return getGapWidth(gapMode); }, [gapMode]);\n return React.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? '!important' : '') });\n};\n"],"x_google_ignoreList":[0],"mappings":";;;;;;AAIA,IAAI,IAAQ,GAAgB,EACjB,IAAgB,sBAIvB,IAAY,SAAU,GAAI,GAAe,GAAS,GAAW;CAC7D,IAAI,IAAO,EAAG,MAAM,IAAM,EAAG,KAAK,IAAQ,EAAG,OAAO,IAAM,EAAG;AAE7D,QADI,MAAY,KAAK,MAAK,IAAU,WAC7B;KAAe;sBAA0D;oBAA2C,OAAmB;;SAAqC;uBAAoD;;MAAgE;EACnS,KAAiB,sBAA6B;EAC9C,MAAY,YACR;oBAA8B;mBAAuC;qBAAwC;;;oBAAgF,OAAmB;;EACpN,MAAY,aAAa,kBAAyB,OAAmB;EACxE,CACI,OAAO,QAAQ,CACf,KAAK,GAAG;;;KAA2B;aAA8C,OAAmB;;;KAAqC;oBAAqD,OAAmB;;;KAAqC,MAAiC;eAAgD;;;KAAqC,MAAiC;sBAAuD;;;SAAyC;MAAmC,MAAqC;;;GAE1jB,IAAuB,WAAY;CACnC,IAAI,IAAU,SAAS,SAAS,KAAK,aAAA,qBAA2B,IAAI,KAAK,GAAG;AAC5E,QAAO,SAAS,EAAQ,GAAG,IAAU;GAE9B,IAAmB,WAAY;AACtC,GAAM,UAAU,WAAY;AAExB,SADA,SAAS,KAAK,aAAa,IAAgB,GAAsB,GAAG,GAAG,UAAU,CAAC,EAC3E,WAAY;GACf,IAAI,IAAa,GAAsB,GAAG;AAC1C,GAAI,KAAc,IACd,SAAS,KAAK,gBAAgB,EAAc,GAG5C,SAAS,KAAK,aAAa,GAAe,EAAW,UAAU,CAAC;;IAGzE,EAAE,CAAC;GAKC,IAAkB,SAAU,GAAI;CACvC,IAAI,IAAa,EAAG,YAAY,IAAc,EAAG,aAAa,IAAK,EAAG,SAAS,IAAU,MAAO,KAAK,IAAI,WAAW;AACpH,IAAkB;CAMlB,IAAI,IAAMA,EAAM,QAAQ,WAAY;AAAE,SAAO,EAAY,EAAQ;IAAK,CAAC,EAAQ,CAAC;AAChF,QAAOA,EAAM,cAAc,GAAO,EAAE,QAAQ,EAAU,GAAK,CAAC,GAAY,GAAU,IAA6B,KAAf,aAAkB,EAAE,CAAC"}
|
package/dist/index236.js
CHANGED
|
@@ -1,72 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { styleSingleton as i } from "./index233.js";
|
|
1
|
+
import "./index221.js";
|
|
3
2
|
import "./index234.js";
|
|
4
|
-
import
|
|
5
|
-
import * as o from "react";
|
|
6
|
-
//#region ../../node_modules/react-remove-scroll-bar/dist/es2015/component.js
|
|
7
|
-
var s = i(), c = "data-scroll-locked", l = function(i, a, o, s) {
|
|
8
|
-
var l = i.left, u = i.top, d = i.right, f = i.gap;
|
|
9
|
-
return o === void 0 && (o = "margin"), `
|
|
10
|
-
.${t} {
|
|
11
|
-
overflow: hidden ${s};
|
|
12
|
-
padding-right: ${f}px ${s};
|
|
13
|
-
}
|
|
14
|
-
body[${c}] {
|
|
15
|
-
overflow: hidden ${s};
|
|
16
|
-
overscroll-behavior: contain;
|
|
17
|
-
${[
|
|
18
|
-
a && `position: relative ${s};`,
|
|
19
|
-
o === "margin" && `
|
|
20
|
-
padding-left: ${l}px;
|
|
21
|
-
padding-top: ${u}px;
|
|
22
|
-
padding-right: ${d}px;
|
|
23
|
-
margin-left:0;
|
|
24
|
-
margin-top:0;
|
|
25
|
-
margin-right: ${f}px ${s};
|
|
26
|
-
`,
|
|
27
|
-
o === "padding" && `padding-right: ${f}px ${s};`
|
|
28
|
-
].filter(Boolean).join("")}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.${r} {
|
|
32
|
-
right: ${f}px ${s};
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.${e} {
|
|
36
|
-
margin-right: ${f}px ${s};
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.${r} .${r} {
|
|
40
|
-
right: 0 ${s};
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.${e} .${e} {
|
|
44
|
-
margin-right: 0 ${s};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
body[${c}] {
|
|
48
|
-
${n}: ${f}px;
|
|
49
|
-
}
|
|
50
|
-
`;
|
|
51
|
-
}, u = function() {
|
|
52
|
-
var e = parseInt(document.body.getAttribute("data-scroll-locked") || "0", 10);
|
|
53
|
-
return isFinite(e) ? e : 0;
|
|
54
|
-
}, d = function() {
|
|
55
|
-
o.useEffect(function() {
|
|
56
|
-
return document.body.setAttribute(c, (u() + 1).toString()), function() {
|
|
57
|
-
var e = u() - 1;
|
|
58
|
-
e <= 0 ? document.body.removeAttribute(c) : document.body.setAttribute(c, e.toString());
|
|
59
|
-
};
|
|
60
|
-
}, []);
|
|
61
|
-
}, f = function(e) {
|
|
62
|
-
var t = e.noRelative, n = e.noImportant, r = e.gapMode, i = r === void 0 ? "margin" : r;
|
|
63
|
-
d();
|
|
64
|
-
var c = o.useMemo(function() {
|
|
65
|
-
return a(i);
|
|
66
|
-
}, [i]);
|
|
67
|
-
return o.createElement(s, { styles: l(c, !t, i, n ? "" : "!important") });
|
|
68
|
-
};
|
|
69
|
-
//#endregion
|
|
70
|
-
export { f as RemoveScrollBar };
|
|
71
|
-
|
|
72
|
-
//# sourceMappingURL=index236.js.map
|
|
3
|
+
import "./index235.js";
|
package/dist/index237.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region ../../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
|
|
2
|
+
var e = !1;
|
|
3
|
+
if (typeof window < "u") try {
|
|
4
|
+
var t = Object.defineProperty({}, "passive", { get: function() {
|
|
5
|
+
return e = !0, !0;
|
|
6
|
+
} });
|
|
7
|
+
window.addEventListener("test", t, t), window.removeEventListener("test", t, t);
|
|
8
|
+
} catch {
|
|
9
|
+
e = !1;
|
|
10
|
+
}
|
|
11
|
+
var n = e ? { passive: !1 } : !1;
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as nonPassive };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=index237.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index237.js","names":[],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js"],"sourcesContent":["var passiveSupported = false;\nif (typeof window !== 'undefined') {\n try {\n var options = Object.defineProperty({}, 'passive', {\n get: function () {\n passiveSupported = true;\n return true;\n },\n });\n // @ts-ignore\n window.addEventListener('test', options, options);\n // @ts-ignore\n window.removeEventListener('test', options, options);\n }\n catch (err) {\n passiveSupported = false;\n }\n}\nexport var nonPassive = passiveSupported ? { passive: false } : false;\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAmB;AACvB,IAAI,OAAO,SAAW,IAClB,KAAI;CACA,IAAI,IAAU,OAAO,eAAe,EAAE,EAAE,WAAW,EAC/C,KAAK,WAAY;AAEb,SADA,IAAmB,IACZ;IAEd,CAAC;AAIF,CAFA,OAAO,iBAAiB,QAAQ,GAAS,EAAQ,EAEjD,OAAO,oBAAoB,QAAQ,GAAS,EAAQ;QAE5C;AACR,KAAmB;;AAG3B,IAAW,IAAa,IAAmB,EAAE,SAAS,IAAO,GAAG"}
|
package/dist/index238.js
CHANGED
|
@@ -1,15 +1,54 @@
|
|
|
1
|
-
//#region ../../node_modules/react-remove-scroll/dist/es2015/
|
|
2
|
-
var e =
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}
|
|
9
|
-
e
|
|
10
|
-
}
|
|
11
|
-
|
|
1
|
+
//#region ../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js
|
|
2
|
+
var e = function(e) {
|
|
3
|
+
return e.tagName === "TEXTAREA";
|
|
4
|
+
}, t = function(t, n) {
|
|
5
|
+
if (!(t instanceof Element)) return !1;
|
|
6
|
+
var r = window.getComputedStyle(t);
|
|
7
|
+
return r[n] !== "hidden" && !(r.overflowY === r.overflowX && !e(t) && r[n] === "visible");
|
|
8
|
+
}, n = function(e) {
|
|
9
|
+
return t(e, "overflowY");
|
|
10
|
+
}, r = function(e) {
|
|
11
|
+
return t(e, "overflowX");
|
|
12
|
+
}, i = function(e, t) {
|
|
13
|
+
var n = t.ownerDocument, r = t;
|
|
14
|
+
do {
|
|
15
|
+
if (typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host), s(e, r)) {
|
|
16
|
+
var i = c(e, r);
|
|
17
|
+
if (i[1] > i[2]) return !0;
|
|
18
|
+
}
|
|
19
|
+
r = r.parentNode;
|
|
20
|
+
} while (r && r !== n.body);
|
|
21
|
+
return !1;
|
|
22
|
+
}, a = function(e) {
|
|
23
|
+
return [
|
|
24
|
+
e.scrollTop,
|
|
25
|
+
e.scrollHeight,
|
|
26
|
+
e.clientHeight
|
|
27
|
+
];
|
|
28
|
+
}, o = function(e) {
|
|
29
|
+
return [
|
|
30
|
+
e.scrollLeft,
|
|
31
|
+
e.scrollWidth,
|
|
32
|
+
e.clientWidth
|
|
33
|
+
];
|
|
34
|
+
}, s = function(e, t) {
|
|
35
|
+
return e === "v" ? n(t) : r(t);
|
|
36
|
+
}, c = function(e, t) {
|
|
37
|
+
return e === "v" ? a(t) : o(t);
|
|
38
|
+
}, l = function(e, t) {
|
|
39
|
+
return e === "h" && t === "rtl" ? -1 : 1;
|
|
40
|
+
}, u = function(e, t, n, r, i) {
|
|
41
|
+
var a = l(e, window.getComputedStyle(t).direction), o = a * r, u = n.target, d = t.contains(u), f = !1, p = o > 0, m = 0, h = 0;
|
|
42
|
+
do {
|
|
43
|
+
if (!u) break;
|
|
44
|
+
var g = c(e, u), _ = g[0], v = g[1] - g[2] - a * _;
|
|
45
|
+
(_ || v) && s(e, u) && (m += v, h += _);
|
|
46
|
+
var y = u.parentNode;
|
|
47
|
+
u = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
|
|
48
|
+
} while (!d && u !== document.body || d && (t.contains(u) || t === u));
|
|
49
|
+
return (p && (i && Math.abs(m) < 1 || !i && o > m) || !p && (i && Math.abs(h) < 1 || !i && -o > h)) && (f = !0), f;
|
|
50
|
+
};
|
|
12
51
|
//#endregion
|
|
13
|
-
export {
|
|
52
|
+
export { u as handleScroll, i as locationCouldBeScrolled };
|
|
14
53
|
|
|
15
54
|
//# sourceMappingURL=index238.js.map
|
package/dist/index238.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index238.js","names":[],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/
|
|
1
|
+
{"version":3,"file":"index238.js","names":[],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n if (!target) {\n break;\n }\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n var parent_1 = target.parentNode;\n // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n // this is the same logic used in focus-lock\n target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAuB,SAAU,GAAM;AAEvC,QAAO,EAAK,YAAY;GAExB,IAAuB,SAAU,GAAM,GAAU;AACjD,KAAI,EAAE,aAAgB,SAClB,QAAO;CAEX,IAAI,IAAS,OAAO,iBAAiB,EAAK;AAC1C,QAEA,EAAO,OAAc,YAEjB,EAAE,EAAO,cAAc,EAAO,aAAa,CAAC,EAAqB,EAAK,IAAI,EAAO,OAAc;GAEnG,IAA0B,SAAU,GAAM;AAAE,QAAO,EAAqB,GAAM,YAAY;GAC1F,IAA0B,SAAU,GAAM;AAAE,QAAO,EAAqB,GAAM,YAAY;GACnF,IAA0B,SAAU,GAAM,GAAM;CACvD,IAAI,IAAgB,EAAK,eACrB,IAAU;AACd,IAAG;AAMC,MAJI,OAAO,aAAe,OAAe,aAAmB,eACxD,IAAU,EAAQ,OAEH,EAAuB,GAAM,EAAQ,EACtC;GACd,IAAI,IAAK,EAAmB,GAAM,EAAQ;AAC1C,OAD2D,EAAG,KAAmB,EAAG,GAEhF,QAAO;;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AC,IAAQ,QAHlF,IAAqB,KAMlB"}
|
package/dist/index239.js
CHANGED
|
@@ -1,54 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
import { __spreadArray as e } from "./index220.js";
|
|
2
|
+
import { styleSingleton as t } from "./index232.js";
|
|
3
|
+
import "./index233.js";
|
|
4
|
+
import { RemoveScrollBar as n } from "./index235.js";
|
|
5
|
+
import "./index236.js";
|
|
6
|
+
import { nonPassive as r } from "./index237.js";
|
|
7
|
+
import { handleScroll as i, locationCouldBeScrolled as a } from "./index238.js";
|
|
8
|
+
import * as o from "react";
|
|
9
|
+
//#region ../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
10
|
+
var s = function(e) {
|
|
11
|
+
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
12
|
+
}, c = function(e) {
|
|
13
|
+
return [e.deltaX, e.deltaY];
|
|
14
|
+
}, l = function(e) {
|
|
15
|
+
return e && "current" in e ? e.current : e;
|
|
16
|
+
}, u = function(e, t) {
|
|
17
|
+
return e[0] === t[0] && e[1] === t[1];
|
|
18
|
+
}, d = function(e) {
|
|
19
|
+
return `
|
|
20
|
+
.block-interactivity-${e} {pointer-events: none;}
|
|
21
|
+
.allow-interactivity-${e} {pointer-events: all;}
|
|
22
|
+
`;
|
|
23
|
+
}, f = 0, p = [];
|
|
24
|
+
function m(m) {
|
|
25
|
+
var g = o.useRef([]), _ = o.useRef([0, 0]), v = o.useRef(), y = o.useState(f++)[0], b = o.useState(t)[0], x = o.useRef(m);
|
|
26
|
+
o.useEffect(function() {
|
|
27
|
+
x.current = m;
|
|
28
|
+
}, [m]), o.useEffect(function() {
|
|
29
|
+
if (m.inert) {
|
|
30
|
+
document.body.classList.add(`block-interactivity-${y}`);
|
|
31
|
+
var t = e([m.lockRef.current], (m.shards || []).map(l), !0).filter(Boolean);
|
|
32
|
+
return t.forEach(function(e) {
|
|
33
|
+
return e.classList.add(`allow-interactivity-${y}`);
|
|
34
|
+
}), function() {
|
|
35
|
+
document.body.classList.remove(`block-interactivity-${y}`), t.forEach(function(e) {
|
|
36
|
+
return e.classList.remove(`allow-interactivity-${y}`);
|
|
37
|
+
});
|
|
38
|
+
};
|
|
18
39
|
}
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
e.
|
|
26
|
-
e.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
40
|
+
}, [
|
|
41
|
+
m.inert,
|
|
42
|
+
m.lockRef.current,
|
|
43
|
+
m.shards
|
|
44
|
+
]);
|
|
45
|
+
var S = o.useCallback(function(e, t) {
|
|
46
|
+
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !x.current.allowPinchZoom;
|
|
47
|
+
var n = s(e), r = _.current, o = "deltaX" in e ? e.deltaX : r[0] - n[0], c = "deltaY" in e ? e.deltaY : r[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
48
|
+
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
49
|
+
var f = window.getSelection(), p = f && f.anchorNode;
|
|
50
|
+
if (p && (p === u || p.contains(u))) return !1;
|
|
51
|
+
var m = a(d, u);
|
|
52
|
+
if (!m) return !0;
|
|
53
|
+
if (m ? l = d : (l = d === "v" ? "h" : "v", m = a(d, u)), !m) return !1;
|
|
54
|
+
if (!v.current && "changedTouches" in e && (o || c) && (v.current = l), !l) return !0;
|
|
55
|
+
var h = v.current || l;
|
|
56
|
+
return i(h, t, e, h === "h" ? o : c, !0);
|
|
57
|
+
}, []), C = o.useCallback(function(e) {
|
|
58
|
+
var t = e;
|
|
59
|
+
if (!(!p.length || p[p.length - 1] !== b)) {
|
|
60
|
+
var n = "deltaY" in t ? c(t) : s(t), r = g.current.filter(function(e) {
|
|
61
|
+
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && u(e.delta, n);
|
|
62
|
+
})[0];
|
|
63
|
+
if (r && r.should) {
|
|
64
|
+
t.cancelable && t.preventDefault();
|
|
65
|
+
return;
|
|
66
|
+
}
|
|
67
|
+
if (!r) {
|
|
68
|
+
var i = (x.current.shards || []).map(l).filter(Boolean).filter(function(e) {
|
|
69
|
+
return e.contains(t.target);
|
|
70
|
+
});
|
|
71
|
+
(i.length > 0 ? S(t, i[0]) : !x.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, []), w = o.useCallback(function(e, t, n, r) {
|
|
75
|
+
var i = {
|
|
76
|
+
name: e,
|
|
77
|
+
delta: t,
|
|
78
|
+
target: n,
|
|
79
|
+
should: r,
|
|
80
|
+
shadowParent: h(n)
|
|
81
|
+
};
|
|
82
|
+
g.current.push(i), setTimeout(function() {
|
|
83
|
+
g.current = g.current.filter(function(e) {
|
|
84
|
+
return e !== i;
|
|
85
|
+
});
|
|
86
|
+
}, 1);
|
|
87
|
+
}, []), T = o.useCallback(function(e) {
|
|
88
|
+
_.current = s(e), v.current = void 0;
|
|
89
|
+
}, []), E = o.useCallback(function(e) {
|
|
90
|
+
w(e.type, c(e), e.target, S(e, m.lockRef.current));
|
|
91
|
+
}, []), D = o.useCallback(function(e) {
|
|
92
|
+
w(e.type, s(e), e.target, S(e, m.lockRef.current));
|
|
93
|
+
}, []);
|
|
94
|
+
o.useEffect(function() {
|
|
95
|
+
return p.push(b), m.setCallbacks({
|
|
96
|
+
onScrollCapture: E,
|
|
97
|
+
onWheelCapture: E,
|
|
98
|
+
onTouchMoveCapture: D
|
|
99
|
+
}), document.addEventListener("wheel", C, r), document.addEventListener("touchmove", C, r), document.addEventListener("touchstart", T, r), function() {
|
|
100
|
+
p = p.filter(function(e) {
|
|
101
|
+
return e !== b;
|
|
102
|
+
}), document.removeEventListener("wheel", C, r), document.removeEventListener("touchmove", C, r), document.removeEventListener("touchstart", T, r);
|
|
103
|
+
};
|
|
104
|
+
}, []);
|
|
105
|
+
var O = m.removeScrollBar, k = m.inert;
|
|
106
|
+
return o.createElement(o.Fragment, null, k ? o.createElement(b, { styles: d(y) }) : null, O ? o.createElement(n, {
|
|
107
|
+
noRelative: m.noRelative,
|
|
108
|
+
gapMode: m.gapMode
|
|
109
|
+
}) : null);
|
|
110
|
+
}
|
|
111
|
+
function h(e) {
|
|
112
|
+
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
113
|
+
return t;
|
|
114
|
+
}
|
|
51
115
|
//#endregion
|
|
52
|
-
export {
|
|
116
|
+
export { m as RemoveScrollSideCar };
|
|
53
117
|
|
|
54
118
|
//# sourceMappingURL=index239.js.map
|
package/dist/index239.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index239.js","names":[],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/handleScroll.js"],"sourcesContent":["var alwaysContainsScroll = function (node) {\n // textarea will always _contain_ scroll inside self. It only can be hidden\n return node.tagName === 'TEXTAREA';\n};\nvar elementCanBeScrolled = function (node, overflow) {\n if (!(node instanceof Element)) {\n return false;\n }\n var styles = window.getComputedStyle(node);\n return (\n // not-not-scrollable\n styles[overflow] !== 'hidden' &&\n // contains scroll inside self\n !(styles.overflowY === styles.overflowX && !alwaysContainsScroll(node) && styles[overflow] === 'visible'));\n};\nvar elementCouldBeVScrolled = function (node) { return elementCanBeScrolled(node, 'overflowY'); };\nvar elementCouldBeHScrolled = function (node) { return elementCanBeScrolled(node, 'overflowX'); };\nexport var locationCouldBeScrolled = function (axis, node) {\n var ownerDocument = node.ownerDocument;\n var current = node;\n do {\n // Skip over shadow root\n if (typeof ShadowRoot !== 'undefined' && current instanceof ShadowRoot) {\n current = current.host;\n }\n var isScrollable = elementCouldBeScrolled(axis, current);\n if (isScrollable) {\n var _a = getScrollVariables(axis, current), scrollHeight = _a[1], clientHeight = _a[2];\n if (scrollHeight > clientHeight) {\n return true;\n }\n }\n current = current.parentNode;\n } while (current && current !== ownerDocument.body);\n return false;\n};\nvar getVScrollVariables = function (_a) {\n var scrollTop = _a.scrollTop, scrollHeight = _a.scrollHeight, clientHeight = _a.clientHeight;\n return [\n scrollTop,\n scrollHeight,\n clientHeight,\n ];\n};\nvar getHScrollVariables = function (_a) {\n var scrollLeft = _a.scrollLeft, scrollWidth = _a.scrollWidth, clientWidth = _a.clientWidth;\n return [\n scrollLeft,\n scrollWidth,\n clientWidth,\n ];\n};\nvar elementCouldBeScrolled = function (axis, node) {\n return axis === 'v' ? elementCouldBeVScrolled(node) : elementCouldBeHScrolled(node);\n};\nvar getScrollVariables = function (axis, node) {\n return axis === 'v' ? getVScrollVariables(node) : getHScrollVariables(node);\n};\nvar getDirectionFactor = function (axis, direction) {\n /**\n * If the element's direction is rtl (right-to-left), then scrollLeft is 0 when the scrollbar is at its rightmost position,\n * and then increasingly negative as you scroll towards the end of the content.\n * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollLeft\n */\n return axis === 'h' && direction === 'rtl' ? -1 : 1;\n};\nexport var handleScroll = function (axis, endTarget, event, sourceDelta, noOverscroll) {\n var directionFactor = getDirectionFactor(axis, window.getComputedStyle(endTarget).direction);\n var delta = directionFactor * sourceDelta;\n // find scrollable target\n var target = event.target;\n var targetInLock = endTarget.contains(target);\n var shouldCancelScroll = false;\n var isDeltaPositive = delta > 0;\n var availableScroll = 0;\n var availableScrollTop = 0;\n do {\n if (!target) {\n break;\n }\n var _a = getScrollVariables(axis, target), position = _a[0], scroll_1 = _a[1], capacity = _a[2];\n var elementScroll = scroll_1 - capacity - directionFactor * position;\n if (position || elementScroll) {\n if (elementCouldBeScrolled(axis, target)) {\n availableScroll += elementScroll;\n availableScrollTop += position;\n }\n }\n var parent_1 = target.parentNode;\n // we will \"bubble\" from ShadowDom in case we are, or just to the parent in normal case\n // this is the same logic used in focus-lock\n target = (parent_1 && parent_1.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? parent_1.host : parent_1);\n } while (\n // portaled content\n (!targetInLock && target !== document.body) ||\n // self content\n (targetInLock && (endTarget.contains(target) || endTarget === target)));\n // handle epsilon around 0 (non standard zoom levels)\n if (isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScroll) < 1) || (!noOverscroll && delta > availableScroll))) {\n shouldCancelScroll = true;\n }\n else if (!isDeltaPositive &&\n ((noOverscroll && Math.abs(availableScrollTop) < 1) || (!noOverscroll && -delta > availableScrollTop))) {\n shouldCancelScroll = true;\n }\n return shouldCancelScroll;\n};\n"],"x_google_ignoreList":[0],"mappings":";AAAA,IAAI,IAAuB,SAAU,GAAM;AAEvC,QAAO,EAAK,YAAY;GAExB,IAAuB,SAAU,GAAM,GAAU;AACjD,KAAI,EAAE,aAAgB,SAClB,QAAO;CAEX,IAAI,IAAS,OAAO,iBAAiB,EAAK;AAC1C,QAEA,EAAO,OAAc,YAEjB,EAAE,EAAO,cAAc,EAAO,aAAa,CAAC,EAAqB,EAAK,IAAI,EAAO,OAAc;GAEnG,IAA0B,SAAU,GAAM;AAAE,QAAO,EAAqB,GAAM,YAAY;GAC1F,IAA0B,SAAU,GAAM;AAAE,QAAO,EAAqB,GAAM,YAAY;GACnF,IAA0B,SAAU,GAAM,GAAM;CACvD,IAAI,IAAgB,EAAK,eACrB,IAAU;AACd,IAA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AU,SAAS,EAAO,IAAI,MAAc;AAUlE,SARI,MACE,KAAgB,KAAK,IAAI,EAAgB,GAAG,KAAO,CAAC,KAAgB,IAAQ,MAGzE,CAAC,MACJ,KAAgB,KAAK,IAAI,EAAmB,GAAG,KAAO,CAAC,KAAgB,CAAC,IAAQ,QAHlF,IAAqB,KAMlB"}
|
|
1
|
+
{"version":3,"file":"index239.js","names":["React"],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target\n var selection = window.getSelection();\n var anchorNode = selection && selection.anchorNode;\n var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;\n if (isTouchingSelection) {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAMA,IAAW,IAAa,SAAU,GAAO;AACrC,QAAO,oBAAoB,IAAQ,CAAC,EAAM,eAAe,GAAG,SAAS,EAAM,eAAe,GAAG,QAAQ,GAAG,CAAC,GAAG,EAAE;GAEvG,IAAa,SAAU,GAAO;AAAE,QAAO,CAAC,EAAM,QAAQ,EAAM,OAAO;GAC1E,IAAa,SAAU,GAAK;AAC5B,QAAO,KAAO,aAAa,IAAM,EAAI,UAAU;GAE/C,IAAe,SAAU,GAAG,GAAG;AAAE,QAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;GACpE,IAAgB,SAAU,GAAI;AAAE,QAAO;yBAAmC;yBAAgE;;GAC1I,IAAY,GACZ,IAAY,EAAE;AAClB,SAAgB,EAAoB,GAAO;CACvC,IAAI,IAAqBA,EAAM,OAAO,EAAE,CAAC,EACrC,IAAgBA,EAAM,OAAO,CAAC,GAAG,EAAE,CAAC,EACpC,IAAaA,EAAM,QAAQ,EAC3B,IAAKA,EAAM,SAAS,IAAY,CAAC,IACjC,IAAQA,EAAM,SAAS,EAAe,CAAC,IACvC,IAAYA,EAAM,OAAO,EAAM;AAInC,CAHA,EAAM,UAAU,WAAY;AACxB,IAAU,UAAU;IACrB,CAAC,EAAM,CAAC,EACX,EAAM,UAAU,WAAY;AACxB,MAAI,EAAM,OAAO;AACb,YAAS,KAAK,UAAU,IAAI,uBAA8B,IAAI;GAC9D,IAAI,IAAU,EA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CHANGED
|
@@ -1,3 +1,12 @@
|
|
|
1
|
+
//#region ../../node_modules/@date-fns/tz/tzName/index.js
|
|
2
|
+
function e(e, t, n = "long") {
|
|
3
|
+
return new Intl.DateTimeFormat("en-US", {
|
|
4
|
+
hour: "numeric",
|
|
5
|
+
timeZone: e,
|
|
6
|
+
timeZoneName: n
|
|
7
|
+
}).format(t).split(/\s/g).slice(2).join(" ");
|
|
8
|
+
}
|
|
1
9
|
//#endregion
|
|
10
|
+
export { e as tzName };
|
|
2
11
|
|
|
3
12
|
//# sourceMappingURL=index24.js.map
|
package/dist/index24.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index24.js","names":[],"sources":["../../../node_modules/@date-fns/tz/
|
|
1
|
+
{"version":3,"file":"index24.js","names":[],"sources":["../../../node_modules/@date-fns/tz/tzName/index.js"],"sourcesContent":["/**\n * Time zone name format.\n */\n\n/**\n * The function returns the time zone name for the given date in the specified\n * time zone.\n *\n * It uses the `Intl.DateTimeFormat` API and by default outputs the time zone\n * name in a long format, e.g. \"Pacific Standard Time\" or\n * \"Singapore Standard Time\".\n *\n * It is possible to specify the format as the third argument using one of the following options\n *\n * - \"short\": e.g. \"EDT\" or \"GMT+8\".\n * - \"long\": e.g. \"Eastern Daylight Time\".\n * - \"shortGeneric\": e.g. \"ET\" or \"Singapore Time\".\n * - \"longGeneric\": e.g. \"Eastern Time\" or \"Singapore Standard Time\".\n *\n * These options correspond to TR35 tokens `z..zzz`, `zzzz`, `v`, and `vvvv` respectively: https://www.unicode.org/reports/tr35/tr35-dates.html#dfst-zone\n *\n * @param timeZone - Time zone name (IANA or UTC offset)\n * @param date - Date object to get the time zone name for\n * @param format - Optional format of the time zone name. Defaults to \"long\". Can be \"short\", \"long\", \"shortGeneric\", or \"longGeneric\".\n *\n * @returns Time zone name (e.g. \"Singapore Standard Time\")\n */\nexport function tzName(timeZone, date, format = \"long\") {\n return new Intl.DateTimeFormat(\"en-US\", {\n // Enforces engine to render the time. Without the option JavaScriptCore omits it.\n hour: \"numeric\",\n timeZone: timeZone,\n timeZoneName: format\n }).format(date).split(/\\s/g) // Format.JS uses non-breaking spaces\n .slice(2) // Skip the hour and AM/PM parts\n .join(\" \");\n}"],"x_google_ignoreList":[0],"mappings":";AA2BA,SAAgB,EAAO,GAAU,GAAM,IAAS,QAAQ;AACtD,QAAO,IAAI,KAAK,eAAe,SAAS;EAEtC,MAAM;EACI;EACV,cAAc;EACf,CAAC,CAAC,OAAO,EAAK,CAAC,MAAM,MAAM,CAC3B,MAAM,EAAE,CACR,KAAK,IAAI"}
|
package/dist/index240.js
CHANGED
|
@@ -1,118 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import "./
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { nonPassive as r } from "./index238.js";
|
|
7
|
-
import { handleScroll as i, locationCouldBeScrolled as a } from "./index239.js";
|
|
8
|
-
import * as o from "react";
|
|
9
|
-
//#region ../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js
|
|
10
|
-
var s = function(e) {
|
|
11
|
-
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
12
|
-
}, c = function(e) {
|
|
13
|
-
return [e.deltaX, e.deltaY];
|
|
14
|
-
}, l = function(e) {
|
|
15
|
-
return e && "current" in e ? e.current : e;
|
|
16
|
-
}, u = function(e, t) {
|
|
17
|
-
return e[0] === t[0] && e[1] === t[1];
|
|
18
|
-
}, d = function(e) {
|
|
19
|
-
return `
|
|
20
|
-
.block-interactivity-${e} {pointer-events: none;}
|
|
21
|
-
.allow-interactivity-${e} {pointer-events: all;}
|
|
22
|
-
`;
|
|
23
|
-
}, f = 0, p = [];
|
|
24
|
-
function m(m) {
|
|
25
|
-
var g = o.useRef([]), _ = o.useRef([0, 0]), v = o.useRef(), y = o.useState(f++)[0], b = o.useState(t)[0], x = o.useRef(m);
|
|
26
|
-
o.useEffect(function() {
|
|
27
|
-
x.current = m;
|
|
28
|
-
}, [m]), o.useEffect(function() {
|
|
29
|
-
if (m.inert) {
|
|
30
|
-
document.body.classList.add(`block-interactivity-${y}`);
|
|
31
|
-
var t = e([m.lockRef.current], (m.shards || []).map(l), !0).filter(Boolean);
|
|
32
|
-
return t.forEach(function(e) {
|
|
33
|
-
return e.classList.add(`allow-interactivity-${y}`);
|
|
34
|
-
}), function() {
|
|
35
|
-
document.body.classList.remove(`block-interactivity-${y}`), t.forEach(function(e) {
|
|
36
|
-
return e.classList.remove(`allow-interactivity-${y}`);
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
}
|
|
40
|
-
}, [
|
|
41
|
-
m.inert,
|
|
42
|
-
m.lockRef.current,
|
|
43
|
-
m.shards
|
|
44
|
-
]);
|
|
45
|
-
var S = o.useCallback(function(e, t) {
|
|
46
|
-
if ("touches" in e && e.touches.length === 2 || e.type === "wheel" && e.ctrlKey) return !x.current.allowPinchZoom;
|
|
47
|
-
var n = s(e), r = _.current, o = "deltaX" in e ? e.deltaX : r[0] - n[0], c = "deltaY" in e ? e.deltaY : r[1] - n[1], l, u = e.target, d = Math.abs(o) > Math.abs(c) ? "h" : "v";
|
|
48
|
-
if ("touches" in e && d === "h" && u.type === "range") return !1;
|
|
49
|
-
var f = window.getSelection(), p = f && f.anchorNode;
|
|
50
|
-
if (p && (p === u || p.contains(u))) return !1;
|
|
51
|
-
var m = a(d, u);
|
|
52
|
-
if (!m) return !0;
|
|
53
|
-
if (m ? l = d : (l = d === "v" ? "h" : "v", m = a(d, u)), !m) return !1;
|
|
54
|
-
if (!v.current && "changedTouches" in e && (o || c) && (v.current = l), !l) return !0;
|
|
55
|
-
var h = v.current || l;
|
|
56
|
-
return i(h, t, e, h === "h" ? o : c, !0);
|
|
57
|
-
}, []), C = o.useCallback(function(e) {
|
|
58
|
-
var t = e;
|
|
59
|
-
if (!(!p.length || p[p.length - 1] !== b)) {
|
|
60
|
-
var n = "deltaY" in t ? c(t) : s(t), r = g.current.filter(function(e) {
|
|
61
|
-
return e.name === t.type && (e.target === t.target || t.target === e.shadowParent) && u(e.delta, n);
|
|
62
|
-
})[0];
|
|
63
|
-
if (r && r.should) {
|
|
64
|
-
t.cancelable && t.preventDefault();
|
|
65
|
-
return;
|
|
66
|
-
}
|
|
67
|
-
if (!r) {
|
|
68
|
-
var i = (x.current.shards || []).map(l).filter(Boolean).filter(function(e) {
|
|
69
|
-
return e.contains(t.target);
|
|
70
|
-
});
|
|
71
|
-
(i.length > 0 ? S(t, i[0]) : !x.current.noIsolation) && t.cancelable && t.preventDefault();
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
}, []), w = o.useCallback(function(e, t, n, r) {
|
|
75
|
-
var i = {
|
|
76
|
-
name: e,
|
|
77
|
-
delta: t,
|
|
78
|
-
target: n,
|
|
79
|
-
should: r,
|
|
80
|
-
shadowParent: h(n)
|
|
81
|
-
};
|
|
82
|
-
g.current.push(i), setTimeout(function() {
|
|
83
|
-
g.current = g.current.filter(function(e) {
|
|
84
|
-
return e !== i;
|
|
85
|
-
});
|
|
86
|
-
}, 1);
|
|
87
|
-
}, []), T = o.useCallback(function(e) {
|
|
88
|
-
_.current = s(e), v.current = void 0;
|
|
89
|
-
}, []), E = o.useCallback(function(e) {
|
|
90
|
-
w(e.type, c(e), e.target, S(e, m.lockRef.current));
|
|
91
|
-
}, []), D = o.useCallback(function(e) {
|
|
92
|
-
w(e.type, s(e), e.target, S(e, m.lockRef.current));
|
|
93
|
-
}, []);
|
|
94
|
-
o.useEffect(function() {
|
|
95
|
-
return p.push(b), m.setCallbacks({
|
|
96
|
-
onScrollCapture: E,
|
|
97
|
-
onWheelCapture: E,
|
|
98
|
-
onTouchMoveCapture: D
|
|
99
|
-
}), document.addEventListener("wheel", C, r), document.addEventListener("touchmove", C, r), document.addEventListener("touchstart", T, r), function() {
|
|
100
|
-
p = p.filter(function(e) {
|
|
101
|
-
return e !== b;
|
|
102
|
-
}), document.removeEventListener("wheel", C, r), document.removeEventListener("touchmove", C, r), document.removeEventListener("touchstart", T, r);
|
|
103
|
-
};
|
|
104
|
-
}, []);
|
|
105
|
-
var O = m.removeScrollBar, k = m.inert;
|
|
106
|
-
return o.createElement(o.Fragment, null, k ? o.createElement(b, { styles: d(y) }) : null, O ? o.createElement(n, {
|
|
107
|
-
noRelative: m.noRelative,
|
|
108
|
-
gapMode: m.gapMode
|
|
109
|
-
}) : null);
|
|
110
|
-
}
|
|
111
|
-
function h(e) {
|
|
112
|
-
for (var t = null; e !== null;) e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
113
|
-
return t;
|
|
114
|
-
}
|
|
1
|
+
import { exportSidecar as e } from "./index226.js";
|
|
2
|
+
import { effectCar as t } from "./index227.js";
|
|
3
|
+
import { RemoveScrollSideCar as n } from "./index239.js";
|
|
4
|
+
//#region ../../node_modules/react-remove-scroll/dist/es2015/sidecar.js
|
|
5
|
+
var r = e(t, n);
|
|
115
6
|
//#endregion
|
|
116
|
-
export {
|
|
7
|
+
export { r as default };
|
|
117
8
|
|
|
118
9
|
//# sourceMappingURL=index240.js.map
|
package/dist/index240.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index240.js","names":["React"],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/SideEffect.js"],"sourcesContent":["import { __spreadArray } from \"tslib\";\nimport * as React from 'react';\nimport { RemoveScrollBar } from 'react-remove-scroll-bar';\nimport { styleSingleton } from 'react-style-singleton';\nimport { nonPassive } from './aggresiveCapture';\nimport { handleScroll, locationCouldBeScrolled } from './handleScroll';\nexport var getTouchXY = function (event) {\n return 'changedTouches' in event ? [event.changedTouches[0].clientX, event.changedTouches[0].clientY] : [0, 0];\n};\nexport var getDeltaXY = function (event) { return [event.deltaX, event.deltaY]; };\nvar extractRef = function (ref) {\n return ref && 'current' in ref ? ref.current : ref;\n};\nvar deltaCompare = function (x, y) { return x[0] === y[0] && x[1] === y[1]; };\nvar generateStyle = function (id) { return \"\\n .block-interactivity-\".concat(id, \" {pointer-events: none;}\\n .allow-interactivity-\").concat(id, \" {pointer-events: all;}\\n\"); };\nvar idCounter = 0;\nvar lockStack = [];\nexport function RemoveScrollSideCar(props) {\n var shouldPreventQueue = React.useRef([]);\n var touchStartRef = React.useRef([0, 0]);\n var activeAxis = React.useRef();\n var id = React.useState(idCounter++)[0];\n var Style = React.useState(styleSingleton)[0];\n var lastProps = React.useRef(props);\n React.useEffect(function () {\n lastProps.current = props;\n }, [props]);\n React.useEffect(function () {\n if (props.inert) {\n document.body.classList.add(\"block-interactivity-\".concat(id));\n var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef), true).filter(Boolean);\n allow_1.forEach(function (el) { return el.classList.add(\"allow-interactivity-\".concat(id)); });\n return function () {\n document.body.classList.remove(\"block-interactivity-\".concat(id));\n allow_1.forEach(function (el) { return el.classList.remove(\"allow-interactivity-\".concat(id)); });\n };\n }\n return;\n }, [props.inert, props.lockRef.current, props.shards]);\n var shouldCancelEvent = React.useCallback(function (event, parent) {\n if (('touches' in event && event.touches.length === 2) || (event.type === 'wheel' && event.ctrlKey)) {\n return !lastProps.current.allowPinchZoom;\n }\n var touch = getTouchXY(event);\n var touchStart = touchStartRef.current;\n var deltaX = 'deltaX' in event ? event.deltaX : touchStart[0] - touch[0];\n var deltaY = 'deltaY' in event ? event.deltaY : touchStart[1] - touch[1];\n var currentAxis;\n var target = event.target;\n var moveDirection = Math.abs(deltaX) > Math.abs(deltaY) ? 'h' : 'v';\n // allow horizontal touch move on Range inputs. They will not cause any scroll\n if ('touches' in event && moveDirection === 'h' && target.type === 'range') {\n return false;\n }\n // allow drag selection (iOS); check if selection's anchorNode is the same as target or contains target\n var selection = window.getSelection();\n var anchorNode = selection && selection.anchorNode;\n var isTouchingSelection = anchorNode ? anchorNode === target || anchorNode.contains(target) : false;\n if (isTouchingSelection) {\n return false;\n }\n var canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n if (!canBeScrolledInMainDirection) {\n return true;\n }\n if (canBeScrolledInMainDirection) {\n currentAxis = moveDirection;\n }\n else {\n currentAxis = moveDirection === 'v' ? 'h' : 'v';\n canBeScrolledInMainDirection = locationCouldBeScrolled(moveDirection, target);\n // other axis might be not scrollable\n }\n if (!canBeScrolledInMainDirection) {\n return false;\n }\n if (!activeAxis.current && 'changedTouches' in event && (deltaX || deltaY)) {\n activeAxis.current = currentAxis;\n }\n if (!currentAxis) {\n return true;\n }\n var cancelingAxis = activeAxis.current || currentAxis;\n return handleScroll(cancelingAxis, parent, event, cancelingAxis === 'h' ? deltaX : deltaY, true);\n }, []);\n var shouldPrevent = React.useCallback(function (_event) {\n var event = _event;\n if (!lockStack.length || lockStack[lockStack.length - 1] !== Style) {\n // not the last active\n return;\n }\n var delta = 'deltaY' in event ? getDeltaXY(event) : getTouchXY(event);\n var sourceEvent = shouldPreventQueue.current.filter(function (e) { return e.name === event.type && (e.target === event.target || event.target === e.shadowParent) && deltaCompare(e.delta, delta); })[0];\n // self event, and should be canceled\n if (sourceEvent && sourceEvent.should) {\n if (event.cancelable) {\n event.preventDefault();\n }\n return;\n }\n // outside or shard event\n if (!sourceEvent) {\n var shardNodes = (lastProps.current.shards || [])\n .map(extractRef)\n .filter(Boolean)\n .filter(function (node) { return node.contains(event.target); });\n var shouldStop = shardNodes.length > 0 ? shouldCancelEvent(event, shardNodes[0]) : !lastProps.current.noIsolation;\n if (shouldStop) {\n if (event.cancelable) {\n event.preventDefault();\n }\n }\n }\n }, []);\n var shouldCancel = React.useCallback(function (name, delta, target, should) {\n var event = { name: name, delta: delta, target: target, should: should, shadowParent: getOutermostShadowParent(target) };\n shouldPreventQueue.current.push(event);\n setTimeout(function () {\n shouldPreventQueue.current = shouldPreventQueue.current.filter(function (e) { return e !== event; });\n }, 1);\n }, []);\n var scrollTouchStart = React.useCallback(function (event) {\n touchStartRef.current = getTouchXY(event);\n activeAxis.current = undefined;\n }, []);\n var scrollWheel = React.useCallback(function (event) {\n shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n var scrollTouchMove = React.useCallback(function (event) {\n shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));\n }, []);\n React.useEffect(function () {\n lockStack.push(Style);\n props.setCallbacks({\n onScrollCapture: scrollWheel,\n onWheelCapture: scrollWheel,\n onTouchMoveCapture: scrollTouchMove,\n });\n document.addEventListener('wheel', shouldPrevent, nonPassive);\n document.addEventListener('touchmove', shouldPrevent, nonPassive);\n document.addEventListener('touchstart', scrollTouchStart, nonPassive);\n return function () {\n lockStack = lockStack.filter(function (inst) { return inst !== Style; });\n document.removeEventListener('wheel', shouldPrevent, nonPassive);\n document.removeEventListener('touchmove', shouldPrevent, nonPassive);\n document.removeEventListener('touchstart', scrollTouchStart, nonPassive);\n };\n }, []);\n var removeScrollBar = props.removeScrollBar, inert = props.inert;\n return (React.createElement(React.Fragment, null,\n inert ? React.createElement(Style, { styles: generateStyle(id) }) : null,\n removeScrollBar ? React.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null));\n}\nfunction getOutermostShadowParent(node) {\n var shadowParent = null;\n while (node !== null) {\n if (node instanceof ShadowRoot) {\n shadowParent = node.host;\n node = node.host;\n }\n node = node.parentNode;\n }\n return shadowParent;\n}\n"],"x_google_ignoreList":[0],"mappings":";;;;;;;;;AAMA,IAAW,IAAa,SAAU,GAAO;AACrC,QAAO,oBAAoB,IAAQ,CAAC,EAAM,eAAe,GAAG,SAAS,EAAM,eAAe,GAAG,QAAQ,GAAG,CAAC,GAAG,EAAE;GAEvG,IAAa,SAAU,GAAO;AAAE,QAAO,CAAC,EAAM,QAAQ,EAAM,OAAO;GAC1E,IAAa,SAAU,GAAK;AAC5B,QAAO,KAAO,aAAa,IAAM,EAAI,UAAU;GAE/C,IAAe,SAAU,GAAG,GAAG;AAAE,QAAO,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE;GACpE,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ChE,SAAS,oBAAoB,aAAa,GAAe,EAAW,EACpE,SAAS,oBAAoB,cAAc,GAAkB,EAAW;;IAE7E,EAAE,CAAC;CACN,IAAI,IAAkB,EAAM,iBAAiB,IAAQ,EAAM;AAC3D,QAAQA,EAAM,cAAcA,EAAM,UAAU,MACxC,IAAQA,EAAM,cAAc,GAAO,EAAE,QAAQ,EAAc,EAAG,EAAE,CAAC,GAAG,MACpE,IAAkBA,EAAM,cAAc,GAAiB;EAAE,YAAY,EAAM;EAAY,SAAS,EAAM;EAAS,CAAC,GAAG,KAAK;;AAEhI,SAAS,EAAyB,GAAM;AAEpC,MADA,IAAI,IAAe,MACZ,MAAS,MAKZ,CAJI,aAAgB,eAChB,IAAe,EAAK,MACpB,IAAO,EAAK,OAEhB,IAAO,EAAK;AAEhB,QAAO"}
|
|
1
|
+
{"version":3,"file":"index240.js","names":[],"sources":["../../../node_modules/react-remove-scroll/dist/es2015/sidecar.js"],"sourcesContent":["import { exportSidecar } from 'use-sidecar';\nimport { RemoveScrollSideCar } from './SideEffect';\nimport { effectCar } from './medium';\nexport default exportSidecar(effectCar, RemoveScrollSideCar);\n"],"x_google_ignoreList":[0],"mappings":";;;;AAGA,IAAA,IAAe,EAAc,GAAW,EAAoB"}
|